🚀NEW COURSEVibe Coding AI Apps with Claude Code 🤖✨Enroll now
Efficiency

StreamingLLM

Free while signed in. Answers cite the passages they came from.

First page
StreamingLLM
The curator’s take

MIT's StreamingLLM enables efficient streaming inference by preserving "attention sinks" - early-sequence tokens that most attention mass flows to.

Key points
01

Attention sink phenomenon: The authors observe that attention heads consistently route a large fraction of attention mass to the first few tokens, even when those tokens are semantically irrelevant.

02

Sink tokens are essential: Keeping the KV states of initial tokens around dramatically recovers the performance of sliding-window attention.

03

Infinite-length inference: Enables LLMs trained with finite context to generate infinitely long outputs without fine-tuning, by retaining sink tokens plus a sliding window.

04

Emergent explanation: Attention sinks appear because the softmax must normalize to one - unused attention mass is "dumped" onto the first tokens, which explains why removing them breaks the model.

Every Monday
Get next week’s papers.

The same picks and the same summaries, in your inbox. Free, and 176 issues deep.

Subscribe on Substack