NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A recursive butterfly factorization with optimality guarantees

David Persson, Paul G. Beckman, Tyler Chen, Diana Halikias, Christopher MuscoarXiv 2026

TL;DR

This paper introduces a novel recursive framework for butterfly matrix factorization, providing the first theoretical quasi-optimality guarantees for a popular class of butterfly approximation algorithms. The authors present an $O(N^2)$ entry-access method and a memory-efficient, matrix-free method requiring only $\widetilde{O}(\sqrt{N})$ matrix-vector products, making it highly practical for compressing dense, oscillatory operators in scientific computing and machine learning.

What Problem Does This Paper Address?

Many important mathematical operators in scientific computing—such as those found in the Fast Fourier Transform (FFT), high-frequency acoustic scattering, and spherical harmonic transforms—are dense and computationally expensive to compute directly. Butterfly matrices offer a structured alternative, compressing an $O(N^2)$ dense matrix down to $O(N \log N)$ storage and computation by exploiting a hierarchical "complementary low-rank" structure.

However, finding a good butterfly approximation for an arbitrary "black-box" matrix without problem-specific knowledge is notoriously difficult. While several heuristic algorithms have found empirical success, they lacked rigorous theoretical guarantees. This paper addresses this gap by answering a fundamental question: How close is the computed butterfly approximation to the mathematically best possible butterfly approximation?

Methods

The core innovation of the paper lies in a shift of perspective. Instead of viewing a butterfly matrix through the standard lens of a "product of sparse factors," the authors prove an equivalent recursive characterization:

$$\mathbf{B} = \mathbf{U}\mathbf{X}\mathbf{V}^T$$

where $\mathbf{U}$ and $\mathbf{V}$ are block-diagonal matrices with orthonormal columns, and $\mathbf{X}$ is a $2 \times 2$ block matrix where each individual block is itself a smaller butterfly matrix.

Using this recursive insight, the authors develop two main algorithms:

  1. Greedy Entry-Based Algorithm: When the entries of the target matrix $\mathbf{A}$ are directly accessible, the algorithm uses a hierarchical sequence of truncated Singular Value Decompositions (SVD) to construct the factorization from the outside in.
  2. Matrix-Free Algorithm: When $\mathbf{A}$ can only be accessed via black-box matrix-vector products ($x \mapsto \mathbf{A}x$ and $y \mapsto \mathbf{A}^T y$), the algorithm uses randomized Gaussian sketching matrices to recursively recover the column and row spaces. By computing these sketches on-the-fly, the algorithm maintains a minimal memory footprint.
The recursive factorization structure where the core matrix $X$ is broken down into smaller butterfly submatrices.

Datasets

The algorithms were evaluated using synthetically generated matrices representing classic scientific computing benchmarks rather than traditional ML datasets:

  • Random Noisy Butterfly Matrices: Created by sampling random orthonormal basis matrices to establish a ground-truth baseline corrupted by additive Gaussian noise.
  • Nonuniform Discrete Fourier Transform (NUDFT) Matrices: A standard dense, highly oscillatory operator used extensively in signal processing.
  • Hankel Transform Matrices: Operators involving Bessel functions, which are notoriously challenging due to their rank-deficient properties.

The code and experiments are publicly available in the open-source Julia package RecursiveButterfly.jl.

Key Insights and Ideas

  • The Power of Recursive Data Structures: Representing butterfly matrices recursively drastically simplifies both the algorithmic description and the error analysis, which previously required tedious bookkeeping of sparse matrix products.
  • Hierarchical Partitioning Alignment: The recursive definition perfectly mirrors the hierarchical dyadic partition tree of row and column indices that defines the complementary low-rank property.
Figure 1: A perfect dyadic partition tree corresponding to the index sets defined in Definition 2.1 for L = 3.
  • Theoretical Validation of Existing Heuristics: The authors prove that their matrix-free algorithm is mathematically equivalent to the popular hybrid butterfly factorization proposed by Liu et al. (2021). Consequently, this work provides the very first theoretical quasi-optimality guarantee for that widely used method.

Key Results

  • Entry-Access Optimality: The entry-based algorithm runs in $O(N^2)$ operations and guarantees a Frobenius norm error within an $O(\sqrt{\log N})$ factor of the absolute best possible butterfly approximation.
  • Matrix-Free Efficiency: The matrix-free variant achieves an error within an $O(N^{1/4})$ factor of optimal while requiring only $\widetilde{O}(\sqrt{N})$ matrix-vector queries and a highly efficient $\widetilde{O}(N)$ working memory.
  • Pessimistic Bounds vs. Empirical Excellence: Numerical experiments on NUDFT and Hankel matrices show that the theoretical error bounds are highly conservative. In practice, the algorithms perform significantly better than the worst-case bounds suggest, tracking closely with the optimal lower bounds.

Limitations and Future Work

  • Gap in Matrix-Free Bounds: The $O(N^{1/4})$ theoretical error bound for the matrix-free algorithm is noticeably looser than the $O(\sqrt{\log N})$ bound of the entry-access version, despite both showing similar accuracy in practice. Tightening this matrix-free bound remains an open theoretical challenge.
  • Extension of Rank-Adaptivity Proofs: While the authors' Julia package supports rank-adaptive generalizations (where the rank parameter $k$ adjusts dynamically based on a tolerance parameter $\epsilon$), the strict optimality guarantees in the paper are proven primarily for a fixed rank $k$. Fully extending these guarantees to the rank-adaptive setting is an area for future research.

Summary updated

BibTeX
@misc{persson2026recursive,
  author = {David Persson and Paul G. Beckman and Tyler Chen and Diana Halikias and Christopher Musco},
  title = {{A recursive butterfly factorization with optimality guarantees}},
  year = {2026},
  eprint = {2607.29361},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.29361},
}
Figure