AI GLOSSARY
Attention
Attention lets a model dynamically combine the context that matters for the current representation.
Simple explanation
Attention computes relevance between token representations and uses those weights to combine information from the allowed context. In a causal language model, a token can attend only to positions permitted by the causal mask, usually itself and earlier tokens.
Technical explanation
Attention computes relevance between token representations and uses those weights to combine information from the allowed context. In a causal language model, a token can attend only to positions permitted by the causal mask, usually itself and earlier tokens.
Example
Brighter cells show stronger attention relationships between positions that the attention mask allows.