Simple KNN-Based Outlier Detection Achieves Robust Clustering
arXiv:2605.07130
Abstract
Being robust to the presence of outliers is crucial for applying clustering algorithms in practice. In the $\textit{robust $k$-Means}$ problem (i.e., -Means with outliers), the goal is to remove outliers and minimize the -Means cost on the remaining points. Despite the close connection between robust -Means and outlier detection, both theoretical and empirical understanding of the effectiveness of for robust -Means remains limited. In this paper, we prove that under a practical assumption on the optimal cluster sizes, simply removing points with large -Nearest-Neighbor distances achieves performance comparable to prior work in terms of approximation guarantees: it yields a constant-factor reduction from robust -Means to standard -Means, without introducing additional centers or discarding extra outliers, as is commonly required by existing approaches. Empirically, experiments on real-world datasets show that our method outperforms or matches several more sophisticated algorithms in terms of clustering cost and runtime. These results demonstrate that simple KNN-based heuristics can be surprisingly effective for robust clustering, highlighting new opportunities to bridge techniques from outlier detection and clustering.
Code: https://github.com/MasterZhou1/Robust-Clustering