# RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable State

*Kaicheng Xiao, Haotian Li, Liran Dong, Guoliang Xing*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152777) · [Open on the map](../papers.html#p152777)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Linear Attention Memory Mechanisms](../pgroup/24.md) · Type: new method · Keywords: linear attention, sparse addressing, sequence modeling, inter-token interference, efficient retrieval

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
RAM-Net introduces a linear-time sequence model that uses sparsely addressable independent state slots to reduce inter-token interference and improve fine-grained long-range recall.

## Explained to a 5-year-old
We have a tiny memory that holds pieces of information. Each piece gets a special address, like a mailbox. When we read or write something, we only touch the mailbox that belongs to that piece, so they don't get mixed up. This helps us remember things far away without using a lot of space.

## Explained to a 5-year-old, longer
Imagine a big book where we write down everything we see. Usually, all the writing is mixed together, so it's hard to find a specific word far away. This new idea uses a memory that is like a set of small boxes. Each box can hold one piece of information, and we give each piece a special label. When we need to remember something, we put it in the box that matches its label. When we want to find it later, we look only in that box. This way, the boxes never get confused, and we can find far-away pieces quickly. It also uses less space than the old way, which was like filling the whole book with everything. This helps us keep track of things over long distances without making the book huge. It works well for reading long stories, answering questions, and even understanding how things relate to each other. The boxes are arranged in a line, so we can go from one to the next quickly, just like walking along a path. By using only a few boxes at a time, the system stays fast and doesn't need a lot of memory. This makes it possible to use the idea on small devices, like phones or robots, where space is limited. Overall, it is like having a smart filing system that keeps everything organized and easy to find.

## For a technical reader
RAM-Net introduces a linear-time sequence model that replaces a shared recurrent state with a fixed-size array of independent slots. An address decoder maps each key or query to a sparse address, selecting only a few slots for read or write operations per step. This sparse addressing isolates token representations, reducing interference and improving fine-grained long-range recall. Empirically, the approach outperforms strong linear baselines on retrieval tasks while using orders of magnitude fewer state accesses than models like Mamba2. The design is simple to implement and can be dropped into existing linear-attention pipelines for faster, more accurate sequence processing.

## Problem
Linear attention models rely on a shared recurrent state, causing information from different tokens to be superposed and leading to inter-token interference that harms fine-grained long-range recall.

## Method
The approach organizes the recurrent state as a fixed-size array of independent slots and uses an address decoder to map keys or queries to sparse addresses, selecting a small subset of slots for read or write operations per step, thereby directing tokens to disjoint slots and reducing interference.

## Results
The approach outperforms strong linear baselines on fine-grained long-range retrieval and remains competitive on language modeling and commonsense reasoning, while using 32 times fewer state elements per step than baselines such as Mamba2.

## Contributions
The paper proposes a design that replaces dense shared state with sparsely addressable independent slots, enabling linear-time sequence modeling with reduced inter-token interference, and demonstrates its effectiveness on retrieval and language tasks.

## 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/152777)
