The Research Report
Sparse Delta Memory: Meta Scales Linear RNNs to Match Transformers With Constant Inference Cost
Meta FAIR researchers have introduced Sparse Delta Memory (SDM), an architecture that lets gated linear RNNs carry up to 1,000× more memory state than prior approaches — without adding a single extra FLOP per token. The result: transformer-level quality on language tasks at a fixed, constant inference cost regardless of sequence length.
The paper, published July 8, 2026 on arXiv (2607.07386), comes from a team led by Pierre-Emmanuel Mazaré, Matthijs Douze, Hervé Jégou, and Gabriel Synnaeve at Meta FAIR, with collaborators from Inria Paris and the University of Tübingen.
The Core Idea
Linear RNNs like Mamba2 and Gated DeltaNet (GDN) compress all past tokens into a fixed-size hidden state. This keeps inference cheap but caps recall — the state simply isn't big enough to store detailed information over long sequences. Making the state bigger sounds obvious, but dense update rules make that linearly more expensive in compute.
SDM sidesteps this by sparsifying the delta rule update. Instead of writing a dense key-value outer product at every step, SDM uses a product-key memory scheme to address only a handful of relevant slots in a massive memory tensor. Reads and writes touch k slots out of N≈10⁶, so per-token cost stays constant even as state capacity grows by orders of magnitude.
What the Numbers Show
Under isoFLOP comparisons (same compute budget, same parameter count), SDM with a larger state significantly outperforms GDN on the RULER long-context recall benchmark and shows better in-context learning across sequences up to 1 million tokens.
The team also trained 8B activated-parameter models on over 1 trillion tokens. At that scale, SDM achieves a lower training loss and slightly better short-context accuracy than a full-attention transformer — not just matching but surpassing attention on some metrics.
A learned initial state turns the memory into a parametric knowledge store, further boosting common-knowledge and reasoning benchmarks. GDN can't do this effectively because its dense state is too small to hold meaningful pretrained knowledge.
What This Means
For end users: Models built on SDM could process arbitrarily long contexts — full codebases, hour-long videos, extended agent workflows — without the memory blowup that makes transformer KV caches prohibitively expensive at long sequences. The inference cost stays flat whether you're processing 100 tokens or 1 million.
For engineers: SDM drops into the linear RNN family as a drop-in replacement for GDN layers. The sparse addressing uses product-key memory, a well-understood indexing technique from PKM literature. The architecture preserves the key RNN property: O(1) memory and compute per token, independent of sequence length. Training stability at 8B scale and 1T tokens is demonstrated. The learned-initial-state trick is a free win — it converts the recurrent state into an additional knowledge parameter without architecture changes.
Contrarian note: The gains over full attention at 8B scale are described as "slightly better" on short-context accuracy and lower training loss. That's a strong result, but transformer quality at short contexts has been the result of years of optimization across every layer of the stack — attention masking, positional encoding, routing, mixture-of-experts. SDM's advantage is fundamentally about long-context cost, not raw quality. Whether the gap holds as transformers adopt sparse attention and KV compression of their own is an open question. The paper also doesn't yet report results beyond 8B parameters; linear RNNs have historically struggled more at the largest scales.
Source: arXiv:2607.07386 — Mazaré et al., Meta FAIR, July 2026