Testing Fourier Sparsity via Implicit Sensing

Arijit Ghosh, Subhamoy Maitra, Manmatha RoyICLR 2026

Introduction

In theoretical computer science and machine learning, Boolean functions—functions that map binary strings to $\{-1, +1\}$—serve as the fundamental building blocks of logic circuits and classification rules. A primary method for analyzing these functions is through their Fourier expansion, which decomposes them into a sum of parity functions.

A Boolean function is considered $s$-Fourier sparse if it can be represented using at most $s$ nonzero Fourier coefficients. Sparsity is a strong indicator of structural simplicity; if a function is known to be sparse, it can be learned or reconstructed highly efficiently. However, traditional learning algorithms typically require the sparsity level $s$ to be known in advance.

This paper investigates the Fourier sparsity testing problem: given "black-box" query access to a function $f$, can an algorithm efficiently determine whether it is $s$-sparse, or if it is significantly different (far in Hamming distance) from any $s$-sparse function? The objective is to achieve this using a number of queries that depends only on $s$, remaining completely independent of the total number of input variables $n$.

The Breakthrough: Closing the Complexity Gap

For over a decade, the best known bounds for this problem were a query complexity of $\widetilde{O}(s^{14})$ and a lower bound of $\Omega(\sqrt{s})$. In this work, the authors drastically narrow this theoretical gap. By combining compressed sensing with a novel "implicit sensing" framework, they improve the upper bound to $\widetilde{O}(s^4)$ and raise the lower bound to $\Omega(s)$, shrinking the complexity gap from $s^{13.5}$ to just $s^3$.

Methodology

The Upper Bound: Testing via Implicit Learning

To achieve the $\widetilde{O}(s^4)$ query complexity, the researchers introduce a paradigm called testing via implicit learning, which relies on three core steps:

  1. Dimensionality Reduction: The authors leverage a structural theorem demonstrating that any $s$-sparse Boolean function effectively "lives" in a low-dimensional subspace of size roughly $O(\sqrt{s})$, regardless of the ambient dimension $n$.
  2. Implicit Sensing: They design a "Subspace Implicit Coset Sampler." This mechanism allows the algorithm to simulate uniform samples from the low-dimensional "sketch" of the function without ever explicitly computing or knowing the underlying linear transformation.
  3. Compressed Sensing: Using these samples, the algorithm applies $\ell_1$-minimization—a foundational technique from compressed sensing—to reconstruct the Fourier spectrum. If the reconstruction succeeds and yields a sparse function, the tester accepts; otherwise, it rejects.

The Lower Bound: Communication Complexity

To prove that any tester requires at least $\Omega(s)$ queries, the authors employ a reduction from communication complexity. They demonstrate that if a hyper-efficient tester existed, it could be exploited to solve the "Approximate Matrix Rank" problem. This is a notoriously hard problem where two parties must determine the rank of the sum of their private matrices with minimal communication. To formalize this, the authors analyze the Maiorana-McFarland family of functions, which are well-known in cryptography for their specific, hard-to-analyze Fourier properties.

Key Theoretical Insights

  • Independence from $n$: The paper proves that Fourier sparsity is a "local" property in a spectral sense. Certifying this structure does not require examining all $2^n$ possible inputs; a query count dependent solely on $s$ is sufficient.
  • Hamming vs. Euclidean Distance: The authors highlight a critical distinction in testing metrics. Under Euclidean distance, a "tail" of many tiny Fourier coefficients can often be ignored as noise. Under Hamming distance, however, even minuscule coefficients can flip the output of a Boolean function. This makes certifying sparsity under Hamming distance a much more delicate and mathematically demanding task.
  • Parity Decision Trees: Bridging the gap between junta testing (functions depending on few variables) and Fourier sparsity testing (functions depending on few spectral components), the authors develop a novel method for sampling the "leaves" of parity decision trees.

Limitations and Future Directions

While the paper makes massive strides in bounding Fourier sparsity testing, it leaves open a few compelling avenues for future research. First, the primary algorithm is "non-tolerant," meaning it is strictly designed to distinguish between exactly $s$-sparse functions and those that are far from sparse. While the authors sketch a potential adaptation for a "tolerant" tester—one that could handle functions that are almost $s$-sparse—a fully optimized analysis remains to be done.

Finally, there is still a cubic gap between the $\Omega(s)$ lower bound and the $\widetilde{O}(s^4)$ upper bound. Future theoretical work will likely focus on finding an even more efficient tester or proving a stronger lower bound to close this remaining window entirely.

Summary updated

BibTeX
@inproceedings{ghosh2026testing,
  author = {Arijit Ghosh and Subhamoy Maitra and Manmatha Roy},
  title = {{Testing Fourier Sparsity via Implicit Sensing}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=upsp6XeJpN},
}
Figure