双频段注意力:基于轻量级块稀疏估计的高效LLM推理
Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation
导读
Zheng Liu 等作者提出免训练的动态稀疏注意力机制 Dual-Band Attention(DBA),用双频带采样与张量折叠的轻量估计器识别高重要性注意力块,并以紧凑块掩码引导硬件对齐的块稀疏内核跳过未选中块的计算与访存。在 Llama-3.1-8B-Instruct 上、128K tokens 上下文长度下,DBA 在 NVIDIA A100 GPU 上较 FlashAttention 2 取得 2.07 倍整模型 prefill 加速,在 NVIDIA H20 GPU 上较 FlashAttention 3 取得 1.82 倍加速;相比稠密注意力,其在 RULER 六个输入长度上平均低 0.5 分,在 LongBench 上高 0.23 分。
正在把原文翻译成中文,长文需要一两分钟;先显示原文。
Computer Science > Machine Learning
[Submitted on 1 Dec 2026]
Title:Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation
View a PDF of the paper titled Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation, by Zheng Liu and 5 other authors
Abstract:As large language models (LLMs) scale to longer context windows, the quadratic complexity of self-attention creates a severe latency bottleneck during the inference prefill phase. Existing sparse attention methods often struggle to balance computational efficiency with inference accuracy. To address this, we propose Dual-Band Attention (DBA), a training-free, dynamic sparse attention mechanism. DBA employs a lightweight estimator utilizing dual-band sampling and tensor folding to efficiently identify high-importance attention blocks. Furthermore, it introduces a Compact Block Mask (CBM) that reduces block mask storage and guides a hardware-aligned block sparse kernel to skip computation and memory accesses for unselected blocks. Evaluations using Llama-3.1-8B-Instruct demonstrate that DBA achieves a 2.07x whole-model prefill speedup over FlashAttention 2 on an NVIDIA A100 GPU and a 1.82x speedup over FlashAttention 3 on an NVIDIA H20 GPU, both at a context length of 128K tokens. Compared with dense attention, DBA scores 0.5 points lower on RULER on average across six input lengths and 0.23 points higher on LongBench. Additionally, in HunyuanVideo experiments, DBA achieves frame-level similarity scores comparable to those of XAttention, using dense attention outputs as the reference. Overall, DBA provides a practical solution for accelerating long-context LLM prefill.
| Comments: | 12 pages, 13 figures, under review |
|---|---|
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Performance (cs.PF) |
| Cite as: | arXiv:2612.01823 [cs.LG] |
| (or arXiv:2612.01823v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2612.01823 |
Submission history
From: Zheng Liu [view email]
[v1]
Tue, 1 Dec 2026 13:51:32 UTC (966 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation, by Zheng Liu and 5 other authors
Additional Features
Current browse context:
cs.LG
| next >
Change to browse by:
References & Citations
BibTeX formatted citation
Data provided by:
Bookmark
[
](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2612.01823&description=Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation "Bookmark on BibSonomy")
[
](https://reddit.com/submit?url=https://arxiv.org/abs/2612.01823&title=Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation "Bookmark on Reddit")
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
- Author
- Venue
- Institution
- Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
出处
- B 可靠arXiv cs.LG · RSS阅读原文 ↗
Dual-Band Attention: Efficient LLM Inference With Lightweight Block Sparsity Estimation