Lost in Backpropagation: The LM Head is a Gradient Bottleneck
The softmax bottleneck in LM heads (hidden dim vocabulary size ) is not just an expressivity limitation; it is an optimization bottleneck. Backpropagating -dimensional logit gradients through a rank- linear layer destroys 95–99% of the gradient norm before it reaches the backbone, transferring energy from the informative top components to the tail as random noise. The authors prove this with an Eckart–Young–Mirsky bound on the update direction, validate it empirically on GPT-2, Pythia, Llama-3, and Qwen3-Base, and show in a controlled 2B-parameter pretraining sweep (same Transformer stack, varying low-rank LM-head structure) that larger effective converges 1.75× faster and gains +0.55 average downstream score at the final cooldown. Frames a new design axis for LMs at scale: better-suited logit prediction modules that preserve gradient flow.
Key claims
Section titled “Key claims”- The softmax-bottleneck rank constraint does not limit top-1 token probabilities — for any context and target distribution, there exist representations achieving arbitrarily-close top-1 mass even when — so the bottleneck must be analyzed as an optimization phenomenon, not an expressivity one [§2.2, Prop. 2.4].
- Under full-batch GD, the actual logit update from one step through the LM head has rank at most , while the logit gradient has rank close to in practical setups; by Eckart–Young–Mirsky the residual is bounded below by , i.e. all tail singular values of are inevitably lost [§2.3, Eq. 6, Prop. 2.6].
- The high-rank property of persists under SGD: when the model approaches the empirical distribution, the per-batch logit gradient has rank close to the number of contexts in the batch with unique observed continuations, so mini-batching does not relax the bottleneck [§2.3.1, Prop. 2.7, Cor. 2.8].
- Expressivity-improving softmax alternatives (Mixture of Softmaxes, Ganea et al.) do not resolve the optimization bottleneck — for any output function the chain rule injects a rank- Jacobian, so the same gradient compression occurs regardless of ‘s form [§2.3, Eq. 9].
- Empirically across GPT-2, Pythia, Llama-3, Qwen3-Base, 95–99% of the logit gradient norm projects onto the null space of (the LM head); the projected and original gradients are only mildly aligned (cosine 0.1–0.2), and the fraction of norm lost diminishes with hidden dimension [§3.3, Fig. 6, App. D].
- The projection redistributes gradient energy from the top 5–10 informative coefficients to the tail (low-probability tokens) in the form of increased variance — i.e. compressed gradients arrive at the backbone as noisier feedback, not just lower-magnitude feedback [§3.3, Fig. 7].
- In a 1.8B-Transformer-backbone + low-rank LM-head sweep on 11B FineWeb-Edu tokens (controlling for backbone capacity), validation loss curves and downstream zero-shot scores cleanly separate by ; reaches ‘s final loss in 700M tokens — 1.75× convergence speedup — and final downstream average gap between and is +0.55 [§3.1, Figs. 1, 3, App. F].
- A trivial synthetic language “SpamLang” (a single uniformly-drawn token repeated for the whole sequence, for which Transformers are provably expressively-sufficient) becomes harder and eventually impossible to learn as increases at fixed , with the failure being optimization-driven rather than expressivity-driven; LR sweeps cannot recover convergence at [§3.2, Fig. 4, Table 1].
- Updating logits along the true logit gradient vs. along the realizable direction (gradient backpropagated through , then forward through ) yields orders-of-magnitude different per-budget loss reduction, with the gap shrinking as grows; the gap is independent of overall model size (Pythia 1B and 1.4B collapse onto each other at fixed ) — implicating hidden dim, not parameter count, as the relevant axis [§3.4, Fig. 8].
- The paper hypothesizes that hidden dimension should be factored into scaling laws (Hoffmann/Chinchilla) as a first-class variable, since extrapolations that fix will systematically misestimate compute-optimal allocations once the gradient bottleneck dominates [§4, Discussion].
Method
Section titled “Method”The setup writes language modeling as over distinct contexts (with empirical counts ), then tracks the logit matrix under gradient descent. The key object is the gradient of the loss w.r.t. the logits, where is the model’s softmax and is the row-normalized count matrix. Under one GD step on , the induced rescaled logit update is a sum of two rank- outer products, so — but has rank close to the number of contexts with unique observed continuations, which the paper argues (and verifies on Pythia/Pile) is close to in practice. Eckart–Young–Mirsky then forces a residual lower bound proportional to ‘s tail singular values.
Empirical validation has three legs: (1) for pretrained Pythia, Llama-3, Qwen3, GPT-2 models, count non-null diagonals in the SVD of to measure its empirical rank, and measure the projection of onto to quantify the lost fraction (95–99% across families); (2) a controlled 2B-parameter sweep — same Llama3-style 6-layer 4096-hidden backbone for all models, with only the LM head’s effective rank varied via a low-rank factorization ; (3) a synthetic SpamLang experiment that holds expressivity constant and varies to isolate the optimization side. The SmolLM2 tokenizer (~50k tokens) is used to avoid exaggerating the effect with a large vocabulary; the WSD LR schedule with cooldowns at 5B/8.5B/11B isolates final-loss gaps.
Results
Section titled “Results”- Convergence speedup: in the controlled 2B pretraining sweep, reaches ‘s final validation loss in 700M tokens out of 11B — a 1.75× speedup at iso-backbone [§3.1].
- Downstream gap: final post-cooldown zero-shot average for vs is +0.55 absolute points, monotonically increasing with across all 8 tested values [§3.1, App. F].
- Lost gradient norm: 95–99% of logit gradient norm is destroyed across GPT-2, Pythia, Llama-3, Qwen3-Base; the cosine between projected and original gradient is only 0.1–0.2 [§3.3, Fig. 6, App. D].
- SpamLang impossibility: at with fixed, no learning rate in the swept range produces convergence on a trivial repetition task that the architecture provably can represent — making the optimization-not-expressivity diagnosis empirically clean [§3.2, Fig. 5, Table 1].
- Update-direction inefficiency: at fixed budget for , the realizable direction is orders of magnitude less loss-reducing than the true logit gradient direction; the gap is set by (not by ), and collapses cleanly across Pythia 1B/1.4B which share [§3.4, Fig. 8].
Why it’s interesting
Section titled “Why it’s interesting”This complements Beyond MuP 3: Special Cases, Special Treatment (Embedding, LM Head, RMS Norm) from the opposite direction: Su’s post argues Muon’s spectral-norm steepest-descent derivation breaks down for Embedding and LM Head (and gives the wrong update direction), and Lost-in-Backprop shows there is an information-theoretic bottleneck at exactly the same layer that no choice of optimizer can paper over — only can. Together they reframe the LM head from a “trivially handled output layer” to a structural primitive on the same footing as the residual stream and attention sinks. It also contrasts with Universal One-third Time Scaling in Learning Peaked Distributions, which derives the universal-1/3 slope of LM scaling laws from softmax-CE saturation — Lost-in-Backprop adds a complementary mechanism (rank- Jacobian compression) that affects the intercept and convergence speed rather than the asymptotic slope, but both papers locate scaling-law behavior in the same softmax+CE primitive. The “factor hidden dim into Chinchilla” suggestion lines up with How to Set the Learning Rate for Large-Scale Pre-training?‘s finding that affects optimal-LR scaling more sharply than , and with the existence of STEM: Scaling Transformers with Embedding Modules‘s STEM, which decouples the FFN-side embedding lookup from hidden width — symmetric on the input side. Sam’s commentary (“kind of an obvious paper ngl”) is a fair reading: the rank- Jacobian argument is elementary, but the empirical 95-99% number on production LM families and the controlled iso-backbone sweep are the new evidence.
See also
Section titled “See also”- Beyond MuP 3: Special Cases, Special Treatment (Embedding, LM Head, RMS Norm) — Su’s “Muon doesn’t play well with Embedding / LM Head” — same load-bearing layer flagged from the optimizer-derivation side
- Training stability at scale — broader concept; LM head joins QK-Norm, residual mixing, MoE routing, optimizer spectra as a structural-primitive locus for training efficiency
- Hyperparameter scaling laws — Godey & Artzi explicitly hypothesize hidden-dim should enter Chinchilla; How to Set the Learning Rate for Large-Scale Pre-training? already finds -side asymmetries in
- Universal One-third Time Scaling in Learning Peaked Distributions — companion “the softmax-CE primitive sets scaling-law shape” claim, on the slope side rather than the intercept side
- STEM: Scaling Transformers with Embedding Modules — STEM modifies the input embedding lookup; this paper isolates a symmetric pathology on the output side
- A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training — outlier-driven implicit rescaling at attention/RMSNorm; another “the standard architecture hides a load-bearing trick” finding