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.4Mdecoder-only Transformer diverges via attention logit growth (> 1e4in layer 0) atLR = 0.1, mirroring a4.8Bmodel atLR = 0.01, while a2.4Mmodel reproduces output logit divergence when weight decay is0. - Two fixes unlock a 1,000x LR window: combining per-head
qk-layernormwith auxiliaryz-loss(1e-4) lets models from2.4Mup to1.2Bparameters train cleanly up toLR = 0.3. - Predictive divergence threshold: clamping attention logit scale
kappain a10Mmodel degrades loss nearkappa = 1e3and pushes loss worse than a zero-layer bigram baseline bykappa = 1e4. - Hidden AdamW
epsfailure at 4.8B: shrinking gradient RMS hits1e-8at high scale and high LR; lowering AdamWepsfrom1e-8to1e-15prevents layer collapse and cuts final loss on a4.8Brun atLR = 0.3, whereaseps = 1e-6diverges within4,000steps.
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:
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.


