Training & alignment Working model Intermediate 3D dissection 32 components 23 Oct 2026

Anatomy of Neural Scaling Laws

Kaplan et al. said spend on size; Hoffmann et al. said spend on both. 108 trained miniatures, three estimators and one question: what does the answer depend on?

Kaplan et al. (2020) and Hoffmann et al. (2022) fitted power laws to language-model losses and drew opposite advice about how to split a fixed compute budget between model size and data. This page rebuilds the disagreement at miniature scale: eleven decoder-only Transformers from 1.5 thousand to 590 thousand parameters, trained on the site's own prose under two training protocols, three seeds each, drawn as a landscape of loss with the fitted frontiers laid over it. Your own sentence is scored live by every model, the three estimators of Hoffmann et al. are refitted in the page, and a research desk pre-registers three questions the papers left open (what counts as a parameter, whether the three approaches agree, and whether the schedule matters) and reports each with its seeds, its bootstrap intervals and its verdict.

The machine

Height is how far a run's loss is below the worst loss in the study, so the best size for any budget is the crest along its diagonal. The measured landscape (model size across, training tokens into the distance) sits beside the loss the fitted law predicts and what is left over; five tubes lie over it: the compute-optimal frontier by Hoffmann et al.'s three approaches and the slopes of Kaplan et al. and of equal scaling. A ledger shows the eleven models' parameter counts, embedding share and the compute the 6N rule omits; one 13.8k-parameter model is laid open with its real weights running on your text.

What is real. The eleven models are PyTorch-trained float16 weights run forward in plain JavaScript and checked against PyTorch (logits, attention, per-character loss). The estimators (power-law and parabola fits, Approaches 1, 2 and 3, Kaplan's L(N, D)) are the same code that produced the research results and are checked against numpy and scipy, against a noiseless surface with a known optimum, and against every derived number in the text. Literature numbers are sourced to verbatim quotes from the arXiv LaTeX; the hypotheses and verdict rules were written before the grid ran.

What to take away

  • A scaling exponent is a property of the fit as much as of the models: which parameters you count and which estimator you use move it
  • Hoffmann et al.'s three estimators are not interchangeable even on a surface that is exactly their law
  • Each claim about why Kaplan and Hoffmann disagreed (embeddings, warmup, schedule) can be tested on a small grid, and the answers are not all the same
  • Compute-optimal is not cost-optimal: the law answers the cheapest-training question only

Sources

More machines

Other working models

Anatomy of Adam: a still of the machine Working model · 3D AI & ML · Training & alignment

Anatomy of Adam

Kingma and Ba's optimiser, dissected: every line of Algorithm 1 drawn as real blocks on a 151-parameter network, checked against PyTorch, with a research desk that reruns Reddi et al.'s counterexample, finds how rare a large gradient must be to defeat it, and tests the paper's claims about bias correction, the size of the step and ε.

Adam in 3D: its gradient, two moving averages, bias corrections and step drawn as real blocks for any step of a live training run, tested against PyTorch, then a pre-registered research desk on the c…

61 components · Intermediate 18 Oct 2026
Anatomy of Induction Heads: a still of the machine Working model · 3D AI & ML · Language models

Anatomy of Induction Heads

In-context Learning and Induction Heads, dissected: a two-layer attention-only Transformer in 3D, every matrix a real one from a model trained in the repository, with seven pre-registered hypotheses tested on 14 training runs.

A two-layer attention-only Transformer, built in 3D from its own numbers, completes [A][B] … [A] → [B] on your text while the camera walks the previous-token head, the K-composition and the induction…

56 components · Advanced 20 Oct 2026
Anatomy of the ResNet: a still of the machine Working model · 3D AI & ML · Neural network foundations

Anatomy of the ResNet

Deep Residual Learning, dissected: the paper's own 20-layer CIFAR network in 3D, every feature map and kernel a real one from a model trained on handwritten digits and running in your browser, every number from the paper traced to its sentence.

He et al.'s 2016 ResNet, built in 3D from its own numbers: the paper's ResNet-20 at half width classifies a handwritten digit while the camera walks 27 steps from convolution to shortcut to softmax. …

75 components · Intermediate 17 Oct 2026

The whole gallery →