# Raven: High-Recall Sequence Modeling via Sparse Memory Routing

*Arshia Afzal, Aviv Bick, Eric Xing, Volkan Cevher, Albert Gu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152432) · [OpenReview](https://openreview.net/forum?id=TAeR7iXyQR) · [alphaXiv](https://www.alphaxiv.org/abs/2607.25357) · [Open on the map](../papers.html#p152432)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Linear Attention Memory Mechanisms](../pgroup/24.md) · Type: new method · Keywords: sequence modeling, sparse memory routing, long-context recall, linear-time models, memory slot updates

Areas: [Memory](../areas/memory.md) › Memory mechanisms › State-Space Memory; [Long Context](../areas/longcontext.md) › Long-context mechanisms › State space models for long sequences; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Long-Context Memory

## Summary
Raven introduces a linear-time sequence model with a fixed set of memory slots and input-dependent sparse routing to improve long-context recall.

## Explained to a 5-year-old
Raven is a new way to remember things in a long story. It has a few special boxes to keep memories. When a new part comes, it only updates some boxes based on what the story is about. This helps it remember far-away parts better than old methods. It makes remembering long stories easier.

## Explained to a 5-year-old, longer
Raven is a computer program that reads long sequences of information, like a very long book. It wants to remember important parts of the book even after reading many pages. Old methods either remember everything (which gets messy) or only remember recent pages (which forgets old parts). Raven uses a few special memory slots that act like tiny notebooks. At each step, it looks at the new information and decides which notebooks to update, based on what the information is about. This way, it keeps some old memories safe while adding new ones. The program updates only a few slots, not all of them, which reduces interference. It also avoids the problem of old memories being overwritten because it can choose which slots to use. This makes it better at recalling distant parts of the sequence. The method works well on tests that check how well it remembers far-away items. It also works when the program is given much longer sequences than it was trained on. This helps it be useful for tasks that need long-term memory, like understanding long documents or long conversations.

## For a technical reader
Raven is a linear-time sequence model that addresses the tradeoff between dense and sparse memory updates. It maintains a fixed set of memory slots and uses learned, input-dependent routing to decay and update only a subset of slots each step. This sparse routing reduces interference from dense updates and avoids hard eviction of old tokens, improving long-range recall. Evaluations on recall-intensive benchmarks show it matches or exceeds prior linear-time baselines and scales to contexts up to 16× the training length. The design can be integrated into hybrid architectures to boost long-context performance.

## Problem
Long-context recall in linear-time sequence models suffers from a tradeoff: dense updates cause interference, while sparse updates limit recall to a fixed window.

## Method
The approach maintains a fixed set of memory slots and, at each step, decays and updates only a selected subset via learned, input-dependent routing.

## Results
The approach achieves strong long-context recall on recall-intensive benchmarks, outperforming prior linear-time baselines, and remains effective when extrapolating to contexts up to 16 times the training length.

## Contributions
It proposes a fixed memory slot mechanism with input-dependent sparse routing that balances dense and sparse writing, improving long-range recall, and demonstrates effectiveness on recall-intensive benchmarks and at large context extrapolation.

## Research questions this paper is counted under

- [How can linear attention models improve long-range recall while maintaining computational efficiency and avoiding interference?](../q/331.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152432)
