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:
- Sparsification: The model is pruned using N:M structured sparsity (e.g., 2:4), aligning with native acceleration in NVIDIA Ampere and Hopper architectures.
- 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.
- 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).
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.
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