Scaled Dot-Product Attention
What is Scaled Dot-Product Attention?
In one sentence: Scaled dot-product attention is the standard math recipe for attention: compare queries and keys, scale the results, softmax them, and mix the values.
What does Scaled Dot-Product Attention look like?
Every Transformer layer in GPT-style models uses scaled dot-product attention for each head.
Why does Scaled Dot-Product Attention matter?
It is the core formula of the Transformer, written in just one line of math.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/scaled-dot-product-attention/">Scaled Dot-Product Attention, explained simply</a> (The AI Math Dictionary)