Full text not available for this paper
Mixed Precision Scaling Laws for Quantized Pretraining
Summary (Overview)
-
Novel scaling law: The authors develop a scaling law for quantized pretraining with mixed precision across forward and backward passes, incorporating persistent optimization error terms ( and ) that existing laws (e.g., Quartet) fail to model.
-
Theoretical grounding: The law is motivated by a convergence analysis (Remark 3.1) that decomposes the optimization gap into three components: a vanishing term, and two persistent terms from forward quantization error and backward gradient bias.
-
Superior prediction accuracy: The proposed law reduces held-out loss prediction MSE by 1.6× to 11× compared to the Quartet law across model size and data extrapolation settings on both Qwen3 and Llama-style experiments.
-
Layer-wise extension: The law is extended to mixed precision across Transformer layers via interpolation , where captures the layer selection strategy.
-
Key finding: Unlike prior precision scaling laws, the proposed law predicts that compute-optimal precision increases with compute budget, since persistent optimization error does not diminish with scale.
Introduction and Theoretical Foundation
Background
Scaling laws guide LLM pretraining by characterizing how loss varies with model size, data, and compute (Kaplan et al., 2020; Hoffmann et al., 2022). Quantized training reduces costs by performing forward/backward computations at reduced precision (down to 4 bits with block-scaled formats like NVFP4). However, existing recipes differ in how quantization scales are shared/selected in the forward pass and how gradients are estimated in the backward pass.
Motivation
The authors identify a critical gap: existing scaling laws for quantized pretraining treat quantization as reducing effective parameter count (forward) or effective token count (backward), implying penalties can be offset by scaling. However, quantization also introduces persistent optimization error that does not decrease with more data or parameters—weights can oscillate across rounding boundaries (forward), and gradient estimates can be biased (backward).
Theoretical Decomposition
The loss gap decomposes into:
where is the optimal loss of the quantized model and is the irreducible loss.
Methodology
Proposed Scaling Law
The core scaling law (Eq. 1) is:
where:
- , : rescale parameter count and token count based on forward/backward schemes ,
- , : persistent optimization error from forward/backward quantization
- , , , , , : fitted constants
Theoretical Justification (Remark 3.1)
For convex loss , deterministic forward quantization, and learning rate :
Terms (b) and (c) motivate the persistent error terms and , respectively.
Example 3.1 (Persistent Forward Error)
For with quantization and divisible by 4, the optimization gap is:
This shows the gap does not vanish as .
Experimental Setup
Two data grids were used:
| Data grid | # points | Model sizes | Token budgets | Forward schemes | Backward schemes |
|---|---|---|---|---|---|
| Quartet (Llama) | 84 | 30M–200M | 25–800 TPP | BF16, MXFP4 (QuEST) | BF16, MXFP4 (SR) |
| Ours (Qwen3) | 375 | 280M–910M | 12.8B–35.8B | BF16, MXFP8, NVFP4 (4/6+1D) | BF16, MXFP8, NVFP4 (MS-EDEN/RHT+SR/SR) |
Recipe Decomposition Results
Forward quantization matters more than backward:
| Forward | Backward | Val. loss | Increase |
|---|---|---|---|
| BF16 | BF16 | 3.245 | – |
| BF16 | MS-EDEN | 3.257 | +0.36% |
| BF16 | RHT + SR | 3.255 | +0.32% |
| 4/6 + 1D | BF16 | 3.275 | +0.94% |
| 4/6 + 1D | MS-EDEN | 3.280 | +1.07% |
| 2D | BF16 | 3.284 | +1.22% |
| 2D | RHT + SR | 3.291 | +1.41% |
Empirical Validation / Results
Main Results (Table 4)
| Evaluation | Scaling law | Quartet R² | Quartet MSE | Ours R² | Ours MSE |
|---|---|---|---|---|---|
| Model size (Quartet grid) | – | 0.964 | 1.6e-4 | 0.997 | 1.4e-5 |
| Data (Quartet grid) | – | 0.995 | 9.0e-5 | 0.997 | 5.1e-5 |
| Model size (Our grid) | – | 0.990 | 8.4e-6 | 0.994 | 5.3e-6 |
| Data (Our grid) | – | 0.992 | 2.7e-5 | 0.998 | 6.1e-6 |
The law reduces MSE by 1.6× to 11× compared to Quartet.
Ablation Results (Table 5)
| Scaling law form | Geo. mean MSE |
|---|---|
| Quartet | 4.27e-5 |
| Ours | 1.23e-5 |
| With | 1.29e-5 |
| Without | 1.34e-5 |
| Without | 3.76e-5 |
Removing increases error by ~3×, confirming forward persistent error is critical.
Layer-Wise Extension Results
Fitted exponents (higher = better strategy):
| Pass | Strategy | Gap at p=0.5 | |
|---|---|---|---|
| Forward | First/last | 1.10 | 46.7% |
| Forward | Middle | 1.00 | 50.1% |
| Backward | First/last | 1.60 | 33.0% |
| Backward | Middle | 0.50 | 70.7% |
Keeping first/last blocks in high precision is particularly effective in the backward pass.
Fitted Parameters (Table 10, selected)
| Parameter | Scheme | Quartet (model size) | Ours (model size) |
|---|---|---|---|
| MXFP4 (QuEST) / MXFP8 | 0.770 | 0.987 | |
| NVFP4 (4/6+1D) | – | 0.922 | |
| MXFP4 (QuEST) / MXFP8 | 0.0340 | 0.0021 | |
| NVFP4 (4/6+1D) | – | 0.0151 | |
| NVFP4 (MS-EDEN) | – | 0.0076 | |
| NVFP4 (SR) | – | 0.0215 |
Theoretical and Practical Implications
Compute-Optimal Allocation
The cost model (Eq. 4):
The optimization problem (Eq. 5):
Key Findings
-
Optimal precision increases with budget: As compute budget grows, model/data terms shrink but persistent error remains, so higher precision becomes optimal. This contrasts with prior laws predicting budget-independent precision.
-
Backward pass should use low precision first: The backward pass (2/3 of FLOPs) benefits more from NVFP4 due to: (a) larger compute savings, (b) higher (less loss penalty), (c) ~half the persistent error of forward quantization.
-
Layer placement matters mainly in backward pass: First/last block selection incurs only 33% of the loss gap vs. 70.7% for middle blocks at .
Conclusion
The authors develop a scaling law for mixed-precision quantized pretraining that explicitly models persistent optimization error from both forward and backward quantization. Key contributions:
-
Recipe decomposition: Identified forward quantization as more loss-sensitive than backward techniques, with the best FP4 recipe (Quartet II) still leaving a noticeable gap to BF16.
-
Theoretically-grounded law: The law outperforms existing laws by 1.6×–11× in held-out MSE.
-
Layer-wise extension: The interpolation accurately predicts mixed-layer losses, with first/last block selection being particularly effective in the backward pass.
-
Compute-optimal allocation: The law predicts that optimal precision increases with compute budget—a novel finding driven by persistent optimization error that does not diminish with scale.
Future directions include validating on larger models, exploring additional quantization schemes, and extending to other architectures beyond Transformers.
Related papers
- How Model Growth, Recursion, and Boundary Operators Influence Scaling Exponents
Architectural interventions like model growth and boundary operators improve scaling exponents, with grown models matching GPT-3 13B using roughly 20x less compute.
- DuoDiscover: Scaling Autonomous Discovery Beyond the Evaluation Bottleneck
DuoDiscover co-discovers optimization targets and cheap proxy evaluators with fidelity testing, achieving up to 15x speedups and beating human experts across software and chip design.
- Recursive Reward Improvement via Adversarial Meta-Prompt Evolution
RRI improves its own reward functions via adversarial rubric hacking and repair, boosting HealthBench Professional scores by up to 12.4 points with zero training data.