← All notes

Efficient Streaming Language Models with Attention Sinks (StreamingLLM)

Short answer

If you keep only a sliding window of recent key/value (KV) cache entries, model quality collapses once the text grows past the cache. Keeping the KV entries of the first few tokens (the attention sinks) as well restores it. StreamingLLM uses this to let models stream very long inputs with no finetuning. [S1]

Key points

Caveat

This does not extend what the model can remember. Tokens that fall out of the window are gone. It keeps generation stable over long streams.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: arXiv, Efficient Streaming Language Models with Attention Sinks, CC BY 4.0.

Cite this

Permanent ID: iil:note:9mw68fqs

iinventedlight. 2026. "Efficient Streaming Language Models with Attention Sinks (StreamingLLM)." iinventedlight Library, iil:note:9mw68fqs, version of 2026-11-04. https://iinventedlight.com/library/notes/2309-17453-streamingllm-attention-sinks/. License: CC-BY-4.0.

@misc{iil_note_9mw68fqs,
  author = {{iinventedlight}},
  title = {{Efficient Streaming Language Models with Attention Sinks (StreamingLLM)}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/2309-17453-streamingllm-attention-sinks/},
  note = {Permanent ID iil:note:9mw68fqs. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/2309-17453-streamingllm-attention-sinks.md.