Frontier Foundry

Optimizers & Training Recipes

The Data Mines · Pretraining, Data & Scaling

The update rules and schedules used to train (AdamW, Muon, learning-rate schedules).

Also called: optimizer, Muon, adamw, learning rate schedule, training recipe, training stability. In the glossary.

Optimizers & Training Recipes is cooling this week (×0.57 against the eight weeks before). What is moving.

How it works, as a machineThe Update Mint · updates

Follow one update from a batch's loss to weights the next batch reads, in an update mint beside a training hall, with the weight vault behind.

  1. Catch the gradient
  2. Blend the momentum
  3. Press the direction
  4. Set the step size
  5. Pull toward zero
  6. Write the weights
Play Optimizers & Training Recipes

Optimizers & Training Recipes in plain words

An optimizer is the rule that adjusts a model's weights after each batch of training examples. It decides how big a step to take and in which direction, and a schedule changes the step size as training goes on. A better recipe reaches the same quality with less compute.

An analogy

Walking down a mountain in fog. Only the slope under the boots can be felt, so the rule is to head downhill, with long strides on the open slope and short ones near the valley floor. Stride too long and the walker overshoots the valley; too short and night falls first.

How Optimizers & Training Recipes connects

4 typed relations in the knowledge graph

Builds on

  • GPUs & AI Chips: The moments compete with the weights for the memory of one accelerator.
  • Pretraining: Pretraining is this update repeated over every batch of the corpus.

Built on by

  • Pretraining: The gradient press is the optimizer step, with its learning rate and batch size.

Makes possible

  • Pretraining: The optimizer turns each batch's error into the next small change of the weights.

Often in the same sources

Pretraining, RLHF & Preference Optimization, Reinforcement Learning

See Optimizers & Training Recipes in the knowledge graph

Who is behind Optimizers & Training Recipes

people, labs, products and models

Named in its facts

What the sources say

3 parts · 12 sources · updated 2026-11-27

Sources describe one optimizer step as a short pipeline: the gradient is folded into stored moments, the rule (Adam's division or Muon's orthogonalization) reshapes it into a direction, the learning rate shrinks it to a step, and the step is written to the weights. The state is the memory bill (AdamW keeps 50.6 GB of moments for 12.6 GB of weights) and which rule carries beyond pretraining is argued.

Gradient bay: where the state lives

The gradient arrives and is folded into the optimizer state. The state is the memory bill: AdamW keeps two moments per weight, and when they outgrow the card the run stops.

  1. The gradient hopper catches the gradient a batch leaves on each weight matrix.
  2. The moment drawers fold it into the stored momentum and, for Adam, the second moment.
50.6 GB of moments for 12.6 GB of weights
Optimizer state of AdamW against the bfloat16 weights it updates, on a 6.78B-parameter mixture-of-experts model (reported by the paper) Nuemaan Malik
peak 81.4 GB to 31.3 GB; state 1.29 GB, 2.6% of AdamW's
Peak training memory before and after SkewAdam, set against the budget of a 40 GB accelerator (reported by the paper) Nuemaan Malik
42% less persistent memory than AdamW
Persistent memory of Muon-RT against AdamW in self-distillation fine-tuning on a 7B model (reported by the paper) Hugging Face
offloaded optimizer step 2.05 times faster
Speedup of the pipelined offloaded optimizer step over the serial CPU update, in matched component tests (reported by the paper) Hugging Face
  • The raw gradient reaching an optimizer can be dense, with very different magnitudes across parameters. Nan Jiang
  • OmniOpt treats every optimizer update as a transformation through a five-stage meta-pipeline and finds that most methods engage only one or two of the stages. Hugging Face
  • AdamW keeps a first and a second moment of the gradients for the weights it updates. Nuemaan Malik

When it breaksThe run stops when one peak outgrows the card. A mixture-of-experts run at long context or large batch size fails as soon as any one component of its memory exceeds the device. Optimizer state is one of four such peaks and grows with parameter count; lowering the largest only exposes the next. Hugging Face

Press room: the rule that shapes the step

The momentum is reshaped into a direction by the optimizer's rule, then shrunk to a small step by the learning rate. Which rule is argued, and the sources show it depends on the regime.

  1. The preconditioner press reshapes the direction: Adam divides by gradient statistics, Muon orthogonalizes.
  2. The learning-rate board shrinks the direction to a small step.
  3. The weight-decay scale pulls the weights a little toward zero as the step is added.
up to 6x shorter optimizer step
Optimizer step time of Dion3 against Muon, at equal or better loss (reported by the paper) Hugging Face
validation perplexity: Muon 120.2, AdamW 126.8, Lion 393.7
Perplexity after 82M tokens from identical initializations on a mixture-of-experts model (reported by the paper) Nuemaan Malik
success 0.290 to 0.546 (+88%)
Final-window validation success of Muon against AdamW in sparse-reward agentic RL, one seed on a 0.5B model (reported by the paper) Hugging Face
  • Adam divides the gradient by running statistics of the gradients, so each per-weight step is on the order of the learning rate. Nan Jiang
  • Muon runs Newton-Schulz iterations that drive all singular values of the momentum matrix toward 1, a uniform spectral whitening of the update. Hugging Face
  • In LLM pretraining the whitening of Muon enhances exploration and outperforms AdamW. Hugging Face

When it breaksMuon collapses outside pretraining. Muon whitens every singular direction of the update. In reinforcement learning with verifiable rewards, where gradients carry little signal, this made training unstable and Muon collapsed to zero on the math benchmarks where AdamW still learned; the authors replaced the whitening with a high-pass filter. Hugging Face

Open questionDoes Muon's orthogonalized update carry beyond pretraining?

  • No: uniform whitening of low-signal gradients is unstable, and in RLVR post-training on Qwen3 Muon collapses to zero while AdamW does not. Hugging Face
  • Yes, with care: in sparse-reward agentic RL Muon raised success over AdamW, though multi-seed and cross-task validation remain open. Hugging Face

Weight hall: the step is written

The step is added to the master weights; the lower-precision copy that serves may not move at all. A speedrun counts how many such laps reach a target loss.

  1. The master-weight shelf takes the step; the served bf16 view moves only where the step clears rounding.
bf16 boundary about 0.0039 against an Adam step near 3e-6
Size of the rounding boundary for a weight of magnitude one against a typical Adam step at post-training learning rates (reported by the speaker) Nan Jiang
best optimizer-speedrun record 2,990 steps
Steps to the target loss at the best human record of the optimizer speedrun when the talk was given (reported by the speaker) Elie Bakouch
15 to 20 minutes per run
Time of one optimizer-speedrun run (reported by the speaker) Elie Bakouch
  • The master weights take every update, but the served bf16 view changes only where the step clears the nearest rounding boundary. Nan Jiang
  • An optimizer speedrun fixes a target validation loss and ranks methods by the fewest steps or least time to reach it. Elie Bakouch
  • In the optimizer speedrun only optimizer-related settings may change, for instance Adam swapped for another optimizer. Elie Bakouch

Sources

12 in all

More in Pretraining, Data & Scaling

The Data Mines: the whole area
  • Scaling LawsPredictable gains from more data, parameters and compute.
  • PretrainingThe big first training run that teaches a model language and world knowledge.
  • Training Data & CurationCollecting, filtering and mixing the data a model learns from.
  • TokenizationSplitting text into the units (tokens) a model reads and writes.