← Latest papers
🤖 machine learning

Sparse Delta Memory: Scaling the State of Linear RNNs through Sparsity

This paper introduces Sparse Delta Memory (SDM), a novel architecture that scales the hidden state capacity of gated linear RNNs through sparse addressing to significantly improve long-context recall and in-context learning performance while maintaining fixed computational costs and parameter counts.

Original authors: Loïc Cabannes, Pierre-Emmanuel Mazaré, Gergely Szilvasy, Matthijs Douze, Maria Lomeli, Ilze Amanda Auzina, Justin Carpentier, Gabriel Synnaeve, Hervé Jégou

Published 2026-07-09
📖 5 min read🧠 Deep dive

Original authors: Loïc Cabannes, Pierre-Emmanuel Mazaré, Gergely Szilvasy, Matthijs Douze, Maria Lomeli, Ilze Amanda Auzina, Justin Carpentier, Gabriel Synnaeve, Hervé Jégou

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to remember a story that is 1 million words long.

The Old Problem: The "Filing Cabinet" vs. The "Backpack"
Current AI models (Transformers) work like a filing cabinet. Every time they read a new word, they add a new folder to the cabinet. If the story is short, the cabinet is small and easy to manage. But if the story is a million words long, the cabinet becomes massive, heavy, and slow to search through. The computer has to carry this entire cabinet with it for every single step of the story. This is why current AI struggles with very long contexts; it runs out of room or gets too slow.

Other models (Linear RNNs like GDN or Mamba) try to be smarter. They use a backpack. Instead of carrying every folder, they summarize the story into a few notes and throw the rest away. This keeps the backpack light and fast, no matter how long the story gets. However, the problem is that the backpack is too small. It can only hold a tiny summary, so the AI forgets important details from the beginning of the story by the time it reaches the end.

The New Solution: Sparse Delta Memory (SDM)
The authors of this paper introduce a new system called Sparse Delta Memory (SDM). Think of this as a giant, magical library that the AI can access instantly, but it only pulls out the specific books it needs at any given moment.

Here is how it works, using simple analogies:

  1. The Giant Library (The Memory):
    Instead of a tiny backpack, SDM has a massive library with millions of shelves (memory slots). This is huge compared to the old backpack. It can hold a vast amount of information about the story.

  2. The Smart Librarian (Sparse Access):
    You might think, "If the library is so big, won't it take forever to find the right book?"
    The paper says no. SDM uses a "sparse" system. Imagine the librarian doesn't walk through every single aisle. Instead, they have a special index card system. When the AI needs information, it only looks at a tiny handful of specific shelves (maybe 64 out of millions) that are most relevant to the current word. It ignores the rest.

    • The Result: The AI gets the benefit of a massive memory (the whole library) but only pays the energy cost of checking a few shelves. It's like having a super-computer brain that can remember everything but only "thinks" about the most important things at any split second.
  3. The "Delta" Update (The Sticky Note):
    When the AI learns something new, it doesn't rewrite the whole library. It uses a "Delta" rule. Think of it like putting a sticky note on a specific page in a specific book. It only updates the parts of the memory that need changing, leaving the rest untouched. This prevents the AI from getting confused or "overwriting" old, useful memories.

  4. The "Learned" Start (The Pre-loaded Brain):
    The paper also mentions that SDM can be "pre-loaded" with knowledge before it even starts reading the story. Imagine giving the librarian a set of encyclopedias on general knowledge (like history, science, or common sense) before they start working. This allows the AI to understand the world better right from the start, rather than just memorizing the story it's currently reading.

What the Paper Found
The researchers tested this new "Library" against the old "Backpack" (GDN) and the heavy "Filing Cabinet" (Full Attention).

  • Memory vs. Speed: They proved that you can make the memory thousands of times bigger without making the computer slower or using more electricity.
  • Long Stories: When tested on very long tasks (like reading a whole book or a long code project), SDM remembered details much better than the old backpack models. It was almost as good as the heavy filing cabinet but without the speed penalty.
  • Smarter Thinking: Because the memory is so big, the AI could also store general knowledge inside it. This made it better at reasoning and answering questions, not just remembering the story.

The Catch
The paper admits one limitation: While the speed is fast, the storage space required for this giant library is still large. It takes up a lot of computer memory (RAM), similar to the size of the model itself. However, the authors argue that this is still better than the alternative, because the "Filing Cabinet" (current AI) eventually runs out of memory entirely when stories get too long.

In Summary
SDM is like giving an AI a massive, infinite notebook where it can write down everything, but it only has to flip through a few pages to find what it needs. This allows the AI to remember long stories perfectly without getting tired or slow.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →