Real-time monitoring has two distinct requirements. A classifier must recognize harmful segments, and the serving system must still produce scores when a cache hit skips computation. SGLang and Reflection’s engineering report explains why the second requirement needs its own state management.

Which monitors fit on a serving GPU

A stateless linear or MLP probe can score current activations on the serving GPU. The stateful Iris Cyber Probe also updates a recurrent state along the token sequence. SGLang streams token features to a separate scoring process, which can share a GPU or use a dedicated device. This keeps probe history out of the engine’s KV pool but allows scoring and generation to finish at different times. A client waiting for scores may receive its result after the engine has produced the last token.

Iris Content Guard serves a different use case: reviewing a conversation. The previous /v1/classify interface assumed one label distribution per input. The new model needs per-token, multi-label results to distinguish the request from the response and score 14 categories. The change affects both response semantics and prefill execution. This retrospective classifier complements the live activation probe.

Stateless monitors score locally, while the stateful path streams features to a scorer with its own history.View original ↗

Stateless monitors score locally, while the stateful path streams features to a scorer with its own history.

How a prefix hit can leave a missing score

The engine prefix tree and the scorer’s host-memory store evict independently. If the scorer drops the recurrent state for a prefix still cached by the engine, the next hit skips its computation. The scorer has neither the old state nor a new stream of activations for that prefix. A bounded protected queue preserves snapshots at page boundaries and reused prefixes, reducing mismatches between the two eviction schedules.

In an AgentX coverage test on four B300s at concurrency 64 with an 8 GiB logical history budget, plain LRU left 12,422 requests without scores because of missing prefixes and five more because of pending overflow. Protected history scored all 30,635 requests in its run. Its client exhausted memory during postprocessing, so the authors established coverage from checksum-verified raw logs. That experiment supports a coverage comparison rather than a throughput estimate.

What a fifth GPU buys

A separate performance test used Beam 1.0 NVFP4, TP4 and DFLASH 2, with 8,192 input tokens, 1,024 output tokens and concurrency 128. Sharing a serving GPU cost 4.81% throughput. A dedicated fifth B300 reduced the loss to 0.71%. Even then, buffering output until the score arrived added 0.349 seconds at P99 completion. Throughput, extra hardware and score arrival time are distinct deployment costs. The stateful path currently requires full-attention MHA/GQA KV and does not cover MLA’s compressed latent cache.

SGLang Team and Reflection · 2026-11-30 · Safety monitoring in SGLang: Reflection’s AI safety tools add activation monitors and per‑token content classification