SDQ: Sparse Decomposed Quantization for LLM Inference

Geonhwa Jeong, Po-An Tsai, Stephen W. Keckler, Tushar KrishnaarXiv 2024 · DOI

SDQ: Sparse Decomposed Quantization for LLM Inference

Large Language Models (LLMs) have revolutionized natural language processing but come with immense computational costs. Efficient inference typically relies on two compression techniques: sparsification (pruning unimportant weights) and quantization (reducing numerical precision). However, both methods face an "accuracy wall." Pruning beyond 50% often leads to catastrophic accuracy loss, while aggressive 4-bit quantization is hindered by "outliers"—a small subset of critical values that carry disproportionate weight in model logic. Existing outlier-aware methods often struggle with hardware efficiency, as they cannot easily leverage high-speed GPU Tensor Cores.

Methods: The SDQ Pipeline

To overcome these limitations, the authors introduce Sparse Decomposed Quantization (SDQ), a hybrid framework that integrates structured sparsity with mixed-precision quantization. The SDQ pipeline consists of three primary stages:

  1. Sparsification: The model is pruned using N:M structured sparsity (e.g., 2:4), aligning with native acceleration in NVIDIA Ampere and Hopper architectures.
  2. Decomposition: Rather than global outlier detection, SDQ extracts outliers locally within small vectors (e.g., 1 outlier per 8 elements). This ensures the remaining values maintain a structured sparse pattern.
  3. Quantization: A mixed-precision approach is applied where "outliers" are preserved in higher precision (e.g., 8-bit) while "inliers" are compressed to lower precision (e.g., 4-bit).
Figure 3: Illustration of the sparsification and quantization decomposition process in SDQ.

By maintaining structured N:M patterns throughout, SDQ allows both inliers and outliers to be accelerated via specialized sparse Tensor Cores, avoiding the performance penalties associated with unstructured sparsity.

Key Results

The researchers evaluated SDQ across various models, including OPT and LLaMA. The results demonstrate that SDQ effectively breaks the accuracy wall by balancing throughput and model quality.

  • Throughput Gains: SDQ achieves a 4x boost in compute throughput compared to FP16 baselines, matching the speed of 4-bit dual quantization.
  • Accuracy Preservation: On OPT-30B, SDQ reached a perplexity of 9.51, outperforming standard 4-bit weight-only quantization (9.54). Crucially, SDQ consistently keeps quality loss under 1%, even on smaller models where other methods fail.
Figure 1: Comparison of SDQ against sparsification-only and quantization-only baselines across OPT and LLaMA models.

Key Insights

A core finding of this work is that outliers are "local enough." Extracting them within small vectors captures sufficient signal to prevent quantization error explosion. Furthermore, SDQ demonstrates that sparsity and quantization are complementary: sparsity creates the necessary "bit-budget" to store high-precision outliers without increasing the overall memory footprint. This hardware-algorithm co-design ensures that accuracy fixes do not become performance bottlenecks.

Limitations and Future Work

While SDQ shows great promise, its 4x throughput calculation assumes hardware support for mixed-precision operands in sparse Tensor Cores—a feature that is still maturing in modern GPUs. Current research focuses on Post-Training Quantization (PTQ); future iterations could explore Quantization-Aware Training (QAT) to push compression limits further. Additionally, while SDQ currently targets linear layers (GEMMs), extending this decomposed logic to attention mechanisms (BMMs) remains an open area for exploration.

Summary updated

BibTeX
@misc{jeong2024sdq,
  author = {Geonhwa Jeong and Po-An Tsai and Stephen W. Keckler and Tushar Krishna},
  title = {{SDQ: Sparse Decomposed Quantization for LLM Inference}},
  year = {2024},
  eprint = {2406.13868},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.13868},
}
Figure