Self-Attention's Global View: The QKV Flattening

The Transformer's self-attention mechanism uses Query (Q), Key (K), and Value (V) vectors to enable every token to directly interact with all other tokens, computing a single, globally-aware contextual representation that effectively "flatten" the input structure.

Sources

Open the full topic