cs.LGOct 5, 2026

Two-Point Local Optimality in kk-Means via Boundary-Point Screening

Authors: Wenlong Lyu, Xujie Xiao, Yuheng Jia

Organizations: School of Computer Science and Engineering Southeast University Nanjing, Jiangsu 211189, China

Abstract

Lloyd's algorithm and the discrete local (D-local) optimization method (Li et al., 2025) for kk-means provide only weak local-optimality guarantees, and their solution quality remains sensitive to initialization. In this paper, we introduce rr-point local optimality, under which no reassignment of at most rr samples decreases the objective function, and focus on r=2r=2. The main computational obstacle is the O(n2(k2+d))\mathcal{O}(n^2(k^2+d)) cost of exhaustive two-point certification for nn samples in dd dimensions and kk clusters. To address this challenge, we prove that (i) every improving two-point move of a D-local optimum must involve a cluster shared by both reassignments, and (ii) only certificate-defined boundary points can participate in an improving pair. Exploiting this structure, we propose Boundary-Point-Screened Two-Point Local Search (BPS-2PLS), which terminates at a two-point local optimum. For fixed k,dk,d and nonvanishing cluster occupancy, the number mm of retained candidates satisfies m=OP(log⁡n)m=\mathcal{O}_{\mathbb{P}}(\log n) under i.i.d. sampling from a bounded-support distribution with bounded density or from a Gaussian mixture. Across twelve benchmarks, BPS-2PLS attains the lowest available mean WCSS on ten. In a subsampling study, screening retains 0.10% to 2.81% of samples on average at the largest tested sizes. The code is available at https://github.com/lwl-learning/BPS-2PLS.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Lloyd's KK-Means Clustering Algorithm Is Frank-Wolfe in Disguise

    Jul 28, 2026Michael Pokojovy, J. Marcus Jobe, Simon Lacoste-JulienK-MeansConvex Optimization

  2. Data-Native Global Optimization for Big Data K-means Clustering

    Jul 17, 2026Ravil Mussabayev, Rustam Mussabayev, Zukhra Yerdaliyeva +1K-MeansClustering

  3. BalLOT: Balanced kk-means clustering with optimal transport

    Dec 5, 2025Wenyan Luo, Dustin G. MixonK-MeansOptimal Transport Approach