English

Adapting $k$-means algorithms for outliers

Data Structures and Algorithms 2022-09-26 v2 Machine Learning

Abstract

This paper shows how to adapt several simple and classical sampling-based algorithms for the kk-means problem to the setting with outliers. Recently, Bhaskara et al. (NeurIPS 2019) showed how to adapt the classical kk-means++ algorithm to the setting with outliers. However, their algorithm needs to output O(log(k)z)O(\log (k) \cdot z) outliers, where zz is the number of true outliers, to match the O(logk)O(\log k)-approximation guarantee of kk-means++. In this paper, we build on their ideas and show how to adapt several sequential and distributed kk-means algorithms to the setting with outliers, but with substantially stronger theoretical guarantees: our algorithms output (1+ε)z(1+\varepsilon)z outliers while achieving an O(1/ε)O(1 / \varepsilon)-approximation to the objective function. In the sequential world, we achieve this by adapting a recent algorithm of Lattanzi and Sohler (ICML 2019). In the distributed setting, we adapt a simple algorithm of Guha et al. (IEEE Trans. Know. and Data Engineering 2003) and the popular kk-means\| of Bahmani et al. (PVLDB 2012). A theoretical application of our techniques is an algorithm with running time O~(nk2/z)\tilde{O}(nk^2/z) that achieves an O(1)O(1)-approximation to the objective function while outputting O(z)O(z) outliers, assuming kznk \ll z \ll n. This is complemented with a matching lower bound of Ω(nk2/z)\Omega(nk^2/z) for this problem in the oracle model.

Keywords

Cite

@article{arxiv.2007.01118,
  title  = {Adapting $k$-means algorithms for outliers},
  author = {Christoph Grunau and Václav Rozhoň},
  journal= {arXiv preprint arXiv:2007.01118},
  year   = {2022}
}
R2 v1 2026-06-23T16:48:06.589Z