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)→

Original post →

More from Research

Research channel →