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

Price of Parsimony: Complexity of Fourier Sparsity Testing

Arijit Ghosh, Manmatha RoyNeurIPS 2025

Introduction

In many areas of machine learning and theoretical computer science, researchers rely on the assumption that complex signals are inherently "sparse." Specifically, in the context of functions over the Boolean hypercube ($\mathbb{F}_2^n$), a function is considered $s$-Fourier sparse if it can be expressed as a linear combination of at most $s$ parity functions.

Sparsity is often the "secret sauce" that enables efficient learning; if a function is known to be sparse, techniques like compressed sensing or sparse Hadamard transforms can reconstruct it rapidly. However, most of these algorithms require prior knowledge of the exact sparsity level $s$. If this parameter is guessed incorrectly, the algorithm might fail entirely or become computationally intractable. This paper provides a near-optimal algorithm for "Fourier sparsity testing"—determining if a high-dimensional function can be represented by a small number of components without needing to process the entire high-dimensional space.

The Problem: Fourier Sparsity Testing

The authors tackle the Fourier Sparsity Testing problem: Given oracle access to a function (meaning one can query the value of $f(x)$ for any input $x$), can an algorithm efficiently decide if $f$ is close to being $s$-sparse or far from every $s$-sparse function?

The primary challenge is to accomplish this with as few queries as possible. Ideally, the query complexity should be independent of the total number of variables $n$, making the tester viable for "big data" settings where $n$ could be in the thousands or millions.

Methodology: Subspace Sampling and Spectral Estimation

To solve this, the authors propose a non-adaptive algorithm called the FOURIER-SPARSITY-TESTER. The core idea is surprisingly elegant: instead of attempting to analyze the function across the entire high-dimensional space, the algorithm examines its restriction on a randomly chosen, low-dimensional "slice" (an affine subspace).

Table of mathematical notations used for subspace restrictions and Fourier coefficients.

The algorithm operates in three main steps:

  1. Subspace Sampling: The algorithm selects a random affine subspace $A$ of dimension roughly $O(\log s)$.
  2. Spectral Estimation: It restricts the function $f$ to this subspace and estimates the Fourier coefficients of this restricted version.
  3. Distance Estimation: It calculates the "spectral mass" (the sum of squares) of the top $s$ estimated coefficients. If these $s$ coefficients capture the vast majority of the function's energy, the function is deemed "close" to $s$-sparse.

The mathematical heavy lifting of the paper involves a novel spectral concentration result. The authors prove that when a function is restricted to a random subspace, the resulting Fourier coefficients act as a "hash" of the original coefficients. Using tools from probability, such as Chebyshev’s inequality, they show that the largest coefficients in the restricted space are highly likely to correspond to the largest coefficients in the original space. This allows for a reliable distance estimate without full reconstruction.

Key Insights and Theoretical Results

Because this is a theoretical paper focused on algorithmic complexity and mathematical proofs, performance is measured through rigorous query complexity analysis and lower-bound proofs rather than empirical datasets.

  • Dimension Independence and Upper Bound: The most significant insight is that the number of queries needed to test sparsity depends only on the sparsity $s$ and the desired accuracy $\epsilon$. The proposed algorithm achieves a query complexity of $\tilde{O}(s/\epsilon^2)$. This is a major improvement over previous real-valued testers that required $O(s/\epsilon^4)$ queries.
  • Hardness from Cryptography and Lower Bound: To prove their algorithm is nearly optimal, the authors establish a lower bound of $\Omega(s)$. They achieve this by exploiting the spectral properties of Maiorana–McFarland functions—a class of functions used in cryptography known for their "hard-to-guess" spectral properties. By linking these functions to the "Approximate Matrix Rank" problem in communication complexity, they prove that any tester must ask at least $\Omega(s)$ questions.
  • Quadratic Improvement: Compared to the previous best-known lower bound of $\Omega(\sqrt{s})$, this work provides a quadratic improvement, effectively bracketing the complexity of the problem and showing their algorithm is optimal up to logarithmic factors.

Limitations and Future Directions

While the paper settles a long-standing gap in the understanding of sparsity testing, a few open challenges remain:

  • The $\epsilon$ Gap: The current lower bound is specifically proven for a fixed proximity parameter (e.g., $\epsilon = 1/4$). Extending this lower bound to hold for any arbitrary $\epsilon$ remains an open mathematical challenge.
  • Closing the Log Gap: There is still a small gap (polynomial in $\log s$) between the upper and lower bounds. Future work could aim to refine the analysis to remove these logarithmic factors entirely.
  • Other Bases: This paper focuses strictly on the Fourier basis (parities). However, many real-world signals are sparse in other bases, such as wavelets. Investigating whether similar dimension-independent testers exist for other orthonormal bases is a promising next step for the field.

Summary updated

BibTeX
@inproceedings{ghosh2025price,
  author = {Arijit Ghosh and Manmatha Roy},
  title = {{Price of Parsimony: Complexity of Fourier Sparsity Testing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=7bCPXHq8xV},
}
Figure