From Token Changes to Task Failures: Bit Flips in a Shared KV-Cache Block
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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AR
- Comments
- 19 pages, 4 figures. Extended version of arXiv:2604.17249 (SECRYPT 2026, 23rd International Conference on Security and Cryptography). Submitted to Springer Communications in Computer and Information Science (CCIS)
Related papers
When Shuffling Fails: Token Recovery from Obfuscated KV Caches
Shared title terminologycs.CRChengzhi Yi, Xiao Cheng, Wei Song et al.
KVMARK: Fragile Watermarking for KV-Cache Integrity in Latent Multi-Agent Systems
Shared title terminologycs.CRMarjan Beheshti, Ronghua Xu
Anti OS Fingerprinting, Revisited: A Loadable Kernel Module for FreeBSD and What Twenty-Five Years Changed
Shared title terminologycs.CRDaisuke Miyamoto
BlockJack: Cross-Tenant Redirection Fault Attacks on Paged KV Cache Address Translation in LLM Serving
Shared title terminologycs.CRQifan Wang, Jeremy Boy, Jonas Sander et al.
On the Reliability of CyberGym Evaluation: Task Material Consistency and Reference-Target Identity
Shared title terminologycs.CRYule Ding, Hongzhen Wu
Erasing the Wrong Thing: Conditional Attribute Leakage and Concept Erasure in Shared Foundation-Model Embeddings
Shared title terminologycs.CRHaijun He, Fei Li, Donghong Ji et al.