Outlier Suppression for Low Bit Transformer Quantization

1,327 concepts662 papers6 proposals

When compressing Large Language Models (LLMs) to run on consumer hardware or edge devices, uniform quantization is the standard tool of choice. In an ideal scenario, mapping 16-bit floating-point numbers (FP16) to 8-bit or 4-bit integers (INT8/INT4) simply requires finding the maximum absolute value in a tensor, dividing that range into equal bins, and rounding each value to the nearest integer.

However, when applied to large Transformers, this straightforward approach fails catastrophically. The culprit is a phenomenon known as structured activation outliers.

The Geometry of the Quantization Collapse

To understand why outliers destroy uniform quantization, consider a toy example. Suppose we want to quantize a vector of activations to 8-bit precision, which gives us $256$ discrete bins. If the typical values in our vector lie between $-1$ and $1$, each quantization bin spans a tiny width of $2 / 256 \approx 0.008$. Rounding values to these bins preserves the fine-grained differences between features.

Now, introduce a single outlier with a value of $1000$. Because uniform quantization must cover the entire dynamic range to avoid clipping critical information, the new range spans from $-1000$ to $1000$. Consequently, each bin expands to a width of $2000 / 256 \approx 7.8$.

Suddenly, every single one of our original, informative features between $-1$ and $1$ falls into the exact same bin around zero. They all round to zero, obliterating the model's representational capacity. As noted by Yuxiong He et al. in ZeroQuant, these high-variance outliers dominate the scaling factors, forcing a wide clipping range that starves the remaining 99.9% of the network's parameters of numerical resolution.

Why Transformers Produce Outliers

Activation outliers are not random noise; they are highly structured and emergent properties of scale. Ruihao Gong et al. observed in Outlier Suppression that these extreme values are concentrated in specific, persistent neural channels and often spike on particular tokens, such as special separators.

Why does a well-trained Transformer do this? Yelysei Bondarenko et al. uncovered an elegant architectural explanation in Quantizable Transformers. Because the standard softmax function forces attention weights to sum to exactly one, an attention head is mathematically incapable of doing nothing; it must always allocate its attention budget somewhere. To implement a "no-op" (a step where the head contributes no new information), the model learns to dump massive coordinate values into specific channels. These high-magnitude signals dominate subsequent layers, effectively suppressing unwanted attention contributions.

Furthermore, the scaling parameter ($\gamma$) in LayerNorm layers acts as an amplifier, locking these massive values into specific channels across the network. To quantize LLMs successfully, researchers have developed three core strategies to handle these outliers.

Strategy 1: Equivalent Shifting and Scaling

If the outliers are trapped in specific activation channels, can we mathematically alter the network to smooth them out before quantization occurs?

Because linear operations in neural networks can be scaled up or down as long as the inverse operation is applied to the adjacent layer, we can "migrate" the difficulty. Ruihao Gong et al. proposed mathematically migrating the amplification from LayerNorm scaling parameters into the subsequent linear weights.

Xiuying Wei et al. extended this concept in Outlier Suppression+ by introducing channel-wise shifting and scaling. If an activation channel is heavily asymmetric (e.g., values ranging from $100$ to $120$), they calculate the mean shift to center the distribution around zero, scale down the extreme values, and absorb the corresponding inverse shifts and scales directly into the frozen model weights.

Standard Layer:
[Activation X (with Outliers)] ---> [Quantizer] ---> [Weight W]

With Migration:
[Activation X] ---> [Scale Down / Shift] ---> [Quantizer] ---> [Weight W * Inverse Scale]

While effective for 8-bit quantization, this strategy hits a wall at ultra-low bitwidths. As Muyang Li et al. demonstrate in SVDQuant, when compressing down to 4-bit precision, both weights and activations become highly sensitive. Forcing the weights to absorb massive inverse scale factors simply creates new outliers inside the weight matrices, shifting the quantization error from activations to weights without solving the underlying bottleneck.

Strategy 2: Outlier Isolation via Matrix Decomposition

Instead of moving the outliers, what if we isolate them entirely? Because outliers are sparse—occurring only in a fraction of channels or tokens—they can be viewed as a low-rank anomaly superimposed on top of a well-behaved, low-precision matrix.

This realization led to the development of low-rank compensation frameworks. For example, Zhewei Yao et al. introduced Low-Rank Compensation (LoRC) in From Comprehensive Study to Low-Rank Compensation, using Singular Value Decomposition (SVD) to capture the quantization error induced by outliers and caching it in a high-precision, low-rank parallel branch.

Similarly, Peiyu Liu et al. designed DecoQuant to protect the Key-Value (KV) cache during long-context inference. DecoQuant decomposes the activation matrices to isolate problematic outliers into a tiny, high-precision tensor, leaving the bulk of the memory-heavy cache to be safely stored in a uniform 4-bit format.

By splitting the computation into a low-bit uniform matrix multiplication and a high-precision low-rank stream, frameworks like SVDQuant allow hardware engines to run the bulk of the workload at maximum speed while preserving the exact numerical integrity of the critical outlier channels.

Strategy 3: Incoherence Processing

The most radical and mathematically elegant solution is to eliminate outliers entirely without changing the model's output.

An outlier is fundamentally a coordinate-system artifact. A vector with an outlier value of $1000$ along the x-axis $[1000, 0, 0]$ has a massive peak. However, if we rotate our coordinate system by 45 degrees, that same vector's energy is distributed across multiple dimensions, changing its representation to something like $[707, 707, 0]$. The maximum value has dropped significantly, yet the geometric length and informational content of the vector remain identical.

Jerry Chee et al. leveraged this geometric intuition in QuIP by introducing Incoherence Processing. By multiplying the weight and activation matrices by random orthogonal matrices (specifically, randomized Hadamard transforms), they "smear" the outlier energy evenly across all channels.

$$\tilde{X} = XH, \quad \tilde{W} = H^T W$$

Because $H H^T = I$, the underlying linear algebra remains perfectly preserved:

$$\tilde{X}\tilde{W} = (XH)(H^T W) = XW$$

By rotating the space, the peak magnitudes drop dramatically, transforming a highly spiked, non-uniform distribution into a smooth, bell-shaped distribution. As shown by Albert Tseng et al. in QuIP$\#$, this smoothing allows uniform quantization grids and lattice codebooks to utilize 100% of their bit budget efficiently, unlocking stable inference at extreme compression levels down to 2 or 3 bits per weight.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_activation_outlier_sensitivity_0d022b46,
  title = {activation outlier sensitivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/activation-outlier-sensitivity/rdr_0d022b46a4e348d6b09a7274069864d4},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_activation_outlier_sensitivity_0d022b46_v1,
  title = {activation outlier sensitivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/activation-outlier-sensitivity/rdr_0d022b46a4e348d6b09a7274069864d4/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake