mlsanityData to 14 Oct 2026

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

arXiv 2507.00449 ↗First posted 1 Jul 2025cs.LG cs.CLcited by 5

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  5. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  6. 2020Reformer: The Efficient Transformercited by 1,668
  7. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  8. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  9. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  10. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
  11. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
  12. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
21 more
  1. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
  2. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  3. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  4. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
  5. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  6. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
  7. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  8. 2024The Illusion of State in State-Space Modelscited by 187
  9. 2024An Empirical Study of Mamba-based Language Modelscited by 186
  10. 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 174
  11. 2016Using Fast Weights to Attend to the Recent Pastcited by 170
  12. 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
  13. 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 64
  14. 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
  15. 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 33
  16. 2024B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memorycited by 26
  17. 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 25
  18. 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 24
  19. 2023Sparse Modular Activation for Efficient Sequence Modelingcited by 20
  20. 2024Expansion Span: Combining Fading Memory and Retrieval in Hybrid State Space Modelscited by 11
  21. 2024MemoryFormer: Minimize Transformer Computation by Removing Fully-Connected Layerscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 4.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
  2. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  3. 2026Long-Context Modeling via GSS-Transformer Hybrid Architecture with Learnable Mixing
  4. 2025Mechanistic evaluation of Transformers and state space models
  5. 2026The Impossibility Triangle of Long-Context Modeling
  6. 2025Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference
  7. 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
  8. 2026Parallel Causal Associative Fields: Gated Sparse Memory for Long-Context Language Modeling