Overcoming Long-Context Limitations of State-Space Models via Context-Dependent Sparse Attention
Not on the map. Why?
Abstract (arXiv)
Efficient long-context modeling remains a critical challenge for natural language processing (NLP), as the time complexity of the predominant Transformer architecture scales quadratically with the sequence length. While state-space models (SSMs) offer alternative sub-quadratic solutions, they struggle to capture long-range dependencies effectively. In this work, we focus on analyzing and improving the long-context modeling capabilities of SSMs. We show that the widely used synthetic task, associative recall, which requires a model to recall a value associated with a single key without context, insufficiently represents the complexities of real-world long-context modeling. To address this limitation, we extend the associative recall to a novel synthetic task, joint recall, which requires a model to recall the value associated with a key given in a specified context. Theoretically, we prove that SSMs do not have the expressiveness to solve multi-query joint recall in sub-quadratic time complexity. To resolve this issue, we propose a solution based on integrating SSMs with Context-Dependent Sparse Attention (CDSA), which has the expressiveness to solve multi-query joint recall with sub-quadratic computation. To bridge the gap between theoretical analysis and real-world applications, we propose locality-sensitive Hashing Attention with sparse Key Selection (HAX), which instantiates the theoretical solution and is further tailored to natural language domains. Extensive experiments on both synthetic and real-world long-context benchmarks show that HAX consistently outperforms SSM baselines and SSMs integrated with context-independent sparse attention (CISA).
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 33 of its 46 references that are in the map. First posted on arXiv 1 Jul 2025.
Builds on
33 of 46 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2020Reformer: The Efficient Transformercited by 1,668
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
21 more
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024The Illusion of State in State-Space Modelscited by 187
- 2024An Empirical Study of Mamba-based Language Modelscited by 186
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 174
- 2016Using Fast Weights to Attend to the Recent Pastcited by 170
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
- 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 64
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 33
- 2024B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memorycited by 26
- 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 25
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 24
- 2023Sparse Modular Activation for Efficient Sequence Modelingcited by 20
- 2024Expansion Span: Combining Fading Memory and Retrieval in Hybrid State Space Modelscited by 11
- 2024MemoryFormer: Minimize Transformer Computation by Removing Fully-Connected Layerscited by 5
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025VideoNSA: Native Sparse Attention Scales Video Understandingcited by 11
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Modelscited by 4
- 2026SMat-Attention: Structured Long-Context Sequence Modelingcited by 1
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Modelscited by 0
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generationcited by 0
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generation1 Oct 2026
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models15 Sep 2026
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models9 Mar 2026
- 2025VideoNSA: Native Sparse Attention Scales Video Understanding2 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
- 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
- 2026Long-Context Modeling via GSS-Transformer Hybrid Architecture with Learnable Mixing
- 2025Mechanistic evaluation of Transformers and state space models
- 2026The Impossibility Triangle of Long-Context Modeling
- 2025Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
- 2026Parallel Causal Associative Fields: Gated Sparse Memory for Long-Context Language Modeling