mlsanityData to 14 Oct 2026

DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration

arXiv 2506.11104 ↗First posted 6 Jun 2025cs.CL cs.AIcited by 4

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Long-context understanding is crucial for many NLP applications, yet transformers struggle with efficiency due to the quadratic complexity of self-attention. Sparse attention methods alleviate this cost but often impose static, predefined masks, failing to capture heterogeneous attention patterns. This results in suboptimal token interactions, limiting adaptability and retrieval accuracy in long-sequence tasks. This work introduces a dynamic sparse attention mechanism that assigns adaptive masks at the attention-map level, preserving heterogeneous patterns across layers and heads. Unlike existing approaches, our method eliminates the need for fine-tuning and predefined mask structures while maintaining computational efficiency. By learning context-aware attention structures, it achieves high alignment with full-attention models, ensuring minimal performance degradation while reducing memory and compute overhead. This approach provides a scalable alternative to full attention, enabling the practical deployment of large-scale Large Language Models (LLMs) without sacrificing retrieval performance. DAM is available at: https://github.com/HanzhiZhang-Ulrica/DAM.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 32 of its 38 references that are in the map. First posted on arXiv 6 Jun 2025.

Builds on

32 of 38 references.

Closest ancestors · 9

Same direction, newest first

  1. 2024DiffKV: Differentiated Memory Management for Large Language Models with Parallel KV Compaction4 Dec
  2. 2024BUZZ: Beehive-structured Sparse KV Cache with Segmented Heavy Hitters for Efficient LLM Inference30 Oct
  3. 2024LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management1 Oct
  4. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  5. 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttention23 Mar
  6. 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference14 Mar
  7. 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition23 Feb
  8. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  9. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  5. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  6. 2020Reformer: The Efficient Transformercited by 1,668
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  8. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  9. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  10. 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
  11. 2019Axial Attention in Multidimensional Transformerscited by 358
  12. 2019Adaptively Sparse Transformerscited by 155
11 more
  1. 2023LongEval: Guidelines for Human Evaluation of Faithfulness in Long-form Summarizationcited by 96
  2. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 83
  3. 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 81
  4. 2024MemServe: Context Caching for Disaggregated LLM Serving with Elastic Memory Poolcited by 68
  5. 2020Masked Language Modeling for Proteins via Linearly Scalable Long-Context Transformerscited by 49
  6. 2021Global Attention Mechanism: Retain Information to Enhance Channel-Spatial Interactionscited by 39
  7. 2020ETC: Encoding Long and Structured Inputs in Transformerscited by 34
  8. 2024BatchLLM: Optimizing Large Batched LLM Inference with Global Prefix Sharing and Throughput-oriented Token Batchingcited by 32
  9. 2019Lightweight and Efficient Neural Natural Language Processing with Quaternion Networkscited by 26
  10. 2021A Dynamic Head Importance Computation Mechanism for Neural Machine Translationcited by 4
  11. 2020Multi-Head Self-Attention with Role-Guided Maskscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
  2. 2025Stream: Scaling up Mechanistic Interpretability to Long Context in LLMs via Sparse Attention
  3. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  4. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
  5. 2026Titan-Llama: Retrofitting Pre-trained LLMs with External Neural Memory Modules
  6. 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMs
  7. 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
  8. 2025SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefilling