Why AdamW breaks training: it destroys the LM head's zero-sum gradient structure

micahgoldblum · x · 2026-11-03

Part 6 of Goldblum's thread poses the puzzle: adding a constant to every logit changes neither softmax nor cross-entropy gradients in exact arithmetic, so why does mean-logit drift break training? The cited prior post explains the cause: LM-head cross-entropy gradients sum to zero across the vocabulary, but Adam's coordinate-wise preconditioning breaks this, creating drift in the mean output embedding and mean logit.

Related event: AdamW-Induced Logit Drift Fails under BF16 Finite Precision(2 posts)→

Original post →

More from Research

Research channel →