Papers
arxiv:2610.15715

History Replays Itself: Unleashing Long-Context Capability in Linear Attention

Published on Oct 11
· Submitted by
Li Nanbo
on Oct 15
Authors:
,
,
,
,
,
,
,
,
,
,

Abstract

NoteBank augments linear attention models with a sparse episodic memory that stores selected text and replays it through native computation, greatly improving long-context retrieval without extra training or significant overhead.

Linear attention promises the efficiency needed for long-context language modelling, yet its fixed-size recurrent state must simultaneously support ongoing computation and preserve information from an ever-growing history. This coupling has reinforced a prevailing view that the state's memory capacity defines the model's long-context capability. We challenge this presumed ceiling: recurrent computation need not bear the full burden of long-term storage. We introduce NoteBank, a sparse episodic memory that archives selected text before future queries are known, uses the backbone's native features for writing and addressing, and reads retrieved evidence through its native forward computation via replay. This training-free, plug-and-play interface requires no external embedding model, separately trained retriever, or separate neural reader. At one million tokens, it raises Gated DeltaNet's mean accuracy across six RULER retrieval tasks from 1.7% to 70.3%, with no observed significant retrieval degradation from 4K to 1M tokens. This recovery adds leqslant0.025% to analytical FLOPs, with persistent context storage approximately 1/2,600 that of a Transformer's full MHA KV cache at matched width, depth, and precision. Experiments extend from three 1.3B recurrent backbones to Mamba-2-8B and post-trained Qwen3.5-9B, demonstrating gains on LongBench v1/v2 and MemoryAgentBench. Together, these results show that sparse evidence storage and native replay can substantially expand the long-context capability of pretrained linear attention models while retaining the efficiency of recurrent computation.

Community

Paper author Paper submitter

Linear attention doesn’t have to forget—and you don’t have to retrain it.

intro_demo

NoteBank is a plug-and-play memory that uses a model’s own features to retrieve evidence and its native forward pass to replay it.

With no additional training: Gated DeltaNet jumps from 1.7% → 70.3% on six RULER retrieval tasks at 1M tokens, and Qwen3.5-9B (Hybrid Models) improves from 46.1% → 49.3% on the evaluated LongBench-v2 QA/dialogue subset.

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2610.15715
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2610.15715 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2610.15715 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2610.15715 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.