Table of Contents
Fetching ...

(Approximate) Matrix Multiplication via Convolutions

Yahel Uffenheimer, Omri Weinstein

TL;DR

This work investigates FFT-based group-convolution methods to accelerate matrix multiplication beyond naive cubic time without recursive Strassen-like schemes. It presents a subcubic exact algorithm in abelian groups, achieving $O(n^{2.89})$ time via CKSU-style STPP constructions, and shows how coupling this with linear sketching yields a first super-linear speed-accuracy tradeoff for AMM with error shrinking as $r$ grows. The authors extend the group-theoretic framework to approximate matrix multiplication by introducing and analyzing approximate Triple Product Polynomials, including lower and upper bounds via the quantity $\rho_n(G)$ and a PolyForm decoding scheme. They also propose practical, non-asymptotic AMM approaches based on low-degree polynomial approximations and outline avenues for making STPP-based AMM viable in real-world workloads, notably LLM inference. The work thus bridges exact subcubic convolution-based MM with practical AMM strategies, offering a roadmap for FFT-enabled, non-recursive AMM algorithms with provable performance tradeoffs.

Abstract

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.

(Approximate) Matrix Multiplication via Convolutions

TL;DR

This work investigates FFT-based group-convolution methods to accelerate matrix multiplication beyond naive cubic time without recursive Strassen-like schemes. It presents a subcubic exact algorithm in abelian groups, achieving time via CKSU-style STPP constructions, and shows how coupling this with linear sketching yields a first super-linear speed-accuracy tradeoff for AMM with error shrinking as grows. The authors extend the group-theoretic framework to approximate matrix multiplication by introducing and analyzing approximate Triple Product Polynomials, including lower and upper bounds via the quantity and a PolyForm decoding scheme. They also propose practical, non-asymptotic AMM approaches based on low-degree polynomial approximations and outline avenues for making STPP-based AMM viable in real-world workloads, notably LLM inference. The work thus bridges exact subcubic convolution-based MM with practical AMM strategies, offering a roadmap for FFT-enabled, non-recursive AMM algorithms with provable performance tradeoffs.

Abstract

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 time, which only sums a few convolutions (FFTs) in , 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 in 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.
Paper Structure (23 sections, 15 theorems, 58 equations, 1 figure, 1 table, 1 algorithm)

This paper contains 23 sections, 15 theorems, 58 equations, 1 figure, 1 table, 1 algorithm.

Key Result

Theorem 1.2

There is an exact, deterministic algorithm for computing the product of two $n\times n$ matrices $\mathbf{A}\mathbf{B}$, in $O(n^{2.89})$ time. The algorithm only aggregates several convolutions in $\mathbb{Z}_m^k$ which are computed via FFT.

Figures (1)

  • Figure 1: The convolution algorithm underlying \ref{['thm_main_exactMM_informal']}. The group is $\mathbb{Z}_m^{3N}$. We are embedding $d=2^N$ square matrices of size $q = (m-1)^N$ in two polynomials $a,b$, computing their Fourier transforms, and computing the element-wise product. The decoding part is not presented in this figure, but is essentially the same. Invoking this algorithm $d^2$ times (possibly in parallel) leads to the fast combinatorial algorithm.

Theorems & Definitions (33)

  • Conjecture 1.1: AFKLM23satta94lee01
  • Theorem 1.2: Faster "Combinatorial" MM
  • Theorem 1.3: Faster AMM via Sketching Convolutions, Informal version of \ref{['thm:sketch-n-solve']}
  • Theorem 1.4: AMM Convolution Lower Bound, Informal version of \ref{['thm:polyform-error-lower-bound']}, \ref{['thm:upper-bound-polyform']}
  • Definition 1.5: TPP
  • Definition 1.6: STPP
  • Remark 3.1
  • Lemma 4.1: JL-Sketch
  • Theorem 4.2
  • proof
  • ...and 23 more