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·· 12 小时前AI 评分48
OpenAttention:仅需 1% 读取,用尾部代理逼近稠密注意力
OpenAttention: One Percent Is Enough with Tail Proxies
AI 导读
OpenAttention 提出用聚类、ErrorGate 与 top-k 选择加计数感知均值代理来近似稠密注意力分布,在 Llama-3.1-8B 的 RULER-32K HARD 上以 1% 读取保留 99% 稠密准确率。
正文 · 原文
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