Scaling Law for Quantization-Aware Training

Mengzhao Chen, Chaoyi Zhang, Jing Liu, Yutao Zeng, Zeyue Xue, Zhiheng Liu, Yunshui Li, Jin Ma, Jie Huang, zhou Xun, Ping Luo

As Large Language Models (LLMs) scale, the computational and memory demands for deployment have skyrocketed. Quantization—reducing the precision of weights and activations (e.g., to 4-bit)—is a critical strategy for shrinking these models. While Quantization-Aware Training (QAT) generally yields more robust models than Post-Training Quantization (PTQ), the community has lacked a comprehensive "Chinchilla-style" scaling law to predict QAT behavior.

Previous scaling laws primarily focused on model size ($N$), neglecting crucial factors like the number of training tokens ($D$) and quantization granularity ($G$). This paper bridges that gap, offering a unified scaling law that guides the optimal balance of model size and training data for ultra-low bit-widths like W4A4 (4-bit weights and 4-bit activations).

A Unified Scaling Law for QAT

To establish this law, the researchers conducted an extensive empirical study comprising 268 QAT experiments, consuming over 276,000 GPU-hours. They trained models ranging from 74M to 595M parameters on up to 100B tokens from the OLMo2-Mix-1124 dataset.

The resulting mathematical model for quantization error ($\delta_p$) is defined as:

$$\delta_p(N, D, G) = \frac{k \cdot D^{\gamma_D} \cdot (\log_2(G))^{\gamma_G}}{N^{\gamma_N}}$$

Where:

  • $N$: Model size (parameters)
  • $D$: Training tokens
  • $G$: Quantization group size (granularity)
  • $\gamma$ values: Sensitivity coefficients for each factor

This formula accurately predicts the loss of quantized models prior to training, achieving a remarkable coefficient of determination ($R^2$) of 0.944.

The "Knowledge Density" Paradox

A counter-intuitive finding emerges from this scaling law: while more data universally improves full-precision models, it actually widens the quantization gap in QAT. As a model processes more tokens, it absorbs more knowledge per parameter. This increased "knowledge density" quickly saturates the limited representational capacity of 4-bit weights, causing the quantization error to rise even as the absolute loss decreases.

Decomposing the Error: The FC2 Bottleneck

By decomposing the quantization error, the authors discovered that weight quantization is highly sensitive to training data volume ($D$), whereas activation quantization is more sensitive to group size ($G$).

Crucially, they identified the input to the FC2 layer (within the feed-forward network) as the primary bottleneck for W4A4 QAT. The SwiGLU activation function generates extreme outliers at this layer, which 4-bit quantization fundamentally struggles to capture.

Mixed-Precision Mitigation

To address the FC2 bottleneck, the researchers propose a targeted mixed-precision approach. By keeping the FC2 input at 8-bit precision while maintaining 4-bit precision elsewhere, the quantization error drops dramatically—by 20.5% to 47.3%, depending on granularity. This effectively balances the sensitivities of weights and activations, closing the performance gap between 4-bit and full-precision models.

Generalization and Efficiency

The proposed scaling law is not limited to small, dense models. It successfully predicted the behavior of an in-house 7B Mixture-of-Experts (MoE) model (with 0.7B active parameters) trained on up to 1 trillion tokens.

Furthermore, the paper introduces the Efficient Parameter Multiplier (EPM), demonstrating that properly managed W4A4 QAT models can achieve a superior performance-per-bit trade-off compared to "lossless" W8A8 models, provided the training data volume is calibrated correctly.

Limitations and Future Directions

While highly predictive, the framework has a few limitations:

  • Architecture Scope: The study primarily derives its constants from dense Llama-3 architectures. MoE models, with their distinct weight-to-activation ratios, may require refined constants.
  • Extreme Bit-widths: While the law generalizes to 2-bit and 3-bit regimes, these extreme low-bit scenarios likely harbor unique non-linearities not fully captured by the current equation.
  • Hardware Overhead: Implementing mixed-precision (e.g., an 8-bit FC2 layer) introduces engineering complexity and potential hardware overhead in real-world inference kernels.

Future work could extend this unified law to account for sparsity or explore how different optimizer choices (such as Adam vs. Lion) interact with the quantization scaling constants.

Summary updated

BibTeX
@inproceedings{chen2026scaling,
  author = {Mengzhao Chen and Chaoyi Zhang and Jing Liu and Yutao Zeng and Zeyue Xue and Zhiheng Liu and Yunshui Li and Jin Ma and Jie Huang and zhou Xun and Ping Luo},
  title = {{Scaling Law for Quantization-Aware Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=fXr3uPr1G5},
}
Figure