arXiv cs.AI· Hyunwoo Yu, Jongbeom Lee, Hyunbin Kim, Sungjun Park, Jaemin Choi, Jincheol Yang, Seunghun Moon, Bongjoon Hyun, Kyomin Sohn, Kyeongbo Kong, Suk-Ju Kang·· 3 小时前AI 评分50
OpenAttention:用尾部代理实现 1% 读取即够用的稀疏注意力
OpenAttention: One Percent Is Enough with Tail Proxies
AI 导读
论文提出 OpenAttention 稀疏注意力方法,通过聚类、ErrorGate 和 top-k 选择加上计数感知均值代理来处理稀疏注意力中未被读取的尾部 KV cache。在 RULER-32K HARD 上用 Llama-3.1-8B 测试,1% 读取时保留 99% 的稠密注意力准确度。其定制 attention kernel 使 decode 阶段比稠密注意力快 10 倍。
正文 · 原文
Authors:Hyunwoo Yu, Jongbeom Lee, Hyunbin Kim, Sungjun Park, Jaemin Choi, Jincheol Yang, Seunghun Moon, Bongjoon Hyun, Kyomin Sohn, Kyeongbo Kong, Suk-Ju Kang
Abstract:Sparse attention reads only a small subset of the key-value cache, and how to treat the unread tail remains a key challenge. Discarding the tail biases the output, and sampling it as previous approaches do fails at reads of 5% and below, where the tail likely holds heavy hitters the selector missed. Our key observation is that the simplest possible proxy, one token that folds the entire tail into its count-aware mean, already yields lower output error than a sample at every read behind a practical selector. We further show in closed form that at low reads sampling nearly doubles the weight error of discarding while a single proxy stays below it. Building on these findings, we explore approximating the dense attention distribution with a few proxies that target the tail. We propose OpenAttention, a pipeline of clustering, ErrorGate and top-k selection followed by a count-aware mean proxy. To implement clustering and selection both efficiently and effectively, we design training-free Query-Geometry Clustering (QGC) and a Query-Geometry Selector (QGS), which compress the keys while respecting the query directions. Additionally, unlike prior methods that rank clusters by centroid alone, ErrorGate allocates the exact read by the estimated weight error of each cluster. On RULER-32K HARD with Llama-3.1-8B, OpenAttention retains 99% of dense accuracy at a 1% read. It also achieves state-of-the-art accuracy across models, context lengths and datasets. Our customized attention kernel for OpenAttention runs the decode attention stage 10$\times$ faster than dense attention at a 1% read.
| Comments: | 27 pages. v2: revised Appendix C and corrected abstract wording. Project page: this https URL ; Code: this https URL |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.30951 [cs.LG] |
| (or arXiv:2610.30951v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.30951 arXiv-issued DOI via DataCite |
Submission history
From: Hyunwoo Yu [view email]
[v1]
Thu, 22 Oct 2026 09:03:08 UTC (670 KB)
[v2]
Fri, 23 Oct 2026 03:58:14 UTC (654 KB)
来源:arXiv cs.AI · arxiv.org