Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMs
Zibakhsh et al. in Alignment
Can a safety checker ride along with generation?
Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMs
Two streaming checks, two different costs
A separate guard carries its own weights and KV cache. Against a same-sized generator, it adds 84-89% per-token latency on an A6000.
SingProbe checks the generator's hidden states and adds under 2% latency, but trails the guard on response F1 and streaming unsafe detection.
Can a verifier borrow the work generation already performs?
Three ways to check a stream

The comparison is a hidden-state probe, a separate guard, and ToRA. ToRA's key move is sharing generator weights and cached history rather than carrying a second model.
ToRA shares the model's work token by token
- 1
Run once, then branch
The generator runs its lower layers once; ToRA's verifier branches before adapted FFNs in its top 14 layers on Qwen3-0.6B.
- 2
Specialize the verifier
Low-rank adapters specialize its feed-forward projections; a classifier scores prompt and response harm.
- 3
Reuse the past
It computes current-token keys/values, reads the generator's KV cache, then discards its own.
- 4
Check every new token
At each generated token, a score crossing threshold τ can flag the response and stop generation; verifier states never feed the generator.
The saving comes from one shared weight read
Against stock cuBLAS at 0.6B, separate execution adds about 51% latency; conventional batching still adds 15-21%.
A Triton tile loads each shared weight once for both paths and applies low-rank updates only to the verifier; overhead falls below 1%.
The generator's row stays unchanged while verification reuses its weight traffic.
Near-guard scores, far less decoding overhead
Qwen3-0.6B; response F1 over 8 benchmarks. Latency vs generator at 2k, A6000 batch 1; Qwen3GuardTest detection at 5% false-alarm budget.
Early warnings need labels before the ending
- 1
Sample within the response
Alongside final-token labels, training samples 128 intermediate positions per response.
- 2
Teach the onset
For unsafe examples, Qwen3Guard-Stream-0.6B labels sampled tokens before its onset 0 and tokens from onset onward 1; safe responses stay 0.
- 3
Handle uncertain onsets
If no onset is found, intermediate labels stay 0 while the final token remains unsafe; the teacher found onsets in 88.4% of unsafe training responses.
At a strict 1% budget, ToRA flags earlier
Qwen3GuardTest: 813 unsafe; 1% false-alarm budget on 1,703 safe validations. Guard needs 2 consecutive tokens; ToRA flags one crossing.
Where the evidence stops
Model scope
Accuracy is evaluated on Qwen3-0.6B; end-to-end efficiency reaches 1.7B, while 8B tests are FFN-layer only.
Replay, not live use
Streaming tests replay existing responses, not live generation. On SingStreamBench, SingProbe AUC is 98.6 vs ToRA's 92.8; its annotations use the LLM from SingProbe training.
Baseline caveat
Published guard and probe checkpoints were not retrained because their training data were unavailable; ToRA reports results over three seeds.
Workload scope
Efficiency was measured on one A6000 at batch one; the advantage may change with larger batches or speculative decoding.
Why it matters
- A safety verifier can share the generator's weights and cached history instead of paying for a separate model each token.
- For batch-one local inference, this design offers a practical middle ground: much less latency overhead than a dedicated guard.
- The next test is whether the advantage survives larger batches, speculative decoding, and multiple concurrent verifiers.
10 slides, 3 min
24 Nov 2026