Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling
Not on the map. Why?
Abstract (arXiv)
Scaling modern large language models (LLMs) to long contexts is limited by the quadratic computation cost, and poor length extrapolation of dense attention. Chunk-wise sparse attention offers a promising alternative, but all existing methods fall short of full attention because of their inaccurate chunk selection. We propose Hierarchical Landmark Sparse (HiLS) Attention, a chunk-wise sparse attention mechanism that learns chunk selection end-to-end under the language-modeling (LM) loss. HiLS factorizes attention hierarchically: each query performs attention independently with each retrieved chunk to extract chunk-specific information, and the resulting outputs are fused according to chunk retrieval scores. By incorporating retrieval scores into the forward attention computation, HiLS optimizes them directly with the LM loss, enabling end-to-end retrieval learning and native sparse training. Experimental results show that HiLS-Attention achieves performance comparable to, and in some cases better than, full attention at in-domain context lengths. Meanwhile, HiLS-Attention extrapolates more than 64× the training context length with 90% retrieval accuracy, far beyond full attention. Moreover, existing full-attention models can be converted to HiLS-Attention with lightweight continued pretraining, preserving in-domain performance while acquiring ultra-long-context extrapolation. Together with its sparse KV access and computation, HiLS-Attention breaks the usual efficiency-performance trade-off, enabling long-context LLMs that are both more efficient and more effective on general long-context tasks than their full-attention counterparts.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 37 of its 42 references that are in the map. First posted on arXiv 3 Jul 2026.
Builds on
37 of 42 references.
References · 37
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2025Qwen3 Technical Reportcited by 8,820
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
25 more
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024The Faiss librarycited by 376
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 124
- 2024Evaluating Language Models for Efficient Code Generationcited by 73
- 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 32
- 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
- 2025RATTENTION: Towards the Minimal Sliding Window Size in Local-Global Attention Modelscited by 10
- 2024Efficient Length-Generalizable Attention via Causal Retrieval for Long-Context Language Modelingcited by 9
- 2025Hardware-aligned Hierarchical Sparse Attention for Efficient Long-term Memory Accesscited by 9
- 2025Understanding and Improving Length Generalization in Hierarchical Sparse Attention Modelscited by 6
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 4
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Modelscited by 3
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026Fewer Tokens, Smaller Cache: Reward-Coordinated Efficient Reasoningcited by 2
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchorscited by 2
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Rankingcited by 2
- 2026LOCKS: Page-Local Compact Key Summaries for Efficient Long-Context Decodingcited by 1
- 2026Safin-1: Safety from Within through Memory-Native State Evolutioncited by 1
- 2026Block Sparse Attention with Log-Linear Complexitycited by 0
- 2026OMP-MoE: Efficient Expert Pruning for Mixture-of-Experts LLMs via Orthogonal Matching Pursuitcited by 0
- 2026The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging Trendscited by 0
- 2026UNREAL: Unifying Retrieval and Long-Context with a Single Modelcited by 0
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Positioncited by 0
- 2026Prefilling-dLLM v2: Learned Chunk Routing for Long-Context Diffusion Language Modelscited by 0
- 2026Kwai Summary Attention V2 Technical Reportcited by 0
- 2026Kwai Summary Attention V2 Technical Report13 Oct 2026
- 2026Prefilling-dLLM v2: Learned Chunk Routing for Long-Context Diffusion Language Models13 Oct 2026
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Position7 Oct 2026
- 2026UNREAL: Unifying Retrieval and Long-Context with a Single Model6 Oct 2026
- 2026The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging Trends30 Sep 2026
- 2026Block Sparse Attention with Log-Linear Complexity25 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026OMP-MoE: Efficient Expert Pruning for Mixture-of-Experts LLMs via Orthogonal Matching Pursuit9 Sep 2026
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors12 Aug 2026
- 2026Fewer Tokens, Smaller Cache: Reward-Coordinated Efficient Reasoning5 Aug 2026
- 2026LOCKS: Page-Local Compact Key Summaries for Efficient Long-Context Decoding27 Jul 2026