Stanford CS336
Language Modeling from Scratch Lecture 9 — Scaling Laws: Basics

Predictable Extrapolation for Data, Architecture, and Compute
Autumn 2026

The Scaling Design Problem

Scenario: you have 10,000 B200s for one month to train a frontier open-source language model.

Copying choices from published models works until your compute budget, data pool, or serving target changes.

Three Questions Scaling Laws Answer

1. Data Scaling Size vs. test loss Why power laws arise Mixtures & distribution shift Repetition & adaptive filtering How much data & which data? 2. Model Engineering Architecture & optimizer Depth, width & MoE sparsity Critical batch size µP, CompleteP & HyperP Which design & hyperparams? 3. Compute Allocation Joint (N, D) loss surfaces Kaplan vs. Chinchilla IsoFLOPs & FLOP accounting Inference-optimal overtraining Bigger model or more tokens?

Part 1: Classical Sample Complexity Bounds

$$\epsilon(\hat{h}) \le \left(\min_{h \in H} \epsilon(h)\right) + 2\sqrt{\frac{1}{m}\log\frac{2k}{\delta}}$$

$$\sup_{p \in \mathcal{P}(\beta, L)} \mathbb{E}_p\!\left[(\hat{p}_n(x_0) - p(x_0))^2\right] \le C\psi_n^2$$

Key limitation: classical theory gives worst-case upper bounds, not exact, realized loss curves for real datasets and neural nets.

Early Empirical Data Scaling Laws (1993–2012)

PaperEmpirical FindingFunctional Form / Takeaway
Cortes et al. (1993)
AT&T Bell Labs
Earliest empirical scaling-law paper: fit small-subset learning curves to predict full-dataset error $\mathcal{E}_{\text{test}} = a + b/l^\alpha$,  $\mathcal{E}_{\text{train}} = a - c/l^\beta$
Avoids training poor classifiers on full data
Banko & Brill (2001)
Confusion sets
Accuracy grew log-linearly from $0.1\text{M}$ to $1{,}000\text{M}$ words across Winnow, Perceptron, Naive Bayes, Memory-Based None of the learners asymptoted — corpus growth outweighed algorithm choice
Kolachina et al. (2012)
Machine translation
Systematically compared curve families for downstream BLEU vs. training size Tested $\text{Exp}_3, \text{Exp}_4, \text{ExpP}_3, \text{Pow}_3\,(c-ax^{-\alpha}), \text{Pow}_4, \text{ILog}_2$; power laws fit well

Next: how this empirical regularity scaled up to modern deep neural networks.

Hestness et al. (2017): Three Scaling Regimes

Small Data Region Power-Law Region Irreducible Error Region Best-Guess Error Irreducible Error Training Dataset Size (log scale) Generalization Error (log scale)
  • Earliest large-scale neural scaling study across MT, language modeling, and speech
  • Composite frontier follows a shifted power law: $$\varepsilon(m) = \alpha\, m^{\beta_g} + \gamma$$
  • Three distinct regimes on a log-log plot:
    • Small data: flat near random / best-guess error
    • Power-law: linear slope $\beta_g < 0$
    • Irreducible floor: Bayes entropy $\gamma$

Individual model sizes flatten as capacity saturates; the envelope of best-fit models stays linear across orders of magnitude.

Hestness et al. (2017): Three Prescient Insights

These three observations anticipated modern LLM scaling practice by several years.

Power Laws Across Compute, Data, and Parameters

Compute (PF-days, non-emb) L = (C_min / 2.3e8)^(-0.050) Compute C (log) Test Loss (log) Dataset Size (tokens) L = (D / 5.4e13)^(-0.095) Tokens D (log) Parameters (non-emb) L = (N / 8.8e13)^(-0.076) Parameters N (log) Schematic of Kaplan et al. (2020) power-law fits for autoregressive Transformers

Why Power Laws? Toy Example: Mean Estimation

$$\mathbb{E}\!\left[(\hat{\mu} - \mu)^2\right] = \frac{\sigma^2}{n}$$

Taking logs yields a linear scaling law:  $\log(\text{Error}) = -\log n + 2\log\sigma$

The Exponent Mystery: Why So Shallow?

Classical: 1/n (slope -1.0) Speech: m^(-0.30) MT: m^(-0.13) LM: D^(-0.095) log(Dataset Size) log(Error / Loss)
  • Classical parametric models (mean estimation, linear regression) achieve $1/n$ error decay
    • Log-log line: $y = -x + C$ (slope $-1$)
  • Observed neural data exponents are much flatter:
    • Speech (Hestness+ 2017): $\alpha \approx 0.30$
    • Machine translation (Hestness+ 2017): $\alpha \approx 0.13$
    • Language modeling (Kaplan+ 2020): $\alpha \approx 0.095$
  • Why does neural error decay so much more slowly than $1/n$?

Nonparametric Learning and Dimension Dependence

side n^(-1/4) 2D unit box: √n cells, ~√n pts/cell
  • Neural networks approximate arbitrary smooth functions, like nonparametric estimators
  • Toy 2D problem: $x_1,\dots,x_n$ uniform on $[0,1]^2$, $y_i = f(x_i) + \mathcal{N}(0,1)$
  • Partition into boxes of side $n^{-1/4}$:
    • $\sqrt{n}$ total boxes, each receives $\approx \sqrt{n}$ samples
    • $\text{Error} \approx \frac{1}{\sqrt{n}} + \text{(smoothness bias terms)}$
  • In $d$ dimensions, this generalizes to: $$\text{Error} \propto n^{-1/d} \implies y = -\frac{1}{d}x + C$$

Takeaway: flexible nonparametric learning produces dimension-dependent power-law exponents.

Intrinsic Dimensionality Theory (Bahri et al., 2021)

MNIST SVHN FashionMNIST CIFAR-10 CIFAR-100 - - 4 / α_D ≈ d - - 2 / α_D Estimated Intrinsic Dimension d 4 / α_D
  • Core hypothesis (Bahri et al., 2021):
    • Scaling laws emerge from polynomial learning rates $1/n^{\alpha_D}$
    • Data exponent $\alpha_D$ is inversely linked to the intrinsic dimensionality $d$ of the data manifold
  • Clean match on synthetic teacher–student tasks; approximate alignment on image benchmarks
  • Caveat: estimators of intrinsic dimension on high-dimensional real data are noisy — this theory is insightful, not airtight

Beyond Size: Data Composition & Distribution Shift

Parallel Shifted Slopes q = 0.00 q = 0.22 q = 0.56 Training size (log) Excess error (log) Error Intercept log C(q) best mix Source proportion q log C(q)
  • How does dataset composition (domain mixture $q$) affect scaling?
  • Key result (Hashimoto, 2021):
    • Data composition changes the offset $\log C(q)$, not the slope
  • The intercept $\log C(q)$ is U-shaped across source proportions
    • Pure single-source data hurts badly
    • Diverse mixtures minimize the intercept at every data scale

Because composition shifts the offset rather than the slope, a better mixture acts as a permanent data multiplier.

Data Mixture Selection in Practice Is Hard

Approach A: Parametric Mixing Laws
Ye et al. (Data Mixing Laws)
  • Three-step extrapolation pipeline:
    1. Extrapolate over training steps (small models, seen mixtures)
    2. Extrapolate over model sizes (seen mixtures)
    3. Fit data mixing law to predict unseen mixtures at target scale
Approach B: Empirical Small-Scale Eval
Magnusson et al. (DataDecide)
  • Evaluated 25 pretraining datasets across scales from 4M to 1B parameters
  • Simply ranking datasets on small runs works surprisingly well:
    • Pretraining at 150M predicts pairwise dataset rankings at 1B ~80% accurately
    • Direct small-scale ranking often beats multi-scale parametric fits

Takeaway: fitting joint mixture laws is appealing in theory, but simple empirical proxies at moderate small scale are tough baselines to beat.

Data-Constrained Scaling Under Repetition

Muennighoff et al. (Scaling Data-Constrained Language Models)

≤ ~4 epochs ≈ fresh data 4–40 epochs diminishing ≥ ~40 epochs no gain repeated data fresh data Tokens / Epochs (log scale) Test Loss
  • Effective token count with $U_D$ unique tokens and $R_D$ repetitions: $$D' = U_D + U_D R_D^*\!\left(1 - e^{-R_D / R_D^*}\right)$$
  • Up to $\approx 4$ epochs, repeating is almost as good as fresh data; by $\approx 40$ epochs, repetition adds almost nothing
  • Compute reallocation ($10^{22}$ FLOPs): accounting for repetition shifts optimal size down and tokens up
    • Naive: 8.67B, 178B tok (7.1 ep) → loss 2.376
    • Data-constrained: 6.34B, 242B tok (9.7 ep) → loss 2.359

When Scaling Laws Break: Unbounded Compute

Kim, Kotha, Liang & Hashimoto (Pre-training under infinite compute)

Over-repeating Epochs min (~8 ep) Epochs (1 → 128) Val Loss Shifting the Asymptote Standard Regularized Ensemble Seed tokens (209M→1.67B)
  • 1. Blind extrapolation breaks:
    • Loss drops from 1 to 8 epochs, then climbs back sharply by 128 epochs (overfitting)
    • Growing parameters on fixed seed data (150M → 1.4B) quickly flattens out
  • 2. Scaling laws are recipe-specific lower bounds, not ceilings:
    • Standard: $1.30/D^{0.23} + 1.89$
    • Regularized: $1.03/D^{0.23} + 1.96$
    • Ensemble: $0.88/D^{0.24} + 1.90$

Data Filtering Cannot Be Compute-Agnostic

Goyal et al. (Scaling Laws for Data Filtering)

Small Compute Aggressive (E) Medium Compute Mild (E+D) Large Compute Broad (E+D+C+A) E only E+D E+D+C(+A) Total Training Samples Seen (log scale) Estimated Error
  • Web corpora span heterogeneous quality pools (buckets $E > D > C > A > B > F$)
  • Because repeated data loses utility, filtering faces a Quality–Quantity Tradeoff (QQT):
    • Small compute: filter aggressively (top bucket $E$ only)
    • Medium compute: add bucket $D$ once $E$ starts repeating
    • Large compute: relax filtering ($E+D+C+A$) — fresh medium-quality data beats stale repeats

Data curation thresholds must scale with the planned training compute budget.

Part 2: Scaling Laws for Model Engineering

Goal: predict the effect of architecture, optimizer, shape, batch size, and learning rate on huge models before training them.
  1. Train a sweep of small models spanning several orders of magnitude in compute
  2. Fit scaling curves for each candidate design (e.g., Transformer vs. LSTM, Muon vs. AdamW, MoE sparsity $S$)
  3. Check both offset and slope — select the design that wins at target compute, not just at tiny scale

1. Architecture Choice: Transformers, LSTMs, and Beyond

LSTMs 2–4 layers Transformers Non-Embedding Parameters (10⁵ → 10⁹) Test Loss
  • Transformers vs. LSTMs (Kaplan et al., 2020):
    • Transformers dominate across every parameter scale — no need to train an LSTM-scale GPT-3 to find out
  • Cross-architecture scaling (Tay et al., 2022):
    • Evaluated 11 families (ALBERT, DConv, Funnel, Transformer-GLU, MLP-Mixer, Performer, Switch Transformer, etc.) across FLOPs
    • Warning: rankings can invert with scale — some efficient variants (e.g., ALBERT, Performer) plateau, while GLU and sparse Switch Transformers scale cleanly

2. Optimizer Choice: From Adam vs. SGD to Muon

SGD: 5.37 m^(-0.094) Adam: 5.25 m^(-0.095) constant offset Training Chars (log scale, Hestness+ 2017) Min Val Loss (log)
  • Historical baseline (Hestness et al., 2017; depth-10 Recurrent Highway Nets):
    • Adam vs. SGD had virtually identical slopes ($-0.095$ vs. $-0.094$) with a consistent offset win for Adam
  • 2026 frontier practice: matrix-orthogonalized optimizers like Muon are now used in frontier runs
    • DeepSeek-V4 (2026): Muon optimizer
    • Kimi K3 / K3.1 (July 2026): Per-Head Muon
    • Qiu et al.: Muon with µP + $1/\text{width}$ weight decay yields ~1.4× efficiency over tuned AdamW (190M–1.4B)

3. Model Shape: Depth, Aspect Ratio, and Heads

40× range of aspect ratios within a few % of optimal loss Aspect Ratio d_model / n_layer (10¹ → 10³) Loss Increase (%)
  • Number of layers (Kaplan et al., 2020):
    • 1 vs. 2 layers produces a large jump in quality
    • Extra depth has diminishing returns below $10^7$ parameters once $n_{\text{layer}} \ge 2$
  • Shape invariance at fixed non-embedding $N$:
    • Aspect ratio ($d_{\text{model}}/n_{\text{layer}}$) can vary by $40\times$ with only mild loss change
    • $(n_{\text{layer}}, d_{\text{model}}) = (6, 4288)$ lands within 3% of $(48, 1600)$
    • FFN ratio and head dim show similar flat basins (22% extra compute offsets a 1% loss rise)

Not All Parameters Are Equal: Embeddings & MoE

Total Params N* higher S → larger N* Total N (log) Loss (fixed FLOPs) Active Params N_a* higher S → smaller N_a* Active N_a (log)
  • Embeddings: including vocabulary embedding parameters distorts scaling curves across depths; excluding them collapses $n_{\text{layer}} \ge 2$ onto one clean power law
  • Sparse Mixtures of Experts (Abnar et al., 2025):
    • Sparsity $S$ decouples total capacity $N$ from per-token FLOPs ($N_a$)
    • At fixed IsoFLOP budget, raising $S$ (0% → 95%+) lowers loss while shifting $N^*$ up and $N_a^*$ down

Abnar et al. (2025) model the full 2D IsoFLOP surface over sparsity $S$ and active parameters $N_a$.

Parameter Decoupling in 2026 Frontier Models

Model (Released)Total $N$Active $N_a$MoE / Parameter Structure
DeepSeek-V4.1-Flash
Sept 2026
552B backbone 16B decode
8B prefill
384 routed experts (6 active) + 1 shared; CSA2 sparse attention; 3 MTP layers
Kimi K3 / K3.1
July 2026
2.8T 104B 896 routed experts (16 active) + 2 shared (Stable LatentMoE); 3:1 KDA/MLA; MXFP4 QAT
Qwen3.8-Flash-Next
Aug 2026
125B (+51B n-gram) 6B 512 experts (10 active) + 1 shared; 51B n-gram embedding table in host memory
GLM-5.3
2026
78 layers, $d=6144$ 8/256 routed + 1 shared 256 experts (8 active) + 1 shared; MLA + DSA sparse attention (top-$k$ 2048); 1 MTP layer

4. Batch Size and the Critical Batch Size

McCandlish et al. (2018), An Empirical Model of Large-Batch Training

Perfect scaling (linear speedup) Diminishing returns Batch Size / Noise Scale (B / B_crit, log) Step Progress ε_opt / ε_max
  • Sweep batch size $B$ to reach a fixed target loss, recording steps $S$ and examples $E = B\cdot S$: $$\frac{S}{S_{\min}} - 1 = \left(\frac{E}{E_{\min}} - 1\right)^{-1}$$
  • Define the critical batch size: $$\mathcal{B}_{\text{crit}} = \frac{E_{\min}}{S_{\min}} \approx \frac{\operatorname{tr}(\Sigma)}{\|\nabla L\|^2}$$
  • At $B = \mathcal{B}_{\text{crit}}$, training uses $2\times S_{\min}$ steps and $2\times E_{\min}$ examples — the knee balancing wall-clock time and compute

Critical Batch Size Grows as Target Loss Drops

— Empirical N = 3M — Empirical N = 85M Train Loss L (decreasing left → right: 10 → 3) B_crit (tokens, 10³→10⁶)
  • Empirical fit (Kaplan et al., 2020): $$\mathcal{B}_{\text{crit}}(L) \approx 2.1\times 10^8\text{ tokens}\cdot L^{-4.8}$$
  • Lower target loss $\implies$ smaller signal-to-noise ratio in gradients $\implies$ larger useful batch size
  • Relating actual compute $C$ to ideal small-batch compute $C_{\min}$: $$C_{\min}(C) \equiv \frac{C}{1 + B / \mathcal{B}_{\text{crit}}(L)}$$

Minimum compute occurs at $B \ll \mathcal{B}_{\text{crit}}$; larger batches trade extra compute for fewer serial steps (higher parallelism).

5. Learning Rates and µP Transfer

Yang et al. (2022) & Yao et al. (2024)

Standard Param (SP) ← optimum shifts log₂(LR) Train Loss µP (Maximal Update) optimum stable log₂(LR)

Scaling model width by factor $r$ ($M \to M'$):

Hyperparameter (weight)$M$$M' \sim r$
AdamW LR (matrix-like)$l$$l / r$
AdamW LR (others)$l$$l$
Init variance (matrix-like)$\sigma$$\sigma / r$
Init variance (others)$\sigma$$\sigma$
Multiplier (output / lm_head)$\tau$$\tau / r$
Multiplier (others)$\tau$$\tau$

Matrix-like tensors have 2 dimensions scaling with width (hidden projections); embeddings and 1D norms belong to "others".

2025–2026 Extensions to µP Transfer

Original µP stabilized transfer across dense width; modern training scales depth, tokens, MoE granularity, and optimizers together.

WorkScaling AxisKey Result
CompleteP
2025
Model depth (and width) Extends µP hyperparameter transfer cleanly across depth, closing a major gap in original µP
MoE µP study
2025
Sparse MoE µP transfer holds across MoE width, but breaks when expert granularity changes
Qiu et al.
Muon scaling
Muon optimizer Derived µP plus $1/\text{width}$ weight decay for Muon — achieves about $1.4\times$ over tuned AdamW (190M–1.4B)
HyperP
Mar 2026
Width, depth, tokens & MoE granularity Transfers a single base learning rate simultaneously across all four axes

With HyperP and optimizer-aware µP, teams can tune once on small proxies even for deep, fine-grained MoE models.

Caution: Upstream Loss vs. Downstream Accuracy

Tay et al. (2023) — same models evaluated on pretraining perplexity vs. SuperGLUE

Neg. Log-Perplexity NL24 Large NL8-XXL NL32-XL NL6-XXXL NL12 Params (log) Upstream (higher=better) SuperGLUE Accuracy NL24 Large NL8-XXL NL32-XL NL6-XXXL NL12 Params (log) Accuracy (%)
  • Upstream perplexity scales smoothly and depends mostly on parameter count
  • Downstream accuracy (SuperGLUE) is far noisier and strongly shape-sensitive:
    • A deep model (NL32-XL) beats much wider, higher-parameter models (NL6-XXXL, NL12) despite worse perplexity
  • Practical rule: use loss scaling to prune bad designs, then verify promising shapes on downstream evals

Part 3: Joint Model–Data Scaling Laws

Dataset (Rosenfeld+ 2020)Fit Grid UsedExtrapolation Bias ($\mu$)Extrapolation Std ($\sigma$)
WikiText-103 (test loss)$\le 1/16$ model, $\le 1/8$ data$+0.5\%$$1.689\%$
ImageNet (top-1 error)$\le 1/16$ model, $\le 1/8$ data$-4.5\%$$4.681\%$
Once $\text{Error}(N, D)$ is fitted, optimal allocation is a constrained minimization: $\min_{N,D} L(N,D)$ subject to compute budget $C(N,D) \le C_0$.

Compute-Optimal Scaling: Kaplan vs. Chinchilla

Megatron-Turing 530B Gopher 280B GPT-3 175B (2020) Chinchilla 70B (2022) Kaplan: N ∝ C^0.73 Chinchilla: N ∝ C^0.50 Training Compute (FLOPs, 10¹⁷ → 10²⁵) Parameters N (10M → 1T)
  • For a fixed training compute budget $C$, write $N_{\text{opt}} \propto C^a$ and $D_{\text{opt}} \propto C^b$ ($a + b = 1$)
  • Kaplan et al. (2020): $$N_{\text{opt}} \propto C^{0.73}, \quad D_{\text{opt}} \propto C^{0.27}$$
    • Predicted huge models on relatively few tokens
  • Chinchilla (Hoffmann et al., 2022): $$N_{\text{opt}} \propto C^{0.50}, \quad D_{\text{opt}} \propto C^{0.50}$$
    • Scale $N$ and $D$ equally ($\approx 20$ tokens/param); 70B Chinchilla beat 280B Gopher at the same FLOPs

Chinchilla in Depth: Three Fitting Approaches

Hoffmann et al. (2022) estimated $N_{\text{opt}} \propto C^a$ and $D_{\text{opt}} \propto C^b$ three independent ways:

ApproachCoeff. $a$ ($N_{\text{opt}} \propto C^a$)Coeff. $b$ ($D_{\text{opt}} \propto C^b$)Gopher Budget ($5.76\times 10^{23}$ FLOPs)
1. Minimum over training curves 0.50 (0.488, 0.502) 0.50 (0.501, 0.512) 67B params, 1.5T tokens
2. IsoFLOP profiles 0.49 (0.462, 0.534) 0.51 (0.483, 0.529) 63B params, 1.4T tokens
3. Parametric loss fit (orig.) 0.46 (0.454, 0.455) 0.54 (0.542, 0.543) 40B params (later corrected!)
Kaplan et al. (2020) 0.73 0.27 Much larger $N$, fewer tokens

Chinchilla Methods 1 & 2: Envelope vs. IsoFLOPs

Method 1: Training Curve Envelope lower envelope → (N*, D*) Training FLOPs (10¹⁷ → 10²²) Train Loss
  • Train models (70M–10B) across 4 cosine cycle lengths
  • Extract lower loss envelope per FLOP, fit power laws to $(N^*, D^*)$
Method 2: IsoFLOP Profiles 6e18 → 3e21 FLOPs Parameters N (100M → 30B) Train Loss
  • Fix each FLOP budget ($6\times 10^{18}$ to $3\times 10^{21}$); match cosine decay to budget
  • Sweep $N$, fit parabola valleys; minima trace a clean power law

Method 3 (Joint Fit) & Besiroglu et al. (2024)

$$L(N, D) = \frac{482}{N^{0.35}} + \frac{2085}{D^{0.37}} + 1.82 \quad \text{(Besiroglu et al., 2024)}$$

Note: these coefficients ($482, 2085, 1.82$) are Besiroglu et al.'s (2024) re-estimation of Chinchilla, not Hoffmann et al.'s original table.

Why Kaplan & Chinchilla Disagreed (1): Porian et al.

Porian et al. (NeurIPS 2024), Resolving Discrepancies in Compute-Optimal Scaling of Language Models

a. Reproducing Kaplan a = 0.835 (0.82, 0.85) Projected N* = 3T b. + Last-Layer FLOPs a = 0.706 (0.69, 0.72) Projected N* = 787B c. + Correct Warmup a = 0.602 (0.59, 0.62) Projected N* = 292B e. + Optimizer Tuning (no decay) a = 0.497 (0.49, 0.50) Projected N* = 77B (matches Chinchilla!) d. + Cosine Decay (no tuning) a = 0.571 (0.56, 0.59) Projected N* = 183B

Why Kaplan & Chinchilla Disagreed (2): Pearce & Song

Pearce & Song (2024), Reconciling Kaplan and Chinchilla Scaling Laws

Same Underlying Loss Curve Besiroglu+ (2024) re-fit: 482/N_T^0.35 + 2085/D^0.37 + 1.82 Simulated on Kaplan's 1K–1.5B sizes Count Total Parameters N_T & Compute C_T (Chinchilla) N_T* ∝ C_T^0.51 Clean global power law matching Chinchilla's 0.50 Count Non-Embedding N_\E & Compute C_\E (Kaplan) Local fit: N_\E* ∝ C_\E^0.78 Embeddings dominate at small N → local curvature mimics Kaplan's 0.73

FLOP & MFU Accounting Caveats in 2026

Rule: Always state the exact FLOP formula behind every scaling curve and efficiency comparison.

Training-Optimal Is Rarely Deployment-Optimal

Chinchilla minimizes loss for fixed training FLOPs ($20$ tok/param). When inference dominates lifetime compute, it pays to overtrain a smaller, faster-to-serve model.

EraModel (Released)Tokens / Param (or Scale)Regime
HistoricalGPT-3 175B (2020)2 tokens / paramUndertrained (Kaplan era)
HistoricalChinchilla 70B (2022)20 tokens / paramTraining-compute optimal
HistoricalLLaMA 65B (2023)22 tokens / paramNear Chinchilla
HistoricalLlama 2 70B (2023)29 tokens / paramMildly overtrained
HistoricalLlama 3 70B (July 2024)215 tokens / param (15T tok)Heavily overtrained dense
2026 Frontier DeepSeek-V4.1-Flash (Sept 2026) 45T tokens; 552B total, 16B active decode (8B prefill) Overtrained + highly sparse MoE

The higher the expected serving traffic, the further past Chinchilla-optimal you should push training tokens and MoE sparsity.

IsoFLOPs Everywhere: Beyond Dense Autoregressive LMs

Autoregressive vs. Diffusion LMs (Gulrajani+ 2023) Diffusion Autoregressive compute multiplier Non-Embedding FLOPs (10¹⁶ → 10²⁰) Validation NLL
  • IsoFLOP sweeps are simple, reproducible, and generalize across paradigms:
    • Autoregressive vs. Diffusion LMs (Gulrajani et al., 2023): both form clean U-shaped IsoFLOP valleys and parallel power-law frontiers
    • Sparse MoEs (Abnar et al., 2025): 2D IsoFLOP surfaces jointly optimize sparsity $S$ and active/total parameters
  • Whenever comparing two modeling families, compare their IsoFLOP frontiers rather than single arbitrary sizes

Recap: Scaling Laws in Practice

Scaling laws turn frontier LM design from guesswork into predictable small-scale science.