OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization

Cong Guo, Jiaming Tang, Weiming Hu, Jingwen Leng, Chen Zhang, Fan Yang, Yunxin Liu, Minyi Guo, Yuhao Zhu · DOI

Abstract

Transformer-based large language models (LLMs) have achieved unprecedented success, but their scaling—growing by approximately 240× every two years—has significantly outpaced hardware advancements. This disparity makes model inference increasingly costly. While model quantization is a primary strategy to bridge this gap, the presence of outliers (values with significant magnitudes) in LLMs often causes standard quantization methods to fail. Existing outlier-aware schemes typically rely on global coordination and sparse encoding, which incur high hardware overhead and sub-optimal performance. We propose OliVe, an algorithm/architecture co-designed solution that introduces Outlier-Victim Pair (OVP) quantization. By handling outliers locally and sacrificing low-importance adjacent values, OliVe enables memory-aligned encoding that integrates seamlessly into existing hardware like systolic arrays and tensor cores. Our results show that OliVe achieves a 4.5× speedup and 4.0× energy reduction over state-of-the-art accelerators while maintaining superior model accuracy.

Introduction

The deployment of Large Language Models (LLMs) is currently bottlenecked by the massive memory and computational requirements of their billions of parameters. Quantization—the process of reducing the precision of weights and activations (e.g., from 16-bit floating point to 4-bit integers)—is essential for efficient inference. However, LLMs exhibit a unique distribution where a tiny fraction of values (<0.1%) possess disproportionately large magnitudes. These outliers carry critical information; clipping them to fit a low-precision range leads to catastrophic accuracy loss.

Previous attempts to manage outliers have utilized "outlier-aware" quantization, which separates these values and stores them using sparse formats like coordinate lists. While effective for accuracy, these methods require global coordination and complex orchestration controllers to synchronize computation between outlier and normal values. This complexity results in unaligned memory access and hardware inefficiency. OliVe addresses these challenges by shifting outlier management from a global coordination problem to a local, hardware-friendly pairing strategy.

The OliVe Approach: Algorithm-Architecture Co-Design

1. Outlier-Victim Pair (OVP) Encoding

The fundamental insight behind OliVe is that while outliers are indispensable, the "normal" values immediately adjacent to them in memory are often redundant or of low importance. OliVe leverages this by grouping two adjacent values into a pair. If one value is identified as an outlier, its neighbor is designated as a Victim.

The victim is sacrificed (set to zero), and its allocated bit-space is reassigned to the outlier. For example, in a 4-bit quantization scheme, a pair normally occupies 8 bits (4 bits each). Under OVP, the outlier utilizes the full 8 bits, allowing it to be stored with high precision locally. Because the total bit-width of the pair remains constant, the memory remains perfectly aligned, eliminating the need for complex global indexing or sparse controllers.

2. Adaptive Biased Float (Abfloat)

To maximize the representational efficiency of the bits reassigned to outliers, OliVe introduces Adaptive Biased Float (Abfloat). Standard floating-point formats often waste bit-space representing small values that are already covered by the normal 4-bit integer range. Abfloat uses a specialized "bias" in the exponent to skip these low-magnitude ranges, focusing its entire dynamic range on the high-magnitude values where outliers reside. This ensures that even with limited bits, the outliers are represented with high fidelity.

3. Hardware-Friendly Integration

OliVe is designed to be integrated into high-performance hardware accelerators such as NVIDIA Tensor Cores and Google-style Systolic Arrays. The researchers designed lightweight decoders that identify victims via a specific bit pattern. When a victim is detected, the hardware routes the corresponding high-precision outlier to a specialized Multiply-Accumulate (MAC) unit. These decoders are remarkably efficient, occupying only 0.25% to 2.2% of the total area of a standard GPU or systolic array core.

Experimental Evaluation

The authors evaluated OliVe across a diverse suite of models and benchmarks to demonstrate its versatility and robustness:

  • Models: BERT-base/large, BART-base, GPT2-XL, BLOOM-7B1, and OPT-6.7B.
  • Benchmarks: The GLUE benchmark (NLU tasks), SQuAD v1.1 and v2.0 (Question Answering), and Wikitext103/C4 (Perplexity/Language Modeling).

Key Results

  • Accuracy: OliVe is the first framework to achieve 4-bit Post-Training Quantization (PTQ) for LLMs with less than a 1% accuracy drop. Notably, it outperformed 6-bit versions of previous state-of-the-art methods like Outlier Suppression.
  • Hardware Performance: When compared to GOBO, a leading outlier-aware accelerator, OliVe delivered a 4.5× speedup.
  • Energy Efficiency: The local handling of outliers and reduced hardware complexity resulted in a 4.0× reduction in energy consumption compared to GOBO.
  • Outlier Distribution: The effectiveness of OVP is supported by the observation that "outlier-outlier" pairs (two outliers occurring consecutively) are extremely rare (<0.06%), ensuring that a "victim" is almost always available.

Conclusion and Future Work

OliVe represents a significant step forward in LLM compression by proving that local, hardware-aligned outlier management is superior to complex global schemes. By introducing the Outlier-Victim Pair concept, the researchers have enabled 4-bit quantization that is both highly accurate and exceptionally fast.

While OliVe currently requires minor architectural modifications to hardware decoders, its simplicity makes it a prime candidate for future AI-specialized chips. Future research may explore how OVP interacts with structured sparsity (such as 2:4 sparsity) and whether the "victim" selection process can be further optimized for models with higher outlier densities.

Summary updated

BibTeX
@inproceedings{guo2023olive,
  author = {Cong Guo and Jiaming Tang and Weiming Hu and Jingwen Leng and Chen Zhang and Fan Yang and Yunxin Liu and Minyi Guo and Yuhao Zhu},
  title = {{OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization}},
  booktitle = {ISCA},
  year = {2023},
  doi = {10.1145/3579371.3589038},
}
Figure