Why attention divides by √d_k: softmax saturation explained from first principles
RobertTLange · x · 2026-11-26
Robert Lange's explainer: a dot product q·k sums dk terms, so logit spread grows like √dk; big logits saturate softmax, dumping all weight on one key and vanishing gradients. Dividing by √dk keeps logit std at 1 for any dk. The thread links the original Transformer paper (arXiv:1706.03762) and continues into QK-Norm, SSMax, and μP as related fixes.
Related event: Thread Explains Why Attention Divides by √d_k and Its Alternatives(4 posts)→
More from Research
- Stanford-led paper: agent teams only beat solo AI when members share complementary knowledge — omarsar0 · 2026-11-27
- OpenAI claims solutions to poly Hirsch conjecture and strongly polynomial LP — JFPuget · 2026-11-27
- Reddit Asks: Best Books and Courses to Learn Time Series Analysis From Scratch — Propofollower_324 · 2026-11-27
- Conitzer's three decade-old open problems all solved — AI played a role in each — conitzer · 2026-11-27
- Werkbank: A Hobby Benchmark Stress-Testing Local Models as Agents — LobsterWeary2675 · 2026-11-27
- VO2 neurons that leak and fire: Nature Nanotherapy paper wires spiking neuron straight into racetrack memory — bravo_abad · 2026-11-27