Skip to content

Attention Sink

Observation that the first tokens of a sequence receive disproportionately more attention. The model uses them as a 'sink' — a place where excess attention is dumped.

Why This Matters

  • explains why it's important to preserve the beginning of the context;
  • used in optimizations of inference and KV-Cache;
  • helps understand the behavior of Attention on long sequences.

Practical Implications

When truncating context, simply discarding the beginning is not enough: losing the 'sink' worsens quality.

See Also

← All Terms