# GEAR: Generator-Adaptive State Space Models for Associative Recall

*Jun Meng, Mohammadhossein Amouei, Zengyu Lin, Xinyu Hu, Benjamin C. M. Fung*

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

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Linear Attention Memory Mechanisms](../pgroup/24.md) · Type: new method · Keywords: state space models, context-adaptive generation, associative recall, LoRA, in-context memory

Areas: [Memory](../areas/memory.md) › Memory mechanisms › State-Space Memory; [Long Context](../areas/longcontext.md) › Long-context mechanisms › State space models for long sequences

## Summary
GEAR introduces a slow-hypernetwork that generates LoRA coefficients for state space models, enabling context-adaptive associative recall while preserving linear-time inference.

## Explained to a 5-year-old
GEAR is a new trick that lets a computer model remember things it reads while it works. It works by making the model change a little bit when it sees new information, like a quick note. This helps the model answer questions about earlier parts of what it read. The model still works fast, just like before, so it doesn't get slow. In tests, the model remembers key-value pairs better than before.

## Explained to a 5-year-old, longer
GEAR is a new idea that helps a computer model keep track of things it reads while it thinks. It does this by letting the model make tiny changes when it sees new information, like writing a short note. These tiny changes help the model remember connections between a word and what it means, just like linking a name to a face. The model can then use those notes to answer questions about earlier parts of what it read. Even though it makes these notes, the model still works quickly, so it doesn't get slow. The method was tested on a special memory game where the model had to recall many pairs of items. In that game, the model remembered more pairs correctly than the old version. It also stayed good at normal reading tasks, so it didn't lose its regular abilities. The new method works especially well when there are many other unrelated things around, like background noise. This makes the model more useful for situations where you need to remember a lot of information.

## For a technical reader
GEAR adds a lightweight hypernetwork that dynamically adjusts the parameters of a state space model during inference. By generating LoRA-style updates on the fly, it gives the model temporary memory for key-value bindings without breaking the efficient linear scan. Experiments show measurable gains on associative recall benchmarks while keeping the original language modeling performance intact.

## Problem
Selective state space models such as Mamba-3 have fixed recurrent states, limiting their ability to use context as temporary memory for tasks like in-context associative recall.

## Method
The approach uses a slow hypernetwork to produce LoRA-style updates to the SSM token-to-recurrence parameter generators, making the generator context-adaptive while keeping the original linear-time scan operation intact.

## Results
On the Multi-Query Associative Recall task, the approach improves candidate-restricted negative log-likelihood by 0.70, 0.69, and 0.48 at N=32,64,128 respectively, while preserving language modeling performance under interference.

## Contributions
The paper introduces a context-adaptive generator for SSMs that enables in-context associative recall without sacrificing linear-time inference, and provides an empirical comparison showing gains on MQAR and robustness to random filler interference.

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/155668)
