# Distribution Free Fourier Sparsity Testing

*Arijit Ghosh, Manmatha Roy*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151679) · [Open on the map](../papers.html#p151679)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [Halfspace Learning under Noise](../pgroup/616.md) · Type: new method · Keywords: Fourier sparsity testing, distribution-free property testing, Boolean functions, query complexity, sample complexity

## Summary
We present a distribution-free tester for Fourier-sparse Boolean functions that succeeds with high probability using Õ((s/δ)4) oracle queries and Õ(1/δ) samples from an unknown input distribution.

## Explained to a 5-year-old
We want to know if a hidden rule for guessing numbers is simple, meaning it only uses a few special patterns. We can ask the rule questions and also look at many examples from a mysterious data source. By comparing the answers and examples, we can tell if the rule is simple or if it is far from being simple. The method works even when the data source is not the usual fair coin flip. This helps us decide before we spend a lot of time trying to learn the rule.

## Explained to a 5-year-old, longer
Imagine a secret rule that tells you a number based on some hidden patterns. Sometimes the rule uses only a few patterns, and other times it uses many. We want to find out if the rule is simple (uses few patterns) or complicated. To do this, we can ask the rule questions and also look at many examples from a mysterious data source. The examples come from a data source that we don't know, and it might be different from the usual one. By comparing the answers to the questions and the examples, we can see if the rule matches a simple pattern. If the rule is far from simple, we will notice that the answers and examples don't line up well. The method works even when the data source is not the usual fair coin flip. It uses a clever way to count how many questions we need to ask and how many examples we need. The number of questions grows with how many patterns we think the rule might have and how far we want to be from simple. The number of examples grows with how strict we want to be in telling simple from not simple. This helps us decide before we spend a lot of time trying to learn the rule, saving time and effort.

## For a technical reader
The paper addresses the problem of testing whether an unknown Boolean function has a sparse Fourier representation when the input distribution is arbitrary and unknown. It provides a non-adaptive randomized tester that uses Õ((s/δ)4) oracle queries and Õ(1/δ) samples from the distribution to make this determination. The tester succeeds with high probability, offering the first distribution-free solution that avoids the uniform-distribution restriction of prior work. This enables the use of sparsity validation as a preprocessing step for agnostic learning of Fourier-sparse functions under realistic data distributions. The approach extends property-testing techniques to a more practical setting without introducing new algorithmic components beyond query and sample complexity improvements.

## Problem
Given query access to a function and sample access to an unknown input distribution, the goal is to decide whether the function has a sparse Fourier representation with respect to that distribution or is δ-far from any such sparse representation.

## Method
The approach designs a nonadaptive randomized tester that queries the function and draws samples from the unknown distribution, using a combination of Fourier coefficient estimation and distance estimation to decide sparsity. It achieves query complexity Õ((s/δ)4) and sample complexity Õ(1/δ).

## Results
The tester succeeds with high probability using Õ((s/δ)4) queries and Õ(1/δ) samples.

## Contributions
It initiates the study of Fourier sparsity testing in the distribution-free setting, providing the first tester with polynomial query and sample complexities for arbitrary unknown input distributions.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151679)
