Autonomy-of-Heads:基于冻结 Query-Key 几何的数据无关稀疏注意力
英文标题:Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometry
论文提出 Autonomy-of-Heads(AoH),一种无需数据、无需运行时注意力分数或校准提示词的稀疏注意力方法。AoH 通过分析 Query-Key 投影的谱几何及其有效秩,识别承担检索(retrieval)与流式处理(streaming)功能的注意力头。在多模型实验中,AoH 在 50% 稀疏度下平均保留完整注意力性能的 96.5%,并将预填充和解码延迟最多分别降低 41.4% 和 66.0%。该方法还可在 256K token 上将 KV-cache 内存减少 50%,为超长上下文 LLM 的高效部署提供了无需额外数据的头部诊断方案。
640 B
612 B
380 B
9.1 KB
32.7 KB
22.8 KB
24.2 KB
34.7 KB
中文
[提交于 2026 年 8 月 7 日]
标题:Autonomy-of-Heads:基于冻结 Query-Key 几何的数据无关稀疏注意力
查看 Yehan Yang 及其他 5 位作者所著论文《Autonomy-of-Heads:基于冻结 Query-Key 几何的数据无关稀疏注意力》的 PDF
摘要:长上下文 LLM 推理受到二次方注意力计算以及不断增长的 KV-cache 成本制约。现有稀疏注意力和 KV 压缩方法通常根据运行时注意力分数、观测窗口、校准提示词或学习得到的门控机制,决定保留哪些 token 或注意力头,这使得头部诊断依赖输入且部署成本较高。我们提出 Autonomy-of-Heads(AoH),一种基于 Query-Key 投影谱几何来识别检索头和流式处理头的数据无关方法。AoH 定义核注意力算子 $M_h = W_K^{h\top}W_Q^h$,并将其有效秩作为衡量注意力头功能的权重空间指标:集中的谱表明仅存在少数占主导地位的 Query-Key 匹配方向,并与检索头相关;而弥散的谱则表明不存在占主导地位的全局匹配方向,并与流式处理头相关。我们进一步推导出一种高效的 $d_\text{head}$ 维计算方法,避免构建完整的 $d_\text{model}\times d_\text{model}$ 矩阵。我们在多个模型上开展了广泛实验,结果表明:在 50% 稀疏度下,AoH 平均可保留完整注意力性能的 96.5%;同时,预填充和解码延迟最多可分别降低 41.4% 和 66.0%;在 256K token 条件下,KV-cache 内存可减少 50.0%。
提交历史
提交者:Yehan Yang Yehan Yang [
]
[v1]
2026 年 8 月 7 日,星期五,06:18:18 UTC(3,684 KB)
English / 原文
[Submitted on 7 Aug 2026]
Title:Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometry
View a PDF of the paper titled Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometry, by Yehan Yang and 5 other authors
Abstract:Long-context LLM inference is bottlenecked by quadratic attention computation and growing KV-cache costs. Existing sparse attention and KV-compression methods typically decide which tokens or heads to preserve from runtime attention scores, observation windows, calibration prompts, or learned gates, making head diagnosis input-dependent and costly to deploy. We propose Autonomy-of-Heads (AoH), a data-free method that identifies retrieval and streaming heads from the spectral geometry of query-key projections. AoH defines the kernel attention operator $M_h = W_K^{h\top}W_Q^h$ and uses its effective-rank as a weight-space measure of head function: concentrated spectra indicate a small number of dominant query-key matching directions and are associated with retrieval heads, whereas diffuse spectra indicate the absence of a dominant global matching direction and are associated with streaming heads. We further derive an efficient $d_\text{head}$-dimensional computation that avoids constructing the full $d_\text{model}\times d_\text{model}$ matrix. We conducted extensive experiments across models demonstrating that at 50% sparsity, AoH retains 96.5% of Full Attention performance on average while reducing prefill and decode latency by up to 41.4% and 66.0%, respectively, and KV-cache memory by 50.0% at 256K tokens.
Submission history
From: Yehan Yang Yehan Yang [
]
[v1]
Fri, 7 Aug 2026 06:18:18 UTC (3,684 KB)