Abstract
Large language models (LLMs) with hundreds of billions of parameters require powerful server-grade GPUs for inference, limiting their practical deployment. To address this challenge, we introduce the outlier-aware weight quantization (OWQ) method, which aims to minimize LLM's footprint through low-precision representation. OWQ prioritizes a small subset of structured weights sensitive to quantization, storing them in high-precision, while applying highly tuned quantization to the remaining dense weights. This sensitivity-aware mixed-precision scheme reduces the quantization error notably, and extensive experiments demonstrate that 3.1-bit models using OWQ perform comparably to 4-bit models optimized by OPTQ. Furthermore, OWQ incorporates a parameter-efficient fine-tuning for task-specific adaptation, called weak column tuning (WCT), enabling accurate task-specific LLM adaptation with minimal memory overhead in the optimized format. OWQ represents a notable advancement in the flexibility, efficiency, and practicality of LLM optimization literature.
Introduction
Large Language Models (LLMs) like GPT-3 and LLaMA have revolutionized NLP but come with a massive "memory tax." Compressing these models from 16-bit floating point (fp16) to 3 or 4 bits is essential for deployment on consumer hardware. However, accuracy often degrades significantly below 4 bits.
The core issue lies in "activation outliers"—specific channels in hidden layers with values much larger than others. These outliers make the corresponding weight columns extremely sensitive to quantization noise. When a weight column interacting with a massive activation outlier is quantized, the resulting error is amplified, leading to model degradation.
The OWQ Framework
OWQ (Outlier-aware Weight Quantization) addresses this by identifying and protecting these sensitive "weak columns."
1. Sensitivity Analysis via the Hessian
Instead of relying on simple weight magnitudes, OWQ uses a Hessian-based metric ($H = 2XX^T$) to identify sensitivity. This approach mathematically identifies weight columns that, if perturbed, cause the largest change in the layer's output. These "weak columns" are directly linked to the activation outliers.
2. Mixed-Precision Quantization
OWQ selects a tiny subset of these weak columns (typically 0.1% to 0.3%) and preserves them in high-precision fp16. The remaining 99.7%+ of weights are quantized to 3 or 4 bits using an optimized version of the OPTQ (GPTQ) algorithm. This "3.1-bit" scheme provides a massive jump in accuracy for negligible memory overhead.
Weak Column Tuning (WCT)
Standard fine-tuning methods like LoRA add external parameters. OWQ introduces Weak Column Tuning (WCT), which updates only the high-precision "weak columns" already identified. Since these columns are highly influential and already in fp16, updating them is an incredibly efficient way to adapt the model to new tasks without altering the underlying quantized dense matrix.
Key Results
- Efficiency vs. Accuracy: A 3.1-bit OWQ model performs comparably to a 4-bit model. For LLaMA-7B, OWQ 3.1-bit achieved a WikiText-2 perplexity of 6.41, which is highly competitive with 4-bit OPTQ results (6.10).
- Fine-tuning Performance: WCT with only 8 weak columns outperformed QLoRA in GPT-4 evaluations, despite using significantly fewer trainable parameters (~6.8% of QLoRA's setup).
- Inference Speed: Using custom CUDA kernels, the mixed-precision overhead is minimal—only ~3% slower than pure 3-bit kernels on an NVIDIA A100.
Conclusion
OWQ demonstrates that LLM quantization error is concentrated in a very small number of parameters. By targeting these "weak columns" for both protection and fine-tuning, OWQ enables high-performance, low-bit LLMs that are both efficient to run and easy to adapt. Future work may extend this to activation quantization and newer architectures like Mixture of Experts (MoE).
Source code available at https://github.com/xvyaward/owq
Summary updated