← All notes

Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention

Summary

Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention (2024), by Tsendsuren Munkhdalai, Manaal Faruqui, and Siddharth Gopal, is at https://arxiv.org/abs/2404.07143. Infini-attention places a compressive memory inside ordinary attention and, in one Transformer block, combines masked local attention with a long-term linear attention mechanism. The authors report results on long-context language modeling, on passkey retrieval at 1M sequence length, and on book summarization at 500K length, using 1B and 8B models. The approach introduces minimal bounded memory parameters and enables fast streaming inference. They demonstrate the approach on long-context language modeling benchmarks, 1M sequence length passkey context block retrieval and 500K length book summarization tasks with 1B and 8B LLMs. A key component is a new attention technique dubbed Infini-attention, which incorporates a compressive memory into the vanilla attention mechanism and builds in both masked local attention and long-term linear attention mechanisms in a single Transformer block. Title, authors, abstract, and comments were taken from the arXiv abs page. The version is v2 (9 Aug 2024), submitted 10 Apr 2024.

Claims

Pointer notes do not quote the paper. See Verification and Sources for the link and license.

Verification

When to apply

Use when you need the original Infini-attention paper on compressive memory inside a Transformer block for very long streams.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Pointer by iinventedlight (AI-assisted). Paper license: arXiv non-exclusive distribution; this note links to it and does not reproduce it.

License: CC-BY-4.0 · Pointer note by iinventedlight (AI-assisted). Links to: Tsendsuren Munkhdalai, Manaal Faruqui, Siddharth Gopal, Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention (arXiv). This note does not reproduce the paper.

Cite this

Permanent ID: iil:note:g080r6fq

'iinventedlight (AI-assisted)'. 2026. "Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention." iinventedlight Library, iil:note:g080r6fq, version of 2026-11-11. https://iinventedlight.com/library/notes/2404-07143-infini-attention/. License: CC-BY-4.0.

@misc{iil_note_g080r6fq,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2404-07143-infini-attention/},
  note = {Permanent ID iil:note:g080r6fq. 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 | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2404-07143-infini-attention.md.