Self-Attention Mechanism
Version 1.0.0 · Updated 2026-07-30
CORE DEFINITION
Self-attention relates different positions of one sequence to construct contextual representations. In Transformer scaled dot-product attention, Q, K, and V are projections of the same sequence representation. Each query assigns weights to accessible keys and aggregates the corresponding values. Causal self-attention masks future positions and cannot access the entire future context.
SCAFFOLDING EFFECT
Reduce cognitive load
Information weighting metaphor. When reading or analyzing complex situations, do not exert equal effort. Dynamically compute the relevance between current information and the 'global context', focusing attention on key clues.
Anchor fast decisions
Scaled dot-product self-attention computes softmax(QKᵀ/√dk + mask)V: dot products measure compatibility, scaling controls magnitude, masks constrain visibility, and softmax supplies row-wise weights. Multiple heads use different projections and combine their outputs. This enables information aggregation without guaranteeing semantic understanding or correct pronoun resolution.
MINIMUM ACTION
In progress 0/1Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Attention_Is_All_You_Needverified
- arxiv.orghttps://arxiv.org/html/1706.03762v7verified
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS