A nonuniform fast Fourier transform based on low rank approximation

Diego Ruiz‐Antolín, Alex Townsend

Abstract: By viewing the nonuniform discrete Fourier transform (NUDFT) as a perturbed version of a uniform discrete Fourier transform, we propose a fast, stable, and simple algorithm for computing the NUDFT that costs $\mathcal{O}(N\log N\log(1/ε)/\log\!\log(1/ε))$ operations based on the fast Fourier transform, where $N$ is the size of the transform and $0 < ε < 1$ is the requested precision.

Introduction

The Fast Fourier Transform (FFT) is arguably one of the most impactful algorithms in computational science, enabling the efficient processing of signals and data. However, its primary limitation is the requirement for data to be sampled on a perfectly regular, equispaced grid. In many practical applications—ranging from Magnetic Resonance Imaging (MRI) and radio astronomy to the numerical solution of partial differential equations—data is naturally nonuniformly sampled.

To bridge this gap, researchers use Nonuniform FFTs (NUFFTs). Traditional state-of-the-art NUFFTs typically involve oversampling the grid and using specialized convolution kernels to spread nonuniform points onto a uniform grid. While effective, these methods can be complex to implement and difficult to optimize for specific precisions. This paper by Diego Ruiz-Antolín and Alex Townsend introduces a simpler, more direct approach that leverages the power of existing, highly optimized FFT libraries like FFTW by treating nonuniformity as a low-rank perturbation.

The Perturbation Perspective

The "secret sauce" of this new algorithm is the observation that a nonuniform grid can be viewed as a "broken" version of a uniform grid. The authors represent the NUDFT matrix ($\tilde{F}$) as the Hadamard (entry-wise) product of a "perturbation" matrix ($A$) and a standard DFT matrix ($F$): $\tilde{F} = A \circ F$.

Nonuniform points $x_j$ can be viewed as perturbations of a uniform grid, allowing for a low-rank approximation of the transform matrix.

If the nonuniform points are relatively close to a uniform grid, the matrix $A$ is very well-approximated by a low-rank matrix. Specifically, $A \approx \sum_{r=0}^{K-1} u_r v_r^\top$, where $K$ is a small integer. This decomposition allows the NUFFT of a vector $c$ to be computed as a sum of $K$ standard FFTs:

$$\tilde{F}c \approx \sum_{r=0}^{K-1} D_{u_r} F (D_{v_r} c)$$

where $D$ denotes a diagonal matrix. This approach is mathematically elegant and avoids the need for complex oversampling or convolution steps.

Numerical Stability and Rank

To find the low-rank components ($u_r, v_r$) stably, the authors employ Chebyshev polynomial expansions. This is a critical improvement over previous attempts using Taylor series, which are often numerically unstable for high-order approximations.

The complexity of the nonuniformity is captured entirely by the rank $K$. A key insight of the paper is that $K$ remains small and independent of the total number of points $N$, even in the "worst-case" scenarios. For example, to achieve double-precision accuracy, $K$ is typically only around 16.

The rank $K$ required to achieve specific precisions remains small across various perturbation magnitudes ($\gamma$).

Key Advantages and Results

This low-rank approach offers several distinct advantages over traditional NUFFT methods:

  • Embarrassingly Parallel: Since the algorithm is a sum of $K$ independent FFTs, it can be distributed across multiple CPU cores or GPUs with minimal communication overhead.
  • No Oversampling: Unlike most NUFFTs, this method does not require padding data or creating larger intermediate grids, which significantly reduces memory consumption.
  • Efficiency: The algorithm achieves a quasi-optimal complexity of $\mathcal{O}(N \log N \frac{\log(1/\epsilon)}{\log \log(1/\epsilon)})$. In benchmarks, a transform of 16 million points in double precision takes approximately 8 seconds on a standard workstation.
  • Versatility: The paper extends this logic to Type I (nonuniform frequencies), Type II (nonuniform samples), and Type III (both nonuniform) transforms, as well as higher dimensions.

Conclusion and Future Work

By reframing the NUFFT problem through the lens of low-rank matrix approximation, Ruiz-Antolín and Townsend have developed an algorithm that is both simple to implement and highly performant. While the method is currently most effective when points are not extremely clustered, it provides a robust framework for high-precision nonuniform transforms. Future work may involve exploring optimal oversampling strategies to further boost FFT efficiency and extending the method to 3D and higher-dimensional spaces.

Summary updated

BibTeX
@article{ruizantolin2017nonuniform,
  author = {Diego Ruiz‐Antolín and Alex Townsend},
  title = {{A nonuniform fast Fourier transform based on low rank approximation}},
  journal = {SIAM J. Sci. Comput.},
  year = {2017},
}
Figure