Transformers · Level 3 of 5
Scaled Dot-Product Attention
Attention that scales query-key dot products before normalization and value aggregation.
The usual scale divides by the square root of the key dimension.
Example
A score matrix is scaled, masked, softmaxed, and multiplied by values.
Listen to the definition and example
Audio transcript
Scaled Dot-Product Attention. Attention that scales query-key dot products before normalization and value aggregation. The usual scale divides by the square root of the key dimension. For example: A score matrix is scaled, masked, softmaxed, and multiplied by values.
Explore this concept
Why it matters
This helps you trace how token representations exchange and transform information.
Start with
Quick recall question
Try answering before looking back at the definition.