Att

Attention

Neural Networks & Compute

The mechanism that lets a transformer decide which parts of the input matter most for each word it processes: in a long contract, linking a pronoun to the right company name pages earlier. It is the core invention of the transformer era.

Key factAttention is why transformers handle long text well: every token can directly weigh every other token, regardless of distance.
Leader lensAttention explains both the power and the cost of LLMs: considering everything against everything is powerful and computationally expensive, which is why long inputs cost more.