Introduction
As Large Language Models (LLMs) scale to hundreds of billions of parameters, deployment on edge devices becomes increasingly difficult due to memory constraints. While 4-bit quantization has become a standard for efficiency, 2-bit quantization has historically been a "valley of death," where model performance collapses. Traditional Round-to-Nearest (RTN) strategies often fail because they impose a rigid, uniform grid on the non-uniform, bell-shaped distribution of LLM weights, leading to significant information loss and training instability.
Residual Refinement Quantization (R2Q)
To address these challenges, researchers from Nanjing University and Microsoft AI proposed R2Q (Residual Refinement Quantization). The core innovation lies in decomposing the 2-bit quantization task into two sequential 1-bit "sub-problems."
As shown in Figure 1, the process involves:
- Coarse Approximation: The weight matrix $W$ is first approximated by a 1-bit representation $\alpha_1 Q_1$.
- Residual Refinement: The error, or residual $R = W - \alpha_1 Q_1$, is then quantized into a second 1-bit representation $\alpha_2 Q_2$.
The final quantized weight is the sum of these two kernels: $\hat{W} = \alpha_1 Q_1 + \alpha_2 Q_2$. This approach ensures that the "sketch" of the model is refined by its details, minimizing the overall error.
Adaptive Quantization Lattice
A key advantage of R2Q is its ability to create an adaptive quantization lattice. Unlike standard 2-bit integer quantization which uses a fixed, uniform grid, R2Q's levels can shift and scale dynamically to better fit the actual weight distribution.
By allowing the four available levels to be non-uniformly spaced (as seen in Figure 2), R2Q preserves representational capacity for the most critical weights, typically those clustered near zero, while still accounting for outliers. This flexibility significantly reduces quantization error and prevents the "gradient explosion" often seen during 2-bit Quantization-Aware Training (QAT).
Experimental Results
R2Q was evaluated on Llama-7B, OPT-6.7B, and Qwen models across various benchmarks including WikiText-2 and MMLU.
- Perplexity Recovery: On Llama-7B, R2Q achieved a WikiText-2 perplexity of 17.13, a massive improvement over previous methods that often resulted in unusable models (PPL > 15,000).
- Reasoning Accuracy: On the ARC-Challenge benchmark, R2Q improved Llama-7B's accuracy to 27.47%, outperforming the previous state-of-the-art.
- Robustness: R2Q demonstrated superior stability, successfully training the Qwen3-8B model at 2 bits without encountering gradient explosion, achieving a BoolQ score of 76.33.
Conclusion
R2Q provides a robust framework for extreme LLM compression. By reframing 2-bit quantization as a residual refinement process, it enables the creation of highly efficient models that maintain competitive accuracy, paving the way for deploying powerful LLMs on resource-constrained hardware.
Summary updated