Manuscript Offprint
arXiv:2610.17637Mixed Precision Scaling Laws for Quantized Pretraining
ABSTRACT
Since scaling laws were introduced for modern LLMs (Kaplan et al., 2020), several works have extended them to account for quantization, tracking the emerging low-precision data types supported on AI accelerators. We develop a more accurate scaling law for quantized pretraining with mixed precision across the forward and backward passes, grounded in optimization theory and validated empirically. Our formulation separates the effects of quantization on model capacity and on optimization efficiency, and explicitly models the persistent optimization error from forward and backward quantization identified through convergence analysis. To select the regimes for fitting and evaluating our law, we first decompose existing 4-bit training recipes into their forward and backward components, isolating those that most affect loss. Our Qwen3 experiments under selected 4-bit regimes, together with published Llama-style experiments, show that our law predicts loss with up to lower MSE than existing laws as model size and token count scale. Finally, we extend our law to layer-wise mixed precision and identify the optimal quantized-pretraining recipe, i.e., model size, training tokens, and per-layer forward/backward precision, under a hardware-aware compute budget. Unlike prior precision scaling laws, our law predicts that the optimal precision increases with the compute budget.
1 INTRODUCTION
Scaling laws have played a central role in guiding large language model (LLM) pretraining by characterizing how training loss varies with model size, data, and compute (Kaplan et al., 2020; Hoffmann et al., 2022; Videau et al., 2026). By extrapolating from smaller scale experiments, they enable researchers to choose effective training configurations for expensive runs in advance. As pretraining costs continue to grow, accurate scaling laws are becoming increasingly valuable for allocating limited resources and maximizing model quality under a given compute budget.
Quantized training offers a promising path towards more efficient LLM pretraining by performing computations in the forward and backward passes at reduced numerical precision (Micikevicius et al., 2022; Fishman et al., 2025). Recent recipes push precision down to 4 bits using block-scaled formats such as NVFP4, while combining different techniques in the forward and backward passes to preserve training quality (Tseng et al., 2025; Abecassis et al., 2025). Existing methods differ both in how quantization scales are shared and selected during the forward pass and in how gradients are estimated during the backward pass. For example, Abecassis et al. (2025) and Panferov et al. (2026a) adopt different choices along both dimensions. Together, these techniques have substantially narrowed the gap between FP4 and BF16 training, making low-precision training an increasingly practical option for LLM pretraining (Chmiel et al., 2025; Abecassis et al., 2025).
We first revisit existing NVFP4 training recipes by decomposing them into forward and backward components and isolating the contribution of each to pretraining loss, since prior works typically proposed and evaluated these techniques only as complete configurations (Section 2). We find that forward quantization choices affect loss more than backward techniques, but even the best combination leaves a noticeable loss gap relative to BF16 training. Mixed-precision quantized training
*Work done during internship at Amazon. †Correspondence to: Jinuk Kim jusjinuk@snu.ac.kr and Youngsuk Park pyoungsu@amazon.com

Optimal model size
Tokens per parameter
Compute budget (BF16-equivalent FLOPs)
Compute budget (BF16-equivalent FLOPs)
Figure 1: Compute-optimal precision allocation predicted by our scaling law. With each Transformer block using MXFP8 or NVFP4 in each pass, the panels show the optimal fraction of NVFP4 blocks in the forward pass (top, left) and backward pass (top, right), the optimal model size (bottom, left), and tokens per parameter (bottom, right), given the compute budget (x-axis) and the NVFP4 speedup over BF16 (y-axis), with the MXFP8 speedup fixed at (Section 4.3).
offers a promising way to narrow this gap, either by assigning different precisions to the forward and backward passes (Castro et al., 2026) or by varying precision across layers (Abecassis et al., 2025). Choosing among such configurations before training requires accurately predicting their loss at the target model size and token budget, which motivates scaling laws for mixed precision both across the forward and backward passes and across layers.
For mixed precision across the forward and backward passes, existing scaling laws model forward quantization as a reduction in the effective parameter count (Kumar et al., 2025; Frantar et al., 2025; Panferov et al., 2026b), and the Quartet law additionally models backward quantization as a reduction in the effective training token count, whose penalty can be offset by training on more data (Castro et al., 2026) (Table 2). However, quantization also introduces optimization error that can persist with continued training. In the forward pass, evaluating gradients at quantized weights while updating full-precision weights can induce oscillations that prevent convergence (Bengio et al., 2013; Bai et al., 2019; Défossez et al., 2022; Nagel et al., 2022), and in the backward pass, quantization can bias gradient estimates (Ajalloeian & Stich, 2020). Accurate loss prediction therefore requires modeling this persistent error in both passes.
In this work, we develop a scaling law for forward–backward mixed-precision pretraining that accounts for this persistent optimization error (Section 3). Guided by a theoretical analysis of the optimization gap, the law combines effective parameter and data counts with separate additive terms for persistent optimization error from forward and backward quantization. The resulting law (Table 2) takes the form
where and rescale the parameter count and the training token count , respectively, and and model persistent optimization error associated with the forward and backward quantization schemes and , respectively. We evaluate the law on our Qwen3 (Yang et al., 2025) pretraining experiments, covering models with up to 0.9B parameters trained on up to 35.8B tokens with BF16,
MXFP8, and different NVFP4 schemes in both passes, and on the published Quartet results for Llama-style models trained with up to 800 tokens per parameter (Castro et al., 2026). Across both settings, the law predicts held-out loss more accurately than existing laws when extrapolating to larger model sizes and token budgets.
For mixed precision across layers, we extend the law to predict the loss when different quantization schemes are assigned to different Transformer blocks (Section 4). The extension interpolates between the predicted losses of the two schemes being mixed, with an exponent that captures the strategy used to select blocks for each scheme (Table 2). Accounting for the hardware speedup of each format, we then use the law to identify the compute-optimal model size, number of training tokens, and precision of the forward and backward passes under a given compute budget (Figure 1).
We summarize our main contributions as follows:
(a) We revisit existing NVFP4 recipes by decomposing them into forward and backward components, identifying which components matter for loss and measuring the remaining gap to BF16, which guides the design of our scaling law experiments (Section 2).
(b) We develop a scaling law that models persistent optimization error from forward and backward quantization under mixed precision across the two passes, backed by theoretical analysis (Table 2). It predicts held-out loss more accurately than existing laws on our Qwen3 experiments and the published Quartet results (Section 3).
(c) We extend the law to layer-wise mixed precision, and identify compute-optimal model sizes and precision assignments under a hardware-aware compute budget (Section 4).
Table 1: Validation loss of FP4 pretraining recipes decomposed into forward and backward components, for a 430M parameter Qwen3 model trained at 12.8B tokens. Loss increase is relative to the BF16 baseline. The last column indicates whether each combination is included in our scaling law grid.
| Forward | Backward | Val. loss ↓ | Increase ↓ | In grid |
|---|---|---|---|---|
| BF16 | BF16 | 3.245 | - | ✓ |
| MS-EDEN | 3.257 | +0.36% | ✓ | |
| RHT + SR | 3.255 | +0.32% | ✓ | |
| SR | 3.268 | +0.72% | ✓ | |
| 4/6 + 1D scaling | BF16 | 3.275 | +0.94% | ✓ |
| MS-EDEN | 3.280 | +1.07% | ✓ | |
| RHT + SR | 3.282 | +1.14% | ✓ | |
| SR | 3.291 | +1.42% | ✓ | |
| 2D scaling | BF16 | 3.284 | +1.22% | ✕ |
| RHT + SR | 3.291 | +1.41% | ✕ | |
| SR | 3.300 | +1.69% | ✕ |
Results Table 1 reports the validation loss of a Qwen3 model (Yang et al., 2025) with 430M non-embedding parameters trained on 12.8B tokens for each combination of forward and backward components. The results show that forward pass quantization is generally more sensitive than backward pass quantization. From the BF16 baseline, quantizing only the backward pass to NVFP4 increases the loss by 0.32–0.72%, whereas quantizing only the forward pass increases it by 0.94–
Table 2: Comparison of scaling laws for quantization and compression. The last three columns indicate whether each law models different schemes in the forward and backward passes, different schemes across layers, and persistent optimization error. and rescale and according to the forward and backward schemes and , and and model persistent optimization error independent of and . For layer-wise mixed precision, is the fraction of layers assigned to the second of two schemes with losses and , and depends on the layer selection strategy . PTQ, QAT, and QPT denote post-training quantization, quantization-aware training, and quantized pretraining, respectively. Other notation is described in Appendix I.
| Scaling law | Loss formulation | Fwd-bwd mixed | Layer mixed | Optim. error |
|---|---|---|---|---|
| Precision (PTQ) (Kumar et al., 2025) | ✕ | ✕ | ✕ | |
| Mixed (PTQ) (Cao et al., 2024) | ✕ | ✓ | ✕ | |
| Precision (QPT) (Kumar et al., 2025) | ✕ | ✕ | ✕ | |
| Compression (Frantar et al., 2025) | ✕ | ✕ | ✕ | |
| QAT (Chen et al., 2025) | ✕ | ✕ | ✕ | |
| Representations (Panferov et al., 2026b) | ✕ | ✕ | ✕ | |
| Quartet (Castro et al., 2026) | ✓ | ✕ | ✕ | |
| Mixed (QPT) (Ours) | ✓ | ✓ | ✓ |
1.22%. Similarly, the advantage of Quartet II (4/6 + 1D scaling, MS-EDEN) over the NVFP4 recipe (2D scaling, RHT + SR) comes largely from the forward pass. Starting from Quartet II, replacing MS-EDEN with RHT + SR increases the loss by only 0.07 percentage points, whereas subsequently replacing 4/6 + 1D scaling with 2D scaling while keeping RHT + SR in the backward pass increases it by a further 0.27 percentage points. Based on these results, we adopt 4/6 + 1D scaling for NVFP4 forward quantization rather than 2D scaling, which performs worse overall, and retain all three backward techniques in our scaling law experiments. These selected regimes, together with BF16 and MXFP8 in both passes, form our experimental grid (Table 3).
Notably, even with the best FP4 recipe (Quartet II), a noticeable loss gap remains relative to the BF16 baseline, suggesting that uniformly quantizing to 4-bit may not be preferable. Mixed precision offers a way to narrow this gap by assigning different precisions to the forward and backward passes (Castro et al., 2026) or by varying precision across layers (Abecassis et al., 2025; Li & humans& ai, 2026). Accurately predicting the quantized pretraining loss of these configurations can help practitioners choose ones that meet their quality and compute targets, motivating quantized pretraining scaling laws for mixed precision across the forward and backward passes and across layers.
To this end, we develop a scaling law for mixed precision across the forward and backward passes in Section 3, guided by theoretical analysis, that predicts quantized pretraining loss more accurately than existing laws. In Section 4, we extend this law to layer-wise mixed precision and use it to identify compute-optimal configurations. We evaluate these laws on the selected regimes, and additionally validate the law in Section 3 on the published Quartet grid (Castro et al., 2026).
3 FORWARD-BACKWARD MIXED-PRECISION SCALING LAW WITH OPTIMIZATION ERROR
We first consider mixed precision across the forward and backward passes, where the two passes use quantization schemes and that may differ, as in the Quartet law (Castro et al., 2026), with uniform precision as the special case of matching schemes. Existing scaling laws for quantized pretraining treat forward quantization as reducing the effective parameter count (Kumar et al., 2025; Frantar et al., 2025; Panferov et al., 2026b) and backward quantization as reducing the effective training token count (Castro et al., 2026), implying that quantization penalties can be offset by scaling model size or data (Table 2). However, quantized training can also introduce optimization error that does not decrease with more data or parameters, as weights can oscillate across rounding boundaries in the forward pass (Défossez et al., 2022; Nagel et al., 2022) and gradient estimates can be biased in the backward pass (Ajalloeian & Stich, 2020).
We develop a scaling law that accounts for this persistent optimization error,
where and rescale and according to the forward and backward schemes and , and capture persistent optimization error introduced by each pass. Section 3.1 formalizes this intuition using optimization theory, and Sections 3.2 and 3.3 empirically validate that the resulting law predicts held-out loss more accurately than existing laws.
3.1 SCALING LAW FORMULATION
Quantization during pretraining affects both the representational capacity of the model and the accuracy of its training updates. To separate these effects, we decompose the loss gap into a capacity gap and an optimization gap (Su, 2026), which guides the formulation of our law. For a language model with parameters , let denote the population loss. For a forward quantization scheme , let denote the corresponding quantization map. We define the optimal loss of the quantized model and the irreducible loss over the model family, respectively, as
Consider training for steps, with weights and quantized weights at step . The gap between the average expected loss of the quantized model and decomposes as
where J is sampled uniformly from [T]. The first term represents the model capacity gap due to the limited number of parameters and the restricted numerical representations imposed by forward quantization. The second term represents the optimization gap, measuring how far the average expected loss during training remains above the best loss achievable by the quantized model.
Capacity gap. The capacity gap - E depends only on model size and the forward quantization . The backward quantization only affects training updates without changing the set of functions the model can represent. We therefore model it through the effective parameter count , as in existing laws (Kumar et al., 2025; Castro et al., 2026; Panferov et al., 2026b).
Optimization gap. To examine how quantization affects optimization, Remark 3.1 below bounds the optimization gap for training with quantized weights and biased backward gradients under suitable regularity conditions. Similar analyses appear in Li et al. (2017); Panferov et al. (2026b) for quantized weights and Ajalloeian & Stich (2020) for biased gradients.
Remark 3.1. Consider updates , where is a minibatch gradient estimate at using backward quantization scheme . Define . For a minimizer of over , set . Assume is deterministic, is differentiable and convex, and, uniformly over , and , and have bounded second moments. For learning rate chosen as ,
Table 3: Overview of the experimental data grids used to evaluate scaling laws for quantized pre-training. Model sizes are non-embedding parameter counts. TPP denotes tokens per parameter , where is the training token count. Token budgets show the range covered by each grid, with detailed settings in Appendix B.2. Each grid covers all combinations of the listed forward and backward schemes at every evaluated model size and token budget, including the BF16 baseline.
| Data grid (architecture) | # points | Model sizes N | Token budgets | Forward schemes | Backward schemes |
|---|---|---|---|---|---|
| Quartet grid (Llama) | 84 | 30M, 50M, 100M, 200M | 25–800 TPP | BF16, MXFP4 (QuEST) | BF16, MXFP4 (SR) |
| Our grid (Qwen3) | 375 | 280M, 430M, 640M, 910M | 12.8B–35.8B | BF16, MXFP8, NVFP4 (4/6 + 1D) | BF16, MXFP8, NVFP4 (MS-EDEN), NVFP4 (RHT + SR), NVFP4 (SR) |
Each term in the bound corresponds to a term in the scaling law (Eq. 1).
(a) The first term decreases as with additional optimization steps, which correspond to training tokens at a fixed batch size. It motivates the effective data size .
(b) The second term depends on the forward quantization error , which need not vanish with additional training. Example 3.1 shows that forward quantization can cause an optimization gap, motivating the persistent forward error term . Related oscillations and illustrative examples have been studied by Défossez et al. (2022); Nagel et al. (2022).
(c) The third term reflects bias in backward gradient estimates, which can persist despite additional training (Ajalloeian & Stich, 2020), motivating the backward error term .
Example 3.1 (Persistent optimization error from forward quantization). Consider and . For divisible by four, initialize and choose with . Using exact gradients at the quantized weights gives the updates . The quantized iterates repeat the cycle . The optimal quantized weight is , with . The optimization gap is
Thus, the optimization gap does not vanish as .
Proposed scaling law. Combining the capacity gap, modeled through , with terms (a), (b), and (c) yields our proposed scaling law (Eq. 1), where the persistent contributions are modeled as separate additive terms. While term (a) depends on both quantization schemes, we retain only the backward dependence in because including did not improve held-out loss prediction (Section 3.3). Table 2 highlights the differences between our law and existing formulations.
3.2 EXPERIMENTAL SETUP
We evaluate our scaling law on two pretraining grids: (1) the published Quartet experiments with Llama models (Castro et al., 2026) and (2) our Qwen3 experiments. For each grid, we fit the laws on calibration data and evaluate predictions on held-out runs with larger model sizes or token budgets.
Data grids. Table 3 details the two grids, the Quartet grid with 84 published runs of Llama-style models (Touvron et al., 2023) over two forward and two backward schemes (Castro et al., 2026; Panferov et al., 2025), and our grid with 375 runs of Qwen3-based models (Yang et al., 2025) over three forward and five backward schemes selected in Section 2, covering every forward–backward combination (see Appendix B.1 for details).
Evaluation protocol. We compare our law with the Quartet law (Castro et al., 2026) under model size extrapolation, fitting on the three smaller models and evaluating on the largest, and data extrapolation, fitting on smaller token budgets and evaluating at the largest (Appendix B.2). Following Castro et al. (2026), we fit each law in two stages, first to BF16 runs and then, with the baseline coefficients frozen, to quantized runs (Appendix B.3). We report , mean squared error (MSE), and mean absolute percentage error (MAPE) on held-out quantized runs.
Table 4: Held-out loss prediction under model size and data extrapolation on the Quartet grid (Llama) and our grid (Qwen3). Each law is fitted to the calibration split of each setting and evaluated on the quantized runs in the held-out split. The best results are shown in bold.
| Evaluation | Scaling law | Quartet grid (Llama) | Our grid (Qwen3) | ||||
|---|---|---|---|---|---|---|---|
| MSE | MAPE (%) | MSE | MAPE (%) | ||||
| Model size extrapolation | Quartet | 0.964 | 1.6e-4 | 0.386 | 0.990 | 8.4e-6 | 0.076 |
| Ours | 0.997 | 1.4e-5 | 0.096 | 0.994 | 5.3e-6 | 0.059 | |
| Data extrapolation | Quartet | 0.995 | 9.0e-5 | 0.234 | 0.992 | 2.7e-5 | 0.121 |
| Ours | 0.997 | 5.1e-5 | 0.217 | 0.998 | 6.1e-6 | 0.064 | |

Figure 2: Scaling law fits on 30M–100M models (Quartet grid, MXFP4 QuEST forward, MXFP4 stochastic rounding backward).

Figure 3: Extrapolation to held-out 200M models (Quartet grid, MXFP4 QuEST forward, MXFP4 stochastic rounding backward).
3.3 EXPERIMENTAL RESULTS
Table 4 reports model size and data extrapolation results on both grids. Our law outperforms the Quartet law across all settings, reducing MSE by to , e.g., from to () for model size extrapolation on the Quartet grid and from to () for data extrapolation on our grid. Figures 2 and 3 illustrate this on the Quartet grid with MXFP4 QuEST in the forward pass and MXFP4 stochastic rounding in the backward pass, showing the fits on 30M–100M models and the extrapolation to held-out 200M models. Our predictions match more closely the measured losses of the 200M models across token budgets, showing that modeling persistent optimization error improves extrapolation to larger models and token budgets. Appendix E further provides a comprehensive comparison of both laws across all quantization scheme combinations, grids, and extrapolation settings (Figures 5–10).
Ablation results. We further ablate the design choices in Eq. 1 by evaluating three variants, (1) allowing to depend on both forward and backward quantization schemes, (2) removing the backward error term , and (3) removing the forward error term . Table 5 reports the geometric mean of held-out MSE across model size and data extrapolation on the Quartet grid and our grid, giving equal weight to relative changes across settings with different error scales. The proposed law achieves the lowest error among the evaluated variants, supporting the chosen formulation. Appendix C further evaluates all combinations of these choices, together with adding the error terms inside the outer exponent instead of outside, and reports the held-out MSE in each setting (Table 9).
Table 5: Ablations of our scaling law, reporting geometric-mean held-out MSE across model size and data extrapolation on the Quartet and Qwen3 grids. Variants modify our law as indicated. Best result is bolded.
| Scaling law form | Geo. mean MSE ↓ |
|---|---|
| Quartet | 4.27e-5 |
| Ours | 1.23e-5 |
| - (1) With | 1.29e-5 |
| - (2) Without | 1.34e-5 |
| - (3) Without | 3.76e-5 |
4 LAYER-WISE MIXED-PRECISION SCALING LAW AND COMPUTE-OPTIMAL ALLOCATION
Practical quantized pretraining recipes often retain higher precision in sensitive layers while using lower-precision computation elsewhere, enabling a flexible trade-off between training loss and cost (Abecassis et al., 2025; Li & humans& ai, 2026; Pan et al., 2026). Selecting such configurations before training requires predicting how loss depends not only on the fraction of high-precision blocks, but also on which blocks are assigned higher precision. In this section, we extend Eq. 1 to model both the fraction of high-precision blocks and how they are selected (Table 2), and use the extended law to identify compute-optimal precision allocations. Section 4.1 formulates the extension, Section 4.2 evaluates its predictions, and Section 4.3 studies compute-optimal precision allocation under a fixed compute budget, showing that the optimal precision increases with the budget.
4.1 FORMULATION
Consider a model with Transformer blocks and two quantization configurations: high precision and low precision , each comprising forward and backward schemes, for . We interpolate between the two configurations by assigning to a subset of the blocks and to the rest. A selection strategy maps a fraction to a set of blocks with , and the mixed configuration assigns to the blocks in and to the remaining blocks. We model its loss as
where is predicted by Eq. 1, , and depends on the strategy . Mixing only the forward or only the backward pass corresponds to or .
By construction, the loss equals at and at , so the strategy only determines how the loss moves between these endpoints. A good strategy assigns to the least sensitive blocks first, keeping the loss close to until becomes large, whereas a poor strategy assigns it to sensitive blocks early and increases the loss quickly. The exponent captures this difference, where a larger indicates that the strategy keeps the sensitive blocks in longer, a smaller indicates that it assigns them to earlier, and corresponds to linear interpolation between and .
4.2 EXPERIMENTS
We evaluate the extended law on Qwen3 models with layer-wise MXFP8/NVFP4 mixed precision. We vary precision in either the forward or backward pass, keeping 25%, 50%, or 75% of the blocks in MXFP8 ( up to rounding). We compare two strategies for selecting higher-precision blocks: (1) first/last, which keeps the first and last blocks in MXFP8, following practical recipes (Abecassis et al., 2025; Li & humans& ai, 2026), and (2) middle, which keeps the central blocks in MXFP8. We hold out the 910M model, predict endpoints and using laws fitted on smaller models, and fit for each pass and strategy using their mixed-precision runs (see Appendix B.4 for details).
Prediction accuracy. Figure 4 compares the predicted and observed losses of the mixed-precision runs on the held-out 910M model. With endpoints predicted by our law, the extended law closely matches the observed losses across both passes, both strategies, all fractions, and all token budgets ( , MSE = ), indicating that fitted on smaller models transfers to a larger model. With endpoints predicted by the Quartet law, the predictions consistently underestimate the observed losses, increasing the MSE by nearly three times ( , MSE = ). This shows that the improved accuracy of our proposed scaling law in Section 3 carries over to the layer-wise mixed-precision setting. Appendix F further visualizes the fits of Eq. 2 for each pass and strategy in terms of the normalized increase in loss (Figure 11).
Table 6: Fitted (higher means better strategy) with our law, and the resulting fraction of the loss gap incurred at .
| Pass | Strategy S | Gap at | |
|---|---|---|---|
| Forward | First/last | 1.10 | 46.7% |
| Middle | 1.00 | 50.1% | |
| Backward | First/last | 1.60 | 33.0% |
| Middle | 0.50 | 70.7% |

Figure 4: Predicted versus observed loss of layer-wise mixed-precision runs on the held-out 910M model, with fitted on the three smaller models. The endpoints and in Eq. 2 are predicted by our law (left) or the Quartet law (right). Markers indicate the mixed pass and the blocks kept in higher precision, and each point corresponds to one fraction p and one token budget.
First and last blocks matter more in the backward pass. Table 6 reports the fitted , where larger values indicate that a strategy retains more sensitive blocks at higher precision and incurs a smaller fraction of the loss gap. Keeping the first and last blocks in higher precision, as proposed in practical NVFP4 training recipes (Abecassis et al., 2025; Li & humans& ai, 2026), is particularly effective in the backward pass, as reflected in its higher fitted . In the forward pass, both strategies incur about half of the gap at (46.7% and 50.1%), so placement has little effect. In the backward pass, keeping the first and last blocks in MXFP8 incurs 33.0% of the gap, compared with 70.7% for the middle blocks.
4.3 COMPUTE-OPTIMAL PRECISION ALLOCATION
Using the scaling laws from Sections 3 and 4.1, we identify the compute-optimal forward, backward and layer-wise precision, along with model size and the number of training tokens, under a given compute budget (Figure 1). Unlike prior precision scaling laws (Kumar et al., 2025, Section 4.3.2), our law predicts that the optimal precision increases with the compute budget.
Setup. We consider the setting of mixing (1) MXFP8 and (2) NVFP4 with scaling in the forward pass, and (1) MXFP8 and (2) NVFP4 with MS-EDEN in the backward pass, assigning NVFP4 to fractions and of the blocks, respectively, with the first/last strategy. Applying Eq. 2 to each pass in turn, we predict the loss as
where , , is the loss predicted by Eq. 1 with forward format and backward format , and and are the first/last exponents in Table 6. We assume that each exponent is independent of the NVFP4 backward technique and of the format in the other pass, which makes Eq. 3 independent of the order in which the passes are mixed.
Cost model and optimal allocation. The forward and backward passes account for roughly one third and two thirds of the 6ND training FLOPs, respectively (Kaplan et al., 2020). Let , , , and denote the hardware-dependent speedups of MXFP8 and NVFP4 quantization recipes over BF16 in each pass. Assuming equal cost across blocks and ignoring operations other than matrix multiplications, the training cost in BF16-equivalent FLOPs is
Given a compute budget , the compute-optimal allocation solves
(5) where L is given by Eq. 3. We solve this problem via numerical optimization (Appendix G).
Figure 1 shows the solution of Eq. 5, specifically the optimal model size , the optimal number of training tokens , and the optimal fractions of blocks in NVFP4 in the forward and backward passes, and , as a function of the compute budget (x-axis) and the NVFP4 speedup (y-axis). We assume that each format has the same speedup in the forward and backward passes, i.e., and , and fix , following the GEMM kernel speedup reported by NVIDIA Transformer Engine (NVIDIA, 2026). Since actual speedups differ across hardware types and generations, supported data types, and kernel implementations, we report results under other assumed MXFP8 speedups in Appendix H.
Optimal precision increases with the budget. Following a horizontal line in the top panels of Figure 1, i.e., fixing the NVFP4 speedup while increasing the compute budget , the optimal NVFP4 fractions (top left) and (top right) decrease, leaving more blocks in MXFP8. For example, at , the optimal configuration switches to MXFP8 in the forward pass around FLOPs and in both passes at around FLOPs, with layer-wise mixing smoothing the backward switch into a gradual transition. This contrasts with prior scaling laws, which predict budget-independent optimal precision when jointly optimizing model size, data, and precision (Kumar et al., 2025, Section 4.3.2), and stems from the persistent optimization error in our law. As grows, model- and data-dependent loss terms shrink while persistent error remains, so the lower error of higher precision eventually outweighs the compute savings of lower precision.
The backward pass should use low precision first. Comparing the top panels of Figure 1 at a fixed NVFP4 speedup, the backward pass keeps NVFP4 up to much larger compute budgets than the forward pass. Three factors favor NVFP4 in the backward pass. The backward pass accounts for two thirds of the training FLOPs, so each block in NVFP4 saves more compute. Its larger exponent (Table 6) means that assigning blocks to NVFP4 incurs a smaller fraction of the loss gap. Finally, the persistent error of NVFP4 relative to MXFP8 is about half as large in the backward pass as in the forward pass in our fitted law (Appendix D). Practitioners with a limited budget for higher precision should therefore allocate it to the forward pass first.
5 CONCLUSION
In this work, we develop a scaling law guided by theoretical analysis to predict the loss of quantized pretraining with mixed precision across the forward and backward passes, modeling persistent optimization error from each pass, and show that it predicts held-out loss more accurately than existing laws. Extending the law to layer-wise mixed precision, we find that keeping the first and last blocks in higher precision is particularly effective in the backward pass. Finally, the law predicts that the compute-optimal precision increases with the compute budget, unlike previous precision scaling laws, since the persistent optimization error does not diminish with scale.
AI USE STATEMENT
We used large language models and coding agents to assist with drafting and editing the manuscript, implementing plotting and optimization code, and providing assistance with mathematical derivations and proofs. We reviewed and verified the AI-assisted content and take full responsibility for the paper.
ETHICS STATEMENT
This work studies scaling laws and optimization for quantized language model pretraining. It does not involve sensitive personal data or real-world deployment. While improved training efficiency may broaden access to capable models, it may also enable harmful downstream uses. We encourage responsible use of these methods.
REPRODUCIBILITY STATEMENT
We provide the experimental settings, model configurations, quantization schemes, optimization details, and fitting procedures needed to reproduce our results. We also report the scaling-law experiments and ablations used in our analyses.
ACKNOWLEDGMENTS
Jinuk Kim is supported by Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) [No. RS2026-25524173, Ultra-Long-Term Hierarchical Memory and Reasoning Architecture for Next-Generation Omnimodal Agents, 50%; and No. RS-2020-II200882, (SW STAR LAB) Development of deployable learning intelligence via self-sustainable and trustworthy machine learning, 20%], and National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. RS-2024-00354036, 30%).
REFERENCES
Felix Abecassis, Anjulie Agrusa, Dong Ahn, Jonah Alben, Stefania Alborghetti, Michael Andersch, Sivakumar Arayandi, Alexis Bjorlin, Aaron Blakeman, Evan Briones, et al. Pretraining large language models with nvfp4. arXiv preprint arXiv:2509.25149, 2025.
Ahmad Ajalloeian and Sebastian U Stich. On the convergence of sgd with biased gradients. arXiv preprint arXiv:2008.00051, 2020.
Yu Bai, Yu-Xiang Wang, and Edo Liberty. Proxquant: Quantized neural networks via proximal operators. ICLR, 2019.
Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
Johan Bjorck, Alon Benhaim, Vishrav Chaudhary, Furu Wei, and Xia Song. Scaling optimal lr across token horizons. In International Conference on Learning Representations, volume 2025, pp. 83640–83657, 2025.
Dan Busbridge, Amitis Shidani, Floris Weers, Jason Ramapuram, Etai Littwin, and Russell Webb. Distillation scaling laws. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 5977–6045. PMLR, 13–19 Jul 2025.
Richard H Byrd, Peihuang Lu, Jorge Nocedal, and Ciyou Zhu. A limited memory algorithm for bound constrained optimization. SIAM Journal on scientific computing, 16(5):1190–1208, 1995.
Zeyu Cao, Boyang Gu, Cheng Zhang, Pedro Gimenes, Jianqiao Lu, Jianyi Cheng, Xitong Gao, and Yiren Zhao. Scaling laws for mixed quantization. arXiv preprint arXiv:2410.06722, 2024.
Roberto Castro, Andrei Panferov, Rush Tabesh, Oliver Sieberling, Jiale Chen, Mahdi Nikdan, Saleh Ashkboos, and Dan Alistarh. Quartet: Native fp4 training can be optimal for large language models. Advances in Neural Information Processing Systems, 38:43552–43572, 2026.
Mengzhao Chen, Chaoyi Zhang, Jing Liu, Yutao Zeng, Zeyue Xue, Zhiheng Liu, Yunshui Li, Jin Ma, Jie Huang, Xun Zhou, et al. Scaling law for quantization-aware training. arXiv preprint arXiv:2505.14302, 2025.
Brian Chmiel, Maxim Fishman, Ron Banner, and Daniel Soudry. Fp4 all the way: Fully quantized training of llms. arXiv preprint arXiv:2505.19115, 2025.
Jack Cook, Junxian Guo, Guangxuan Xiao, Yujun Lin, Keith Wyss, Mahdi Nazemi, Asit Mishra, Carlo del Mundo, Tijmen Blankevoort, and Song Han. Four over six: More accurate nvfp4 quantization with adaptive block scaling. arXiv preprint arXiv:2512.02010, 2025.
Alexandre Défossez, Yossi Adi, and Gabriel Synnaeve. Differentiable model compression via pseudo quantization noise. TMLR, 2022.
Nolan Dey, Bin Zhang, Lorenzo Noci, Mufan Li, Blake Bordelon, Shane Bergsma, Cengiz Pehlevan, Boris Hanin, and Joel Hestness. Don’t be lazy: Completep enables compute-efficient deep transformers. Advances in Neural Information Processing Systems, 38:137707–137739, 2026.
Jesse Dodge, Maarten Sap, Ana Marasović, William Agnew, Gabriel Ilharco, Dirk Groeneveld, Margaret Mitchell, and Matt Gardner. Documenting large webtext corpora: A case study on the colossal clean crawled corpus. In Proceedings of the 2021 conference on empirical methods in natural language processing, pp. 1286–1305, 2021.
Maxim Fishman, Brian Chmiel, Ron Banner, and Daniel Soudry. Scaling fp8 training to trillion-token llms. In International Conference on Learning Representations, volume 2025, pp. 98631–98644, 2025.
Elias Frantar, Utku Evci, Wonpyo Park, Neil Houlsby, and Dan Alistarh. Compression scaling laws: Unifying sparsity and quantization. arXiv preprint arXiv:2502.16440, 2025.
Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022.
Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, et al. Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395, 2024.
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
Tanishq Kumar, Zachary Ankner, Benjamin Spector, Blake Bordelon, Niklas Muennighoff, Mansheej Paul, Cengiz Pehlevan, Christopher Ré, and Aditi Raghunathan. Scaling laws for precision. In International Conference on Learning Representations, volume 2025, pp. 71833–71864, 2025.
Hao Li, Soham De, Zheng Xu, Christoph Studer, Hanan Samet, and Tom Goldstein. Training quantized nets: A deeper understanding. Advances in neural information processing systems, 30, 2017.
Ziang Li and humans& ai. The 4-bitter lesson: Balancing stability and performance in nvfp4 rl. humans& ai Blog, July 2026. https://humansand.ai/blog/nvfp4-rl.html.
Ilya Loshchilov, Frank Hutter, et al. Fixing weight decay regularization in adam. arXiv preprint arXiv:1711.05101, 5(5):5, 2017.
Paulius Micikevicius, Dusan Stosic, Neil Burgess, Marius Cornea, Pradeep Dubey, Richard Grisenthwaite, Sangwon Ha, Alexander Heinecke, Patrick Judd, John Kamalu, et al. Fp8 formats for deep learning. arXiv preprint arXiv:2209.05433, 2022.
Markus Nagel, Marios Fournarakis, Yelysei Bondarenko, and Tijmen Blankevoort. Overcoming oscillations in quantization-aware training. In International Conference on Machine Learning, pp. 16318–16330. PMLR, 2022.
NVIDIA. Transformer engine, 2026. URL https://github.com/NVIDIA/TransformerEngine/blob/9c33764bd9fd88cb4984ef2b60e9f0623055d3b2/docs/examples/gemm_profiling/gemm_profiling.rst.
Yunjie Pan, Yongyi Yang, Hanmei Yang, and Scott Mahlke. Snip: An adaptive mixed precision framework for subbyte large language model training. In Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, pp. 1815–1831, 2026.
Andrei Panferov, Jiale Chen, Soroush Tabesh, Mahdi Nikdan, and Dan Alistarh. QuEST: Stable training of LLMs with 1-bit weights and activations. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 47820–47836. PMLR, 13–19 Jul 2025.
Andrei Panferov, Erik Schultheis, Soroush Tabesh, and Dan Alistarh. Quartet ii: Accurate llm pre-training in nvfp4 by improved unbiased gradient estimation. arXiv preprint arXiv:2601.22813, 2026a.
Andrei Panferov, Alexandra Volkova, Ionut-Vlad Modoranu, Vage Egiazarian, Mher Safaryan, and Dan Alistarh. Unified scaling laws for compressed representations. Advances in Neural Information Processing Systems, 38:151086–151112, 2026b.
Jianlin Su. Deconstructing scaling laws: The interplay of optimization, architecture, and data, July 2026. URL https://kexue.fm/archives/11833.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
Albert Tseng, Tao Yu, and Youngsuk Park. Training llms with mxfp4. In Yingzhen Li, Stephan Mandt, Shipra Agrawal, and Emtiyaz Khan (eds.), Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research, pp. 1630–1638. PMLR, 03–05 May 2025.
Mathurin Videau, Badr Youbi-Idrissi, David Lopez-Paz, and Kartik Ahuja. Skaling: Chinchilla's exponents meet kaplan's coupling. arXiv preprint arXiv:2608.07222, 2026.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
A PROOF OF REMARK 3.1
In this section, we provide the proof of Remark 3.1, restated here for convenience.
Remark 3.1. Consider updates , where is a minibatch gradient estimate at using backward quantization scheme . Define . For a minimizer of over , set . Assume is deterministic, is differentiable and convex, and, uniformly over , and , and have bounded second moments. For learning rate chosen as ( ),
Proof. Write and . By convexity and ,
The update rule gives
Summing over t and dropping the nonpositive terminal term yields
By Cauchy–Schwarz,
Taking uniformly from independently of the trajectory, and substituting and \mathcal{L}_N(q^*) = \mathcal{L}_N^*_{N,\psi_f}, proves the claim. The stated orders follow from the uniform second-moment bounds.
B IMPLEMENTATION DETAILS
B.1 MODEL ARCHITECTURE AND TRAINING
Our scaling law grid models are derived from the Qwen3-8B architecture (Yang et al., 2025) by varying the number of Transformer blocks K and setting the remaining dimensions from K following the proportions of Qwen3-8B, which has K = 36 blocks, width , and 32 query heads. The width scales linearly with depth, , and the number of query heads scales with width, , where rounds x to the nearest multiple of m. All other choices follow Qwen3-8B, including grouped-query attention with 8 key-value heads and a head dimension of 128, an FFN dimension of , QK normalization, and tied input and output embeddings over the Qwen3 vocabulary of 151,936 tokens. Table 7 lists the resulting configurations, where non-embedding parameter counts include normalization weights.
Table 7: Model configurations derived from Qwen3-8B. denotes the number of Transformer blocks. Parameter counts are given without and with the tied embeddings.
| Model | K | Query heads | KV heads | FFN dim. | Non-emb. params | Total params | |
|---|---|---|---|---|---|---|---|
| 280M | 12 | 1408 | 8 | 8 | 4224 | 283M | 497M |
| 430M | 14 | 1536 | 16 | 8 | 4608 | 429M | 663M |
| 640M | 16 | 1792 | 16 | 8 | 5376 | 639M | 911M |
| 910M | 18 | 2048 | 16 | 8 | 6144 | 906M | 1217M |
| Qwen3-8B | 36 | 4096 | 32 | 8 | 12288 | 6946M | 7568M |
Table 8: Calibration and held-out splits for model size and data extrapolation. # points denotes the number of data points in each split, including all forward and backward scheme combinations. The Quartet grid uses tokens-per-parameter ratios , whereas our grid uses training token counts . denotes the non-embedding parameter count.
| Data grid | Evaluation | Calibration | Held-out | ||
|---|---|---|---|---|---|
| # points | Model sizes and token budgets | # points | Model sizes and token budgets | ||
| Quartet grid (Llama) | Model size extrapolation | 72 | 12 | ||
| Data extrapolation | 60 | 12 | |||
| Our grid (Qwen3) | Model size extrapolation | 315 | 60 | ||
| Data extrapolation | 270 | 45 | |||
Parameterization and initialization We use the CompleteP parameterization (Dey et al., 2026) with Qwen3-8B as the base shape, so that hyperparameters tuned on one model transfer across width and depth. For each model size, all runs start from the same initial checkpoint and see the same data order, so BF16 and all quantized recipes differ only in their quantization schemes.
Optimization and data We use AdamW (Loshchilov et al., 2017) (, , weight decay 0.1, gradient clipping 1.0) with batches of 1024 sequences of length 4096 (about 4.2M tokens), and a warmup–stable–decay schedule (Hu et al., 2024) with 244 warmup steps and a linear decay to 1% of the peak over the final 10% of steps. A BF16 sweep on the 280M model at 5.7B tokens (20 tokens per parameter) gives an optimal peak learning rate of , which is also optimal for the 170M and 430M models, confirming transfer across width and depth (Dey et al., 2026). Scaling it to the smallest token budget of each model (Table 8) with (Bjorck et al., 2025) gives for the three smaller models and for the 910M model, which we use for all budgets and quantization schemes. We report validation loss on C4 (Dodge et al., 2021).
Token budgets We train every model with at least 20 tokens per parameter (Hoffmann et al., 2022), using the token budgets listed in Table 8. The three smaller models share the budgets of the 640M model, ranging from 12.8B to 35.8B tokens, and the 910M model uses budgets from 18.1B to 29.9B tokens. For cost efficiency, we obtain each token budget by resuming from the run of a smaller budget before its decay phase and applying its own 10% decay.
B.2 EVALUATION SPLITS
Table 8 lists the calibration and held-out splits for the two extrapolation settings in Section 3.2. In model size extrapolation, each law is fitted to runs with the three smaller models of each grid and evaluated on the largest model, which is 200M for the Quartet grid and 910M for our grid. In data extrapolation, each law is fitted to runs with the three smaller models at all but the largest token budget and evaluated at that budget, which is 800 tokens per parameter for the Quartet grid and 35.8B tokens for our grid. The largest model is therefore excluded from data extrapolation. In both settings, the laws are fitted only to the calibration split.
Table 9: Ablation of our scaling law over all combinations of its design choices. We report held-out MSE under model size and data extrapolation on both grids and their geometric mean. Variants (1)–(3) are those in Table 5, and – marks the remaining combinations. The best geometric mean is shown in bold.
| Scaling law | Form | Quartet grid (Llama) | Our grid (Qwen3) | Geo. mean ↓ | |||||
|---|---|---|---|---|---|---|---|---|---|
| placement | Model size | Data | Model size | Data | |||||
| - | ✕ | ✕ | - | 1.27e-4 | 7.98e-5 | 7.28e-6 | 2.61e-5 | 3.72e-5 | |
| Quartet | ✕ | ✕ | - | 1.65e-4 | 9.02e-5 | 8.39e-6 | 2.66e-5 | 4.27e-5 | |
| - | ✓ | ✕ | Inside | 2.74e-5 | 5.63e-5 | 4.47e-6 | 2.12e-5 | 1.96e-5 | |
| - | ✓ | ✕ | Inside | 2.87e-5 | 7.10e-5 | 5.17e-6 | 2.31e-5 | 2.22e-5 | |
| - | ✓ | ✕ | Outside | 1.95e-5 | 2.02e-5 | 3.69e-6 | 2.20e-5 | 1.34e-5 | |
| Variant (2) | ✓ | ✕ | Outside | 1.67e-5 | 1.86e-5 | 4.32e-6 | 2.38e-5 | 1.34e-5 | |
| - | ✕ | ✓ | Inside | 9.97e-5 | 1.02e-4 | 8.19e-6 | 4.98e-6 | 2.54e-5 | |
| - | ✕ | ✓ | Inside | 1.76e-4 | 1.37e-4 | 1.06e-5 | 8.08e-6 | 3.79e-5 | |
| - | ✕ | ✓ | Outside | 1.15e-4 | 1.05e-4 | 6.07e-6 | 6.14e-6 | 2.59e-5 | |
| Variant (3) | ✕ | ✓ | Outside | 1.84e-4 | 1.35e-4 | 8.82e-6 | 9.12e-6 | 3.76e-5 | |
| - | ✓ | ✓ | Inside | 3.32e-5 | 7.35e-5 | 7.74e-6 | 3.98e-6 | 1.66e-5 | |
| - | ✓ | ✓ | Inside | 3.86e-5 | 9.75e-5 | 8.17e-6 | 5.43e-6 | 2.02e-5 | |
| Variant (1) | ✓ | ✓ | Outside | 2.14e-5 | 5.24e-5 | 4.81e-6 | 5.12e-6 | 1.29e-5 | |
| Ours | ✓ | ✓ | Outside | 1.43e-5 | 5.06e-5 | 5.29e-6 | 6.07e-6 | 1.23e-5 | |
B.3 FITTING THE SCALING LAWS
We fit both our law and the Quartet law in two stages, following Castro et al. (2026), and both stages minimize a Huber loss with threshold on log-loss residuals . We use Levenberg-Marquardt with 200 initializations for the baseline fit and a bounded trust-region reflective solver with 20 initializations for the quantization parameters. We repeat both stages independently for each data grid and extrapolation setting using only calibration data.
B.4 LAYER-WISE MIXED-PRECISION EXPERIMENTS
We use four Qwen3 model sizes with 280M, 430M, 640M, and 910M non-embedding parameters, each trained with four token budgets, yielding 16 combinations of and . The three smaller models are trained on 12.8B, 15.3B, 17.9B, and 21.1B tokens, and the largest model on 18.1B, 21.7B, 25.4B, and 29.9B tokens. We mix precision in one pass at a time. For each pass and strategy, we keep , , or of the blocks in MXFP8, with each selection containing the smaller ones, so that for MXFP8 blocks out of equals 0.75, 0.5, or 0.25 up to rounding.
-
Forward mixing. and use MXFP8 and NVFP4 with scaling in the forward pass, respectively, and both use MS-EDEN in the backward pass.
-
Backward mixing. and use MXFP8 with round-to-nearest and NVFP4 with SR in the backward pass, respectively, and both use scaling in the forward pass.
We evaluate the extended law under model size extrapolation, holding out the 910M model. To predict the endpoints and , we use each scaling law fitted to the calibration split for model size extrapolation on our grid (Appendix B.2), which excludes the 910M model. We then fit in Eq. 2 for each pass and strategy to all mixed-precision runs on the three smaller models, using predicted endpoints, so that the 910M model is excluded from both fits.
C ABLATION OVER ALL COMBINATIONS OF DESIGN CHOICES
While Table 5 varies one design choice of our law at a time, Table 9 evaluates all combinations of three choices, (i) which persistent error terms are included among and , (ii) whether depends on the backward scheme only or on both schemes and , and (iii) whether the error terms are added outside , as in Eq. 1, or inside it, i.e.,
Table 10: Fitted parameters of our scaling law on the Quartet grid (Llama) and our grid (Qwen3), for each extrapolation setting (model size and data). The shared coefficients are fitted to the BF16 runs, and the scheme-dependent parameters to the quantized runs, with and for BF16 by construction. and are measured in non-embedding parameters and tokens.
| Parameter | Scheme | Quartet grid (Llama) | Our grid (Qwen3) | ||
|---|---|---|---|---|---|
| Model size | Data | Model size | Data | ||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| MXFP4 (QuEST) | - | - | |||
| MXFP8 | - | - | |||
| NVFP4 () | - | - | |||
| MXFP4 (SR) | - | - | |||
| MXFP8 | - | - | |||
| NVFP4 (MS-EDEN) | - | - | |||
| NVFP4 (RHT + SR) | - | - | |||
| NVFP4 (SR) | - | - | |||
| MXFP4 (QuEST) | - | - | |||
| MXFP8 | - | - | |||
| NVFP4 () | - | - | |||
| MXFP4 (SR) | - | - | |||
| MXFP8 | - | - | |||
| NVFP4 (MS-EDEN) | - | - | |||
| NVFP4 (RHT + SR) | - | - | |||
| NVFP4 (SR) | - | - | |||
. Each of the resulting 14 forms is fitted and evaluated with the same protocol as our law (Section 3.2). Overall, our law achieves the lowest geometric-mean MSE. For (i) the persistent error terms, removing increases the geometric-mean MSE by to (rows 7–10 vs. rows 11–14), and removing increases it by to (rows 3–6 vs. rows 11–14). For (ii) the dependence of , the effect of a joint is mixed across the other choices, and it does not improve on our law (row 13 vs. row 14). For (iii) the placement of the error terms, placing them inside increases the geometric-mean MSE by on average.
D FITTED SCALING LAW PARAMETERS
Table 10 lists the parameters of our scaling law (Eq. 1) fitted to the calibration split of each grid and extrapolation setting. The shared coefficients , , , , , and are fitted in the first stage to the BF16 runs, and the scheme-dependent parameters , , , and are fitted in the second stage to the quantized runs, with and for BF16 by construction. and are measured in non-embedding parameters and tokens, respectively.
E SCALING LAW FITS FOR ALL SCHEMES
Figures 5–10 show the fits of the Quartet law and our law for all forward and backward scheme combinations on both grids, under model size and data extrapolation. Blue points and curves show the calibration runs and the fitted law, and red points and curves show the held-out runs and the extrapolated predictions. Each legend reports the held-out and MSE in Table 4. These figures compare the two laws for each scheme combination on each grid and extrapolation setting. For
Held-out: , MSE=
Quartet Calibration Held-out

Fwd: BF16
Bwd: MXFP4 (SR)
Fwd: MXFP4 (QuEST)
Bwd: BF16
Fwd: MXFP4 (QuEST)
Bwd: MXFP4 (SR)
(a) Quartet law
Held-out: , MSE=
Ours Calibration Held-out
Fwd: BF16
Bwd: MXFP4 (SR)

Fwd: MXFP4 (QuEST)
Bwd: BF16
Tokens per parameter
Fwd: MXFP4 (QuEST)
Bwd: MXFP4 (SR)
Tokens per parameter
(b) Our law
Tokens per parameter
Figure 5: Quartet grid (Llama), model size extrapolation, for (a) the Quartet law and (b) our law. Each law is fitted to the 30M–100M models and evaluated on the held-out 200M models.
instance, on the Quartet grid, the Quartet law underestimates the loss of the held-out 200M models with MXFP4 (QuEST) in the forward pass (Figure 5a, middle and right), whereas our law matches it closely (Figure 5b). Similarly, on our grid, the Quartet law underestimates the held-out loss at 35.8B tokens for the runs with NVFP4 (SR) in the backward pass and deviates from their calibration points (Figure 9, first row, fourth column, and third row, first column), whereas our law matches both closely (Figure 10).
Held-out: , MSE=
Quartet
Calibration
Held-out
Fwd: BF16
Bwd: MXFP4 (SR)

Fwd: MXFP4 (QuEST)
Bwd: BF16
Tokens per parameter
Fwd: MXFP4 (QuEST)
Bwd: MXFP4 (SR)
Tokens per parameter
Tokens per parameter
(a) Quartet law
Held-out: , MSE=
Ours
Calibration
Held-out
Fwd: BF16
Bwd: MXFP4 (SR)

Fwd: MXFP4 (QuEST)
Bwd: BF16
Tokens per parameter
Tokens per parameter
Fwd: MXFP4 (QuEST)
Bwd: MXFP4 (SR)
(b) Our law
Tokens per parameter
Figure 6: Quartet grid (Llama), data extrapolation, for (a) the Quartet law and (b) our law. Each law is fitted to 25–400 tokens per parameter and evaluated at the held-out 800 tokens per parameter.
Held-out: , MSE=
Quartet Calibration Held-out
Fwd: BF16
Bwd: MXFP8

Fwd: BF16
Bwd: NVFP4 (MS-EDEN)
Fwd: BF16
Bwd: NVFP4 (RHT + SR)
Fwd: BF16
Bwd: NVFP4 (SR)
Fwd: MXFP8
Bwd: BF16
Fwd: MXFP8
Bwd: MXFP8
Fwd: MXFP8
Bwd: NVFP4 (MS-EDEN)
Fwd: MXFP8
Bwd: NVFP4 (RHT + SR)

Fwd: MXFP8
Bwd: NVFP4 (SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: BF16
Fwd: NVFP4 (4/6 + 1D)
Bwd: MXFP8
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)

Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (RHT + SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Training tokens (billions)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)
Training tokens (billions)
Training tokens (billions)
Training tokens (billions)
Figure 7: Our grid (Qwen3), model size extrapolation, for the Quartet law. The law is fitted to the 280M–640M models and evaluated on the held-out 910M models.
Held-out: , MSE =
Ours
Calibration
Held-out
Fwd: BF16
Bwd: MXFP8

Fwd: BF16
Bwd: NVFP4 (MS-EDEN)
Fwd: BF16
Bwd: NVFP4 (RHT + SR)
Fwd: MXFP8
Bwd: BF16
Fwd: BF16
Bwd: NVFP4 (SR)
Fwd: MXFP8
Bwd: MXFP8
Fwd: MXFP8
Bwd: NVFP4 (MS-EDEN)
Fwd: MXFP8
Bwd: NVFP4 (RHT + SR)

Fwd: MXFP8
Bwd: NVFP4 (SR)
Fwd: MXFP8
Bwd: MXFP8
Fwd: NVFP4 (4/6 + 1D)
Bwd: BF16
Fwd: NVFP4 (4/6 + 1D)
Bwd: MXFP8
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (RHT + SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: BF16

Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: MXFP8
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Training tokens (billions)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)
Training tokens (billions)

Training tokens (billions)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Training tokens (billions)
Figure 8: Our grid (Qwen3), model size extrapolation, for our law. The law is fitted to the 280M–640M models and evaluated on the held-out 910M models.
Held-out: , MSE=
Quartet Calibration Held-out
Fwd: BF16
Bwd: MXFP8

Fwd: BF16
Bwd: NVFP4 (MS-EDEN)
Fwd: BF16
Bwd: NVFP4 (RHT + SR)
Fwd: MXFP8
Bwd: BF16
Fwd: BF16
Bwd: NVFP4 (SR)
Fwd: MXFP8
Bwd: MXFP8
Fwd: MXFP8
Bwd: NVFP4 (MS-EDEN)
Fwd: MXFP8
Bwd: NVFP4 (RHT + SR)
Fwd: MXFP8
Bwd: NVFP4 (SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: BF16
Fwd: NVFP4 (4/6 + 1D)
Bwd: MXFP8
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)

Fwd: NVFP4 (RHT + SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Training tokens (billions)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)
Training tokens (billions)

Training tokens (billions)
Training tokens (billions)
Figure 9: Our grid (Qwen3), data extrapolation, for the Quartet law. The law is fitted to all but the largest token budget and evaluated at the held-out 35.8B tokens.
Held-out: , MSE=
Ours
Calibration
Held-out
Fwd: BF16
Bwd: MXFP8

Fwd: BF16
Bwd: NVFP4 (MS-EDEN)
Fwd: MXFP8
Bwd: BF16
Fwd: BF16
Bwd: NVFP4 (RHT + SR)
Fwd: MXFP8
Bwd: MXFP8
Fwd: BF16
Bwd: NVFP4 (SR)
Fwd: MXFP8
Bwd: NVFP4 (MS-EDEN)
Fwd: MXFP8
Bwd: NVFP4 (RHT + SR)
Fwd: MXFP8
Bwd: NVFP4 (SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: BF16

Fwd: NVFP4 (4/6 + 1D)
Bwd: MXFP8
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (RHT + SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Training tokens (billions)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (MS-EDEN)
Training tokens (billions)

Training tokens (billions)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (RHT + SR)
Fwd: NVFP4 (4/6 + 1D)
Bwd: NVFP4 (SR)
Training tokens (billions)
Figure 10: Our grid (Qwen3), data extrapolation, for our law. The law is fitted to all but the largest token budget and evaluated at the held-out 35.8B tokens.
Held-out: , MSE=
fit (Quartet endpoints)
Calibration (280M–640M)
Held-out (910M)
Forward, first/last
Forward, middle
Backward, first/last
Backward, middle

NVFP4 fraction p
NVFP4 fraction p
NVFP4 fraction p
NVFP4 fraction p
(a) Quartet law endpoints
Held-out: , MSE=
fit (Ours endpoints)
Calibration (280M–640M)
Held-out (910M)
Forward, first/last
Forward, middle
Backward, first/last
Backward, middle

NVFP4 fraction p
NVFP4 fraction p
NVFP4 fraction p
NVFP4 fraction p
(b) Our law endpoints
Figure 11: Normalized increase in loss of layer-wise mixed-precision runs versus the fraction p of blocks in NVFP4, with endpoints and predicted by (a) the Quartet law and (b) our law. Solid curves show with fitted on the calibration runs, and dotted lines show linear interpolation ( ).
F LAYER-WISE MIXED-PRECISION FITS
Figure 11 plots the normalized increase in loss of each mixed-precision run against the fraction of blocks in NVFP4, along with the fitted prediction of Eq. 2, using the endpoints and predicted by the Quartet law and by our law. Blue points show the calibration runs used to fit , and red points show the runs on the held-out 910M model. Each legend reports the held-out and MSE in Figure 4, and each panel title reports the fitted and the held-out for that pass and strategy. With endpoints predicted by our law, the fitted predictions match the normalized losses more closely than with endpoints predicted by the Quartet law, with held-out of 0.979–0.997 versus 0.962–0.984 across panels.
G SOLVING THE COMPUTE-OPTIMAL ALLOCATION
The mixed loss in Eq. 3 combines the four uniform endpoint losses from Eq. 1, all evaluated at the same N and D, since a mixed configuration trains a single model on a single dataset. We write the cost in Eq. 4 as , where
is the training cost per parameter per token, which equals 6 for BF16. Since the loss decreases in , the budget constraint is tight at the optimum, so , and we solve
This problem does not admit a closed-form solution, since the endpoint losses have different optimal splits between parameters and data. We therefore solve it numerically, similar to Kumar et al. (2025, Appendix E.3), who solve a related compute-optimal problem via grid search. Specifically, we perform a grid search over and refine the best candidates with L-BFGS-B (Byrd et al., 1995), running it from multiple starting points and keeping the best solution, as in the fitting procedure of Hoffmann et al. (2022, Section 3.3).
H COMPUTE-OPTIMAL ALLOCATION UNDER OTHER MXFP8 SPEEDUPS
Figure 1 fixes the MXFP8 speedup over BF16 at , following the GEMM kernel speedup reported by NVIDIA Transformer Engine (NVIDIA, 2026), but end-to-end speedups can be lower in practice. Figure 12 shows the results with MXFP8 speedups of and . A lower MXFP8 speedup makes higher precision more expensive, so NVFP4 remains optimal up to larger compute budgets. The qualitative conclusions of Section 4.3 hold in all cases, as the optimal precision still increases with the compute budget and the backward pass retains NVFP4 up to larger budgets than the forward pass, while the optimal model size and tokens per parameter remain nearly unchanged.
I RELATED WORK
Kaplan et al. (2020) propose a coupled power law of the form , where the outer exponent couples the model and data terms and the inner data exponent is fixed to one. The Chinchilla scaling law (Hoffmann et al., 2022) takes the additive form , allowing separate exponents for model size and data but no interaction between their contributions. More recent work combines independent inner exponents with an outer coupling exponent in the form , empirically improving loss prediction across data regimes (Busbridge et al., 2025; Videau et al., 2026).
Table 2 summarizes existing laws that incorporate quantization or compression. For post-training quantization (PTQ), Kumar et al. (2025) add a degradation term to the Chinchilla law, where denotes the post-training precision. The degradation grows with the training token count and decreases with model size and precision. Cao et al. (2024) model mixed-precision PTQ by adding a degradation term , where is the fraction of parameters in low precision, chosen by random search, and is the block size. For quantized pretraining (QPT), Kumar et al. (2025) replace with the effective parameter count , where denotes the training precision and is a fitted constant. Frantar et al. (2025) generalize this rescaling to an effective parameter count that depends on the compression scheme. For quantization-aware training (QAT), Chen et al. (2025) add an error term that also depends on the quantization group size . Panferov et al. (2026b) predict parameter efficiency from the representation error of the compression scheme, where measures the error of fitting Gaussian data using the forward scheme and maps this error to parameter efficiency. Finally, the Quartet law (Castro et al., 2026) rescales both the parameter count and the training token count, with depending on the forward scheme and on the backward scheme.

Optimal model size
Backward NVFP4 fraction
Tokens per parameter
Compute budget (BF16-equivalent FLOPs)
Compute budget (BF16-equivalent FLOPs)
(a) MXFP8 speedup
Forward NVFP4 fraction

Optimal model size
Backward NVFP4 fraction
Tokens per parameter
Compute budget (BF16-equivalent FLOPs)
Compute budget (BF16-equivalent FLOPs)
(b) MXFP8 speedup
Figure 12: Compute-optimal precision allocation predicted by our scaling law, as in Figure 1, with the MXFP8 speedup over BF16 set to (a) and (b) instead of .