← Blog

Attention

DL

/dictionary/attention

Definition

The mechanism inside a transformer that lets the model look at every previous token in the sequence and weigh its relevance. Attention scales quadratically with sequence length, which is why long context is expensive.

Posts that use this term