Saved in:
Bibliographic Details
Main Authors: Wang, Yixuan, He, Huang, Bao, Siqi, Wu, Hua, Wang, Haifeng, Zhu, Qingfu, Che, Wanxiang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.24745
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908925537812480
author Wang, Yixuan
He, Huang
Bao, Siqi
Wu, Hua
Wang, Haifeng
Zhu, Qingfu
Che, Wanxiang
author_facet Wang, Yixuan
He, Huang
Bao, Siqi
Wu, Hua
Wang, Haifeng
Zhu, Qingfu
Che, Wanxiang
contents The quadratic complexity of attention mechanisms limits the efficiency of Large Language Models (LLMs) on long-text tasks. Recently, methods that dynamically estimate block importance have enabled efficient block sparse attention, leading to significant acceleration in long-text pre-filling of LLMs. However, their coarse-grained estimation inevitably leads to performance degradation at high sparsity rates. In this work, we propose ProxyAttn, a training-free sparse attention algorithm that achieves more precise block estimation by compressing the dimension of attention heads. Based on our observation of the similarity among multiple attention heads, we use the scores of pooled representative heads to approximate the scores for all heads. To account for the varying sparsity among heads, we also propose a block-aware dynamic budget estimation method. By combining the scores from representative proxy heads with multi-head dynamic budgets, we achieve a more fine-grained block importance evaluation at low computational cost. Experiments on a variety of mainstream models and extensive benchmarks confirm the underlying similarity among attention heads. Leveraging a fine-grained estimation, the proposed method achieves substantial gains in performance and efficiency compared to existing methods. More precisely, ProxyAttn can achieve up to 10.3x attention acceleration and 2.4x prefilling acceleration without significant performance loss. Our code is available at https://github.com/wyxstriker/ProxyAttn.
format Preprint
id arxiv_https___arxiv_org_abs_2509_24745
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ProxyAttn: Guided Sparse Attention via Representative Heads
Wang, Yixuan
He, Huang
Bao, Siqi
Wu, Hua
Wang, Haifeng
Zhu, Qingfu
Che, Wanxiang
Computation and Language
Machine Learning
The quadratic complexity of attention mechanisms limits the efficiency of Large Language Models (LLMs) on long-text tasks. Recently, methods that dynamically estimate block importance have enabled efficient block sparse attention, leading to significant acceleration in long-text pre-filling of LLMs. However, their coarse-grained estimation inevitably leads to performance degradation at high sparsity rates. In this work, we propose ProxyAttn, a training-free sparse attention algorithm that achieves more precise block estimation by compressing the dimension of attention heads. Based on our observation of the similarity among multiple attention heads, we use the scores of pooled representative heads to approximate the scores for all heads. To account for the varying sparsity among heads, we also propose a block-aware dynamic budget estimation method. By combining the scores from representative proxy heads with multi-head dynamic budgets, we achieve a more fine-grained block importance evaluation at low computational cost. Experiments on a variety of mainstream models and extensive benchmarks confirm the underlying similarity among attention heads. Leveraging a fine-grained estimation, the proposed method achieves substantial gains in performance and efficiency compared to existing methods. More precisely, ProxyAttn can achieve up to 10.3x attention acceleration and 2.4x prefilling acceleration without significant performance loss. Our code is available at https://github.com/wyxstriker/ProxyAttn.
title ProxyAttn: Guided Sparse Attention via Representative Heads
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2509.24745