Scaled dot-product attention
Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.
The formula softmax(QKᵀ / √d_k) V. The √d_k scale keeps dot products from growing with dimension (Vaswani et al., 2017).
In one paragraph. The formula softmax(QKᵀ / √d_k) V. The √d_k scale keeps dot products from growing with dimension (Vaswani et al., 2017).
Used in
Related terms
Full glossary