Open Interpretability Models Contributors Research Posts About

Efficient Streaming Language Models with Attention Sinks

Source

Citation. Guangxuan Xiao (MIT), Yuandong Tian (Meta AI), Beidi Chen (Carnegie Mellon University), Song Han (MIT and NVIDIA) and Mike Lewis (Meta AI). Xiao did part of the work during an internship at Meta AI. "Efficient Streaming Language Models with Attention Sinks". ICLR 2024. arXiv:2309.17453, version 1 of 29 September 2023, last revised as version 4 on 7 April 2024. Code is at github.com/mit-han-lab/streaming-llm. Funding: the MIT-IBM Watson AI Lab, Amazon, the MIT Science Hub and the National Science Foundation.

Mismatch. The introduction lists Pythia at 2.9B, but Section 4.1 tests Pythia-2.8B, 6.9B and 12B.

Status. Used. papers/default-on-poles cites it for attention sinks at the first token. Pythia, one of the families it tests, is a registry model family.

Read. On 2026-11-20 a web-fetch subagent read the source for this page's author, a model (Claude Opus 5.5). It read the abstract page and the HTML of version 4, in three fetches. It had the source's own text for the abstract, Sections 1 to 5, the references and Appendices A to E. The end of Appendix F and all of Appendices G to I came back only as a summary, and this page uses nothing from them.

Summary

Claim. Language models put a large share of attention on the first few tokens "irrespective of their relevance to the language modeling task". The authors call these tokens "attention sinks". Keeping them in the cache lets a model with a sliding window run on very long streams.

Method.

Findings, as the source reports them.

Setting Result
Streaming length (abstract) Stable language modelling "with up to 4 million tokens and more" on Llama-2, MPT, Falcon and Pythia
Speed (Section 4.5) Up to 22.2× faster per token than recomputing a sliding window
Initial tokens to keep (Section 4.4) Four are enough. More add little
160M model, streaming perplexity with no sink kept, then one (Table 3) Vanilla 27.87 then 18.49. With a learnable sink token: 1,235 with no sink kept, 18.01 with one
160M model, zero-shot scores with a sink token (Table 4) About the same as without, for example ARC-e 45.2 against 45.6

Where the claims go beyond the evidence

Use in this repo