QK-Norm: ℓ2-normalizing queries and keys stopped logit blowups in ViT-22B

RobertTLange · x · 2026-11-26

Robert Lange explains why attention divides by √dk: dot-product spread grows like √dk, saturating softmax and killing gradients. QK-Norm (arXiv:2010.04245) offers another fix — ℓ2-normalize queries and keys per head, learn a scale, and drop 1/√dk. It prevented attention logit blowups at scale (e.g. ViT-22B) and averaged +0.928 BLEU on low-resource translation benchmarks.

Related event: Thread Explains Why Attention Divides by √d_k and Its Alternatives(4 posts)→

Original post →

More from Research

Research channel →