acceptodds
Published as a conference paper at NeurIPS 2026

Distribution Free Fourier Sparsity Testing

Arijit Ghosh, Manmatha Roy

Abstract

Learning functions with sparse Fourier representations plays a central role in computational learning theory, as such functions capture many natural concept classes in machine learning. In recent years, Fourier sparsity has also been studied from the related perspective of property testing, where the goal is to determine, given query access to a function, whether it is -Fourier-sparse or far from every such function under an appropriate distance measure. Such testers can serve as a preprocessing step for model selection in agnostic learning of Fourier-sparse functions, where validating the structural assumption is crucial before applying computationally expensive learning algorithms. However, all prior work on testing Fourier sparsity considers distance with respect to the uniform distribution over the hypercube. In this work, we initiate the study of Fourier sparsity testing in the distribution-free setting, the property-testing analogue of the PAC+MQ learning framework. In this model, the tester is given oracle access to an unknown function and sample access to an arbitrary and unknown input distribution, and must distinguish -Fourier-sparse functions from those that are -far from every such function with respect to the underlying distribution. We design a nonadaptive randomized tester that succeeds with high probability using oracle queries and samples from the unknown distribution.

Keywords:
Paris, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_DsYjOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The main result is a nonadaptive membership-query algorithm for testing Fourier sparsity in the distribution-free setting, which makes a polynomial number of queries. The algorithm is given membership query access to some unknown real-valued function over the Boolean hypercube, but is nonadaptive, meaning that the queries are decided before any of them is answered. Related prior work existed only in the distribution-specific setting, or tested different properties.

The proposed algorithm is based on two main components. First, a Fourier sparsity tester that works with respect to the uniform distribution. Second, an algorithm that can produce accurate approximations of the values of the sparse function that is closest to the unknown function under the uniform distribution. The analysis utilizes a technique called sketching by hashing from the relevant literature.

Strengths and weaknesses

The paper provides an interesting new result that is well-motivated and has not been studied before. The message of the paper is clear. The techniques used are nontrivial, but they are largely inspired by prior work. The algorithmic framework used also draws from [Halevy and Kushilevitz, 2007], so I would encourage the authors to add a relevant technical comparison. Overall, I believe that the contribution, presentation, and significance of the result are good and I recommend acceptance.

Questions
  • What is the time complexity of your algorithm?

  • You mention in lines 51-53 that “these tools can serve as effective preprocessing tools”. Do you have any concrete applications in mind? If not, I recommend removing this claim, or changing it to reflect your actual contributions.

  • Could your techniques be used to test sparsity with respect to the basis corresponding to the input distribution?

Limitations

yes

Paper formatting concerns

No major formatting concerns.

Final justification

The authors answered all of my questions, and I do not have any outstanding concerns. I would like to keep my positive score unchanged.

Reviewer_VDhFOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
3
Read review
Summary

The paper studies the problem of testing sparse Boolean Fourier functions. Specifically, given query access to a black-box function, the goal is to determine whether the function has at most ss nonzero Fourier coefficients (with respect to the uniform distribution) or is far from any such function.

The paper claims to provide a sparsity-testing algorithm for the following distribution-free problem: given black-box access to an unknown function ff, determine whether ff is ss-sparse or is ϵ\epsilon-far from every ss-sparse function gg. Here, ff is said to be ϵ\epsilon-far from gg if Pr⁡x∼D[∣f(x)−g(x)∣≥ϵ]≥δ.\Pr_{x \sim D}\big[|f(x)-g(x)| \ge \epsilon\big] \ge \delta.

Strengths and weaknesses

The paper attempts to address an important problem by removing the restriction to the uniform distribution in sparsity testing. Existing works typically rely on distance measures defined with respect to the uniform distribution.

However, I do not believe the paper establishes the claimed result in its full generality. The property being tested is still sparsity with respect to the uniform-distribution Fourier expansion. While the distance metric is generalized to the distribution-free setting, sparsity itself remains defined under the standard uniform Boolean Fourier basis. The motivation for this asymmetry is not clearly explained, and it is therefore unclear why the resulting notion should be regarded as fully distribution-free.

The proposed algorithm relies on two assumptions:

  1. The existence of a Fourier sparsity tester under the uniform distribution.
  2. The existence of a self-approximator for Fourier-sparse functions.

The first assumption is well justified, given the existence of state-of-the-art sparsity testers in the uniform-distribution setting. My main concern is with the second assumption. The paper assumes the existence of a learner that provides a worst-case approximation guarantee for every input xx. This is a very strong requirement, and I could not find any discussion establishing the existence of such a learner or explaining under what conditions the assumption is satisfied.

At a high level, the proposed algorithm combines a parity-recovery procedure, which appears essentially equivalent to the classical KM’91 algorithm, with a learner satisfying the self-approximator property for Fourier-sparse functions. Given these ingredients, I do not find the overall approach particularly novel, nor do I see a substantial new technical contribution beyond combining existing components.

Minor comments:

  • The authors should cite recent work on non-uniform Fourier analysis, such as Learning DNF through Generalized Fourier Representations (COLT 2025).
  • Line 48: “however” is repeated in the same sentence.
  • Line 213: “teh” should be corrected to “the”.
  • Line 213: “Under this” should be appropriately capitalized.
Questions
  • Q1. Is FOURIER-SIEVE fundamentally different from the classical Kushilevitz–Mansour (KM) algorithm, or is it essentially a reformulation of KM?

  • Q2. How do the authors justify the assumption that a self-approximator for Fourier-sparse functions exists? Are there known algorithms that satisfy this assumption, particularly with the required worst-case guarantee for every input xx? If so, what are their sample and computational complexities?

  • Q3. What is the motivation for studying sparsity with respect to the uniform-distribution Fourier basis while adopting a distribution-free distance measure? Would it not be more natural to study sparsity (or parity structure) with respect to a Fourier representation induced by the underlying non-uniform distribution?

Limitations

The presented work relies on the assumption of self approximating sparse function, which I don't believe is being discussed as one of the limitations of this work.

Paper formatting concerns

n/a

Final justification

The reviewer's partially addressed my main concerns. Hence I increased my score. They addressed some confusion specifically around the two assumptions:

  1. The existence of a Fourier sparsity tester under the uniform distribution.
  2. The existence of a self-approximator for Fourier-sparse functions.

I suggest the authors to clarify that these assumptions will be proved later in the paper with proper cross references.

Also I urge the authors to provide a discussion on the comparison with the KM algorithm.

Reviewer_MUXaOpenReview ↗
Rating
4
Clarity
2
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

Summary of the paper

This paper designs a non-adaptive tester for the following problem:

Consider the Fourier expansion of a boolean function f:F2n→Rf: \mathbb{F}_2^n \to \mathbb{R}, as

f(x)=∑α∈F2nf^(α)(−1)⟨α,x⟩f(x) = \sum_{\alpha \in \mathbb{F}_2^n} \widehat{f}(\alpha) (-1)^{\langle \alpha, x \rangle}

where the Fourier coefficient f^(α)≜12n∑x∈F2n[f(x)⋅(−1)⟨α,x⟩]\widehat{f}(\alpha) \triangleq \frac{1}{2^n} \sum_{x \in \mathbb{F}_2^n} \left[f(x) \cdot (-1)^{\langle \alpha, x \rangle}\right].

Problem: Given sample access to an arbitrary distributon D\mathcal{D} on F2n\mathbb{F}_2^n and query access to a function f:F2n→Rf: \mathbb{F}_2^n \to \mathbb{R}, distinguish between the following cases with success probability ≥2/3\geq 2/3:

  • YES: ff has ≤s\leq s non-zero Fourier coefficients (is ss-Fourier sparse).
  • NO: dD,ε(f,g)≥δd_{\mathcal{D},\varepsilon}(f, g) \geq \delta for all ss-Fourier sparse functions gg, where dD,ε(f,g)≜Pr⁡x∼D[∣f(x)−g(x)∣≥ε]d_{\mathcal{D},\varepsilon}(f, g) \triangleq \Pr_{x \sim \mathcal{D}}\left[|f(x) - g(x)| \geq \varepsilon\right].

This paper designs a tester for the above problem that uses O~(s4δ4ε8)\widetilde{O}(\frac{s^4}{\delta^4\varepsilon^8}) queries to f(⋅)f(\cdot) and O~(1/δ)\widetilde{O}(1/\delta) samples from D\mathcal{D}.

Note: In relation to Euclidean distance, we would have (Ex∼D[∣f(x)−g(x)∣2])12(\mathbb{E}_{x \sim \mathcal{D}}[|f(x)-g(x)|^2])^{\frac12}

≥dD,ε(f,g)⋅ε\geq d_{\mathcal{D},\varepsilon}(f,g) \cdot \varepsilon.

Techniques: The high level design of the tester is via

(i) a tester for the uniform distribution case

(ii) approximate self-correction (w.r.t standard Euclidean distance in the real-valued case rather than Hamming distance) for the class of ss-Fourier-sparse functions.

The tester checks whether the sum of the squares of the estimated top-ss heavy Fourier coefficients are close to 11 (the input function is scaled so that the Fourier coefficient squares should sum to 11 via Parseval), and also whether the function is close to the self-corrected function on O(1/δ)O(1/\delta) random points.

Strengths and weaknesses

Strengths

  • Nice property testing result. The techniques are interesting, especially the approximate self correction approach with dimension independent query complexity, and the overall approach could have more general applicability in designing distribution-free testers.

Weaknesses

  • The exact tester can be used as a preprocessing subroutine for exact proper learning algorithms. But many practical machine learning applications would still require tolerant testing, i.e. distance ≤δ′\leq \delta^\prime v.s. distance ≥δ\geq \delta. But the framework does not seem to extend to tolerant testing. The completeness of the tester piggy-backs the uniform distribution case. For instance, it is not clear to me how dU,ε(f,Ps)≤δ′≪δd_{U,\varepsilon}(f, \mathcal{P}_s) \leq \delta^\prime \ll \delta would imply that the top ss Fourier coefficent estimates squared would sum to something like 1−cε2δ′1-c\varepsilon^2\delta^\prime, which would be needed in a tolerant tester based on this framework. The authors have given a more detailed discussion of these aspects in the rebuttals.

  • The proofs and pseudocode are not very well-written. For instance, In the proof of Lemma 1 (line 406), D(b+z)D(b+z) is not well-defined (but can be inefrred from context). More seriously, neither is the set SS properly defined (line 411 etc), WCW_C is defined after its first use (in the lemma statement) etc. In the main paper, WCW_C and PCP_C used in Algorithms 2 and 3 are not defined (only in the appendix). On a minor note, there also seems to be a notational mismatch of PC\mathcal{P}_C in the algorithm vs PC\mathsf{P}_C in the appendix.

  • (Not so serious) The tester follows fairly standard constructions in the property testing literature. So the technical novelty is non-trivial but not so much that the work has ground-breaking theoretical ideas.

  • (Not so serious) The Fourier sieve (Algorithm 2) etc. would not be very useful in practical machine learning since the iteration over all cosets would go over a prohibitively large number (232/θ82^{32}/\theta^8).

Note: Typo in line 261: "guaranty" to "guarantee" (not serious).

Questions
  • What are your thoughts on this framework and techniques being applied to (distribution free) tolerant testing in the same dD,εd_{D,\varepsilon} distance or some other form of robust testing; Or some other form that establishes this as a useful tool for machine learning applications?
Limitations

Yes

Paper formatting concerns

None

Final justification

Regarding ML applications, I will consider the point that it can be used as a preprocessing subroutine for exact proper learning, even without tolerant testing. One drawback that I still see is that many of the exact learning algorithms still have some "robustness" in the sense that they give semi-agnostic learning in practice and under some appropriate assumptions. This exact tester (as opposed to a tolerant tester) would not serve to identify such cases. But I will reconsider the point about the work not being a good fit for NeurIPS.

The other major negative aspect is the quality of the writing, especially in the appendix. I have no qualms about the correctness of the results, but I am very much afraid that the quality of the writing in the appendix, as I mentioned in the review, falls below the standards I would expect of a theory paper. But all the substantive contributions of this paper are in the appendix.

So I would still consider this paper as borderline, and I will raise my score to "borderline accept". I would still strongly recommend that appendix be written in a better way, perhaps even with the help of AI since all the right ideas are present.

Comments on the paper

1 comment
Meta-review

This paper studies testing algorithms for Fourier-sparse functions under an arbitrary distribution. It extends the classical Fourier-sparse algorithms (including both testing and learning) to arbitrary distributions. There are two major questions: the first one is about tolerant testing. Will this framework provide a tolerant tester? The second question is about the techinical contribution. In some sense, its algorithms is an extension of classical Fourier-sparse algorithms for the uniform distribution.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.