arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.22193cs.DScs.DM
收藏

通过卷积实现(近似)矩阵乘法

(Approximate) Matrix Multiplication via Convolutions

Hebrew University of Jerusalem(耶路撒冷希伯来大学)

Yahel Uffenheimer, Omri Weinstein

AI总结:

本文研究利用FFT加速矩阵乘法,提出精确算法并扩展群论框架至近似矩阵乘法,打破了组合AMM的线性速度-精度权衡,并探索了基于多项式低度近似的实用AMM方法。

摘要:

我们研究了快速傅里叶变换(FFT)在不使用类似Strassen的分治策略下,加速精确和近似矩阵乘法的能力。基于Cohn, Kleinberg, Szegedy和Umans (2005)的工作,我们提出了一种运行时间为$O(n^{2.89})$的简单精确算法,该算法仅对$\mathbb{Z}_{m}^{k}$中的几个卷积(FFT)求和。作为推论,将该算法与线性草图相结合,打破了“组合”近似矩阵乘法(AMM, Pagh'13, Sarlos'06, Clarkson-Woodruff'13)长期存在的线性速度-精度权衡,在$O(rn^{2})$时间内实现误差$\frac{1}{r^{1.1}}\left\lVert \mathbf{A} \right\rVert_{F}^{2}\left\lVert \mathbf{B}\right\rVert_{F}^{2}$,且仅使用FFT。受多项式近似丰富文献的启发,本文的主要贡献是将Cohn和Umans (2003)的群论框架扩展到近似矩阵乘法(AMM)。具体而言,我们引入并研究了三元积性质的近似概念,在阿贝尔群情况下,这等价于寻找一个使与等差数列的(多重)交集最小化的Sumset。我们证明了阿贝尔群上该量的紧致界限(通过多项式乘法产生了一种简单实用的AMM算法),并为非阿贝尔群建立了较弱的下界,扩展了Gowers的一个引理。最后,我们提出了一种具体方法,将多元多项式的低度近似用于AMM,我们相信这将催生实际应用中实用的、非渐近的AMM算法,最显著的是LLM推理。

英文摘要:

We study the capability of the Fast Fourier Transform (FFT) to accelerate exact and approximate matrix multiplication without using Strassen-like divide-and-conquer. We present a simple exact algorithm running in $O(n^{2.89})$ time, which only sums a few convolutions (FFTs) in $\mathbb{Z}_{m}^{k}$, building on the work of Cohn, Kleinberg, Szegedy and Umans (2005). As a corollary, combining this algorithm with linear sketching breaks the longstanding linear speed-accuracy tradeoff for "combinatorial" approximate matrix multiplication (AMM, Pagh'13, Sarlos'06, Clarkson-Woodruff'13), achieving error $\frac{1}{r^{1.1}}\left\lVert \mathbf{A} \right\rVert_{F}^{2}\left\lVert \mathbf{B}\right\rVert_{F}^{2}$ in $O(rn^{2})$ time, using nothing but FFTs. Motivated by the rich literature for approximating polynomials, our main contribution in this paper is extending the group-theoretic framework of Cohn and Umans (2003) to approximate matrix multiplication (AMM). Specifically, we introduce and study an approximate notion of the Triple Product Property, which in the abelian case is equivalent to finding a Sumset which minimizes (multi-)intersections with an arithmetic progression. We prove tight bounds on this quantity for abelian groups (yielding a simple and practical AMM algorithm via polynomial multiplication), and establish a weaker lower bound for non-abelian groups, extending a lemma of Gowers. Finally, we propose a concrete approach that uses low-degree approximation of multi-variate polynomials for AMM, which we believe will lead to practical, non-asymptotic AMM algorithms in real-world applications, most notably LLM inference.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑