arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.03560cs.CLcs.AI
收藏

HySparse:一种混合稀疏注意力架构,具有oracle令牌选择和KV缓存共享

HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharing

Xiaomi(小米)

Yizhao Gao, Jianyu Wei, Qihao Zhang, Yu Cheng, Shimao Chen, Zhengju Tang, Zihan Jiang, Yifan Song, Hailin Zhang, Liang Zhao, Bo Yang, Gang Wang, Shijie Cao, Fuli Luo

AI总结:

HySparse通过利用完整注意力层作为oracle进行令牌选择和KV缓存共享,提高了稀疏注意力机制的效率和性能。

摘要:

本文介绍了HySparse,一种新的架构,将每个完整的注意力层与几个稀疏注意力层交错。尽管概念上简单,HySparse战略性地从 preceding 的完整注意力层直接推导出每个稀疏层的令牌选择和KV缓存。这种架构解决了先前稀疏注意力方法的两个根本限制。首先,传统方法通常依赖于额外的代理来预测令牌重要性,引入了额外的复杂性并可能导致性能不佳。相反,HySparse使用完整的注意力层作为精确的oracle来识别重要的令牌。其次,现有的稀疏注意力设计通常减少计算而不节省KV缓存。HySparse使稀疏注意力层能够重用完整的注意力KV缓存,从而减少计算和内存。我们评估了HySparse在7B密集和80B MoE模型上的表现。在所有设置中,HySparse始终优于完整的注意力和混合SWA基线。值得注意的是,在80B MoE模型中,共有49层,只有5层使用完整的注意力,但HySparse在减少KV缓存存储近10倍的同时实现了显著的性能提升。

英文摘要:

This work introduces Hybrid Sparse Attention (HySparse), a new architecture that interleaves each full attention layer with several sparse attention layers. While conceptually simple, HySparse strategically derives each sparse layer's token selection and KV caches directly from the preceding full attention layer. This architecture resolves two fundamental limitations of prior sparse attention methods. First, conventional approaches typically rely on additional proxies to predict token importance, introducing extra complexity and potentially suboptimal performance. In contrast, HySparse uses the full attention layer as a precise oracle to identify important tokens. Second, existing sparse attention designs often reduce computation without saving KV cache. HySparse enables sparse attention layers to reuse the full attention KV cache, thereby reducing both computation and memory. We evaluate HySparse on both 7B dense and 80B MoE models. Across all settings, HySparse consistently outperforms both full attention and hybrid SWA baselines. Notably, in the 80B MoE model with 49 total layers, only 5 layers employ full attention, yet HySparse achieves substantial performance gains while reducing KV cache storage by nearly 10x.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑