Attention
The part of a transformer that scores how much every token should look at every other token when building its meaning.

Also called: Self-attention, Attention mechanism.
For: Builders
Why it matters
Attention is why models keep track of who did what across a long paragraph, and why long inputs get expensive.
In practice
In “Sam gave Alex the keys because she was leaving”, attention helps settle who “she” is.
Watch for
Attention patterns are not explanations; reading them as reasons can mislead.
Related terms
Transformer · Token · Context window
Sources
Definition updated 2026-10-29.