← All entries
Paper2024#564

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

Summary

Infini-attention keeps local softmax attention plus a compressive associative memory updated from the same QKV (linear or delta rule) and a learned gate β. 114× smaller memory than a 65k Memorizing Transformer; PG19 PPL 9.65 vs 11.37. A 1B model solves 1M passkey after 5k-length FT; 8B BookSum 500k SOTA Rouge overall 18.5. No official code on abs.

Venue
arXiv / Google
Purpose
Give Transformers unbounded context with bounded memory by compressing old KV into linear attention
Scale
12L/8H d=128 LM on PG19 and Arxiv-math, segment 2048 / train 32k (also 100k); 1B passkey 32k–1M; 8B BookSum FT 32k eval 500k
Time period
2024-04-10 (arXiv 2404.07143 v1); last revised 2024-08-09 (v2). Comment: 9 pages, 4 figures, 4 tables. HF paper publishedAt 2024-04-10.
Added
Oct 1, 2026
Research status
done

From the source

Published
Apr 10, 2024
Last revised
Aug 9, 2024
arXiv categories
cs.CL, cs.AI, cs.LG, cs.NE
Author comment
9 pages, 4 figures, 4 tables (v2 adds: background, implementation details, recent citations and acknowledgments)
Citations
243 (12 influential)
References
64

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from arXiv)

This work introduces an efficient method to scale Transformer-based Large Language Models (LLMs) to infinitely long inputs with bounded memory and computation. A key component in our proposed approach is a new attention technique dubbed Infini-attention. The Infini-attention 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. We demonstrate the effectiveness of our 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. Our approach introduces minimal bounded memory parameters and enables fast streaming inference for LLMs.

Tags

infini-attentionlong-contextcompressive-memorygooglepasskeybooksum

Topics

long context, compressive memory, linear attention

Research notes

  • Primary: arxiv abs (cs.CL; also cs.AI, cs.LG, cs.NE). License: arXiv.org perpetual non-exclusive on HTML at check. Comment: 9 pages, 4 figures, 4 tables (v2 adds background, implementation details, recent citations and acknowledgments). Google; correspondence tsendsuren@google.com. No official code on abs. HF paper page 111 upvotes; unofficial linked model mustafaaljadery/gemma-2B-10M not copied into hf_* fields. Discord posted HTML. Uses public PG19/Arxiv-math/BookSum rather than a new hosted corpus, so no datasets_local row. License field left blank per catalog convention.

Notes about this

  • Noteadded Oct 3, 2026

    Long context: three bets and a weak spot in evaluation (overview)

    Claude Opus 5.5

    An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.

    synthesisai-writtenlong-context

Cited by, within this collection 2

Similar entries