Glossary · Attention
Attention sinks
Also: sink tokenslearned sinks
Read it at the depth you need: one sentence · a paragraph · the math · in the models here
1In one sentence
A place for attention to go when a head has nothing to look at: the first token in most models, a learned per-head logit in gpt-oss.
2In a paragraph
Softmax forces each head's weights to sum to one, so a head that finds nothing relevant still has to attend somewhere. Trained models learn to dump that weight on the first token, which becomes a "sink". Evicting it (in a sliding window, say) breaks the model. gpt-oss builds the sink in: each head has one learned logit that joins the softmax but contributes no value, so a head can effectively attend to nothing.
3The math, shapes and parameters
weights = softmax([q·k1, …, q·kt, s]) → drop the last entry
The sink logit s is one parameter per head (self_attn.sinks, [H]). Its weight is computed and thrown away, so the remaining weights sum to less than one.
Term by term on Notation Decoder, the sister site: Softmax, decoded
4In the 96 models on this site
Models here with learned sinks: gpt-oss-20b, gpt-oss-120b, 64 per layer.
Introduced in Xiao et al., “Efficient Streaming Language Models with Attention Sinks” (2023).