Large Language Models (LLMs) are notoriously memory-hungry, but their weights are surprisingly resilient to compression. We can often shrink weights to 4 bits or even 2 bits with minimal loss in accuracy. However, the true bottleneck for efficient inference is the activation—the intermediate signals flowing through the network.
While weights are static and well-behaved, activations in modern Transformers develop "outliers": specific channels where values are orders of magnitude larger than the mean. These spikes make uniform quantization nearly impossible. If you set your quantization scale to capture these massive values, you lose all precision for the 99% of normal values. If you clip them, the model’s reasoning capabilities collapse.
The Origin of the Outlier Problem
Why do these outliers appear? Research suggests they aren't random noise but a learned structural byproduct of the Transformer architecture. Ruihao Gong and colleagues identified that the scaling parameter ($\gamma$) in LayerNorm acts as a "sinful amplifier," systematically pushing specific channels into extreme ranges.
Furthermore, Yelysei Bondarenko and Markus Nagel discovered that these outliers often emerge because the model is trying to perform a "no-op"—essentially wanting an attention head to do nothing. Because standard softmax cannot produce an exact zero, the model learns to "sink" attention into specific tokens or channels, creating massive activation spikes. Mingyu Jin even found that these values are triggered by Rotary Positional Encodings (RoPE) and are critical for the model's "contextual knowledge."
Strategy 1: Mathematical Migration and Smoothing
The most immediate way to handle outliers is to move the "difficulty" elsewhere. Since weights are easier to quantize than activations, researchers have developed techniques to migrate the high dynamic range from the activations into the weights.
Liang Li and Qingyuan Li proposed Logarithmic Activation Equalization in their FPTQ framework. By mathematically scaling down the problematic activation channels and inversely scaling up the corresponding weights, the model's output remains identical, but the activations become "flatter" and easier to fit into an 8-bit or 4-bit integer grid.
Strategy 2: Rotation and Whitening
If outliers are concentrated in a few "bad" channels, why not spread them out? This is the intuition behind rotation-based quantization. By applying a random or learned rotation matrix—specifically the Hadamard Transform—to the activation space, we can "whiten" the distribution.
Marco Federici and the team at Qualcomm used this in HadaNorm to enable 4-bit Diffusion Transformers. The Hadamard transform effectively averages the energy of the outliers across all dimensions. No single value remains extreme, allowing a standard uniform quantizer to capture the data with high resolution. To make this computationally feasible, Mudhakar Srivatsa developed HadaCore, which repurposes NVIDIA Tensor Cores to perform these rotations with almost zero overhead.
Strategy 3: Architectural Prevention
Rather than fixing outliers after training, a new wave of research aims to prevent them from forming in the first place. Tianzhu Ye and Li Dong introduced the Differential Transformer, which uses a "differential attention" mechanism. By subtracting two attention maps, the model cancels out irrelevant noise and naturally suppresses the formation of extreme activation spikes, making it inherently "quantization-ready."
Similarly, Taesun Yeom proposed RegCache, which inserts "register tokens" into the sequence. These registers act as dedicated "lightning rods" that soak up the outlier energy, leaving the actual data tokens with a clean, low-variance distribution that is easy to compress.
Strategy 4: Sparse Outlier Isolation
Finally, some researchers argue that we should simply accept outliers as a small but vital part of the model. Instead of forcing them into low precision, we can treat them as a sparse residual.
Peiyu Liu and Zefeng Gao demonstrated this with DecoQuant, which uses matrix decomposition to isolate outliers into a tiny, high-precision tensor. The bulk of the memory-heavy Key-Value (KV) cache is stored in 4-bit, while the few critical outliers are kept in FP16. This "mixed-precision" approach, also seen in GEAR by Hao Kang, allows for near-lossless compression by recognizing that not all bits are created equal.