Back to AI News
arxiv

Dual-Band Attention Cuts Long-Context LLM Prefill Cost With Training-Free Block Sparsity

Dual-Band Attention (DBA) is a training-free, dynamic sparse attention mechanism for the inference prefill phase of long-context LLMs. It uses a lightweight estimator with dual-band sampling and tensor folding to pick high-importance attention blocks, plus a Compact Block Mask that shrinks mask storage and drives a hardware-aligned block sparse kernel that skips unselected blocks. On Llama-3.1-8B-Instruct at a 128K context length, the authors report a 2.07x whole-model prefill speedup over FlashAttention 2 on an NVIDIA A100 and 1.82x over FlashAttention 3 on an NVIDIA H20. Accuracy is roughly flat versus dense attention: 0.5 points lower on RULER averaged over six input lengths and 0.23 points higher on LongBench, with video experiments also reporting frame-level similarity comparable to XAttention.

AI Brief

It offers a concrete, training-free route to faster long-context prefill with near-dense accuracy, which matters to anyone serving 128K-context models on A100 or H20 hardware.

arXiv:2612.01823v1 Announce Type: cross 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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!