Presented at NeurIPS 2025, this research provides a rigorous theoretical foundation for a ubiquitous "hack" in machine learning and combinatorial optimization: testing algorithms on small subsets of data to determine the best heuristic for the full dataset.
The Bottleneck of Scale in Algorithm Selection
In combinatorial optimization tasks—such as clustering or finding the maximum cut in a graph—there is rarely a single "one-size-fits-all" algorithm. Practitioners typically rely on data-driven algorithm selection, running a suite of candidate heuristics on training data to identify the best performer for a specific application.
However, the primary bottleneck in this process is scale. Running complex, super-linear algorithms on massive datasets merely to select an algorithm is computationally prohibitive. To circumvent this, engineers frequently test algorithms on small "proxy" instances. While this workaround is highly effective in practice, it has historically remained an ad-hoc approach driven by intuition rather than rigorous math. This paper asks a fundamental question: Can we theoretically guarantee that the best algorithm for a small sample will also be the best for the entire dataset?
Formalizing "Size Generalization"
To answer this, the authors formalize the concept of Size Generalization. They prove that for several popular algorithms, performance on a small, representative subsample accurately predicts performance on the full dataset. The study analyzes five canonical algorithms across two problem domains:
1. Clustering
The researchers examined k-means++, Gonzalez’s k-centers, and Single-Linkage (SL).
- Center-Based Clustering: For these algorithms, the authors introduce ApxSeeding, an MCMC-based approach that estimates an algorithm's accuracy using significantly fewer distance and ground-truth queries. Remarkably, the sample size required for a reliable estimate is often independent of the total number of points ($n$). As a dataset scales to billions of points, the proxy sample does not necessarily need to grow with it.
- Single-Linkage: SL is notoriously brittle and sensitive to noise. However, the authors identified specific structural properties—namely, how well-separated the clusters are—that allow size generalization to hold even for this unstable algorithm.
2. Max-Cut
The paper also analyzes the Goemans-Williamson (GW) semi-definite programming (SDP) rounding scheme and a standard Greedy algorithm.
- Overcoming Brittleness in GW: The challenge with GW is its "non-Lipschitz" behavior, where minute changes in the SDP solution can lead to drastically different cuts. The authors overcome this by proving convergence bounds for SDP objective values on subgraphs that remain independent of the graph's specific structure.
- Fictitious Cuts for Greedy: To analyze the Greedy max-cut algorithm, the authors utilize the concept of a "fictitious cut"—extrapolating a partial cut into a complete one—to prove that the Greedy approach generalizes with only $O(1/\epsilon^2)$ samples.
Empirical Validation and Massive Speedups
The theoretical guarantees were validated across several standard benchmarks. Clustering experiments utilized MNIST, Omniglot, Gaussian Mixture Models, and Noisy Circles, while Max-Cut experiments evaluated Erdős-Rényi, Barbell, Random Geometric, and Barabási-Albert graphs.
The results demonstrate significant practical benefits:
- Massive Speedups: In max-cut experiments on graphs of $n=500$, evaluating on an 80% subsample reduced the Goemans-Williamson runtime by over 60% (from 961s to 370s). Using a 60% subsample achieved a staggering 90% reduction in time while still accurately predicting the algorithm's performance.
- Empirical Convergence: Across all datasets, the accuracy of algorithms run on subsamples converged rapidly to the full-instance accuracy as the sample size increased.
- Theoretical Tightness: The authors provided lower bounds proving that their requirements for cluster size and separation are strictly necessary, confirming that their theoretical guarantees are as tight as possible.
Limitations and Future Directions
While this work represents a breakthrough for partitioning problems, it also opens several avenues for future research:
- Algorithm Breadth: The current theory is limited to five specific algorithms. Extending these size generalization guarantees to other domains, such as integer programming or dynamic programming, remains an open challenge.
- Adaptive Schemes: The authors propose an "adaptive subsampling" scheme that terminates once performance curves stabilize. Formalizing the theory behind this automated stopping criterion is a promising next step.
- Complex Objectives: The clustering analysis currently relies on a semi-supervised setting with an unknown ground truth. Broadening this to purely unsupervised objectives (like directly minimizing k-means variance) would further expand its real-world applicability.
Conclusion: This paper provides a much-needed theoretical green light for practitioners, proving that evaluating candidate heuristics on much smaller proxy instances is not just a practical hack, but a mathematically sound strategy for drastically accelerating algorithm selection.
Summary updated