학술
Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMs
arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.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.
관련 뉴스
'research' 카테고리 뉴스
Adding One More Agent: How AI Team Size and Formation Shape Productivity and Diversity in Human-AI Brainstorming Teams
arXiv CS.AI
Coherence by Construction: Synthesizing CTI Knowledge Graphs and the Formal Limits of Coherence Validation
arXiv CS.AI
TOUMAII: A 4.5M-Pair Tool-Calling Preference Dataset and Its Source-Agnostic Generator
arXiv CS.AI
arXiv의 다른 기사
Memorization and Generalization in Generative Models: A Perspective From Energy-based Modeling and Associative Memory
arXiv CS.AI
Beyond Demographic Discrimination: Benchmarking Normative-Descriptive Calibration in LLMs
arXiv CS.AI
Towards Robust Partial-Edit Deepfake Localization: An edit and Generator Conditioned Analysis
arXiv CS.AI