An O(k log n) Time Fourier Set Query Algorithm

Yeqi Gao, Zhao Song, Baocheng SunarXiv 2022

Introduction

The Fourier Transform is a cornerstone of modern signal processing, used extensively in fields ranging from medical imaging (MRI) to telecommunications. While the classical Fast Fourier Transform (FFT) operates in $O(n \log n)$ time, it often becomes a computational bottleneck when the signal length $n$ is massive, even if only a small subset of $k$ frequency coordinates is required. This specific challenge is known as the "Fourier set query" problem.

Problem Statement

In many practical scenarios, researchers do not need the full spectrum of a signal but rather a specific subset of $k$ frequencies. Existing "Sparse FFT" algorithms have attempted to address this by providing sublinear runtimes. However, these methods often suffer from high logarithmic overhead—typically $O(k \log^2 n)$—or runtimes that scale with $R^*$, the maximum norm of the signal. There is a clear need for an algorithm that is both sublinear in time and independent of the signal's magnitude.

Methodology

The proposed algorithm achieves an $O(k \log n)$ runtime through a combination of iterative refinement and advanced hashing techniques.

Hashing to Bins

The algorithm utilizes pseudorandom spectrum permutations and filter functions to "hash" frequencies into discrete bins. This process isolates the frequencies within the query set $S$ from the rest of the signal's energy, facilitating more accurate estimation.

Iterative Refinement and Isolation Analysis

Rather than a single-pass estimation, the algorithm performs $R = \log k$ iterations. In each step, it estimates values for a subset of the query coordinates, updates the global estimate, and subtracts the contribution from the signal. This geometric reduction of error is supported by "isolation analysis," which proves that most coordinates in the query set remain well-isolated from collisions and noise throughout the process.

Magnitude Independence

A key innovation of this work is the elimination of the $\log R^*$ dependence found in previous state-of-the-art approaches. By refining the iterative loop analysis and managing error propagation more effectively, the algorithm's speed remains robust regardless of the signal's range.

Results

The theoretical analysis demonstrates that the algorithm achieves a time complexity of $O(\epsilon^{-1} k \log(n/\delta))$. This represents a significant improvement over prior benchmarks, as shown in the comparison below.

Comparison of sample and time complexity between the proposed algorithm and prior state-of-the-art methods.

The algorithm provides a strong approximation guarantee, where the output vector $x'$ satisfies: $$\|(x' - \hat{x})_S\|_2^2 \leq \epsilon \|\hat{x}_{\bar{S}}\|_2^2 + \delta \|\hat{x}\|_1^2$$ This bound ensures that the error is proportional to the energy outside the query set, plus a minimal noise term, with a success probability exceeding 90%.

Discussion and Future Work

While the algorithm sets a new standard for time complexity, the authors note that the sample complexity of $O(\epsilon^{-1} k \log(n/\delta))$ is not yet optimal. Some existing methods use fewer samples but at the cost of significantly higher runtimes. Achieving optimality in both time and sample complexity remains an open research question.

Furthermore, the current analysis involves large constants to guarantee theoretical success. Practical implementations would require tuning these parameters to ensure performance gains over standard FFTs for moderate values of $n$. Future research could also explore hardware-level implementations, such as on FPGAs, to evaluate real-time performance in signal processing applications.

Summary updated

BibTeX
@misc{gao2022o,
  author = {Yeqi Gao and Zhao Song and Baocheng Sun},
  title = {{An O(k log n) Time Fourier Set Query Algorithm}},
  year = {2022},
  eprint = {2208.09634},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.09634},
}
Figure