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

Efficiently Learning Fourier Sparse Set Functions

Andisheh Amrollahi, Amir Zandieh, Michael Kapralov, Andreas Krause

Learning a "set function"—a function that takes a subset of items as input and returns a value—is a fundamental problem in combinatorial optimization and machine learning. However, evaluating these functions typically requires navigating an exponentially large input space. Presented at NeurIPS 2019, this paper introduces a breakthrough algorithm capable of learning "low-degree" Fourier sparse set functions, such as graph cuts and decision trees, in linear time relative to the number of elements.

By bridging the gap between compressive sensing and sparse Fourier transforms, the authors achieve near-optimal sample complexity and a massive computational speedup over previous quadratic-time methods.

The Challenge of Exponential Complexity

Many real-world problems rely on set functions defined as $x: 2^V \to \mathbb{R}$, where $V$ is a ground set of $n$ elements. Common applications include calculating the capacity of a graph cut or evaluating a decision tree. Because the input space is $2^n$, learning these functions through brute force is impossible for even modest values of $n$.

To make this tractable, researchers often assume Fourier sparsity: the function can be represented by a small number ($k$) of non-zero coefficients in the Walsh-Hadamard (Fourier) basis. Furthermore, many of these functions are low-degree, meaning each term in the function only depends on a small number of elements ($d$). For instance, a standard graph cut has a degree of $d=2$ because edges connect only two vertices.

Historically, Compressive Sensing (CS) approaches for this problem were computationally expensive, scaling quadratically ($n^2$) or even exponentially ($n^d$) with the number of elements. Conversely, existing Sparse Fourier Transform (SFT) algorithms were either non-robust to noise or made restrictive assumptions about random coefficient distribution that failed on structured data like graphs.

Methodology: EXACTSHT and ROBUSTSHT

The authors introduce a novel algorithmic framework, EXACTSHT, alongside its noise-tolerant counterpart, ROBUSTSHT. Their approach avoids randomness assumptions and relies on two primary mechanisms:

  1. Hashing to Buckets (HASH2BINS): The algorithm maps the $k$ unknown Fourier frequencies into a smaller number of "buckets." If a bucket contains only one frequency (a "singleton"), it becomes significantly easier to isolate and identify.
  2. Low-Order Frequency Recovery: This serves as the paper's primary technical novelty. The authors developed a primitive that uses "binary search vectors" to identify the exact index of a low-degree frequency using only $O(d \log n)$ samples.

The algorithm operates iteratively: it hashes the signal, identifies the "easy" frequencies in singleton buckets, subtracts their contribution from the overall signal (a process known as peeling), and repeats this cycle until all $k$ coefficients are successfully recovered.

Empirical Validation: Graph Sketching

To test their algorithm, the authors evaluated it on a "graph sketching" task using the Autonomous Systems Dataset (SNAP), which contains snapshots of internet topology (routers and their connections) in Oregon. The objective was to detect which edges were added or removed between different dates by only observing the values of various graph cuts, which acted as an oracle for the set function.

Key Findings and Results

  • Massive Computational Speedup: In experiments featuring 800 vertices, the new algorithm learned the graph in approximately 2 seconds. In stark contrast, previous state-of-the-art CS methods became effectively intractable beyond 200 vertices.
  • Linear Scaling: The empirical results validated the theoretical claims: by exploiting the low-degree nature of the Fourier support ($d \ll n$), the runtime scales linearly with $n$. This shifts the problem from intractable for large networks to solvable in seconds, easily outperforming the quadratic scaling of CS approaches.
  • Optimal Sampling: The authors proved a near-optimal sample complexity of $O(kd \log n)$. The results demonstrate that reconstructing the graph does not require observing the entire network; a clever set of cut evaluations (probes) is sufficient.
  • Robustness: The authors established $\ell_2/\ell_2$ approximation guarantees for their robust algorithm, ensuring it performs reliably even when the function isn't perfectly $k$-sparse or when observations are corrupted by noise.

Limitations and Future Directions

While the scaling of the sample complexity is superior or equal to previous methods, the actual number of samples required in practice (the sample constant) is roughly 10 times higher than what compressive sensing requires for very small values of $n$. Additionally, the algorithm requires prior estimates of the sparsity $k$ and the degree $d$. While $d$ is often known based on the problem domain (e.g., $d=2$ for graphs), $k$ may require empirical tuning.

Looking forward, the authors suggest that their hashing and recovery techniques could be extended to other types of discrete functions or higher-dimensional sparse recovery problems where low-degree structure is present.

Summary updated

BibTeX
@inproceedings{amrollahi2019efficiently,
  author = {Andisheh Amrollahi and Amir Zandieh and Michael Kapralov and Andreas Krause},
  title = {{Efficiently Learning Fourier Sparse Set Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure