Research map / Architectures and efficiency / Attention and transformers
DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration
Hanzhi Zhang, Heng Fan, Kewei Sha, Yan Huang, Yunhe Feng
University of North Texas
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use DAM sparse masks instead of full attention | Llama-3.2-3B-Instruct · LongEval | average accuracy: 0.8011 -> 0.7966 | No clear effect |
| use DAM instead of MoA / StreamingLLM beyond 20K tokens | Llama-3.2-3B-Instruct · LongEval | accuracy: MoA 0.394, StreamingLLM 0.356 beyond 20K | Improved |
| use DAM instead of MoA, StreamingLLM, H2O | Llama-3.2-3B-Instruct · LV-Eval (64K) | retrieval score: 7.56 / 7.47 / 7.59 -> 18.61 | Improved |
| use DAM instead of full attention | Llama-3.2-3B-Instruct · LV-Eval (64K) | retrieval score: 19.29 -> 18.61 | Hurt |
| use DAM instead of dense attention | Llama-3.2-1B · Efficiency, 4k tokens | GPU memory (GB): 38.10 -> 8.35 | Improved |
| use DAM instead of FlashAttention | Llama-3.2-1B · Efficiency, 4k tokens | throughput (tokens/s): 633.456 -> 941.22 | Improved |
| use DAM instead of FlashAttention | Llama-3.2-1B · Efficiency, 8k tokens | throughput (tokens/s): 69823.4 -> 639.653 | Hurt |
| use Box-Cox instead of square-root transform for attention maps (ablation) | DAM mask generation · Layer 25 head 9 attention values | max transformed value: 149.95 -> 2.00 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 0 of 1 on most shared results.
- FlashAttention — FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness (NeurIPS 2022) · better on 1 of 2 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference (ICLR 2025 · similarity 0.90)
- Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps (NeurIPS 2026 · similarity 0.90)
- CateKV: On Sequential Consistency for Long-Context LLM Inference Acceleration (ICML 2025 · similarity 0.89)
- Curse of High Dimensionality Issue in Transformer for Long Context Modeling (ICML 2025 · similarity 0.89)
- Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration (ICML 2024 · similarity 0.89)
- A Training-Free Sub-quadratic Cost Transformer Model Serving Framework with Hierarchically Pruned Attention (ICLR 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.