Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inference
Not on the map. Why?
Abstract (arXiv)
The quadratic cost of attention limits the scalability of long-context LLMs, especially under limited hardware memory budgets. While attention is often sparse, existing static sparse methods cannot adapt to task- or input-dependent variations, and recent dynamic approaches rely on predefined templates or heuristics that may sacrifice generality. We propose Dynamic Hierarchical Sparse Attention (DHSA), a data-driven framework that predicts attention sparsity online while keeping the LLM backbone frozen. DHSA performs hierarchical routing by estimating importance at the chunk level and propagating it to token-level interactions, preserving causally important dependencies while enabling efficient sparsification. Across Needle-in-a-Haystack test, LongBench and RULER, DHSA maintains near-dense accuracy in highly sparse regimes, achieving 12--20% relative accuracy gains over Block Sparse Attention at comparable prefill cost. With a memory-efficient tiled backend, DHSA delivers up to 10× prefill speedup at 128K context length. On LLaMA-3.1-8B (4-bit), DHSA scales to 100K context on a single 24GB GPU, where dense attention fails. We provide complementary GPU and CPU backends, enabling DHSA to run across diverse hardware environments and multiple open-weight model families. These results demonstrate DHSA as an efficient and adaptable solution for memory-constrained long-context LLM inference.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 39 of its 49 references that are in the map. First posted on arXiv 28 Oct 2025.
Builds on
39 of 49 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
27 more
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 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
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 124
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
- 2025LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculationcited by 14
- 2025Analytical FFN-to-MoE Restructuring via Activation Pattern Analysiscited by 8
- 2024The Compressor-Retriever Architecture for Language Model OScited by 5
- 2024From Pruning to Grafting: Dynamic Knowledge Redistribution via Learnable Layer Fusioncited by 2
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026DIVE: Unlocking Self-Improvement in Frozen Language Models Through Diversity-Driven Skill Evolutioncited by 5
- 2026Deadline-Aware Adaptive Prefill Chunking for Efficient Large Language Model Servingcited by 2
- 2026RouteSparse: Input-Conditional Pattern Routing for Budgeted Long-Context Prefillingcited by 1
- 2026Signed Rescue Routing: Harm-Aware Cascades for Efficient LLM Inferencecited by 1
- 2026CEDAR: Error-Bounded Residual Routing for Efficient Long-Context Attentioncited by 0
- 2026Separating Stream Stability from Long-Term Recall in Language Modelscited by 0
- 2026RouteRelay: Event-Triggered Cross-Layer Route Reuse for Efficient Dynamic Sparse Attentioncited by 0
- 2026Deadline-Aware Adaptive Prefill Chunking for Efficient Large Language Model Serving7 Sep 2026
- 2026Signed Rescue Routing: Harm-Aware Cascades for Efficient LLM Inference7 Sep 2026
- 2026RouteRelay: Event-Triggered Cross-Layer Route Reuse for Efficient Dynamic Sparse Attention7 Sep 2026
- 2026Separating Stream Stability from Long-Term Recall in Language Models7 Sep 2026
- 2026CEDAR: Error-Bounded Residual Routing for Efficient Long-Context Attention7 Sep 2026
- 2026RouteSparse: Input-Conditional Pattern Routing for Budgeted Long-Context Prefilling29 Aug 2026
- 2026DIVE: Unlocking Self-Improvement in Frozen Language Models Through Diversity-Driven Skill Evolution12 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attention
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference
- 2025SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefilling
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention