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

Testing for Families of Distributions via the Fourier Transform

Alistair Stewart, Ilias Diakonikolas, Clément L. Canonne

Introduction

In the field of distribution property testing, a fundamental question is: "Given samples from an unknown distribution $P$, does $P$ have property $\mathcal{P}$ (e.g., is it a Binomial distribution), or is it far from any distribution with that property?"

For a general distribution over a domain of size $n$, testing identity typically requires $O(\sqrt{n}/\epsilon^2)$ samples. However, many real-world distributions are "structured"—they aren't just arbitrary collections of probabilities but follow specific shapes or generation processes, such as sums of independent variables or log-concave distributions. The challenge is to exploit this structure to create "sublinear" testers that use far fewer samples than $\sqrt{n}$. While specific testers existed for some families, there was previously no general recipe for handling structured distributions, especially high-dimensional ones like Poisson Multinomial Distributions (PMDs).

This paper introduces a powerful, unified framework for testing whether an unknown discrete distribution belongs to a specific structured family. By leveraging the fact that these families have approximately sparse Fourier spectra, the authors develop testers that are both computationally efficient and near-optimal in terms of sample complexity.

Methods: A Fourier-Based Testing Framework

The authors propose a three-stage general testing framework based on the Discrete Fourier Transform (DFT):

  1. Effective Support Testing: First, the algorithm identifies a "candidate" interval or set where the distribution's mass is concentrated. If the unknown distribution is too spread out to belong to the family $\mathcal{P}$, it is immediately rejected.
  2. Fourier Sparsity Testing: This is the core innovation. Structured distributions often have a "sparse" Fourier spectrum, meaning most of the "energy" is concentrated in a few coefficients. The algorithm checks if the empirical distribution's Fourier mass is concentrated on a specific small set of frequencies $S$. To do this efficiently, they use a modified $L_2$ identity tester and Plancherel’s Theorem to avoid the high computational cost of calculating every Fourier coefficient.
Algorithm for Testing Fourier Transform Effective Support
  1. Projection Step: If the distribution passes the Fourier test, the algorithm has essentially "learned" a good approximation $H$ of the distribution. The final step is a computational check: is $H$ actually close to the target family $\mathcal{P}$?

Key Insights

  • The Fourier Detour: The "aha moment" of the paper is recognizing that while learning a distribution in $L_1$ distance (Total Variation) is hard, learning it in $L_2$ distance is much easier if the Fourier spectrum is sparse. By learning in $L_2$ and then using the relationship between $L_1$ and $L_2$ for sparse signals, the authors achieve vastly better sample complexity.
  • Unified Approach: Previously, testing log-concavity and testing Poisson Binomial Distributions (PBDs) were treated as entirely different problems. This paper demonstrates that they are both instances of Fourier-sparse membership testing.

Evaluated Families and Key Results

As a theoretical work in computational statistics, the paper evaluates the proposed algorithms against mathematically defined families of distributions, providing the first non-trivial testers for several families and improving the state-of-the-art for others:

  • PBDs (Poisson Binomial Distributions): Achieved a sample complexity of $n^{1/4} \cdot \tilde{O}(1/\epsilon^2)$, matching the information-theoretic lower bound and removing extraneous terms found in previous work.
  • SIIRVs (Sums of Independent Integer Random Variables): Provided the first non-trivial tester for $(n, k)$-SIIRVs where $k > 2$.
  • PMDs (Poisson Multinomial Distributions): Developed a tester for high-dimensional distributions where the sample complexity scales with $n^{(k-1)/4}$. This is nearly optimal for a constant dimension $k$.
  • LCV (Discrete Log-Concave Distributions): Improved the sample complexity to $O(\sqrt{n}/\epsilon^2 + 1/\epsilon^{5/2})$, outperforming previous bounds especially when the error parameter $\epsilon$ is small. Furthermore, the authors achieved a runtime that is sublinear in the domain size $n$, a significant improvement over previous methods that required solving large linear programs.

Limitations and Future Work

While the framework is highly generalizable, it comes with a few theoretical and computational limitations:

  • Dimensionality Curse: For PMDs, the sample complexity and runtime are exponential in the dimension $k$. While the authors provide a lower bound suggesting this is somewhat inherent, finding ways to mitigate this for specific sub-families remains an open area.
  • Known Sparsity Pattern: The framework requires that the set of "important" Fourier frequencies $S$ is known beforehand and is the same for all distributions in the family $\mathcal{P}$. If a family has a sparse Fourier transform but the locations of the non-zero coefficients vary wildly, this specific framework would need adaptation.
  • Projection Complexity: The "Projection Step" is treated as a computational black box in the general theorem. For some complex families, this step might still be the primary bottleneck for total execution time.

Summary updated

BibTeX
@inproceedings{stewart2018testing,
  author = {Alistair Stewart and Ilias Diakonikolas and Clément L. Canonne},
  title = {{Testing for Families of Distributions via the Fourier Transform}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure