Attention

The part of a transformer that scores how much every token should look at every other token when building its meaning.

Attention, common card #035 in The Glitch AI glossary: The part of a transformer that scores how much every token should look at every other token when building its meaning.
GLS 035 · common

Also called: Self-attention, Attention mechanism.

For: Builders

Why it matters

Attention is why models keep track of who did what across a long paragraph, and why long inputs get expensive.

In practice

In “Sam gave Alex the keys because she was leaving”, attention helps settle who “she” is.

Watch for

Attention patterns are not explanations; reading them as reasons can mislead.

Related terms

Transformer · Token · Context window

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term