Skip to content

Run Once, Get Two: Near-Zero-Cost Streaming Safety Checks for Local LLMsRun One, Get Two: Near-Free Streaming Safety Checks for Local LLMs

arXiv: 其他 AI 安全论文· arXiv:2611.26975· Soheil Zibakhsh, Pedram Aghazadeh, Farinaz Koushanfar·Indexed by this site · 12 hr ago· Originally publishedDefenses· Its place in the scan record →
AI summary

The researchers propose ToRA, an adapter that runs safety checks during local LLM decoding at near-zero extra cost, matching or exceeding dedicated streaming guardrails on Qwen3-0.6B. The method runs a second model as an extra row in the generator's decoding step, sharing weights and the KV cache with the generative model, and the dual-row kernel reads the weights only once for both rows. A local LLM assistant decodes for only one user at a time and is limited by memory bandwidth, leaving idle compute; existing streaming safety checks trade off accuracy and cost, dedicated guardrail models nearly double per-token latency, and hidden-state probes are low-cost but less accurate. On Qwen3-0.6B, ToRA achieves higher F1 on 12 of 17 benchmarks and detects 11.8 percentage points more unsafe responses than hidden-state probes at similar cost, with less than 4% extra per-token latency.

Read originalarxiv.org