Clustering is a fundamental but computationally expensive task in data science. Standard versions like $k$-means and $k$-medians are NP-hard to solve exactly, and even finding a "good enough" approximation can yield loose theoretical guarantees.
Recently, researchers have turned to learning-augmented algorithms. These methods leverage "hints" from noisy predictors (like pre-trained neural networks) to bypass usual mathematical barriers. However, predictors are rarely perfect. A single "false positive"—a point incorrectly labeled as belonging to a cluster—can pull the calculated cluster center far from its true optimal position. Previous work struggled with this, requiring very high accuracy from the predictor or placing strict limits on cluster sizes.
This paper introduces robust, high-performance algorithms for $k$-means and $k$-medians clustering that intelligently filter out false positives. By doing so, the authors achieve significantly tighter approximation bounds and faster runtimes than previous methods, even when the predictor is wrong up to 50% of the time.
Robust Clustering Methods
The authors propose two primary algorithms designed to be robust to the predictor's error rate (denoted as $\alpha$).
1. Deterministic $k$-means: Instead of simply averaging all points assigned to a label by the predictor, this algorithm looks for a "clean" subset. For each dimension, it identifies a contiguous block of points of size $(1-\alpha)$ that has the minimum internal clustering cost. By focusing on the "densest" part of the predicted cluster, it effectively ignores outliers that would otherwise skew the mean.
2. Randomized $k$-medians: For $k$-medians, the algorithm uses a "sampling and clipping" strategy:
- It picks a random point $x$ from the predicted cluster.
- It "clips" (removes) the $\alpha$-fraction of points furthest from $x$.
- It computes the geometric median of the remaining points.
- It repeats this process several times and picks the best result to ensure a high probability of success.
Key Theoretical Insights and Results
The paper makes several significant theoretical leaps over prior state-of-the-art methods:
- The 50% Threshold: The authors identify $\alpha = 1/2$ (50% error) as the "natural breaking point." If more than half the points in a predicted cluster are wrong, the label provides no useful information. Their algorithms are the first in this setting to remain functional all the way up to this theoretical limit, an improvement from previous limits of $\alpha \le 1/7$.
- Tighter Bounds: For $k$-means, they improved the approximation factor from $(1 + 20\alpha)$ to $(1 + 7.7\alpha)$ in the low-error regime. For $k$-medians, they improved the dependence on the error rate $\alpha$ from a "biquadratic" factor to a near-linear one, meaning performance degrades much more gracefully as the predictor gets worse.
- Removing Constraints: Unlike previous methods, these algorithms do not require a minimum number of points in each cluster to work, making them much more flexible for real-world data where cluster sizes vary wildly.
Empirical Evaluation
The authors evaluated their algorithms on three real-world datasets: CIFAR-10, MNIST, and PHY (KDD Cup 2004). To simulate a noisy predictor, they took the "true" optimal clusters and intentionally corrupted a fraction ($\alpha$) of the labels, moving points to random clusters.
In these experiments, the new $k$-medians algorithm consistently achieved lower clustering costs than both the "naive" approach and previous learning-augmented benchmarks. Furthermore, the $k$-means algorithm showed virtually no variance in performance because it is deterministic, providing a highly stable tool for practitioners.
Limitations and Future Directions
While a significant step forward, the algorithms currently require the user to input the error rate $\alpha$. Although the authors suggest "guessing" $\alpha$ by iterating through possible values, a version that automatically adapts to unknown noise levels would be ideal. Additionally, while the $k$-means algorithm is deterministic, the $k$-medians approach still relies on randomization and multiple repetitions. Finally, the paper assumes the predictor's errors are somewhat "balanced" (at most $\alpha$ false positives/negatives per cluster); future work could explore settings where the predictor is biased or fails catastrophically on specific types of data.
Summary updated