TL;DR
Existing post-training quantization methods lock Large Language Models (LLMs) into rigid integer bit-widths (e.g., 2, 3, or 4 bits), leaving available hardware memory underutilized when fractional bit-widths (e.g., 2.2 bits) could fit. Channel-Wise Mixed-Precision Quantization (CMPQ) solves this by distributing precision channel-by-channel based on activation norms and protecting critical outlier weights—achieving state-of-the-art compression without needing expensive backpropagation.
What Problem Does This Paper Address?
Running massive LLMs on resource-constrained edge devices requires aggressive weight quantization. Most post-training quantization (PTQ) techniques apply a single, uniform integer bit-width across all layers. However, real-world hardware often has memory budgets that fall between integer boundaries (for example, enough room for an average of 2.2 bits per weight, but not 3 bits).
Existing mixed-precision approaches attempt to assign different bit-widths per layer (e.g., using integer programming based on first-order gradient approximations). This often fails on LLMs because:
- Gradients of converged models hover near zero, making layer sensitivity hard to measure.
- Dropping an entire layer to 2-bit precision introduces severe, unrecoverable information loss.
Methods
CMPQ introduces a backpropagation-free, channel-level mixed-precision framework:
- Activation-Guided Channel Precision Allocation: Rather than varying bit-widths across layers, CMPQ varies precision across weight channels within each layer. Using a forward-pass calibration step, it computes the $L_2$-norm of activations per channel. Salient channels with large activation norms receive higher precision (e.g., 4-bit), while less critical channels receive lower precision (e.g., 2-bit), precisely matching any target average bit-width $b \in [2, 4]$.
- Channel-Wise Non-Uniform Quantization: Weight distributions in LLMs are non-uniform. Instead of uniform grid bins, CMPQ uses 1D $k$-means clustering per channel to place centroids where weight density is highest.
- Collaborative Outlier Extraction (~0.5% in FP16):
- Activation Outliers ($O_{\text{act}}$): Channels corresponding to the top 0.45% highest activation $L_2$-norms are kept in FP16.
- Quantization Outliers ($O_q$): After removing $O_{\text{act}}$, the top 0.05% of weights exhibiting the largest quantization reconstruction error $|W' - W'_q|$ are extracted into FP16 to prevent extreme values from distorting the $k$-means clustering centroids.
Because CMPQ only computes forward activation statistics, it avoids gradient backpropagation entirely.
┌───────────────────────────────┐
│ Calibration Forward Pass (X) │
└──────────────┬────────────────┘
▼
Per-Channel L2-Norms
│
┌───────────────────────┴───────────────────────┐
▼ ▼
[Activation Outliers] [Channel Bit Allocation]
Top 0.45% channels Allocate 2, 3, or 4 bits
saved in FP16 per channel to match b
│ │
└───────────────────────┬───────────────────────┘
▼
Quantize & Extract Worst 0.05%
Centroid Errors (O_q) into FP16
│
▼
Final Decomposed Model: W_quant + O_fp16
Datasets
The authors evaluated language modeling perplexity across:
- Evaluation Datasets: WikiText-2 and C4.
- Calibration Dataset: 128 randomly selected 2048-token sequences from C4.
- Models Tested: OPT family (1.3B, 2.7B, 6.7B, 13B, 30B), LLaMA2 (7B, 13B), and LLaMA3-8B.
- No new benchmarks were introduced.
Key Insights and Ideas
- Channel-wise beats layer-wise: Distributing low bit-widths across individual channels prevents catastrophic information bottlenecks. Sacrificing an entire layer to 2-bit degrades model performance far more than scattering 2-bit weights among non-salient channels across all layers.
- The "fractional-bit dividend": The jump from 2.0 to 2.2 average bits delivers massive returns. For LLaMA2-7B, allocating just 10% more storage drops perplexity from 15.97 to 11.11—surpassing the 3-bit baseline while remaining significantly smaller.
- Outliers need two lenses: Protecting salient activations preserves network signal, but protecting large reconstruction residual errors protects the $k$-means clustering process itself. Both are needed in tandem.
- High calibration data efficiency: Because CMPQ relies purely on channel-wise activation norms rather than Hessian inversions or gradient updates, performance stabilizes with as few as 2 to 5 calibration sequences, showing minimal risk of dataset overfitting.
Key Results
- Extreme Low-Bit (2-bit): On WikiText-2, CMPQ achieves 14.37 perplexity on LLaMA2-7B and 9.14 on LLaMA2-13B, outperforming QuIP (27.12 and 10.09) while baseline methods like GPTQ, AWQ, and RTN diverge (>100 perplexity).
- Fractional Precision: On LLaMA2-7B, a 2.2-bit CMPQ model reaches 9.32 perplexity on WikiText-2, outperforming 2-bit SqueezeLLM (10.79) without requiring gradient descent.
- Memory Savings during Quantization: Compared to gradient-weighted methods like SqueezeLLM, CMPQ requires roughly $1/4$ of the quantization memory (e.g., quantizing OPT-6.7B needs 12.4 GB with CMPQ vs. 49.61 GB with SqueezeLLM).
- Outlier Ratio Plateau: Ablations indicate perplexity gains diminish once outlier retention surpasses 0.2%–0.3%, verifying that negligible FP16 overhead is sufficient.
Limitations and Future Work
- Hardware Kernel Implementation: Non-uniform quantization with mixed bit-widths per channel requires custom lookup table (LUT) kernels and memory layouts for practical inference speedups on hardware.
- Scaling to Very Large Models: For OPT-30B, block-wise quantization methods (with block size 128) close the performance gap with CMPQ because block scales carry extra implicit bits.
- Future Directions: Developing dedicated GPU/edge hardware execution kernels and efficient matrix-multiplication kernels specifically designed for mixed-precision lookup tables.
Summary updated