Abstract
Quantizing Large Language Models (LLMs) to 3-4 bits is a common practice for deployment on consumer hardware, yet it often leads to unpredictable failures on specific inputs. This study investigates the mechanistic causes of these failures across models like Llama-3 and Qwen2.5. We find that quantization error is not stochastic but highly correlated across different algorithms, driven by the "Residual Magnitude Paradox." Inputs with small residual stream magnitudes in the full-precision model trigger a "reversal effect" in RMSNorm, which disproportionately amplifies quantization noise. Our analysis identifies MLP gates in later layers as the primary site of failure, where restoring minimal precision can recover most performance.
Introduction
Large Language Models (LLMs) typically require 16-bit precision, necessitating significant memory. Quantization techniques like GPTQ and AWQ compress these models to 3 or 4 bits, making them accessible on consumer-grade GPUs. However, this compression is not uniform in its impact; certain prompts result in high-error outputs or gibberish, while others remain unaffected. While previous research attributed these errors to weight or activation outliers, this paper explores whether specific input characteristics make certain data inherently "unquantizable."
Methodology
The authors conducted a systematic evaluation of LLMs (including Llama-3, Qwen2.5, and Mistral-Nemo) under various 3-4 bit weight-only quantization schemes such as GPTQ, AWQ, NormalFloat (NF), and EfficientQAT. Diagnostic techniques included:
- Correlation Analysis: Assessing error consistency across different quantization methods.
- Logit Lens / Early Exiting: Monitoring the evolution of the "correct" token probability across layers to identify when performance degrades.
- Activation Patching: A surgical intervention replacing quantized components with 16-bit equivalents to isolate failure points.
- Kurtosis Analysis: Examining activation distributions to identify outlier severity.
Evaluations were performed on FineWeb (perplexity), PopQA (factual knowledge), and WikiText.
The RMSNorm Reversal Effect
A key finding is the Residual Magnitude Paradox: inputs that exhibit smaller residual stream magnitudes in the original FP16 model are the most susceptible to quantization failure. This is explained by the RMSNorm Reversal Effect. RMSNorm scales activations to unit variance; when an input signal is exceptionally small, the normalization layer applies a large scaling factor. In a quantized model, this factor also amplifies the quantization noise introduced by the weights.
As shown in Figure 1, the residual magnitude increases across layers, but the gap between "control" ($D_{ctrl}$) and "large error" ($D_{large}$) datasets persists. After RMSNorm, the distribution of magnitudes for the problematic $D_{large}$ dataset is shifted higher than the control, indicating the noise amplification effect.
Key Insights and Results
The study reveals that quantization errors are remarkably consistent across algorithms ($\rho = 0.82$), suggesting the bottleneck lies in the model architecture and data interaction rather than the compression math.
Furthermore, activation patching identified MLP gate projections as the most sensitive components. In Llama3-8B, 3-bit AWQ quantization increased perplexity from 5.62 to 10.68. By restoring only the MLP gate outputs to 16-bit precision, perplexity dropped to 6.42, capturing the majority of the performance loss.
Figure 5 illustrates the NLL progression. The error (NLL) for the $D_{large}$ dataset (purple/orange lines) is consistently higher and diverges more sharply in later layers compared to the control dataset (green/cyan lines), demonstrating how quantization disproportionately impacts specific inputs.
Conclusion and Future Work
The failure of low-bit quantization is a predictable phenomenon driven by the interaction between small residual signals and normalization layers. The findings suggest that future model architectures could be made more "quantization-friendly" by rethinking the use of Gated Linear Units or modifying how normalization layers handle low-magnitude signals. Future research will extend these mechanistic insights to quantized activations (W8A8/W4A4) and specific reasoning tasks.
Summary updated