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