TL;DR
This paper introduces Activation Denoising, a novel approach to LLM quantization that bridges the gap between fast parallel methods and accurate sequential ones. By treating compounding quantization errors as a robustness problem, the authors inject noise during calibration to create a "denoising filter" that is absorbed directly into the model weights, recovering significant accuracy at a fraction of the time required for sequential processing.
What Problem Does This Paper Address?
Post-training quantization (PTQ) is essential for running massive LLMs on consumer hardware, but it faces a fundamental trade-off between efficiency and accuracy.
- Parallel Quantization is highly scalable because it quantizes every layer independently. However, it suffers from "error compounding": errors from early layers accumulate in the residual stream, and later layers—calibrated on "clean" data—don't know how to handle this noisy input.
- Sequential Quantization (like GPTQ or GPTAQ) fixes this by quantizing layers one by one, re-calibrating each layer on the actual noisy outputs of its predecessors. While accurate, this creates a massive serial bottleneck that prevents efficient multi-GPU scaling.
The authors ask: Can we get the accuracy benefits of sequential correction while keeping the speed of parallel quantization?
Methods
The authors propose a "robustness perspective." Instead of measuring the exact error from previous layers, they make each layer robust to potential upstream noise.
- Noise Injection: During a single additional calibration forward pass through the full-precision model, they inject random Gaussian noise into the activations. High-magnitude "outlier" channels receive more noise, forcing the model to be extra robust where it matters most.
- Activation Denoising Objective: They formulate a new quantization objective that asks the quantized weights to produce a "clean" output even when given "noisy" inputs.
- The Denoising Filter ($F$): Mathematically, they prove (Theorem 1) that this objective is equivalent to a simple linear transformation of the weights ($W_{new} = WF$) followed by standard rounding.
- Weight Absorption: Crucially, this transformation is "absorbed" into the weights before they are saved. This means the denoising happens automatically during inference with zero additional computational cost.
Datasets
The researchers evaluated their method across several popular LLM families (Llama-3.2 1B/3B, Llama-3 8B, and Llama-2 13B) using:
- WikiText-2: Used for both calibration and test perplexity.
- C4 and FineWeb: Used to test generalization on large-scale web text.
- Commonsense Benchmarks: A suite of eight tasks (like PIQA, HellaSwag, and WinoGrande) to measure zero-shot accuracy.
Key Insights and Ideas
- Denoising as Regularization: The authors show that injecting noise is mathematically equivalent to a weighted column-wise $L_2$ penalty (Theorem 2). This shrinks the weights, reducing the model's Lipschitz constant and preventing quantization errors from amplifying as they move deeper into the network.
- Complementary to Rotations: Techniques like QuaRot use orthogonal rotations to spread out outliers. Activation Denoising complements this by reducing the overall weight norm, something rotations (which preserve the Frobenius norm) cannot do.
- Front-Loaded Benefits: The authors discovered that the benefits of sequential quantization are "front-loaded." Correcting errors in the first 25% of the model's layers closes 40–60% of the total accuracy gap.
Key Results
Activation Denoising consistently outperforms standard parallel methods and narrows the gap to sequential baselines significantly:
- Accuracy Recovery: For 3-bit quantization, it recovers 18–31% of the perplexity gap between parallel and sequential methods. In 2-bit vector quantization (using QuIP#), it sometimes even outperforms the sequential baseline.
- Massive Speedup: Because the rounding steps remain independent, the process can be distributed across multiple GPUs. On a Llama-2-13B model using 8 GPUs, the authors project a 7.5x reduction in quantization time compared to the sequential approach.
- Zero Inference Overhead: Since the denoising filter is fused into the weights, the quantized model runs at the exact same speed as a standard quantized model.
Limitations and Future Work
- Hyperparameter Tuning: The method introduces new hyperparameters (noise scales $\lambda, \rho$ and injection magnitude $\gamma$). While the authors found stable defaults, optimal values might vary for different architectures.
- Remaining Gap: While the method closes much of the gap, a small difference remains compared to full sequential quantization. The authors suggest that using more sophisticated, signal-correlated noise models might close this further.
- Scope: The current work focuses on weight quantization. Extending this framework to activation and KV-cache quantization is a logical next step.
Summary updated