Quantization of Large Models with Weight Outliers and Sparsity
Organizations: Department of ECE, University of Minnesota, Minneapolis, MN 55455 · ML Research, Morgan Stanley, New York, NY 10019
Abstract
Post-training quantization (PTQ) reduces the memory burden of large model deployment by casting the high precision trained weights to fewer bits. While this promotes memory-efficient inference, it also incurs quantization error that impairs model performance. To compensate for quantization error, the present contribution decomposes the original trained weights into a quantized matrix, a low-rank component, and a sparse matrix that accounts for outlier rows in the weights. Due to analytical intractability and the discrete structure of the decomposition, a simulated annealing search is employed to explore candidate decompositions while avoiding poor local minima. Numerical tests demonstrate the effectiveness of this approach across a broad suite of large language models, including Llama 3.2 1B, Llama 3.2 3B, Llama 3.1 8B, and Qwen2.5 7B, evaluated on natural language generation benchmarks using 4-bit NF4 and FP4 quantizers. The novel method can markedly outperform direct quantization while incurring minimal memory overhead.
Figures & tables
| Model | Method | NF4 | FP4 | ||||
| GSM8K ( ) | MBPP ( ) | WT-2 ( ) | GSM8K ( ) | MBPP ( ) | WT-2 ( ) | ||
| Llama 3.1 8B | Original (FP16) | 50.27 | 47.60 | 7.55 | 50.27 | 47.60 | 7.55 |
| QLoRA init. | 44.73 | 47.00 | 8.04 | 38.29 | 43.40 | 8.51 | |
| LoftQ init. | 44.12 | 44.80 | 7.98 | 38.67 | 44.20 | 8.39 | |
| Ours ρ=0% | 44.96 | 46.80 | 7.93 | 42.68 | 45.60 | 8.32 | |
| Ours ρ=1% | 46.32 | 48.00 | 7.89 | 43.97 | 46.40 | 8.31 | |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Original (FP16) | QLoRA init. | LoftQ init. | Ours ρ=0% | Ours ρ=1% |
| Llama 3.1 8B | 16.000 | 6.005 | 6.339 | 6.339 | 6.477 |
| Qwen 2.5 7B | 16.000 | 6.146 | 6.486 | 6.486 | 6.621 |
| Llama 3.2 3B | 16.000 | 5.911 | 6.395 | 6.395 | 6.533 |
| Llama 3.2 1B | 16.000 | 6.945 | 7.529 | 7.529 | 7.653 |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 416 papers