Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMs
Soheil Zibakhsh, Pedram Aghazadeh, Farinaz Koushanfar
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ADTGuard: Adaptive Depth-Time Safeguard for Streaming Inference in Large Language ModelsarXiv · 2026
- HaloGuard 2.0: An Open-Weights Constitutional Output Guard for Multilingual Response SafetyarXiv · 2026
- PGuard: A Native, Streaming, and Plug-in Guardrail for Multimodal Large Language ModelsarXiv · 2026
- C-SafeGen: Certified Safe LLM Generation with Claim-Based Streaming GuardrailsarXiv · 2026
- Withholding the Completing Chunk: Deterministic Pair-Completion Guardrails for Streaming LLM OutputarXiv · 2026
- AdaGuard: Enhancing Safety and Policy Compliance with Reasoning-Enabled LLM-As-A-Judge GuardrailsarXiv · 2026