training

Scaling Laws

A scaling law answers a resource question—not “how large should every model be?”

Published 2026-04-08 · Updated 2026-10-28
On this page

Training compute can buy a larger model, a longer training stream, or a better recipe. These choices compete. A scaling law estimates their trade-off from controlled smaller runs. It is useful only when its variables, objective and extrapolation range match the proposed run.

Start with pretraining allocation. Then account for finite novelty and deployment cost. The later decomposition and coupled-surface sections explain why one fitted power law can hide several bottlenecks.

Start with the objective

Training-compute optimality means the lowest validation loss for a fixed training FLOP budget. Deployment optimality may accept more training to reduce recurring inference cost. A downstream reasoning score, a weighted domain NLL suite and general text NLL are also different objectives.

Do not call a run inefficient without saying which cost and outcome you are comparing. A small, heavily trained model can be off the pretraining frontier and still be the better product choice.

Name the quantities before fitting

Keep the units and parameter convention consistent
SymbolMeaningImportant distinction
NModel parametersTotal versus non-embedding; active versus stored for MoE
DProcessed training tokens in the allocation lawNot necessarily unique tokens
U_DUnique useful tokensDeduplication and source quality affect novelty
CTraining FLOPsNot elapsed time or dollars
B, T, KBatch samples, optimizer steps, processed samples K=BTConvert sequences to tokens explicitly
EFitted constant loss floorNot measured entropy of an ideal distribution
C≈6NDC\approx 6ND
Dense-transformer first approximation: about 2ND forward and 4ND backward FLOPs.

Attention length, embeddings, recomputation and other operations change this accounting. Optimizer and communication overhead change elapsed time. For MoE, active parameters approximate arithmetic, while total parameters affect memory and stored capacity. See Distributed Training → and MoE →.

Read a power law above its floor

L(x)=E+Ax−αlog⁡(L−E)=log⁡A−αlog⁡x\begin{aligned}L(x)&=E+Ax^{-\alpha}\\\log(L-E)&=\log A-\alpha\log x\end{aligned}
A>0 and α>0; the straight line is reducible loss, not total loss.

A multiplicative scale increase gives a predictable fractional reduction in the reducible term. Absolute improvement diminishes. Very small runs can be noisy or unstable; very large runs can hit data or objective saturation. Fit the regime supported by observations, not all points automatically.

Two explanations are useful hypotheses. A structured data manifold can permit progressively finer approximation with capacity. A heavy-tailed distribution of skills can make common patterns arrive early and rare patterns arrive late. Neither is a settled universal mechanism. The quantization model makes the second idea explicit.

For a pure reducible power f(x)=Ax−αf(x)=Ax^{-\alpha}, rescaling x by λ>0 multiplies f by λ−α\lambda^{-\alpha}. Power laws have long tails, scale invariance and simple resource algebra. They are useful first models, not a guarantee against characteristic scales or exponential saturation.

2020: capacity and sample efficiency

Kaplan et al. observed smooth loss scaling with model size, data and compute. Larger models were more sample-efficient. Their compute-allocation summary puts more growth into capacity: N∗∝C0.73N^*\propto C^{0.73}, D∗∝C0.27D^*\propto C^{0.27}.

A tenfold compute increase therefore gives about 5.4× parameters and 1.9× tokens under that fitted regime. This encouraged large models trained on relatively short streams. It is a result of a recipe and fitting method, not a constant of nature. Kaplan et al. ↗

2022: balance capacity and tokens

L(N,D)=E+AN−α+BD−βL(N,D)=E+AN^{-\alpha}+BD^{-\beta}
An additive model of capacity and data limitations.

Chinchilla used fixed-size training curves, equal-compute sweeps and a joint parametric fit. Its empirical conclusion was much closer to equal growth in parameters and tokens. Many preceding large models had too few tokens for their training compute.

The familiar D≈20N rule gives 20B tokens for 1B parameters, 140B for 7B, and 1.4T for 70B. It is an approximate reference from that study. Different fits need not preserve a constant ratio. Hoffmann et al. ↗

Derive the fixed-compute optimum

D=C6NL(N)=E+AN−α+B(C6)−βNβ\begin{aligned}D&=\frac{C}{6N}\\L(N)&=E+AN^{-\alpha}+B\left(\frac C6\right)^{-\beta}N^\beta\end{aligned}
A larger model leaves fewer tokens under the same compute.

Differentiate with respect to N. At an interior optimum, αAN−α=βBD−β\alpha AN^{-\alpha}=\beta BD^{-\beta}. The weighted reducible terms balance, not necessarily the raw terms or token/parameter counts.

N∗=(αAβB)1α+β(C6)βα+βD∗=(βBαA)1α+β(C6)αα+β\begin{aligned}N^*&=\left(\frac{\alpha A}{\beta B}\right)^{\frac1{\alpha+\beta}}\left(\frac C6\right)^{\frac\beta{\alpha+\beta}}\\D^*&=\left(\frac{\beta B}{\alpha A}\right)^{\frac1{\alpha+\beta}}\left(\frac C6\right)^{\frac\alpha{\alpha+\beta}}\end{aligned}
Requires positive amplitudes/exponents and the stated unconstrained dense cost model.

When α≈β\alpha\approx\beta, both exponents approach one half. If α≠β\alpha\ne\beta, D∗N∗\frac{D^*}{N^*} varies as Cα−βα+βC^{\frac{\alpha-\beta}{\alpha+\beta}}. Memory limits, discrete architectures and a finite corpus can move the feasible optimum to a boundary.

Small allocation implementation
def allocate(C, A, B, alpha, beta):
    N = (alpha*A/(beta*B))**(1/(alpha+beta))
    N *= (C/6)**(beta/(alpha+beta))
    return N, C/(6*N)

Positive inputs only; units must match the fitted amplitudes. This does not estimate A, B or the exponents.

Move along an equal-compute curve

More capacity means fewer tokens

Move the chosen allocation; inspect loss at a fixed normalized budget.

D: normalized token units111010100100N: normalized parameter units

N=10.000, D=10.000, 6ND=600. Loss=1.7962; best on this curve=1.7962 at N=D=10. Blue: chosen point; gold ring: optimum.

Assigned A=B=1A=B=1, α=β=0.4\alpha=\beta=0.4, E=1E=1. Both axes are logarithmic. Units are normalized, not billions of real parameters or tokens. The outer exponent k=1k=1 changes loss, not this fixed-inner-parameter optimum.

Why fitted frontiers disagree

Kaplan and Chinchilla used different scale ranges, training schedules, extrapolation procedures and parameter conventions. Embeddings are a large share of small models. Counting total versus non-embedding parameters changes a proxy fit; it is not a full explanation of all disagreement.

A small slope error becomes large across several orders of magnitude. Later reconciliation and replication studies are useful checks on methodology. Compare several fitting views, consistent parameter counts and a larger held-out run before choosing a final allocation.

Convert compute into a first budget

Approximate arithmetic examples, not feasibility guarantees
QuestionCalculationResult
7B parameters, 1T tokens6×7×109×10126\times7\times10^9\times10^{12}4.2×10224.2\times10^{22} FLOPs
102310^{23} FLOPs, 10B parametersD=C6ND=\frac{C}{6N}1.67T tokens
102310^{23} FLOPs under D≈20ND\approx20NN≈C120N\approx\sqrt{\frac{C}{120}}28.9B parameters; 577B tokens
64 GPUs, 30 days, 989 TFLOP/s peak, utilization 0.35C=n tseconds Fpeak uC=n\,t_{\rm seconds}\,F_{\rm peak}\,u5.74×10225.74\times10^{22} FLOPs; about 21.9B parameters and 438B tokens under the rule

The final row multiplies GPU count, elapsed seconds, per-GPU peak FLOP/s and utilization. Use realized training throughput and recovery overhead. A peak spec times an assumed utilization is only a scenario. The original note used 5.75×10225.75\times10^{22} FLOPs. Direct multiplication gives 5.74221312×10225.74221312\times10^{22} FLOPs, rounded to three significant figures in this table. Both allocations round to about 21.9B parameters and 438B tokens. Long context and sparse hardware behavior require a more detailed accounting model.

Count novelty separately from exposure

D=UD(1+RD)D′=UD[1+rD(1−e−RD/rD)]\begin{aligned}D&=U_D(1+R_D)\\D'&=U_D\left[1+r_D\left(1-e^{-R_D/r_D}\right)\right]\end{aligned}
R_D counts extra passes after the first; r_D is fitted, not a universal epoch cap.

A 2T-token unique corpus seen three times has R_D=2 and D=6T. It does not contain 6T unique tokens. For small repeats the effective-data law initially behaves like extra data. At large repeats it approaches UD(1+rD)U_D(1+r_D).

Muennighoff et al. also discount excess model capacity relative to the compute-optimal model for the unique corpus: RN=NUN−1R_N=\frac{N}{U_N}-1. Their fitted law uses effective N′ and D′ rather than raw counts. The model-size discount applies in its defined excess-capacity regime; a negative excess ratio is not a repetition amount. Data-constrained language models ↗

L^(N,D)=E+A(N′)−α+B(D′)−β\widehat L(N,D)=E+A(N\prime)^{-\alpha}+B(D\prime)^{-\beta}
N′ and D′ are the fitted effective capacity and data, not raw parameter and exposure counts. This discounted law models saturation, not an explicit worsening penalty.

Watch repeated tokens lose marginal value

An extra pass is not an extra corpus

Both bars use the same fixed linear scale.

Raw versus discounted token unitsRaw: 3Effective: 2.574; ceiling 5

U=1, r_D=4, R=2. Marginal effective tokens per extra pass: exp⁡(−R/4)\exp(-R/4)=0.607. No repetition gives D′=1. The ceiling is 1+4=5, not unlimited growth.

This is the assigned exponential-discount model, not a measured corpus or an overfitting curve. It can saturate; it cannot by itself make validation loss rise.

Model memorization without extrapolating forever

L^=E+AN−α+B[UD(1+RD)]−β+PRDδ(NUD)κ\widehat L=E+AN^{-\alpha}+B[U_D(1+R_D)]^{-\beta}+P R_D^\delta\left(\frac N{U_D}\right)^\kappa
A different proposed law: improvement from raw exposure competes with an explicit penalty.

The final term grows with repetition and capacity relative to unique data. It can represent a local validation-loss turn upward, unlike effective-data saturation alone. P, δ and κ must be fitted. It is not an established identity or a law that every large model must overfit faster.

A positive unbounded power penalty predicts divergent loss for unlimited repetitions. Do not extrapolate that limit as fact. Compare saturation and overfitting forms on held-out repeated-data runs. Regularization can change the fitted behavior, but stronger decay can also underfit or damage rare knowledge.

Make repetition source-specific

Track source-level passes, exact and near duplicates, semantic redundancy, validation loss by domain and target coverage. Mathematical proofs, boilerplate, code templates and benchmark-like items have different novelty and contamination risks. Their useful epoch limits must be measured, not inferred from the labels alone.

Data-constrained means constrained by quality, diversity, rights, deduplication and coverage—not only bytes. “Clean data shifts the curve” is a hypothesis to test under a fixed evaluation. A global token count can conceal a few heavily repeated sources.

Nanbeige’s original report describes a 12.5T filtered pool, a 6.5T higher-quality subset repeated for at least two passes, and a 23T final stream. It deliberately changes the mixture during FG-WSD. That is a joint data/schedule intervention, not evidence that repeating any 6.5T corpus will have the same effect. Complete pipeline →

Tune weight decay together with repetition and model size rather than treating its effect as independent. Compare data quality at fixed N, raw D and evaluation. A higher D/N can reflect useful diverse exposure or low-novelty repetition; the ratio alone cannot distinguish them. Data mixture objectives → · Duplicate and memorization controls →

Change the objective, not the meaning of optimal

Training:min⁡N,DL(N,D),6ND≤CtrainLifecycle:min⁡N,D[6ND+cinfer(N,context,batch)Q]subject to L(N,D)≤Ltarget\begin{aligned}\text{Training:}\quad&\min_{N,D}L(N,D),\quad 6ND\le C_{\rm train}\\\text{Lifecycle:}\quad&\min_{N,D}\left[6ND+c_{\rm infer}(N,\text{context},\text{batch})Q\right]\\&\text{subject to }L(N,D)\le L_{\rm target}\end{aligned}
Q is expected served work. Actual serving cost is not simply parameter count.

Training is paid once; inference recurs. A smaller model trained longer can reach a useful quality target at lower lifecycle cost. Extra tokens beyond the pretraining frontier may still help; they are less efficient than changing capacity under that particular training-only budget.

The rough phrase “training cost ≈ inference cost” is not an optimality theorem. The optimum depends on marginal costs, demand, latency, hardware and the loss surface. Overtraining describes a reference comparison, not a promise of improved quality or a diagnosis of harmful overfitting.

Deployment constraints can change the feasible optimum
ConstraintWhat to measureWhy parameter count is insufficient
LatencyPrefill and decode latency at the intended batch/contextSerial depth and kernel utilization change runtime
Memory / local deploymentWeights, KV cache and peak working memoryMoE active count omits stored experts
Recurring demandExpected served work over the deployment lifetimeTraining is paid once; serving repeats
AdaptationFine-tuning quality and cost at matched dataHeavy pretraining is not a universal adaptation gain

These are constraints to test, not guaranteed benefits of more tokens. Serving economics → · Small and on-device recipes →

Read heavy-training examples with their denominators

Reported training densities retained from the atlas; not controlled cross-model comparisons
Model / regimeReported tokens and denominatorInterpretation
Llama 3 8B15×10128×109≈1,875\frac{15\times10^{12}}{8\times10^9}\approx1{,}875 TPPFar beyond the rough 20 TPP reference; original report discussion quotes ≈200B compute-optimal tokens
DeepSeek-V314.8×101237×109=400\frac{14.8\times10^{12}}{37\times10^9}=400 active TPPActive TPP is not a fitted dense-model optimum
GLM-4.523×101232×109≈719\frac{23\times10^{12}}{32\times10^9}\approx719 active TPPStored capacity and serving behavior differ
MAI100–200 TPP ablations; 500–1,000 productionTraining density can change architecture rankings
Nanbeige4-3B23×10123×109≈7,667\frac{23\times10^{12}}{3\times10^9}\approx7{,}667 TPPA small dense model with exceptional training investment
Qwen336T across a staged familyDo not assign one family-wide TPP without a size/stage denominator

The Llama 3 discussion reports continuing improvement at very high token density and motivates smaller models through inference efficiency. This is not indefinite linear improvement or proof that every benchmark tracks NLL. Nanbeige’s targeted reasoning strengths also do not mean a 3B model universally beats larger models.

The Smol Training Playbook treats scaling laws as planning priors for useful small models. Epoch AI’s 2025 trend analysis reports rising tokens per active parameter and roughly 20× the Chinchilla reference in recent open models—about 400 TPP if the comparison starts at 20. These historical observations are not today’s measured ecosystem-wide ratio.

Meta Llama 3 announcement ↗ · DeepSeek-V3 report ↗ · GLM-4.5 report ↗ · Qwen3 report ↗ · Epoch AI: August 2025 trend ↗

TPP means tokens per parameter. Dense TPP is DN\frac DN; active TPP is DNact\frac D{N_{\rm act}}. GLM’s 23T is a multi-stage budget. Family/stage totals are not necessarily the same exposure for every released checkpoint.

Include the rest of the train–infer–think pipeline

A pretraining fit does not price continued pretraining, context extension, SFT, RL or reasoning tokens. High TPP can mean useful diversity or repeated low-novelty content. It does not reveal which. Long-context serving also includes cache and attention costs, not only active parameter FLOPs.

Overtraining may change adaptability; post-training behavior needs separate measurements. Choose a base model for the complete pipeline. A reasoning-time compute objective is different from minimizing pretraining NLL under 6ND. Keep those studies separate before combining their costs.

The named studies ask different questions. Sardana et al. add deployment demand to model/data allocation. Gadre et al. study overtrained loss and downstream-task prediction. Train-to-Test scaling jointly budgets model size, training tokens and repeated inference samples. Each empirical scope is distinct; none proves that a high TPP always improves adaptation.

Beyond Chinchilla-Optimal ↗ · Gadre et al.: overtraining and downstream tasks ↗ · Test-Time Scaling Makes Overtraining Compute-Optimal ↗ · Reasoning and test-time budgets →

Decompose the loss before proposing a law

Su Jianlin inserts idealized training optima between achieved training loss and target-distribution loss. Let L_target be achieved target loss; L_train achieved training loss; L_best the architecture’s best training loss; and L_∞ the unrestricted training floor.

Ltarget=(Ltarget−Ltrain)+(Ltrain−Lbest)+(Lbest−L∞)+L∞L_{\rm target}=(L_{\rm target}-L_{\rm train})+(L_{\rm train}-L_{\rm best})+(L_{\rm best}-L_\infty)+L_\infty
Exact telescoping identity: data/generalization difference + optimization gap + architecture gap + training floor.

The identity is exact if these quantities are defined consistently. Its power-law parameterizations are hypotheses. Under nested feasible classes and true global optima, the architecture and optimization gaps are nonnegative. The target-minus-training difference need not be: a target distribution can be easier than the training set. The original general nonnegative-gap claim needed this correction.

The training floor depends on the training distribution and class convention. It is not automatically the irreducible entropy of the inaccessible ideal distribution. These gaps interact: architecture affects optimization and generalization. They are not independently measurable causes simply because they sum to loss. Deconstructing scaling laws ↗

Build the accounting identity

Add differences between nested losses

Use the signed alternative to see why the identity does not imply positive generalization.

Floor → architecture → optimization → dataSum so far: 0.0

No components added yet.

Assigned training loss 2.2, best architecture loss 1.8, unrestricted training floor 1.4; target loss 2.5. The target distribution is harder: the data difference is +0.3. These optima are conceptual in real neural training; the bars are not measured independent causes.

One algebraic pattern connects the trade-offs

f(x)=axp+bx−qx∗=(bqap)1p+qf(x∗)=(p+q)(aqbpppqq)1p+q\begin{aligned}f(x)&=ax^p+bx^{-q}\\x^*&=\left(\frac{bq}{ap}\right)^{\frac1{p+q}}\\f(x^*)&=(p+q)\left(\frac{a^qb^p}{p^pq^q}\right)^{\frac1{p+q}}\end{aligned}
All coefficients, exponents and x positive. Differentiate or apply weighted AM–GM.

At the optimum, paxp=qbx−qpax^p=qbx^{-q}. The increasing and decreasing contributions balance after weighting by slopes. Power-law inputs can therefore produce power-law optimal allocations. This mathematical closure explains recurring formulas; it does not establish that the proposed input terms describe training.

Balance travel and update precision

Fopt≈a1(Tη)−γ1+a2B−γ2+a3ηγ3η∗=(γ1a1T−γ1γ3a3)1γ1+γ3\begin{aligned}F_{\rm opt}&\approx a_1(T\eta)^{-\gamma_1}+a_2B^{-\gamma_2}+a_3\eta^{\gamma_3}\\\eta^*&=\left(\frac{\gamma_1a_1T^{-\gamma_1}}{\gamma_3a_3}\right)^{\frac1{\gamma_1+\gamma_3}}\end{aligned}
Heuristic terms: insufficient progress, batch noise and update/discretization error.

More steps or a larger rate reduce the first term; an overly large rate increases the third. After optimizing η, combine the travel and update terms.

η∗∝T−γ1γ1+γ3Fopt∗≈a~1T−γ~1+a2B−γ2γ~1=γ1γ3γ1+γ3\begin{aligned}\eta^*&\propto T^{-\frac{\gamma_1}{\gamma_1+\gamma_3}}\\F_{\rm opt}^*&\approx\widetilde a_1T^{-\widetilde\gamma_1}+a_2B^{-\gamma_2}\\\widetilde\gamma_1&=\frac{\gamma_1\gamma_3}{\gamma_1+\gamma_3}\end{aligned}
Positive fitted coefficients and exponents; the collapsed coefficient absorbs the optimized rate terms.

A longer horizon changes the derived frontier.

Longer runs permit a smaller optimal rate under this model. A fully tuned frontier need not retain η as an independent fit variable. This is not a guarantee that a real optimizer has these terms or remains stable at the derived rate. Optimization and joint batch/LR experiments →

K means processed samples, not unique data

K=BT,T=KBFopt∗≈a~1(BK)γ~1+a2B−γ2B∗∝Kγ~1γ~1+γ2\begin{aligned}K&=BT,\qquad T=\frac KB\\F_{\rm opt}^*&\approx\widetilde a_1\left(\frac BK\right)^{\widetilde\gamma_1}+a_2B^{-\gamma_2}\\B^*&\propto K^{\frac{\widetilde\gamma_1}{\widetilde\gamma_1+\gamma_2}}\end{aligned}
A fixed exposure budget trades more precise gradients for fewer optimizer updates.

If γ1=γ3=1\gamma_1=\gamma_3=1 and γ2=12\gamma_2=\frac12, then γ~1=12\widetilde\gamma_1=\frac12, B∗∝K1/2B^*\propto K^{1/2}, η∗∝K−1/4\eta^*\propto K^{-1/4}, and the optimized gap scales as K−1/4K^{-1/4}. The last rate result uses T=KB∗T=\frac{K}{B^*}; it does not hold at fixed B automatically.

For 1,000,000 processed sequences, B=100 gives T=10,000; B=1,000 gives T=1,000. K is unchanged. If each sequence has S fixed tokens, total processed tokens are SK. With variable lengths, sum actual valid tokens. Repeated examples count again in K, but not in unique data.

Agreement with empirical exponents is suggestive, not confirmation of the mechanism. Tune on controlled proxy runs and test a near-optimal region instead of using this as an uncalibrated batch recommendation.

Fopt∗∝K−γ~1γ2γ~1+γ2F_{\rm opt}^*\propto K^{-\frac{\widetilde\gamma_1\gamma_2}{\widetilde\gamma_1+\gamma_2}}
Requires jointly optimized rate and batch under fixed processed samples. It is not a claim for an arbitrary fixed batch.

Model size also changes the optimization terms

The preceding batch derivation holds architecture fixed. The loss-decomposition blog then lets N change the three coefficients, while holding the exponents fixed. This is a hypothesis, not proof that larger models necessarily introduce more gradient noise.

Fopt≈a1N−γ5(Tη)−γ1+a2Nγ6B−γ2+a3Nγ7ηγ3ηT∗=(γ1a1γ3a3)1γ1+γ3T−γ1γ1+γ3N−γ5+γ7γ1+γ3Δ=γ1γ3+γ2(γ1+γ3)η∗∝K−γ1γ2/ΔN[γ1γ6−γ7(γ1+γ2)−γ5γ2]/ΔB∗∝Kγ1γ3/ΔN[γ6(γ1+γ3)+γ5γ3−γ7γ1]/ΔFopt∗∝K−γ1γ2γ3/ΔN[γ1γ2γ7+γ1γ3γ6−γ2γ3γ5]/Δ\begin{aligned}F_{\rm opt}&\approx a_1N^{-\gamma_5}(T\eta)^{-\gamma_1}+a_2N^{\gamma_6}B^{-\gamma_2}+a_3N^{\gamma_7}\eta^{\gamma_3}\\\eta_T^*&=\left(\frac{\gamma_1a_1}{\gamma_3a_3}\right)^{\frac1{\gamma_1+\gamma_3}}T^{-\frac{\gamma_1}{\gamma_1+\gamma_3}}N^{-\frac{\gamma_5+\gamma_7}{\gamma_1+\gamma_3}}\\\Delta&=\gamma_1\gamma_3+\gamma_2(\gamma_1+\gamma_3)\\\eta^*&\propto K^{-\gamma_1\gamma_2/\Delta}N^{[\gamma_1\gamma_6-\gamma_7(\gamma_1+\gamma_2)-\gamma_5\gamma_2]/\Delta}\\B^*&\propto K^{\gamma_1\gamma_3/\Delta}N^{[\gamma_6(\gamma_1+\gamma_3)+\gamma_5\gamma_3-\gamma_7\gamma_1]/\Delta}\\F_{\rm opt}^*&\propto K^{-\gamma_1\gamma_2\gamma_3/\Delta}N^{[\gamma_1\gamma_2\gamma_7+\gamma_1\gamma_3\gamma_6-\gamma_2\gamma_3\gamma_5]/\Delta}\end{aligned}
Positive coefficients and positive decay exponents; K=BT. The optimum treats rate and batch as continuous, unconstrained variables.

The first rate optimum holds T and B fixed. The later expressions jointly optimize rate and batch at fixed K. At that joint optimum, each reduction balances its opposing cost. Requiring both optimal batch and optimal gap to be independent of N gives the following conditional simplification.

γ3γ5=γ1γ7,γ6=0γ1=γ3=1,γ2=12⟹η∗∝K−1/4N−γ7,B∗∝K1/2,Fopt∗∝K−1/4\begin{aligned}\gamma_3\gamma_5&=\gamma_1\gamma_7,\qquad\gamma_6=0\\\gamma_1=\gamma_3&=1,\quad\gamma_2=\tfrac12\quad\Longrightarrow\\\eta^*&\propto K^{-1/4}N^{-\gamma_7},\qquad B^*\propto K^{1/2},\qquad F_{\rm opt}^*\propto K^{-1/4}\end{aligned}
Size independence is an extra assumption, not an empirical conclusion from this derivation.

The rate can still depend on size when batch and optimized gap do not. Assigning γ7=0.25\gamma_7=0.25 gives the ratios below. These are normalized illustrations, not measured tuning results.

Conditional model: change one resource by 16×; other resource and coefficients fixed
ChangeRate ratioBatch ratioOptimization-gap ratio
Processed samples K ×160.540.5
Parameters N ×160.511

Integer batches, memory limits, stable-rate ranges and schedules can move the optimum to a boundary. Calibrate the hypothesis on controlled runs before using it.

Allocate width and depth under a parameter budget

Farch≈aWW−γW+aHH−γH,N∝W2HW∗∝NγHγW+2γHH∗∝NγWγW+2γHFarch∗∝N−γWγHγW+2γH\begin{aligned}F_{\rm arch}&\approx a_WW^{-\gamma_W}+a_HH^{-\gamma_H},\qquad N\propto W^2H\\W^*&\propto N^{\frac{\gamma_H}{\gamma_W+2\gamma_H}}\\H^*&\propto N^{\frac{\gamma_W}{\gamma_W+2\gamma_H}}\\F_{\rm arch}^*&\propto N^{-\frac{\gamma_W\gamma_H}{\gamma_W+2\gamma_H}}\end{aligned}
An additive width/depth hypothesis under transformer-like counting.

With both exponents one, width and depth scale as N1/3N^{1/3}, and the gap as N−1/3N^{-1/3}. This derives a shape rule from assumptions, not a proof of universally optimal transformer shapes. Kernels, depth stability, attention/FFN ratios and memory change the feasible architecture.

Balance optimized training and architecture

F≈a^1K−γ^1+a4N−γ4,C∝NKN∗∝Cγ^1γ^1+γ4,K∗∝Cγ4γ^1+γ4F∗∝C−γ^1γ4γ^1+γ4\begin{aligned}F&\approx\widehat a_1K^{-\widehat\gamma_1}+a_4N^{-\gamma_4},\qquad C\propto NK\\N^*&\propto C^{\frac{\widehat\gamma_1}{\widehat\gamma_1+\gamma_4}},\qquad K^*\propto C^{\frac{\gamma_4}{\widehat\gamma_1+\gamma_4}}\\F^*&\propto C^{-\frac{\widehat\gamma_1\gamma_4}{\widehat\gamma_1+\gamma_4}}\end{aligned}
The constant cost factor is suppressed in these proportionalities.

Using γ^1=14\widehat\gamma_1=\frac14 and γ4=13\gamma_4=\frac13 gives N∗∝C3/7N^*\propto C^{3/7}, K∗∝C4/7K^*\propto C^{4/7} and F∗∝C−1/7F^*\propto C^{-1/7}. The near-equal allocation resembles Chinchilla. It does not prove that Chinchilla’s fitted data term is this optimization gap.

The same conditional model also predicts how tuning changes along this compute frontier. Substitute the optimized size and exposure into the preceding rate and batch laws.

η∗∝(C4/7)−1/4(C3/7)−γ7=C−1+3γ77B∗∝(C4/7)1/2=C2/7T∗=K∗B∗∝C2/7\begin{aligned}\eta^*&\propto (C^{4/7})^{-1/4}(C^{3/7})^{-\gamma_7}=C^{-\frac{1+3\gamma_7}{7}}\\B^*&\propto (C^{4/7})^{1/2}=C^{2/7}\\T^*&=\frac{K^*}{B^*}\propto C^{2/7}\end{aligned}
Requires the preceding size-independence assumptions, selected exponents and fixed dense cost per processed sample.

With the assigned size exponent 0.25, a 128× compute increase gives the following ratios. Each row changes jointly; these are not independent hyperparameter sweeps.

Synthetic compute-frontier example; compare each quantity with its starting value
QuantityRatio at compute ×128
Parameters N8
Processed samples K16
Batch B4
Optimizer steps T4
Learning rate η≈0.2973
Combined optimization + architecture gap0.5

The compute factor must stay constant across runs. Sequence length, attention cost, sparse routing, utilization and wall-clock overhead can invalidate that condition. A fitted learning-rate exponent also depends on the optimizer and schedule. This calculation is not a universal scaling recipe.

Stored capacity does not replace active computation

Farch≈a4Nact−γactNtotal−γtotal+a8Nact−γ8S=NtotalNactFproduct=a4Nact−(γact+γtotal)S−γtotal\begin{aligned}F_{\rm arch}&\approx a_4N_{\rm act}^{-\gamma_{\rm act}}N_{\rm total}^{-\gamma_{\rm total}}+a_8N_{\rm act}^{-\gamma_8}\\S&=\frac{N_{\rm total}}{N_{\rm act}}\\F_{\rm product}&=a_4N_{\rm act}^{-(\gamma_{\rm act}+\gamma_{\rm total})}S^{-\gamma_{\rm total}}\end{aligned}
The second term prevents unlimited inactive storage from replacing all active work.

Without the active-capacity penalty, a simplistic product law can make pathological trade-offs between stored capacity and active computation. At fixed N_act, increasing sparsity adds stored capacity, but it also changes routing, communication, imbalance, utilization and memory.

Neff=Nactγactγact+γtotalNtotalγtotalγact+γtotalFproduct=a4Neff−(γact+γtotal)\begin{aligned}N_{\rm eff}&=N_{\rm act}^{\frac{\gamma_{\rm act}}{\gamma_{\rm act}+\gamma_{\rm total}}}N_{\rm total}^{\frac{\gamma_{\rm total}}{\gamma_{\rm act}+\gamma_{\rm total}}}\\F_{\rm product}&=a_4N_{\rm eff}^{-(\gamma_{\rm act}+\gamma_{\rm total})}\end{aligned}
A weighted geometric mean under the positive-exponent product model; it does not absorb the active-capacity penalty.

This equivalent count rewrites the product term as a dense-shaped power law. It is not a measured equivalence between two architectures. If γact=γtotal\gamma_{\rm act}=\gamma_{\rm total}, the expression reduces to Neff=NactNtotalN_{\rm eff}=\sqrt{N_{\rm act}N_{\rm total}}. Assigned active/total counts of 4/36 give Neff=12N_{\rm eff}=12. The same product term can therefore occur at different active costs. The extra active-capacity penalty breaks that equivalence for the full gap. Routing and hardware costs remain separate.

PKM, UltraMem, Over-Encoding and Engram can be viewed as sparse retrieval capacity: select a few stored vectors instead of computing every weight. This analogy is not architectural identity. Under fixed active compute and memory, experts and retrieval can have an interior allocation if their distinct marginal improvements justify it. The exact additive model remains a hypothesis. Routing, balancing and expert parallelism →

Divide storage between experts and memory

The preceding sparse-capacity model leaves an allocation question open. At fixed active work and total storage, should extra parameters be inactive experts or retrieved vectors? Su Jianlin proposes separate power-law terms for these two sources of capacity. This is a modeling hypothesis, not evidence that any fixed mixture wins.

First count each component once. A counts dense parameters plus active experts; X counts inactive experts; M counts stored memory vectors. These are parameter counts, not bytes. In this model, A excludes retrieved vectors because they do not perform an expert matrix multiplication. Retrieval, selection and fusion still require real computation.

Nact=A,Ntotal=A+X+MNmoe=A+X,Nmem=A+MNmoe+Nmem=Ntotal+Nact=S\begin{aligned}N_{\rm act}&=A,\qquad N_{\rm total}=A+X+M\\N_{\rm moe}&=A+X,\qquad N_{\rm mem}=A+M\\N_{\rm moe}+N_{\rm mem}&=N_{\rm total}+N_{\rm act}=S\end{aligned}
N_moe excludes memory; N_mem excludes inactive experts. Both include the active base A, so their sum counts that base twice.
One storage budget: 24 unitsA = 8X = 12M = 4Expert-side count: A + X = 20Memory-side count: A + M = 12
Original counting diagram with assigned units, not a model measurement. The two lower rows share A; they are not disjoint allocations.

Fixing A makes the active-capacity penalty constant. The proposed architecture gap then reduces to two decreasing terms. Moving storage toward one term reduces the other term's capacity.

Farch≈a4aA−γactNmoe−p+a4bA−γactNmem−q+a8A−γ8=c+aNmoe−p+bNmem−qNmoe=xS,Nmem=(1−x)Sf(x)=a~x−p+b~(1−x)−q,a~=aS−p,b~=bS−q\begin{aligned}F_{\rm arch}&\approx a_{4a}A^{-\gamma_{\rm act}}N_{\rm moe}^{-p}+a_{4b}A^{-\gamma_{\rm act}}N_{\rm mem}^{-q}+a_8A^{-\gamma_8}\\&=c+aN_{\rm moe}^{-p}+bN_{\rm mem}^{-q}\\N_{\rm moe}&=xS,\qquad N_{\rm mem}=(1-x)S\\f(x)&=\widetilde a x^{-p}+\widetilde b(1-x)^{-q},\quad\widetilde a=aS^{-p},\quad\widetilde b=bS^{-q}\end{aligned}
Positive coefficients and exponents. At fixed A, absorb its factor into a,b and its penalty into c. S is held fixed.

The fixed-sum constraint differs from the earlier fixed-compute product constraint. Differentiation balances the marginal improvements, not the two losses themselves.

f′(x)=−pa~x−p−1+qb~(1−x)−q−1xp+1(1−x)q+1=pa~qb~\begin{aligned}f'(x)&=-p\widetilde a x^{-p-1}+q\widetilde b(1-x)^{-q-1}\\\frac{x^{p+1}}{(1-x)^{q+1}}&=\frac{p\widetilde a}{q\widetilde b}\end{aligned}
The ratio on the left increases strictly from zero to infinity on (0,1). It has one unconstrained root, found by bisection.

Physical counts add a restriction: AS≤x≤1−AS\frac AS\le x\le1-\frac AS. Neither side can contain fewer than the active base. The unconstrained root can fall outside this interval. In that case the feasible optimum is an endpoint: all additional storage goes to one component. An interior mixture is therefore possible, not guaranteed.

For equal exponents p=qp=q, the unconstrained root has a closed form: x∗=r1+r,r=(a/b)1/(p+1)x^*=\frac{r}{1+r},\quad r=(a/b)^{1/(p+1)}. For unequal exponents, solve the monotone equation numerically. Real expert counts are discrete; evaluate feasible neighbors around a continuous prediction.

Synthetic fixed-sum example: A=8, total=24, p=q=1, a=25, b=9; omit constant c
Extra storageN_moeN_mem25Nmoe+9Nmem\frac{25}{N_{\rm moe}}+\frac9{N_{\rm mem}}
All memory: X=0, M=168243.5000
Mixture: X=12, M=420122.0000
All inactive experts: X=16, M=02482.1667

Here r=53r=\frac53 gives x=58x=\frac58 within the feasible interval [14,34][\frac14,\frac34]. The mixture is best under these assigned coefficients. Changing the coefficients can move the optimum to a boundary. Fit these terms with controlled architecture experiments before using the prediction. Equal parameter counts also need not mean equal memory bytes or runtime. Source: memory-layer hypothesis ↗

A local repetition penalty gives a fragile epoch rule

Fdata≈a9U−γ9+a10(KU)γ10Fopt∗≈a^1K−γ^1K∗∝Uγ10γ^1+γ10,K∗U∝U−γ^1γ^1+γ10\begin{aligned}F_{\rm data}&\approx a_9U^{-\gamma_9}+a_{10}\left(\frac KU\right)^{\gamma_{10}}\\F_{\rm opt}^*&\approx\widehat a_1K^{-\widehat\gamma_1}\\K^*&\propto U^{\frac{\gamma_{10}}{\widehat\gamma_1+\gamma_{10}}},\qquad\frac{K^*}U\propto U^{-\frac{\widehat\gamma_1}{\widehat\gamma_1+\gamma_{10}}}\end{aligned}
U denotes unique samples here, avoiding the overloaded D in the original decomposition.

This particular model predicts more optimal epochs for a smaller corpus. Other empirical work gives the opposite trend. Its unbounded repetition penalty is also implausible as a universal limit. Constraints such as requiring at least one full pass can clip its optimum. Keep it as a local testable hypothesis, not an epoch policy.

G(K,U)=aK−s+bKtU−rK∗=(asbtUr)1s+tK∗U∝Ur−s−ts+t\begin{aligned}G(K,U)&=aK^{-s}+bK^tU^{-r}\\K^*&=\left(\frac{as}{bt}U^r\right)^{\frac1{s+t}}\\\frac{K^*}{U}&\propto U^{\frac{r-s-t}{s+t}}\end{aligned}
Positive a,b,s,t,r. Hold unique samples U, architecture and optimized recipe fixed while choosing processed samples K. The omitted unique-data-only term does not affect this derivative.

The blog relaxes the penalty's dependence on corpus size instead of tying it to the epoch count alone. Here s controls the optimization decay, t the repetition growth, and r the corpus-size dependence. The original penalty is the special case r=tr=t. The sign of the epoch trend now depends on r, not merely on whether repetition has a cost.

Consequences of the generalized local model; other coefficients/exponents held fixed
Corpus dependenceEpoch trendAssigned example: U grows from 1 to 16
r<s+tr<s+tOptimal epochs decreaser=1: K grows 1→4; epochs 1→0.25
r=s+tr=s+tOptimal epochs stay constantr=2: K grows 1→16; epochs 1→1
r>s+tr>s+tOptimal epochs increaser=3: K grows 1→64; epochs 1→4

The examples assign a=b=1 and s=t=1s=t=1, so K∗=Ur/2K^*=U^{r/2}. These are unconstrained mathematical examples, not recommended training budgets. The first row falls below one full pass at U=16; a full-pass requirement moves that optimum to K=U. The generalized penalty still diverges with unlimited exposure. It explains how assumptions can reverse the prediction; it does not validate any trend. Source: optimal-epoch hypothesis ↗

Test slope changes instead of assuming them

L1−E1=A1x−α1,L2−E2=A2x−α2L1−E1L2−E2=A1A2x−(α1−α2)\begin{aligned}L_1-E_1&=A_1x^{-\alpha_1},\qquad L_2-E_2=A_2x^{-\alpha_2}\\\frac{L_1-E_1}{L_2-E_2}&=\frac{A_1}{A_2}x^{-(\alpha_1-\alpha_2)}\end{aligned}
Compare reducible terms; floors can dominate total-loss ratios.

The decomposition blog suggests coefficients represent engineering efficiency and exponents represent problem difficulty. Different exponents imply an unbounded relative reducible-loss advantage asymptotically. That is an argument for testing shared slopes, not proof that architecture or optimization cannot change exponents.

Scale range, task distribution and dominant bottleneck can change fitted slopes. Fit shared- and separate-slope alternatives, assess uncertainty and validate at larger held-out scales. Avoid a large combined formula with many correlated terms before nested experiments support its parts.

2026: ask whether model and data interact

Additive:∂2L∂N ∂D=0Skaling:L=(AN−α+BD−β)k+E∂2L∂N ∂D=k(k−1)uk−2αAN−α−1βBD−β−1\begin{aligned}\text{Additive:}\quad&\frac{\partial^2L}{\partial N\,\partial D}=0\\\text{Skaling:}\quad&L=(AN^{-\alpha}+BD^{-\beta})^k+E\\&\frac{\partial^2L}{\partial N\,\partial D}=k(k-1)u^{k-2}\alpha A N^{-\alpha-1}\beta B D^{-\beta-1}\end{aligned}
u=AN−α+BD−βu=AN^{-\alpha}+BD^{-\beta}; positive inner parameters and k.

The additive law forces marginal capacity value to be independent of data. Videau et al. find systematic boundary residuals and predominantly negative mixed derivatives on their main grids. They estimate derivatives using moving least squares and a differentiable Gaussian-process surrogate; small first-order cross-slopes can conceal second-order interaction.

For 0<k<1 the mixed derivative is negative: more data makes extra capacity more valuable, and vice versa. k=1 is additive; k>1 gives the opposite cross-effect. Both first derivatives remain negative for any k>0.

A negative additive interaction GN−μD−νGN^{-\mu}D^{-\nu} can instead break monotonicity. The outer power avoids that problem. Kaplan had an outer coupling with tied inner exponents; Skaling unties them. Related forms also appear in distillation scaling. The contribution is not the discovery that no one had ever used an outer power. Skaling ↗

∂L∂N=−kαAN−α−1uk−1∂L∂D=−kβBD−β−1uk−1log⁡∣∂L∂N∣≈aNlog⁡N+gNlog⁡D+cNlog⁡∣∂L∂D∣≈gDlog⁡N+aDlog⁡D+cD\begin{aligned}\frac{\partial L}{\partial N}&=-k\alpha A N^{-\alpha-1}u^{k-1}\\\frac{\partial L}{\partial D}&=-k\beta B D^{-\beta-1}u^{k-1}\\\log\left|\frac{\partial L}{\partial N}\right|&\approx a_N\log N+g_N\log D+c_N\\\log\left|\frac{\partial L}{\partial D}\right|&\approx g_D\log N+a_D\log D+c_D\end{aligned}
First two rows: exact coupled-law derivatives with positive inputs/parameters. Last two: local diagnostic fits, not identities of that law.

Convert log-coordinate derivatives correctly

The numerical estimators fit a surface in log coordinates. A derivative of log loss is not a derivative of loss. Apply the chain rule before interpreting its sign.

x=ln⁡N,y=ln⁡D,z=ln⁡L,L>0LN=LNzx,LD=LDzyLND=LND(zxy+zxzy)\begin{aligned}x&=\ln N,\quad y=\ln D,\quad z=\ln L,\quad L>0\\L_N&=\frac LN z_x,\qquad L_D=\frac LD z_y\\L_{ND}&=\frac L{ND}(z_{xy}+z_xz_y)\end{aligned}
Subscripts denote partial derivatives of a smooth positive loss surface. The product term is necessary for the mixed derivative.

Assigned local example: at N=D=L=1, take log slopes −0.2 and −0.3, and log mixed derivative −0.02. The actual mixed derivative is positive:

Synthetic chain-rule example; values are not estimates from the paper
ContributionValue
Log mixed derivative−0.02
Product of log slopes+0.06
Mixed derivative of loss+0.04

A negative log mixed derivative alone therefore does not establish negative model–data interaction in loss. MLS neighbourhood choices and GP kernel/noise choices also affect the estimated surface. Compare estimators and test the actual converted derivatives.

Compare marginal gains on the same surface

Does data change the value of capacity?

Keep all inner parameters fixed; vary only the outer mapping.

Assigned normalized law; double N=10 to N=20 at different data budgets
DLoss at N=10Loss at N=20Gain
12.39812.30170.0964
41.97251.87610.0964
161.72801.63160.0964
641.58761.49120.0964
2561.50691.41050.0964

Selected D=16; k=1: doubling capacity lowers loss by 0.0964. Mixed derivative at (10,16)=0.000e+0.

The gain is the same at every D: the additive law forces zero mixed derivative. Inner parameters are held fixed. Different absolute losses between k values are not fitted evidence of which law is better.

The outer exponent does not directly move the optimum

For k>0, u↦uk+Eu\mapsto u^k+E is increasing. Under the same C=6NDC=6ND constraint, minimizing the coupled loss is equivalent to minimizing its inner sum. The allocation formulas above therefore still apply when A, B, α and β are held fixed.

Fitting a different surface changes those inner parameters, which can move the predicted optimum. On Farseer, derivative estimates give D∗N∗∝C−0.14\frac{D^*}{N^*}\propto C^{-0.14} or C−0.15C^{-0.15}; Skaling predicts about −0.11 and additive Chinchilla about +0.03. On SK-Grid, α>β\alpha>\beta instead predicts an increasing ratio. There is no universal replacement TPP number or universal decreasing trend.

In PDF Figure 6, the GP and MLS curves locate minima on smooth surrogate surfaces fitted to the measured runs. They are not directly measured optimal training runs at every compute budget. The right panel extends power-law fits outside the shaded data range; agreement there is extrapolation, not frontier validation.

Use an L-shaped grid, then test its missing corner

More training tokens ↑More parameters →
Blue bands fit the law. Faded interior/corner points test it. This is grid geometry, not a measured loss surface.

Large-long runs dominate dense-grid compute. Sweep D at small N and N at short horizons; use the coupled form to predict the rest. Reported fitting compute falls from 5.0×10²² to 5.1×10²¹ FLOPs on Farseer and from 3.1×10²¹ to 6.5×10²⁰ on SK-Grid: approximately 10× and 5× respectively.

Both bands still need enough range to identify decay rates. Sparse fitting does not remove expensive validation. Withhold several larger-N, larger-D and far-corner runs deliberately before a frontier commitment.

Keep the Skaling comparisons and their scope

Skaling Figure 1: signed residuals and relative errorOpen full-size ↗
Three model-size versus token-budget grids: Chinchilla has opposing signed errors near the corners, Skaling residuals are smaller, and the third panel compares their error ratios.
Scroll horizontally to compare all three panels at a readable size. Read N horizontally and training tokens D vertically; both axes are logarithmic. Left and middle share a signed-error scale: red overestimates loss, blue underestimates it. The right panel instead shows an error ratio, capped at 16×. Its red points favor Skaling; they do not show a training speedup. Percentages summarize this reported grid, not all possible recipes. Cropped from Figure 1, Videau et al., arXiv v1 (CC BY 4.0); plot labels unchanged. Source PDF ↗

MAPE measures prediction error relative to each measured validation loss. It does not measure the loss improvement from training a model. Measured losses 2 and 4, with predictions 2.2 and 3.6, give 10% MAPE.

MAPE⁡=100m∑i=1m∣L^i−Li∣Li\operatorname{MAPE}=\frac{100}{m}\sum_{i=1}^{m}\frac{|\widehat L_i-L_i|}{L_i}
m is the number of evaluated runs; Lᵢ is positive measured loss and L̂ᵢ is predicted loss. The output is a percentage.

Table 1 reports means and standard deviations across five cross-validation folds. The deviations below are not confidence intervals. The far-extrapolation sets contain only seven Farseer runs and three SK-Grid runs. Small far-corner samples limit how broadly these gains can be interpreted. The grids use a prescribed hyperparameter policy, not a new exhaustive tuning sweep at every point.

The study records Farseer’s 404 configurations, mainly 100M–6.4B parameters and 1B–512B tokens, with larger-model checks to 25B; SK-Grid’s 134M–4.9B appendix models and checks to 10.8B; 117 code-domain runs; and 245 replicated Chinchilla configurations. These are not present-day frontier-sized measurements.

Paper Table 1: full-grid MAPE %, mean ± standard deviation over five folds; Chinchilla → Skaling
RegimeFarseerSK-Grid
Interpolation0.77 ±0.04 → 0.41 ±0.050.81 ±0.14 → 0.33 ±0.11
Larger N1.48 ±0.03 → 0.47 ±0.030.83 ±0.11 → 0.39 ±0.05
Larger D1.98 ±0.08 → 0.88 ±0.061.44 ±0.03 → 0.58 ±0.07
Far extrapolation2.46 ±0.19 → 2.31 ±0.185.17 ±0.28 → 0.70 ±0.39

The figure comparison favors Skaling on 76% of configurations, with median 2.2× error advantage. The boundary gains matter more than interpolation fit. On SK-Grid far extrapolation, full/L-shaped Chinchilla give 5.17%/14.63%; full/L-shaped Skaling give 0.70%/1.15%.

A fixed-ratio test uses 14 Farseer D/N rays and eight high-compute held-out points per ray, 112 total. MAPE: Chinchilla 2.34%, Farseer law 0.80%, independent per-ray power fits 0.99%, Skaling 0.60%. Independent per-ray fits are slightly better on the near-optimal-ratio subset, where each recipe receives its own fit. They cannot answer joint allocation questions.

Code and replication sets have weaker coupling: k≈0.77–0.90k\approx0.77\text{–}0.90 versus roughly k≈0.31–0.45k\approx0.31\text{–}0.45 in the main grids. Hyperparameter policies can change the observed surface. Extrapolation to 2×10²⁵ FLOPs is far beyond measured budgets around 10²². Version-one SK-Grid run accounting also differs between section 4.1 (134/15 sizes) and appendix E (125/14). Retain that inconsistency rather than choosing an unverified count.

Keep the measured surface tied to its recipe

Appendix E specifies the SK-Grid policy used to generate the measured surface. Its StepLaw coefficients were refitted for this setup.

Btokens=896.07 F0.231ηpeak=0.0709 F−0.4303D0.2785\begin{aligned}B_{\rm tokens}&=896.07\,F^{0.231}\\\eta_{\rm peak}&=0.0709\,F^{-0.4303}D^{0.2785}\end{aligned}
F is per-token compute in FLOPs per token; D is the training token budget. B here counts tokens, not the sequences used in the earlier optimization example.

The reported peak rate increases with token budget. This is a recipe-specific prescription, not the fixed-K optimum derived above. Changing units changes the numerical coefficients.

SK-Grid fixed settings; reported conditions, not universal defaults
ControlSetting
Tokenizer / contextLlama 3; vocabulary 128,256; 2,048 tokens
Width / depth range672–3,264 dimensions; 7–34 layers
Data / validation target60% DCLM-Edu web, 30% code, 10% math; held-out split of this mixture
OptimizerAdamW; moments (0.9, 0.95); weight decay 0.1; gradient clipping 0.1
ScheduleCosine; 10% warmup; final learning rate 0.000001

Compute caps give larger models fewer token horizons: the smallest row has 16 budgets, the largest only one. This staircase is not a full Cartesian grid. Keep the separate version-one run-count discrepancy visible rather than resolving it by assumption.

The fitted floor is not measured entropy

In the original Farseer fit, Skaling shifts E from about 0.45 to 0.03. This does not demonstrate near-zero irreducible loss. k and E can compensate over an unsaturated range; the observations constrain their sum better than their individual interpretation.

Subtract losses for dominated pairs—where one run has more parameters, more data and lower loss—to remove E from the fitting objective. Appendix F reports Farseer far-extrapolation MAPE of 2.46%→0.79% for Chinchilla and about 2.32%→1.55% for Skaling using this alternative. Some apparent boundary failure is therefore tied to floor identification, not only zero coupling.

Table 9 uses a separate fitting run, so its 2.32% baseline can differ from Table 1’s 2.31%. The paper states this explicitly; the difference is not merely reported precision. On SK-Grid the coupled advantage remains larger. Compare fitting objectives before claiming that one mechanism fully explains another law’s failure.

Fit the shape from ordered differences, then recover the constant from residuals. In Appendix F, X denotes per-token compute F, not total training compute C.

r(X,D)=(AX−α+BD−β)kL^j−L^i=r(Xj,Dj)−r(Xi,Di)E^=median⁡j [Lj−r(Xj,Dj)]\begin{aligned}r(X,D)&=(AX^{-\alpha}+BD^{-\beta})^k\\\widehat L_j-\widehat L_i&=r(X_j,D_j)-r(X_i,D_i)\\\widehat E&=\operatorname{median}_j\,[L_j-r(X_j,D_j)]\end{aligned}
Pairs require Xi≥XjX_i\ge X_j, Di≥DjD_i\ge D_j and Li<LjL_i<L_j. The displayed difference is predicted; measured differences are fitting targets. Recover the floor after fitting the shape; k is the outer exponent, not a run index.

Pair selection also reweights the observations. Dominated-pair fitting is therefore not simply the same objective with one nuisance parameter removed. It can worsen extrapolation: Farseer L-shape Skaling far-error rises from 1.57% to 5.87% in Table 9.

Design a fit that can fail honestly

Keep tokenizer, data mixture, optimizer policy, schedule, context, precision and parameter convention controlled or explicitly modeled. Preserve loss precision. Inspect rising/flattened curves and failed runs instead of discarding them without explaining the selection.

The Skaling fit uses Huber error in log loss with transition δ=0.05\delta=0.05, log-amplitudes, analytic gradients with bounded L-BFGS-B, basin hopping with Sobol initialization and 2,000 restarts, with CMA-ES as a cross-check. Its bounds are A,B∈[10−6,107]A,B\in[10^{-6},10^7], α,β,k∈[0.01,2]\alpha,\beta,k\in[0.01,2], E∈[0,3]E\in[0,3]. They are fit constraints, not physical constants.

Compare additive and coupled models under the same objective/optimizer. Report folds, parameter variation, signed residual maps, interpolation, single-axis and far-corner errors separately. Test intended D/N rays and floor-free alternatives. More parameters do not guarantee a stronger baseline: the nine-parameter Farseer form is also harder to fit.

Use nested experiments: tune optimization at fixed data/architecture; study architecture near a tuned regime; study data under controlled optimization; combine only supported terms. Validation NLL is smoother than many generation scores, but the final target still needs downstream checks and uncertainty. A high in-sample R² is not an extrapolation certificate.

Three scaling questions require separate controls
QuestionVariablesTransfer check
Model/data allocationN,D and processed budgetValidate a larger held-out run
Hyperparameter scalingLearning rate,batch,warmup,decayRetune or calibrate their horizon dependence
Parametrization transferWidth and weight/update scalingCheck that a proxy optimizer setting transfers

A correctly sized model can still be poorly optimized. Fit the smallest supported gap model first, derive its constrained optimum, then test new runs near that prediction. Reject terms that imply impossible limits.

Compare curves, not one proxy winner

f(C)=AC−α+EEG=f−1(L′)C′=1C′(AL′−E)1/α\begin{aligned}f(C)&=AC^{-\alpha}+E\\\mathrm{EG}&=\frac{f^{-1}(L')}{C'}=\frac1{C'}\left(\frac A{L'-E}\right)^{1/\alpha}\end{aligned}
Defined only for achieved L′>E; use the same evaluation and cost convention.

MAI compares architecture/data candidates on scaling ladders at a matched training density. EG=1.3\mathrm{EG}=1.3 means the fitted baseline needs 30% more cost to match the candidate. EGFLOPs\mathrm{EG}_{\mathrm{FLOPs}} and EGTime\mathrm{EG}_{\mathrm{Time}} separate modeling efficiency from actual implementation speed. Recovery and goodput affect the latter.

The original internal NLL target is 0.5 Coding +0.175 STEM +0.175 Math +0.1 General +0.05 Multilingual. It encodes priorities; it is not neutral general quality. A STEM-heavy mixture winning at small scale but losing to a code-heavier one at larger scale illustrates why rankings must be revalidated.

Keep ablation and production TPP distinct. A proxy design win need not survive heavier training, a different mixture or a different kernel implementation. The full report also discusses deduplication, epoch caps and deterministic recovery; those belong with data/run design rather than being reduced to one scaling coefficient.

Refit hyperparameters after changing the architecture and optimizer

Changing the optimizer changes the useful learning-rate/batch region. Changing attention and residual gates also changes the stability margin. Qwen therefore refits its previous hyperparameter scaling law rather than carrying over the old settings. The report does not publish enough fitted coefficients to reconstruct that new law.

They test extrapolation on two deliberately different regimes. A small model with long exposure tests whether a large batch wastes data. A larger model with shorter exposure tests whether the predicted learning rate remains stable. These tests complement each other; neither is a universal proof of transfer.

Figure 8: 20-layer 10.8B-A0.89B MoE, 4T processed tokens
RecipeGlobal batch, million tokensPeak LRFinal-window loss
Previous recipe12.63.49e-31.5774
New predicted region25.25.39e-31.5702
1.5× larger batch37.76.92e-31.5707

Each batch uses its paired learning rate from the fit. The comparison tests joint recipes, not batch size with LR held fixed. The 25.2M and 37.7M settings form a relatively flat region. The smaller old recipe is worse by about 0.0072 loss. Report loss and elapsed time separately; equal token budgets do not imply equal optimizer or communication overhead.

A batch ramp starts at 6.3M and increases by 6.3M, reaching 25.2M at 524B tokens. Neither keeping the peak LR nor lowering it for the early batches improves final quality. The ramps end roughly 0.00025 and 0.00035 worse and require 18.8% more optimizer steps. This supports removing batch-size warmup in this recipe. It does not remove learning-rate warmup, which remains visible in their runs.

Table 10: 48-layer 156B-A7B MoE, 419B tokens; seven-task mean
SettingBatch, million tokensLRMean accuracy
New fit8.41.76×10⁻³60.55
LR ÷ √28.41.24×10⁻³59.14
LR × √28.42.49×10⁻³60.1
Batch ×1.25, matched LR10.52.01×10⁻³60.06
Old recipe4.26.8×10⁻⁴56.41

The four new-fit settings end within about 0.0007 loss. The authors treat close benchmark rankings as observational because each run has one evaluation and narrow differences can reflect noise. After warmup, clipping does not engage in these five runs. The old fit ends about 0.0078 loss worse.

A useful adaptation is to fit a near-optimal region, then choose a hardware-efficient point within it. Validate that region at a larger model and longer horizon before production. Do not copy the absolute LR into another parameterization. Exact parameter groups → · Stress-test protocol →.

Qwen3.8-Next architecture report, §3.2, Figures 8–9 and Table 10, pp. 16–19 (26 August 2026) ↗.

N-gram capacity: a lower loss is not the same allocation optimum

Conditional lookup capacity can grow without a proportional increase in per-token matrix multiplication. Qwen adds 51B n-gram embedding parameters outside its 125B backbone. Short token sequences address learned vectors; this is not retrieval from external documents.

In the reported ablations, vocabulary multipliers refer to a 250K base tokenizer, and training uses 300 tokens per active parameter. A multiplier describes table slots, not a promise of new tokenizer tokens. The report does not fully specify n-gram orders, hash layout, collision policy or the final table integration equation.

Under a fixed total parameter budget, increasing lookup tables requires removing experts. Table 8 finds the best training loss at 10× vocabulary, where lookup accounts for 25% of the parameter budget. The out-of-domain “uncheatable” perplexity changes little, and downstream scores show no clear improvement over the MoE-only baseline. This does not establish that more memory is always better than more experts.

Table 8: lookup allocation with fixed total parameters
Vocabulary / shareTraining lossOut-of-domain PPLMMLU-ProMATHMMMLU
None / 0%1.2025.5544.3846.0258.32
5× / 10%1.25.5444.4945.6457.49
10× / 25%1.1975.5544.6646.5656.22
30× / 50%1.2015.5942.6144.6256.66

They then keep the MoE budget fixed and add lookup parameters. This answers a different question: how useful is extra off-accelerator capacity, rather than how should a fixed parameter count be divided?

Table 9: larger lookup tables, fixed MoE backbone; selected reported tasks
VocabularyLossMMLU-ProMATHGSM8KC-EvalCMMLU
None1.58533.4332.5259.2166.9168.1
20×1.55334.4637.3865.0971.7572.29
50×1.54135.837.326472.1272.48
100×1.53435.8736.9863.0873.7572.73
200×1.52635.2135.3462.9674.9473.24

Loss improves monotonically, but math and reasoning gains saturate or reverse on some tasks. Chinese knowledge scores improve more consistently. A loss-only search would choose a different table size from some downstream objectives. The result does not prove memorization or identify which learned facts the tables store.

One lookup layer is sufficient in their placement study. Layer 2 gives a nine-task mean of 47.94 versus 45.44 without lookup. Splitting the same table budget across Layers 2 and 25 gives 47.75 despite slightly lower loss. Layer 2 also lets host prefetch overlap Layer 1. Token normalization, nonuniform n-gram-order allocation and frequency-based partitioning yield no consistent gains in this recipe.

For an allocation study, control backbone size, active compute, table storage, lookup bandwidth, tokenizer, exposure and evaluation separately. Count the host-memory and optimizer-state cost even when accelerator FLOPs barely change. Prefetch and capacity accounting →.

Qwen3.8-Next architecture report, §2.3, Tables 7–9, pp. 14–15 (26 August 2026) ↗.

RL scaling is a different resource problem

MiMo-V2.6 treats rollout/training compute, environment breadth and grader compute as coupled resources. This is not a literal additive pretraining loss law. Narrow tasks or indistinguishable passing rewards can make more trajectories redundant.

The original report section records 1,568 prompts ×16 trajectories =25,088 per step, 2.7–3.7B training tokens and roughly 110K–150K sequence lengths. Pro cost shares are 43.8% rollout, 43.5% training and 12.7% grading; reported total RL costs are about $2.6M Pro and $0.9M Flash. Grading is a substantial workload, not free post-processing.

Harness and environment diversity change which competence is trained. The original four-harness coding experiment raises mean held-out-harness pass rate from about 50% to 66%; that is an interface-diversity result, not proof that 6ND predicts RL return. The task/environment/verifier distribution and asynchronous collection are part of the scope. Complete MiMo RL note →

References and connected notes

Kaplan ↗ · Chinchilla ↗ · Reconciling Kaplan and Chinchilla ↗ · Chinchilla replication ↗ · Quantization model ↗

Data-constrained scaling ↗ · Repeated data ↗ · Prescriptive data-constrained scaling ↗ · Loss decomposition ↗ · Skaling ↗ · Farseer ↗ · Distillation scaling ↗

Scaling Laws, Carefully: synthesis ↗

Smol Training Playbook ↗ · MAI-Thinking-1 report ↗

Connected owners: Capacity planning → · Run design → · Transformer shapes → · Hyperparameter and parametrization transfer → · MAI scaling ladders →