Answered from Dot product attention and scaled dot product attention | The attention family series - Lecture 4 · The attention family · 2026-09-11
The Vizuara instructor explains that the dot product of two randomly initialised query and key vectors grows in magnitude with the square root of their dimension. At the hundreds or thousands of dimensions real models use, raw scores get large enough that softmax saturates and hands almost all the weight to one token. Dividing every score by the square root of d cancels that growth, so the scores stay in a similar range whatever the dimension and the softmax weights stay meaningful.
“This number is proportional to square root of dimensionality.” Instructor · at 11:58 — open in the transcript →
Source: our own transcription of the episode. The full conversation is on The attention family (2026-09-11). Read the whole episode summary →