From Token Changes to Task Failures: Bit Flips in a Shared KV-Cache Block
Yuji Yamamoto, Satoshi Matsuura
Key points
From the paper's conclusion- We score responses on four tasks: code generation, short-answer questions, multiple-choice reasoning, and refusal under a policy.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- KVGuard: A KV Cache Safety Checker for LLM Serving SystemsarXiv · 2026
- BlockJack: Cross-Tenant Redirection Fault Attacks on Paged KV Cache Address Translation in LLM ServingarXiv · 2026
- On the Limits of Execution Traces for Repairing Assertion Failures in LLM-Generated CodearXiv · 2026
- KVDiagnosis: A Diagnostic Benchmark for KV-Cache Compression in Long-Context Language ModelsarXiv · 2026
- Exact on Paper: Which LLM Serving Shortcuts Flip Graded Answers, Measured Against the Noise of Reordering the Same RequestsarXiv · 2026
- The KV Cache Working Set: Online Capacity Planning for LLM Inference SystemsarXiv · 2026