Dynamic quantization can leak other users' data across batch boundaries
Dynamic quantization creates side-channel leaks that allow an adversary to recover data from other inputs in the same batch
AI/ML arXiv 29 Apr 2026 Attack Maturity unclear
Published as “Quantamination: Dynamic Quantization Leaks Your Data Across the Batch”
Why it matters
Multi-tenant LLM serving platforms that use per-tensor dynamic quantization risk leaking user prompts, so operators should switch to per-token quantization or disable the vulnerable configuration.
Summary
The paper shows that per-tensor dynamic quantization across a batch creates a side channel that lets an adversary recover other users' inputs, achieving 99.6-100% token recovery accuracy on LLMs and exact image identification on classification models. The evidence comes from experiments on three language models (1M-135M parameters) and three CNNs on MNIST, comparing against a random-search baseline of ~25,000 queries per token. The authors also note that per-token dynamic quantization eliminates the leak, but real-world deployment challenges such as hardware nondeterminism may affect exploitability.
What they found 3
- Near-perfect token recovery from the side channel
“The attack achieves near-perfect token recovery across all settings, with 99.6-100% accuracy.”
- Exact image recovery when the secret is in the candidate set
“Table 4 shows near-perfect exact recovery when the secret exists in the candidate set.”
- Per-token dynamic quantization eliminates the leak
“per-token dynamic quantization, already the standard in many LLM serving frameworks for both accuracy and computational efficiency reasons, eliminates this side channel entirely”
Caveats 4
- With our chosen threshold ε = 10-6, we observe occasional false positives (0.4% of tokens for Pythia-70M, 0% for others).
- For top-1 candidate accuracy, we achieve 16% for the simple CNN, 14% for ResNet18, and 10% for ResNet50, only marginally above the 10% random baseline
- Finally, we discuss real-world deployment challenges that complicate exploitation in production, including nondeterminism from hardware and software heterogeneity and possible provider-side adaptations that conflict with the supposedly deterministic temperature 0 setting.
- When the secret is excluded from the candidate set (9,999 candidates remaining), exact recovery is impossible.
What’s new here 4
- Identifies a new cross-batch privacy leak caused by per-tensor dynamic activation quantization.
- Demonstrates practical token-level recovery attacks on LLMs with near-perfect accuracy.
- Shows exact image class recovery in quantized CNNs when the secret is in the candidate set.
- Finds that per-token dynamic quantization removes the side channel, providing a mitigation.