Skip to content

The Approximation Ratio of kk-means++ Is 2ln⁡k+O(1)2\ln k+O(1)

Aravind Reddy

cs.DS

Abstract

Given a finite set of points in Euclidean space, kk-means clustering seeks kk centers that minimize the sum of squared distances from each point to its nearest center. The kk-means++ algorithm chooses its first center uniformly at random from the data points and each subsequent center with probability proportional to its squared distance from the nearest center already chosen. Let RkR_k be the worst-case ratio between the expected cost of the kk seeds chosen by kk-means++ and the optimal kk-means cost. In their seminal paper introducing kk-means++, Arthur and Vassilvitskii (SODA 2007) showed that 2ln⁡k≤Rk≤8(ln⁡k+2)2\ln k\le R_k\le8(\ln k+2), and Makarychev, Reddy and Shan (NeurIPS 2020) improved the upper bound to 5(ln⁡k+2)5(\ln k+2). We prove that Rk=2ln⁡k+O(1)R_k=2\ln k+O(1); more precisely, 2Hk−1+2≤Rk≤2Hk−2+52H_{k-1}+2\le R_k\le 2H_{k-2}+5 for k≥2k\ge2, where HjH_j is the jjth harmonic number, so the two bounds differ by less than 33. We also determine R2=5R_2=5 and R3=185/32R_3=185/32, with a unified proof of both upper bounds, and give a second family of lower bounds that exceeds 2Hk−1+22H_{k-1}+2 for 2≤k≤182\le k\le18. Previous analyses bound the expected cost of a cluster just after it is first sampled by a constant times its optimal cost, and then charge that cost for the rest of the run. We track how a cluster's cost evolves after its first hit. At each subsequent draw, the probability of sampling that cluster again is exactly its share of the current cost. We show that the cost reductions from these later hits suffice, in expectation, to bring the leading coefficient down to 22.

Create a lesson

Metadata

Categories
cs.DS, cs.LG
Comments
24 pages, 1 figure. Verification code included as ancillary files