Encyclopedia · 187 concepts

Architectures · intermediate · concept 54 of 187

Attention Mechanism

A technique allowing models to focus on relevant parts of input when producing output. Self-attention (in Transformers) lets each position attend to all other positions in a sequence.

Interactive · 3D

Watch attention poll the sentence

The journey step where every token asks every earlier token what matters.

Key terms

QueryKeyValueAttention weightsSoftmax

Learn these first