跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.32989 · v1

AVQ-Attention-2: Adaptive Vector-Quantized Attention with Exact Local Blocks and Linear-Cost Training

首次提交 2026-11-25 01:18
版本更新 2026-11-25 01:18
雷达观测 2026-11-25 13:22
arXiv ↗PDF ↗

摘要

Attention costs O(N2)\mathcal{O}(N^2) in the number of tokens. Vector-quantized attention reduces this to O(NM)\mathcal{O}(NM) by clustering the NN keys, attending to the MM codewords instead, and its adaptive form, AVQ-attention, concentrates codebook resolution where a query's attention mass actually falls. We present AVQ-Attention-2, a better design that merges it with exact local attention and attends to the mean of each cluster's keys rather than to a codeword. We show three improvements: consistently better quality at comparable cost; training that now also costs O(NM)\mathcal{O}(NM) rather than O(N2)\mathcal{O}(N^2); and an approximation accurate enough that the layer can be dropped into a pretrained transformer without fine-tuning. Across a variety of sequence lengths the result is competitive not merely with other approximate attention but with exact dense attention, running faster than FlashAttention at little to no loss in quality.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-25 01:18 · 最新观测版本

AVQ-Attention-2: Adaptive Vector-Quantized Attention with Exact Local Blocks and Linear-Cost Training

Attention costs O(N2)\mathcal{O}(N^2) in the number of tokens. Vector-quantized attention reduces this to O(NM)\mathcal{O}(NM) by clustering the NN keys, attending to the MM codewords instead, and its adaptive form, AVQ-attention, concentrates codebook resolution where a query's attention mass actually falls. We present AVQ-Attention-2, a better design that merges it with exact local attention and attends to the mean of each cluster's keys rather than to a codeword. We show three improvements: consistently better quality at comparable cost; training that now also costs O(NM)\mathcal{O}(NM) rather than O(N2)\mathcal{O}(N^2); and an approximation accurate enough that the layer can be dropped into a pretrained transformer without fine-tuning. Across a variety of sequence lengths the result is competitive not merely with other approximate attention but with exact dense attention, running faster than FlashAttention at little to no loss in quality.

查看此版本解读 →查看此版本原文 ↗