atlas

Research map / Architectures and efficiency / Attention and transformers

Overcoming Long Context Limitations of State Space Models via Context Dependent Sparse Attention

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces joint recall, a context-dependent extension of associative recall, proves SSMs need sub-quadratic CDSA to solve it, and proposes HAX (LSH attention plus learned key selection attention) hybridized with Mamba, which outperforms Mamba and CISA hybrids on synthetic and real long-context benchmarks.

Problem

State-space models lag Transformers on long-context modeling; the standard associative recall synthetic task does not capture context-dependent key-value associations found in natural language, and SSMs cannot solve multi-query joint recall in sub-quadratic time.

Approach

Extend associative recall to joint recall (values depend on a context), prove SSMs need state size linear in table entries and that SSM + context-dependent sparse attention (LSH) can solve it sub-quadratically, then build HAX, a hybrid of LSH attention and a learned key selection attention that captures globally important "vertical-stripe" keys, added in parallel to Mamba/Mamba2 layers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Integrate Mamba with HAXMamba 790M · Ruler 2KAverage: 42.43 -> 44.57Helped
Integrate Mamba with HAXMamba 790M · LongBench English tasksAverage: 19.79 -> 19.95Helped
Integrate Mamba with HAXMamba 790M · Ruler 4K extrapolationAverage: 27.04 -> 28.20Helped
Add Key Selection attention to LSH attention (ablation)Mamba + LSH · Ruler 2KAverage: 8.36 -> 44.57Helped
Add LSH attention to Key Selection attention (ablation)Mamba + KS · Ruler 2KAverage: 43.10 -> 44.57Helped
Add Key Selection attention to LSH attention (ablation)Mamba + LSH · LongBench English tasksAverage: 2.31 -> 19.95Helped
Add LSH attention to Key Selection attention (ablation)Mamba + KS · LongBench English tasksAverage: 19.83 -> 19.95Helped
Add Key Selection attention to LSH attention (ablation)Mamba + LSH · Ruler 4K extrapolationAverage: 13.33 -> 28.20Helped
Add LSH attention to Key Selection attention (ablation)Mamba + KS · Ruler 4K extrapolationAverage: 27.20 -> 28.20Helped

Surprising findings

Limitations

Experimental setup

Datasets: multi-query joint recall synthetic dataset TxT-360 The Pile UltraChat

Benchmarks: Ruler LongBench LM evaluation harness

Metrics: accuracy validation loss average score

Baselines: Mamba Mamba2 dilated attention hybrid sliding window attention hybrid SW+D hybrid A-shaped attention hybrid LSH attention hybrid Samba

Builds on: Mamba Mamba2 locality-sensitive hashing attention (Reformer) associative recall Samba

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy