RRAttention: Dynamic Block Sparse Attention via Per-Head Round-Robin Shifts for Long-Context Inference

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Liu, Siran, Wang, Guoxia, Wang, Sa, Zeng, Jinle, Xie, HaoYang, Lou, Siyu, Yang, JiaBin, Yu, DianHai, Wang, Haifeng, Yang, Chao
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915778269282304
author Liu, Siran
Wang, Guoxia
Wang, Sa
Zeng, Jinle
Xie, HaoYang
Lou, Siyu
Yang, JiaBin
Yu, DianHai
Wang, Haifeng
Yang, Chao
author_facet Liu, Siran
Wang, Guoxia
Wang, Sa
Zeng, Jinle
Xie, HaoYang
Lou, Siyu
Yang, JiaBin
Yu, DianHai
Wang, Haifeng
Yang, Chao
contents The quadratic complexity of attention mechanisms poses a critical bottleneck for large language models processing long contexts. While dynamic sparse attention methods offer input-adaptive efficiency, they face fundamental trade-offs: requiring preprocessing, lacking global evaluation, violating query independence, or incurring high computational overhead. We present RRAttention, a novel dynamic sparse attention method that simultaneously achieves all desirable properties through a head \underline{r}ound-\underline{r}obin (RR) sampling strategy. By rotating query sampling positions across attention heads within each stride, RRAttention maintains query independence while enabling efficient global pattern discovery with stride-level aggregation. Our method reduces complexity from $O(L^2)$ to $O(L^2/S^2)$ and employs adaptive Top-$τ$ selection for optimal sparsity. Extensive experiments on natural language understanding (HELMET) and multimodal video comprehension (Video-MME) demonstrate that RRAttention recovers over 99\% of full attention performance while computing only half of the attention blocks, achieving 2.4$\times$ speedup at 128K context length and outperforming existing dynamic sparse attention methods.
format Preprint
id arxiv_https___arxiv_org_abs_2602_05853
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle RRAttention: Dynamic Block Sparse Attention via Per-Head Round-Robin Shifts for Long-Context Inference
Liu, Siran
Wang, Guoxia
Wang, Sa
Zeng, Jinle
Xie, HaoYang
Lou, Siyu
Yang, JiaBin
Yu, DianHai
Wang, Haifeng
Yang, Chao
Computation and Language
The quadratic complexity of attention mechanisms poses a critical bottleneck for large language models processing long contexts. While dynamic sparse attention methods offer input-adaptive efficiency, they face fundamental trade-offs: requiring preprocessing, lacking global evaluation, violating query independence, or incurring high computational overhead. We present RRAttention, a novel dynamic sparse attention method that simultaneously achieves all desirable properties through a head \underline{r}ound-\underline{r}obin (RR) sampling strategy. By rotating query sampling positions across attention heads within each stride, RRAttention maintains query independence while enabling efficient global pattern discovery with stride-level aggregation. Our method reduces complexity from $O(L^2)$ to $O(L^2/S^2)$ and employs adaptive Top-$τ$ selection for optimal sparsity. Extensive experiments on natural language understanding (HELMET) and multimodal video comprehension (Video-MME) demonstrate that RRAttention recovers over 99\% of full attention performance while computing only half of the attention blocks, achieving 2.4$\times$ speedup at 128K context length and outperforming existing dynamic sparse attention methods.
title RRAttention: Dynamic Block Sparse Attention via Per-Head Round-Robin Shifts for Long-Context Inference
topic Computation and Language
url https://arxiv.org/abs/2602.05853