Summary
This paper introduces new sampling-based algorithms for the learning-augmented $k$-means problem that achieve linear running time with respect to data size. By replacing traditional sorting-based strategies with efficient sampling and cost estimation, the authors provide a scalable solution that breaks the $O(m \log m)$ bottleneck while maintaining high clustering quality on massive, high-dimensional datasets.
The Bottleneck in Learning-Augmented Clustering
Clustering, specifically the $k$-means problem, is a cornerstone of unsupervised learning but is notoriously difficult. It is NP-hard to solve exactly, and even finding a very close approximation is computationally challenging.
Recently, researchers have turned to "learning-augmented" settings. In this paradigm, an algorithm is given "hints"—predicted cluster labels from an oracle, such as a pre-trained model or a cheap heuristic. These hints aren't perfect; they carry an error rate $\alpha$. The goal is to use these noisy hints to bypass usual theoretical barriers and find a $(1+O(\alpha))$-approximation quickly.
The existing state-of-the-art (SOTA) methods for this problem rely on sorting data points to find the best coordinates for cluster centers. While effective, sorting takes $O(m \log m)$ time, where $m$ is the number of points. For modern "billion-scale" datasets, this logarithmic factor becomes a significant hurdle to scalability. This paper asks: can we achieve the same high-quality clustering in truly linear time, $O(m)$?
Proposed Methods: From Sorting to Sampling
The authors propose three primary algorithms that move away from sorting in favor of random sampling:
- Fast-Sampling: Instead of sorting all points in a predicted cluster to find the best center coordinate for each dimension, this method samples a small subset $O(\log(kd))$. It uses these samples to identify candidate intervals likely to contain the optimal center, then performs a fine-grained search within those intervals.
- Fast-Estimation: This algorithm further optimizes the process by using sublinear-time estimators. It samples a set of points to estimate the clustering cost of candidate coordinates without ever looking at the entire dataset, effectively removing the multiplicative $\log(kd)$ factor from the main data-processing loop.
- Fast-Filtering: Recognizing that coordinate-wise estimation can accumulate errors, the authors propose this practical heuristic. It directly identifies approximate centers for each cluster and "filters" out points that are clearly far from the centers, leading to better empirical performance.
Key Theoretical Results
The paper's primary theoretical contribution is the shift from near-linear to linear time complexity.
As shown in the comparison above, prior SOTA methods rely on sorting, incurring an $O(md \log m)$ cost. The proposed Fast-Sampling method reduces the dependence on $m$ by swapping $\log m$ for $\log(kd)$. Finally, Fast-Estimation achieves true linear time in the data size, $O(md)$, plus a term independent of $m$.
Empirical Performance
The algorithms were evaluated on a diverse set of standard and large-scale benchmarks, including MNIST, CIFAR10, high-energy physics datasets (PHY, SUSY, HIGGS), and the massive 100-million-point SIFT dataset.
- Speedup: The Fast-Filtering algorithm was significantly faster than previous SOTA methods, achieving at least a 3x speedup on average. On the 100-million-point SIFT dataset, it was 10x faster than other learning-augmented methods.
- Clustering Quality: Despite being faster, the proposed methods didn't compromise on quality. Fast-Filtering actually reduced clustering costs by an average of 1.5% compared to previous SOTA learning-augmented algorithms.
- Efficiency vs. Lloyd's: On the SIFT dataset, Fast-Filtering was the only method that was both faster than the standard Lloyd's algorithm and provided significantly higher clustering quality (measured by ARI and NMI).
Limitations and Future Work
The authors acknowledge that while their sampling-based methods are faster, they might theoretically provide slightly looser approximation guarantees in absolute worst-case scenarios compared to sorting-based methods. However, their experiments suggest these worst cases rarely occur in real-world data.
Future research directions include finding ways to further tighten the approximation ratios while maintaining linear time complexity, and exploring how these sampling strategies might apply to other clustering objectives, such as $k$-median or $k$-center problems.
Summary updated