Local LLM assistants decode for one user at a time, so decoding is bound by memory bandwidth and leaves compute idle. Streaming safety checks today trade accuracy against cost. A dedicated guard model is accurate but nearly doubles the latency per token, while a hidden-state probe is cheap but less accurate. We present ToRA, an adapter that runs a second model as an extra row in the generator's decode step, sharing its weights and KV cache. Dual-row kernels read each weight once for both rows. On Qwen3-0.6B, ToRA matches or beats a dedicated streaming guard, with higher F1 on 12 of 17 benchmarks. It detects 11.8 points more unsafe responses than the probe at a similar cost, under 4% added latency per token.
Figures & tables
Fig. 1: Response F1 versus per-token latency overhead at 2k context. All methods use identical generator kernels; the error bar shows one standard deviation across three ToRA seeds.
Fig. 2: Streaming safety architectures: hidden-state probe (left), dedicated guard (center), and ToRA (right).
Fig. 3: ToRA decoding step. The verifier branches at the first adapted FFN and reuses the generator’s weights and KV cache. Dotted lines indicate shared weight reads.
Avg. F1
Streaming detection
Latency per token
Added memory
Method
Response (8)
Prompt (9)
Det. @5%
Exact @5%
Delay @5%
Det. @1%
ms at 2k
Added at 512 / 2k / 8k
at 8k
Qwen3Guard-Stream
80.4
84.6
84.7
77.1
7
61.0
5.527
+84.3 / +85.9 / +89.3%
1,139 + 910 MiB
SingProbe
77.6
83.0
71.8
61.5
7
48.5
3.022
+1.7 / +1.6 / +1.2%
4.3 + 2.0 MiB
ToRA (ours)
81.4 ± 0.2
86.3 ± 0.4
83.6 ± 0.6
75.6 ± 0.1
5.0
59.5 ± 1.6
3.078
+4.0 / +3.5 / +2.8%
9.3 + 0 MiB
TABLE I: Accuracy, streaming detection and cost of the three checkers on Qwen3-0.6B.
Response
WildGuard
Aegis 2.0
BeaverTails
SafeRLHF
HarmBench
Think
XSTest
ExpGuard
Avg. F1
Avg. AUPRC
Qwen3Guard-Stream
76.8
81.3
84.5
62.7
82.7
81.7
83.8
90.1
80.4
89.0
SingProbe
75.8
79.0
82.8
55.4 ‡
83.9 ‡
74.3
81.9
87.7
77.6
86.9
ToRA (ours)
76.3 ± 1.5
82.3 ± 0.8
85.6 ± 0.0
64.2 ± 1.8
84.5 ± 0.6
79.8 ± 1.4
91.8 ± 1.5
86.9 ± 1.0
81.4 ± 0.2
89.9 ± 0.1
Prompt
WildGuard
Aegis 2.0
ToxicChat
OpenAI Mod.
Aegis 1.0
SimpleST
HarmBench
XSTest
ExpGuard
Avg. F1
Avg. AUPRC
Qwen3Guard-Stream
87.6
85.9
71.4
68.0
85.4
98.0
97.2
85.3
82.2
84.6
91.7
SingProbe
86.6
84.8
71.0
67.2
87.0
97.4
79.3 ‡
86.5
86.9
83.0
90.8
TABLE II: Unsafe-class F1 per benchmark, with the average F1 and AUPRC.
Budget
Metric
Qwen3Guard- Stream
SingProbe
ToRA (ours)
5%
Detected (%)
84.7
71.8
83.6 ± 0.6
Exact hit (%)
77.1
61.5
75.6 ± 0.1
Delay (tokens)
7
7
5.0
Safe BT flagged (%)
8.6
4.8
8.3 ± 0.7
1%
Detected (%)
61.0
48.5
59.5 ± 1.6
Exact hit (%)
43.3
37.0
50.2 ± 2.3
TABLE III: Token-level streaming detection on Qwen3GuardTest.
Fig. 4: Latency overhead of different execution strategies for the verifier path.
Academy of Artificial Intelligence and Advanced Technology, Xi’an Jiaotong-Liverpool University · Faculty of Science and Engineering, University of Nottingham Ningbo China · Department of Computer Sciences, University of Wisconsin–Madison +1