NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models

Xiuying Wei, Yunchen Zhang, Xiangguo Zhang, Ruihao Gong, Shanghang Zhang, Qi Zhang, Fengwei Yu, Xianglong Liu

Abstract

Large Language Models (LLMs) face significant deployment hurdles on resource-constrained devices due to their immense memory and computational requirements. While quantization offers a path toward efficiency, Transformer architectures exhibit structured outliers—activations with extreme magnitudes—that severely degrade performance below 8-bit precision. This paper introduces a novel "Outlier Suppression" framework that identifies and neutralizes these outliers at their source. By migrating outlier-amplifying parameters from LayerNorm modules and employing a token-aware clipping strategy, the authors achieve full-precision performance with 6-bit quantization for the first time and set new benchmarks for 4-bit quantization-aware training.

Introduction

As Transformer-based models like BERT and RoBERTa continue to grow in scale, the demand for efficient deployment on edge devices has intensified. Quantization—the process of reducing the precision of model weights and activations from 32-bit floating point (FP32) to lower-bit integers (e.g., INT8 or INT4)—is the primary strategy for reducing memory footprints and accelerating inference.

However, Transformers are notoriously resistant to quantization below 8 bits. The primary bottleneck is the presence of "structured outliers": specific dimensions in hidden layers where values can be up to 100 times larger than the mean. Standard quantization methods typically face a lose-lose scenario: either they "squash" the majority of the data to accommodate these outliers, leading to massive precision loss for the bulk of the distribution, or they employ complex, hardware-unfriendly schemes to isolate them. This research proposes a "plug-and-play" framework to suppress these outliers at the source without requiring architectural changes or adding inference overhead.

Methodology

The Outlier Suppression framework consists of two primary components designed to mitigate the impact of extreme activations: Gamma Migration and Token-Wise Clipping.

1. Gamma Migration: Neutralizing the "Sinful Amplifier"

The authors identified that the scaling parameter $\gamma$ (gamma) in the LayerNorm module often acts as a "sinful amplifier." When $\gamma$ is exceptionally large for a specific dimension, it forces the activations in that dimension to become outliers.

To address this, the framework performs a mathematical transformation. By "migrating" the $\gamma$ values into the weights of the subsequent linear layer, the model's output remains mathematically equivalent due to the associative property of matrix multiplication. However, the intermediate activations—the values that actually undergo quantization—become significantly "milder" and more uniform, making them far easier to represent in low-bit formats.

2. Token-Wise Clipping: Coarse-to-Fine Optimization

Not all outliers are critical to a model's performance. The researchers observed that extreme values often originate from specific tokens (such as [SEP] or [CLS]) and can be clipped without significantly impacting accuracy. The framework employs a two-stage pipeline to optimize the quantization range:

  • Coarse Stage: Rapidly identifies a preliminary clipping range by analyzing token-level statistics.
  • Fine-Grained Stage: Refines the quantization step size using gradient descent to minimize the final task loss, ensuring that the most critical information is preserved while aggressive clipping is applied to non-essential outliers.

Experimental Evaluation

The framework was rigorously tested across several standard Natural Language Processing (NLP) benchmarks, including the GLUE (General Language Understanding Evaluation) benchmark, SQuAD v1.1 and v2.0 (Question Answering), and summarization tasks (XSum, CNN/DailyMail). The evaluation covered a variety of architectures, including BERT, RoBERTa, and the encoder-decoder model BART.

Key Results

  • The 6-bit Breakthrough: The authors successfully achieved 6-bit Post-Training Quantization (PTQ) for BERT that matches the accuracy of the original FP32 model. This represents a significant milestone, as previous methods typically saw noticeable degradation at this precision level.
  • 4-bit Performance Gains: In the more demanding 4-bit Quantization-Aware Training (QAT) setting, the framework significantly outperformed existing state-of-the-art methods like LSQ+. Notably, it achieved a 17.53% accuracy improvement on the QNLI task compared to standard MinMax quantization.
  • Architectural Versatility: The method proved effective across both encoder-only and encoder-decoder architectures, suggesting that outlier suppression is a generalizable solution for the Transformer family.

Discussion and Insights

The study provides several critical insights into the nature of Transformers. First, the discovery that LayerNorm's $\gamma$ is a primary driver of outliers shifts the research focus from merely handling outliers to preventing their amplification. Second, the success of aggressive clipping suggests that numerical range does not always correlate with informational importance in Transformer activations.

The authors hypothesize that these outliers emerge during pre-training because certain high-frequency tokens (like punctuation) cause the model to over-focus on specific embedding dimensions. While this study focused on NLP, the principles of Gamma Migration and token-aware clipping provide a foundation for future work in other modalities.

Conclusion and Future Work

Outlier Suppression provides a robust, hardware-efficient pathway to low-bit Transformer deployment. By addressing the root causes of activation instability, the framework enables 6-bit and 4-bit models to maintain high accuracy without specialized hardware support. Future research may explore whether modifying the pre-training phase can prevent outlier formation entirely, and whether these techniques scale effectively to "billion-parameter" models where outlier issues are even more pronounced.

Summary updated

BibTeX
@inproceedings{wei2022outlier,
  author = {Xiuying Wei and Yunchen Zhang and Xiangguo Zhang and Ruihao Gong and Shanghang Zhang and Qi Zhang and Fengwei Yu and Xianglong Liu},
  title = {{Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure