A New Rejection Sampling Approach to k-means++ With Improved Trade-Offs

Abstract

The k-means++ seeding algorithm (Arthur & Vassilvitskii, 2007) is widely used in practice for the k-means clustering problem where the goal is to cluster a dataset X ⊂ R d into k clusters. The popularity of this algorithm is due to its simplicity and provable guarantee of being O( k) competitive with the optimal solution in expectation. However, its running time is O(|X|kd), making it expensive for large datasets. In this work, we present a simple and effective rejection sampling based approach for speeding up k-means++. Our first method runs in time O(nnz (X) + β k2d) while still being O( k ) competitive in expectation. Here, β is a parameter which is the ratio of the variance of the dataset to the optimal k-means cost in expectation and O hides logarithmic factors in k and |X|. Our second method presents a new trade-off between computational cost and solution quality. It incurs an additional scale-invariant factor of k-( m/β) Var (X) in addition to the O( k) guarantee of k-means++ improving upon a result of (Bachem et al, 2016a) who get an additional factor of m-1Var(X) while still running in time O(nnz(X) + mk2d). We perform extensive empirical evaluations to validate our theoretical results and to show the effectiveness of our approach on real datasets.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…