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

Multidimensional Butterfly Factorization

Yingzhou Li, Haizhao Yang, Lexing YingarXiv 2015 · DOI

TL;DR

This paper introduces a multidimensional butterfly factorization that compresses large, oscillatory kernel matrices into a product of $O(\log N)$ sparse matrices. By reducing matrix-vector multiplication costs from $O(N^2)$ to $O(N \log N)$, it enables efficient computation for complex integral transforms and Fourier integral operators (FIOs) that were previously computationally prohibitive.

What Problem Does This Paper Address?

Many scientific and engineering problems involve evaluating integral transforms of the form $u(x) = \sum K(x, \xi)g(\xi)$. When the kernel $K(x, \xi)$ is "smooth" (like in gravity or electrostatic simulations), methods like the Fast Multipole Method (FMM) work brilliantly by exploiting low-rank properties of well-separated regions.

However, for oscillatory kernels—such as those found in high-frequency wave propagation or Fourier transforms—FMM fails because these kernels are not globally low-rank. Instead, they satisfy a complementary low-rank property: submatrices are only low-rank when the spatial domain size and frequency domain size are inversely related across hierarchical levels. While 1D butterfly algorithms have existed for a while, generalizing them to multidimensional problems with singularities (like FIOs) has remained a significant challenge.

Methods

The authors propose a Multidimensional Butterfly Factorization (BF) that represents a kernel matrix $K$ as a product of sparse factors.

The Core Algorithm

The method relies on two hierarchical quadtrees (for 2D problems), $T_X$ for the spatial domain and $T_\Omega$ for the frequency domain. The key is the "middle-level factorization," where the algorithm identifies low-rank submatrices at a specific depth $L/2$.

Hierarchical partitioning using Z-order curves to maintain domain structure.

The construction uses randomized linear algebra (randomized SVD) in two scenarios:

  1. Black-box: When you can only apply the matrix and its adjoint to a vector.
  2. Entry-wise: When you can evaluate any single entry of the matrix in $O(1)$ time.

Handling Singularities

Standard butterfly algorithms struggle with singularities at the origin ($\xi = 0$), common in Fourier Integral Operators. The paper proposes two extensions:

  • Polar Butterfly Factorization (PBF): Uses a polar coordinate transformation to "smooth out" the singularity, making the kernel satisfy the complementary low-rank property in the new coordinate space.
  • Multiscale Butterfly Factorization (MBF): Partitions the frequency domain into dyadic "coronas" (concentric shells) that are well-separated from the origin, applying the butterfly factorization to each shell independently.
Multiscale corona decomposition of the frequency domain to isolate the singularity at the origin.

Datasets

The authors evaluated their algorithms using synthetic numerical examples implemented in MATLAB:

  • 2D Generalized Radon Transform: A classic FIO example where the phase function involves spatially varying ellipses.
  • Composition of two FIOs: A more complex case where the kernel function is not explicitly given, testing the "black-box" capabilities of the algorithm.

Key Insights and Ideas

  • Algebraic Representation: The factorization isn't just a new algorithm; it's a compact algebraic representation of the butterfly algorithm. This makes it easier to integrate into existing linear algebra workflows.
  • Efficiency Gains: By using randomized sampling, the precomputation cost is reduced to $O(N^{3/2} \log N)$, a significant improvement over the $O(N^2)$ required by previous butterfly construction methods.
  • Z-Order Curves: The use of Morton (Z-order) curves allows the algorithm to handle multidimensional data while maintaining the hierarchical relationships necessary for the butterfly structure.
Visualization of the full butterfly factorization into a product of sparse matrices.

Key Results

  • Speedup: In numerical tests for a 2D FIO with $N = 512^2$ points, the butterfly factorization achieved a speedup of over 400x compared to direct matrix-vector multiplication.
  • Complexity: The application cost scales as $O(N \log N)$, matching the theoretical ideal for fast transforms.
  • Accuracy: The relative error is controllable and decreases predictably as the truncation rank $r$ increases. For example, increasing rank by 8 typically reduced error by a factor of 10.

Limitations and Future Work

  • Construction Overhead: While the $O(N^{3/2} \log N)$ construction cost is better than quadratic, it still represents a significant "up-front" cost if the matrix is only applied a few times.
  • Dimensionality: The paper focuses on 2D ($d=2$). While the authors state the theory extends to $d > 2$, the practical implementation and memory management for 3D and higher will be more complex.
  • Future Directions: The authors suggest extending the PBF to higher dimensions using $d$-dimensional spherical transformations.

Summary updated

BibTeX
@misc{li2015multidimensional,
  author = {Yingzhou Li and Haizhao Yang and Lexing Ying},
  title = {{Multidimensional Butterfly Factorization}},
  year = {2015},
  eprint = {1509.07925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.07925},
}
Figure