Model Scaling Law Training Loss Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Empirical scaling laws summarize how training loss changes as training resources grow. This calculator uses the common token-scaling form in which loss falls with dataset size according to a power law, then flattens toward a floor.

Introduction: What the model scaling law calculator estimates

Given a baseline training run with token count N0 and observed training loss L0, plus a scaling exponent α and an irreducible loss floor B, this calculator:

Model-scaling definitions and units

The scaling-law formula

For this token-scaling model, the calculator uses:

L(N) = A × N−α + B

Presented in MathML:

L (N) = A N α + B

Solving for A from the baseline

Using the baseline observation (N0, L0):

A = (L0 − B) × N0α

This requires L0 > B. If L0 is less than or equal to B, the fitted A is non-positive and the scaling curve no longer represents diminishing loss.

Projecting loss at N1

Once A is known, the projected loss at N1 is:

L(N1) = A × N1−α + B

Solving for tokens needed to reach a target loss

If you enter a target loss Ltarget that stays above B, the calculator solves for the token count required to reach it:

Ntarget = (A / (Ltarget − B))1/α

How to interpret model scaling law results

Worked example: projecting loss from 1,000,000 to 5,000,000 tokens

For this model scaling law calculator, suppose you observed:

First compute A:

Now project loss at N1:

If you also set Ltarget = 1.5:

This illustrates a common takeaway for token-scaling models: pushing training loss close to the floor B can require enormous increases in tokens.

Quick comparison: what changes when you scale training tokens?

Change What happens to L(N)? Practical implication
Increase N (more tokens) L falls roughly as N−α until it approaches B Diminishing returns; the earliest token increases buy the most improvement
Increase α Curve falls faster with N Fewer extra tokens are needed for the same loss drop
Increase B Loss floor rises; every projection shifts upward Data quality, architecture, or optimization may be the real bottleneck
Increase L0 with same N0 Implied A increases A weaker baseline lifts the whole curve unless you also change B or α

Assumptions & limitations for token-scaling projections

Practical tips for model scaling projections

How to use the model scaling law calculator

  1. Enter Baseline Dataset Tokens (N₀) for the reference training run you want to scale from.
  2. Enter Observed Baseline Loss (L₀) from that same run.
  3. Enter Scaling Exponent (α) from your fit or chosen assumption.
  4. Enter the remaining fields, run the projection, and compare it with a second token-count scenario before you act on it.

Arcade Mini-Game: Model Scaling Law Calibration Run

Use this quick arcade run to practice separating useful scaling inputs from bad assumptions before you trust a token-scaling loss estimate.

Score: 0 Timer: 30s Best: 0

Start the game, then use your pointer or arrow keys to catch the inputs that matter and avoid misleading assumptions about scaling-law estimates.

Enter baseline metrics and scaling parameters to project performance.