Frontier-scale Transformer training failures do not always require frontier-scale compute to reproduce. In a 2023 Google DeepMind study, Mitchell Wortsman and colleagues show that two costly instabilities documented in billion-parameter runs, attention logit growth and output logit divergence, emerge reliably in tiny 2.4M to 9.4M parameter models when pushed to high learning rates (0.1 to 0.3), and respond to the exact same mitigations (qk-layernorm and z-loss).

Rather than tuning hyperparameters at a single point, the authors sweep learning rates across three orders of magnitude (3e-4 to 3e-1) and summarize each curve with LR sensitivity, the average validation-loss gap relative to the best learning rate. Plotting internal activation and gradient norms across those sweeps turns debugging into a forecasting problem: an extrapolated quadratic fit predicted a 4.8B run would diverge at LR = 1e-2, and scaling curves uncovered a third failure mode where shrinking gradients hit AdamW’s default eps = 1e-8.

  • Tiny proxies match frontier symptoms: a 9.4M decoder-only Transformer diverges via attention logit growth (> 1e4 in layer 0) at LR = 0.1, mirroring a 4.8B model at LR = 0.01, while a 2.4M model reproduces output logit divergence when weight decay is 0.
  • Two fixes unlock a 1,000x LR window: combining per-head qk-layernorm with auxiliary z-loss (1e-4) lets models from 2.4M up to 1.2B parameters train cleanly up to LR = 0.3.
  • Predictive divergence threshold: clamping attention logit scale kappa in a 10M model degrades loss near kappa = 1e3 and pushes loss worse than a zero-layer bigram baseline by kappa = 1e4.
  • Hidden AdamW eps failure at 4.8B: shrinking gradient RMS hits 1e-8 at high scale and high LR; lowering AdamW eps from 1e-8 to 1e-15 prevents layer collapse and cuts final loss on a 4.8B run at LR = 0.3, whereas eps = 1e-6 diverges within 4,000 steps.
Three Transformer divergences captured by small-scale LR sweeps
1. Attention logit growth

Dot products q . k scale quadratically with weight RMS, spiking layer 0 logits past 1e4 in 9.4M (LR=0.1) and 4.8B (LR=0.01) runs.

Fix: per-head qk-layernorm
2. Output logit divergence

Without weight decay, final logits drift down toward -100 late in training (2.4M at LR=0.1), separating logits from log-probabilities.

Fix: z-loss (1e-4) or decay
3. AdamW epsilon collapse

Residual growth inflates block output RMS; final LayerNorm scales gradients down by 1/RMS until grad RMS nears eps=1e-8.

Fix: lower AdamW eps to 1e-15

Source: Wortsman et al. (2023), Sections 3.1, 3.3, and 3.4.

How the proxy protocol works

All experiments use GPT-2-style decoder-only pre-norm Transformers with RoPE, 4d GELU feed-forward blocks, no biases, and untied embeddings trained on packed 512-token sequences from C4 in bfloat16 (256 batch size, 100,000 steps, 5,000-step linear warmup, cosine decay to 1e-5). The authors vary non-embedding size from 2.4M up to 300M parameters for full LR sweeps, and validate predictions at 1.2B and 4.8B.

Instead of looking only at final loss at a single tuned learning rate, Wortsman et al. evaluate seven learning rates (3e-4 through 3e-1) and measure LR sensitivity: the mean gap between each run’s validation loss (capped at initialization loss) and the minimum loss achieved across the sweep. When a model diverges at LR = 0.1 or 0.3, LR sensitivity jumps. Tracking internal diagnostics alongside those sweeps exposes why training broke before loss explodes.

Key findings and interventions

Why attention logits blow up. Attention logits q_i . k_j / sqrt(d_h) are the only activation in a standard Transformer whose scale grows quadratically with parameter root mean square (RMS(W)). Appendix ablations confirm the spike is not driven by increased query-key cosine alignment or even by softmax, because replacing softmax with pointwise squared-ReLU still diverges at high learning rates. Applying qk-layernorm per head (which beats normalizing across the whole model width) caps logit magnitude and keeps training stable through LR = 0.3 at 1.2B parameters. Fitting a quadratic to step-2,000 max logits in layer 0 across smaller runs accurately extrapolated when a 4.8B model would cross 1e4 at LR = 1e-2 and diverge.

Optimizer and scaling levers. With qk-layernorm and z-loss enabled (eliminating the late-training output logit drift seen in PaLM), the authors isolate how common knobs shape LR sensitivity:

How common training knobs affect LR sensitivity and optimal LR
Longer warmup (50 to 25k)
Reduces LR sensitivity sharply; 300M models fail at LR=0.3 without long warmup.
Independent weight decay
Decoupling decay from LR lowers LR sensitivity compared to standard PyTorch/Optax coupled AdamW.
Depth vs. width scaling
Scaling depth (3 to 96 layers) increases LR sensitivity faster than width, though joint scaling wins on loss.
muParam transfer
Keeps optimal LR fixed across widths, but does not lower LR sensitivity or replace qk-layernorm.

Source: Wortsman et al. (2023), Section 3.2 and Appendix E.

Notice the subtle implementation detail on AdamW: PyTorch and Optax multiply weight_decay by the learning rate (θ - s_t * η(Δ - λθ)), whereas Loshchilov and Hutter’s original independent parameterization (θ - s_t(ηΔ - λθ)) keeps shrinkage constant across the sweep and measurably reduces LR sensitivity.

Predicting AdamW eps collapse. Residual connections cause Transformer block output norms to grow with scale and learning rate. Because the final LayerNorm divides gradients by the norm of its input, gradient RMS in early layers falls steadily as models scale up, approaching 1e-8 on 1.2B and 4.8B models at LR = 0.3. Once grad RMS nears eps, AdamW’s unscaled update v / (sqrt(u) + eps) drops from 1e-1 toward 1e-3, starving early MLP layers. On a 4.8B run at LR = 0.3, raising eps to 1e-6 caused immediate divergence, while cutting eps from 1e-8 to 1e-15 restored update scale and improved final validation loss.

Caveats and builder takeaway

High-LR small models are an early-warning probe, not a complete model of frontier risk. The paper explicitly targets slow divergence, leaving fast transient loss spikes (often linked to stale Adam beta2 second moments near the adaptive edge of stability) outside its scope. LR sensitivity itself breaks down when an intervention rescales the learning rate (such as AdaFactor’s RMS scaling) or shifts the optimum outside the sweep window, and bfloat16 TPU runs cannot capture distributed communication or fp8 quantization bugs.

For teams building training stacks today, the practical recipe is cheap and concrete: run 10M-parameter sweeps across 3e-4 to 3e-1 before committing to a large run, enable per-head qk-layernorm and z-loss (1e-4), log layer-0 max attention logits alongside first-layer grad RMS, and check whether shrinking grad RMS warrants lowering AdamW eps below 1e-8.