JA EN
Glossary › attention

GLOSSARY

attention

appears in 14 paper titles

Definition

A mechanism that computes, for each position, a set of weights over other positions and returns their weighted sum — in practice a softmax over query-key dot products. It lets distant tokens interact directly in one step, which is why it displaced recurrence for long sequences. The name is a loose cognitive metaphor; the cost is quadratic in sequence length, driving a large literature on cheaper variants.

Explainers using this term

In the textbook