PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 29, 20250 citationsOpen Access

Accelerating Prefilling for Long-Context LLMs via Sparse Pattern Sharing

View Full Paper
DPDan PengZFZhihui FuZYZ. Ye

Key Points

  • The proposed method shows significant improvements in computational speed while maintaining accuracy.
  • By sharing attention patterns across heads, the approach achieves better efficiency compared to existing methods.
  • Evaluations confirmed that the new mechanism outperforms state-of-the-art sparse attention techniques.
  • Strong inter-head similarity in attention patterns leads to better performance in various contexts.

Abstract

Sparse attention methods exploit the inherent sparsity in attention to speed up the prefilling phase of long-context inference, mitigating the quadratic complexity of full attention computation. While existing sparse attention methods rely on predefined patterns or inaccurate estimations to approximate attention behavior, they often fail to fully capture the true dynamics of attention, resulting in reduced efficiency and compromised accuracy. Instead, we propose a highly accurate sparse attention mechanism that shares similar yet precise attention patterns across heads, enabling a more realistic capture of the dynamic behavior of attention. Our approach is grounded in two key observations: (1) attention patterns demonstrate strong inter-head similarity, and (2) this similarity remains remarkably consistent across diverse inputs. By strategically sharing computed accurate patterns across attention heads, our method effectively captures actual patterns while requiring full attention computation for only a small subset of heads. Comprehensive evaluations demonstrate that our approach achieves superior or comparable speedup relative to state-of-the-art methods while delivering the best overall accuracy.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Peng et al. (2025) studied this question.

synapsesocial.com/papers/68da5a3ec1728099cfd11a21https://doi.org/10.48550/arxiv.2505.19578
Ask AI
Helpful
Bookmark
Share
View Full Paper