An attention calculation where every word in a sentence looks at all other words in the same sentence to understand context, rather than consulting a separate source.
Technically: Self-Attention (intra-attention) derives Q, K, and V all from the same input sequence, so each position can aggregate information from any other position within a single layer. This avoids the sequential bottleneck of recurrent networks and enables global context modeling per block. In decoder-only models, causal masking restricts each position to attending only to earlier tokens, preserving autoregressive structure while keeping the attention mechanism's full expressiveness.
Category: Attention Mechanisms