Thread Explains Why Attention Divides by √d_k and Its Alternatives
Robert Lange's thread explains why Transformer attention scales by √dk to prevent softmax saturation, and surveys alternatives: QK-Norm's ℓ2 normalization, Scalable-Softmax's log n factor for long contexts, and μP's scaling by d instead of √d.
2026-11-26 ~ 2026-11-26 · 4 related posts
- Why attention divides by √d_k: softmax saturation explained from first principles — RobertTLange · 2026-11-26
- QK-Norm: ℓ2-normalizing queries and keys stopped logit blowups in ViT-22B — RobertTLange · 2026-11-26
- Scalable-Softmax multiplies logits by log n to fix attention flattening in long context — RobertTLange · 2026-11-26
- Under μP attention divides by d not √d, enabling zero-shot hyperparameter transfer — RobertTLange · 2026-11-26