计算机科学 > 人工智能
[提交于 2026年11月20日]
标题:Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Soheil Zibakhsh Shabgahi[v1] 2026年11月20日 星期五 01:53:11 UTC (125 KB)