Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMs
Soheil Zibakhsh, Pedram Aghazadeh, Farinaz Koushanfar
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.
Create a lesson
Related papers
Jagged Robustness: Uneven Safety Transfer and Emerging Vulnerabilities under LLM Quantization
Shared title terminology · Ramneek Agnihotri, Yingte Xu, Hans Vath
AMARIS: Merging Generalist and Specialist LLMs via Adaptive Subspace Inheritance
Shared title terminology · Hwee Young Kang, Irwin De Tao Chin, Wen-Haw Chong et al.
GGDriver: Glance at What Is Shared, Gaze at What Differs for Perception-Free Planning
Shared title terminology · Jiawei Sun, Maosen Li, Jiamin Shi et al.
What Does Matching a Human Intervention Effect Establish? Benchmark Checks for LLM Simulations
Shared title terminology · Tengfei Shao, Asma Rezaei, Ali Reza Kamali
Learning Adaptive Defense Strategies: Fine-Tuned LLMs for Network Security Games under Network Mobility
Shared title terminology · Md Abu Sayed, Asif Rahman, Ahmed Ryen et al.
CoEvoBench: Can LLMs Drive Recursive Co-Evolution of Agentic Systems?
Shared title terminology · Chuan Xiao, Baojie Wang, Haizhao Fan et al.