Why is dot-product attention used instead of additive attention?

Last updated 22 November 2026

  • Dot-product scores are one QKᵀ matrix multiply, which is fast on GPUs and fusable (FlashAttention). Additive attention (vᵀ tanh(W_q q + W_k k)) needs a memory-bound n × m × d intermediate.

  • Unscaled dot-product lost to additive at large d_k due to softmax saturation. Scaling by √d_k closes the quality gap.

  • Learned W_Q/W_K make the score a learned bilinear form, and stacked heads and layers supply the nonlinearity.

  • https://medium.com/@akanyaani/evolution-of-attention-mechanisms-in-nlp-from-additive-to-self-attention-01e265925899
  • https://mbrenndoerfer.com/writing/scaled-dot-product-attention-transformer-mechanism
  • https://d2l.ai/chapter_attention-mechanisms-and-transformers/attention-scoring-functions.html
All Transformers interview questions