mlsanityData to 26 Nov 2026

State Space Attention: Learning Context-Dependent Memory Retention

arXiv 2611.33625 ↗Submitted 25 Nov 2026Announced 26 Nov 2026cs.LG cs.CLcited by 0

On the map: Efficient LLM inference and serving → KV cache optimization also fits: Prompt and context compression

Abstract (arXiv)

Standard attention's key-value cache grows linearly with context length. Bounding it raises the question of what a sequence model should retain for long-context reasoning. We argue this choice should be learned, and introduce State Space Attention (SSA), which learns to keep a bounded set of past representations and reads them with standard attention. A learned scorer rescores every chunk against newly arriving context and the rest of memory. A fixed-context Transformer is then the special case that always keeps the most recent tokens. We train the scorer and reader jointly, either moving gradually from a differentiable soft weighting of memories to hard retention, or with hard retention from the start. To produce signal for the scorer, we generate supervised samples during training, a technique we call recovery. We compare SSA with recurrent models, bounded-memory attention methods, and full-attention Transformers across retrieval, variable tracking, multi-hop reasoning, and language modeling. On our retrieval and reasoning benchmarks, SSA matches or comes within a few points of full attention on most tasks, far outperforms a Transformer with the same readable budget on every long-context retrieval task we evaluate, and matches or outperforms one with about 4 times that budget, while using constant inference memory. The largest remaining gap to full attention at small language model scale is on RULER. SSA makes a fixed number of tokens useful over a longer context, and since it reads memory with standard attention, we propose that it can be stacked with KV cache eviction methods. We also pretrain and post-train 400M-parameter models and measure how SSA's training and inference costs scale with context length and model size. Together, these experiments examine the capabilities and limitations of learned memory retention for long-context sequence modeling.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Submitted 25 Nov 2026, announced 26 Nov 2026.

Builds on

0 of 0 references.

No references here yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Overcoming Long-Context Limitations of State-Space Models via Context-Dependent Sparse Attention
  2. 2026Retrieval-Aware Distillation for Transformer-SSM Hybrids
  3. 2026SchemaMem: Schema-Indexed Recurrent Memory for Delayed State Retrieval
  4. 2026Remembering Distinct Items, Not Tokens: A Learnable Dirichlet-Process Cache Between State-Space Models and Attention
  5. 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors
  6. 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
  7. 2026MKA: Memory-Keyed Attention for Efficient Long-Context Reasoning
  8. 2026Simplified Sparse Attention via Gist Tokens