跳到正文
arXiv (Robotics + Hardware + Signal)· Yuji Yamamoto, Satoshi Matsuura·· 7 天前AI 评分36

共享KV-Cache块中的比特翻转如何导致LLM任务失败

From Token Changes to Task Failures: Bit Flips in a Shared KV-Cache Block

AI 导读

针对vLLM部署Qwen3-8B的软件故障注入实验显示,翻转共享KV-Cache块中一个数值的最高尾数位或符号位后,响应由正确变错误的比例随任务差异极大:MBPP+上为0.023、held-out TriviaQA上达0.59(尾数位),符号位下分别为0.019和0.60。受损响应与普通错误无异,因此应通过检查缓存块而非监控输出来检测比特翻转。

正文 · 原文

arXiv:2611.22243v1 Announce Type: cross Abstract: In LLM serving systems with prefix caching, each KV block of a shared system prompt is held in GPU memory as a single physical copy, which every request with that prompt reads. Our earlier work measured change and showed that one bit flip in such a block changes many later responses without making them visibly degenerate. This paper extends that work by measuring how often the changed responses are wrong. Using software fault injection into vLLM serving Qwen3-8B, we flip the most significant mantissa bit or the sign bit of a value in such a block. We score responses on four tasks: code generation, short-answer questions, multiple-choice reasoning, and refusal under a policy. The fraction of changes that turned a correct response wrong depended strongly on the task: 0.023 on MBPP+ and 0.59 on held-out TriviaQA at the mantissa bit, and 0.019 and 0.60 at the sign bit. Harm fell on requests whose sampled answers are sometimes wrong, so the damage of a flip depends on how common such requests are. Harmed responses looked like ordinary errors, so a flip should be detected by checking cached blocks rather than by monitoring outputs.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org