How Does a Bit-Flip Attack Break Quantized Neural Networks Without Touching Model Parameters?

Researchers have demonstrated an attack that corrupts quantized neural networks by flipping bits in memory, without ever reading the model weights or gradients. The method exploits a structural side effect of quantization itself, targeting the few small tensors that stay in high precision while the rest of the model is compressed.

Quantization shrinks neural networks by representing most parameters with fewer bits. The process is not perfectly symmetric. Small tensors — often normalization statistics or embedding tables — are kept at higher precision to preserve accuracy. That asymmetry creates a concentrated attack surface.

CoarseHammer is the name of the attack. It does not need the model file, the training data, or gradient information. It only needs to induce bit flips in the right memory locations.

Quantization asymmetry creates a narrow target

When a model is quantized, the bulk of its weights move to low-bit formats such as INT4 or INT8. A handful of tensors remain in FP16 or FP32. These tensors are small in size but disproportionately influential. Flipping a single bit in a high-precision scaling factor can rescale an entire channel. The researchers show that this concentration holds across architectures. Ten models were evaluated, including four large language models. In every case the vulnerable tensors occupied a tiny fraction of total parameter memory.

The attack searches for these tensors by their memory layout patterns. It does not read their values. It only identifies candidate regions by size and alignment, then tests flips until the model output collapses to chance accuracy.

CoarseHammer works without parameter knowledge

Prior bit-flip attacks required either white-box access to weights or gradients to guide the search. CoarseHammer removes that requirement. It accepts flips at any bit position within the targeted tensors. The search proceeds by templating memory frames — 16 frames in the real-system evaluation — and hammering rows to induce disturbance errors. Address space layout randomization does not prevent the attack. The heap allocator places tensors predictably enough that the templated frames capture the vulnerable regions.

Under ideal placement, CoarseHammer reaches chance accuracy in at least 81.5 percent of runs on each of the ten models. Median successful runs require at most 24 flips. The attack remains effective even when the model continues fine-tuning after the flips are introduced.

Simulated DRAM and real hardware results

On simulated DRAM with 0.01 flippable bits per million, CoarseHammer outperforms three prior attacks on every evaluated convolutional network. It succeeds in up to 83.6 percent of runs. The prior attacks never succeed under the same conditions. The gap widens because the older methods rely on parameter values to select bits; without that knowledge they cannot locate the critical high-precision tensors.

On a real system, the attack steers heap-allocated tensors onto vulnerable frames despite ASLR. With 16 templated frames, median accuracy reaches chance for all four language models and approximately chance for the four convolutional networks. The paper does not report whether the demonstration used Rowhammer, voltage glitching, or another fault injection technique. It also does not state how many total bits were flipped across the 16 frames to achieve the median result.

What this changes for deployed models

A quantized model running on a server or edge device now has a documented attack path that bypasses file encryption, access controls, and model obfuscation. The defender cannot rely on keeping weights secret. The vulnerability lives in the memory allocator and the quantization scheme itself. Mitigations will need to address either the asymmetry — by quantizing the small tensors too — or the memory layout — by isolating high-precision buffers from hammerable rows. The paper does not evaluate specific mitigations. It establishes that the attack surface exists and is exploitable without insider knowledge.

The sources this article was written from

  • "arXiv:2611.32128v1
    https://arxiv.org/abs/2611.32128v1"

Read next