← 研踪 PaperTrailarXiv:2602.00874 · v2
Sublinear Time Quantum Algorithm for Attention Approximation
首次提交 2026-02-01 03:33
版本更新 2026-11-23 12:18
雷达观测 2026-11-24 14:50
摘要
Given the query, key and value matrices , the attention module is defined as where with applied entrywise, . The attention module is the backbone of modern transformers and large language models, but explicitly forming the softmax matrix incurs time, motivating numerous approximation schemes that reduce runtime to via sparsity or low-rank factorization. We propose a quantum data structure that approximates any row of using only row queries to . Our algorithm preprocesses these matrices in time, where is the target accuracy and is the -statistical dimension of the exponential kernel defined by and . Each row query can be answered in time. If every row sum of exceeds , then with probability the answers have Frobenius-norm error . Here is close to when every row sum is much larger than . To our knowledge, this is the first quantum data structure that approximates rows of the attention matrix in sublinear time with respect to . Our approach relies on a quantum Nyström approximation of the exponential kernel, quantum multivariate mean estimation for computing , and quantum sampling of the rows of by their squared norms, with a median over independent samples, for the multiplication with .
作者备注:ICLR 2026. This version corrects the main theorem: the preprocessing time, the row-query count, and the error bound, whose $λ\sqrt{n}$ term is additive and which needs large row sums and a full-rank Nystrom factor. The product with V now samples rows by squared norms, as the published leverage-score step and its boosting were invalid, and the error proof is completed
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v2 · 2026-11-23 12:18 · 最新观测版本
Sublinear Time Quantum Algorithm for Attention Approximation
Given the query, key and value matrices , the attention module is defined as where with applied entrywise, . The attention module is the backbone of modern transformers and large language models, but explicitly forming the softmax matrix incurs time, motivating numerous approximation schemes that reduce runtime to via sparsity or low-rank factorization. We propose a quantum data structure that approximates any row of using only row queries to . Our algorithm preprocesses these matrices in time, where is the target accuracy and is the -statistical dimension of the exponential kernel defined by and . Each row query can be answered in time. If every row sum of exceeds , then with probability the answers have Frobenius-norm error . Here is close to when every row sum is much larger than . To our knowledge, this is the first quantum data structure that approximates rows of the attention matrix in sublinear time with respect to . Our approach relies on a quantum Nyström approximation of the exponential kernel, quantum multivariate mean estimation for computing , and quantum sampling of the rows of by their squared norms, with a median over independent samples, for the multiplication with .
查看此版本解读 →查看此版本原文 ↗