Abstract
Deploying Large Language Models (LLMs) at scale is hindered by immense memory requirements. Quantization offers a solution, but performance typically collapses at ultra-low bit-widths (e.g., 2-bit). We present Norm Tweaking, a lightweight post-training quantization (PTQ) plugin that restores model accuracy by surgically adjusting normalization layers. By aligning the activation distributions of quantized models with their full-precision counterparts, Norm Tweaking enables near-lossless 2-bit quantization for massive models like LLaMA-65B and GLM-130B.
The Challenge: The 2-Bit Quantization Cliff
While 4-bit quantization (e.g., GPTQ) has become a standard for shrinking LLMs with minimal loss, 2-bit quantization remains a significant hurdle. Standard methods often lead to a "quantization cliff" where model outputs become nonsensical. The root cause is activation drift: as weights are quantized, errors accumulate layer-by-layer, causing the internal data distribution to deviate significantly from the original model.
As shown in Figure 1, standard GPTQ allows the mean of activations (Δμ) to drift increasingly as the depth of the model grows. Norm Tweaking addresses this by treating normalization layers as high-leverage control points to steer the distribution back to its intended state.
Methodology: Surgical Distribution Alignment
Norm Tweaking operates as a refinement step after initial quantization. It is built upon three core principles:
- Selective Parameter Updates: Instead of full-model fine-tuning, only the weights of normalization layers (e.g.,
LayerNorm,RMSNorm) are updated. This keeps the process extremely fast and prevents the catastrophic forgetting often associated with low-data fine-tuning. - Channel-wise Distribution Loss: The optimization objective is to minimize the difference in mean and variance between the quantized and original activations on a per-channel basis. This ensures the "shape" of the data remains consistent throughout the network.
- Self-Generated Calibration Data: To maintain high performance without external datasets, the model generates its own calibration data. By seeding the generation with common tokens from the model's original training languages, the researchers ensure the calibration set is representative of the model's internal knowledge.
Key Results: Breaking the 2-Bit Barrier
The effectiveness of Norm Tweaking was evaluated across several model families, including BLOOM, LLaMA, OPT, and GLM. The results demonstrate a consistent and often dramatic improvement over state-of-the-art PTQ methods.
As detailed in Table 1, Norm Tweaking provides substantial gains in the 2-bit (W2) regime. For instance, on LLaMA-65B, accuracy jumped from 57.15% with GPTQ to 67.47% with Norm Tweaking. In many cases, such as GLM-130B and OPT-66B, the 2-bit tweaked models achieved performance levels nearly indistinguishable from the original FP16 models.
Beyond quantitative metrics, qualitative analysis shows that Norm-Tweaked models maintain coherence and factual accuracy in text generation, whereas standard 2-bit models often produce repetitive or broken text.
Discussion and Efficiency
A key insight of this work is that LLMs are remarkably resilient to weight distortion if the output distribution of each layer is preserved. Normalization layers act as the "steering wheel" of the transformer block; because they directly manipulate mean and variance, they are the most efficient site for correction.
Norm Tweaking is also highly efficient. For a BLOOM-7B model, the process adds only about 16% to the total quantization time compared to GPTQ alone. However, the method is sensitive to hyperparameters; excessive iterations can lead to overfitting on calibration data, causing performance to degrade.
Conclusion
Norm Tweaking provides a powerful, lightweight solution for ultra-low bit quantization. By focusing on activation distributions rather than individual weight values, it successfully bridges the gap between 4-bit and 2-bit LLMs, paving the way for running massive models on consumer-grade hardware.
Summary updated