Modified K-means Algorithm with Local Optimality Guarantees
ELVIA analysis
Independent review pending
The principal Bregman descent identity and the finite-convergence argument are supported by analytic inspection and independent small checks. The second assertion of Theorem 4.3 needs its intended partial-optimality premise. A pinned later implementation omits a crucial empty-cluster repair condition and admits a nonlocal C-LO termination on a three-point example. The theoretical algorithm excludes that trace. The supported assessment is Minor, with the published experiments’ implementation provenance unresolved.
Problem 1. Theorem 4.3’s second assertion lacks a premise
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
The data are distinct points in the interior of the convex domain of a strictly convex differentiable generator with positive weights, and Bregman divergence The hard assignment set consists of vertices of the product-simplex relaxation For nonempty clusters have unique weighted-mean centers. is the set of minimizing assignments for fixed centers, while contains the hard assignments obtained by changing one point’s cluster. D-local optimality compares with all of C-local optimality is local optimality of on These are different from global optimality.
The concavity of as an infimum of linear functions of supports the D-local to C-local implication: near a vertex, feasible directions lie in the cone generated by its one-point neighbors, and concavity bounds the objective below by convex combinations of their values and The nonempty-cluster condition is essential when using continuous dependence of the weighted means on
Lemma 4.1 correctly expresses the change from moving an fraction of point from to The weighted-mean Bregman decomposition proves this identity. Independent numerical evaluations with squared, KL and Itakura–Saito generators on positive scalar data agree with direct recomputation to within This finite check supplements, rather than replaces, the algebra. Inspection of the original p. 16 confirms that Lemma D.2 has the correct sign; an initially suspected extraction-related sign problem is rejected.
The paper’s example unit weights and also checks. At centers and the indicated partition, Thus and validating this failure of ordinary K-means to reach a C-local solution under the paper’s definition.
For Theorem 4.2, a partial optimum with all masses positive and a unique nearest assignment has strictly positive assignment gaps. They persist for centers in a neighborhood. The weighted means are continuous there, so for nearby This independently supports C-local optimality. Lemma D.4 establishes the partial-optimality and distinct-center premises at the algorithm’s special branch; strict descent through a finite set of hard assignments then supports Theorem 4.4’s finite termination. The complexity result concerns each iteration, not an equal total runtime or a polynomial iteration bound.
Theorem 4.3’s second assertion lacks a premise.
Distinct real data, positive unit weights, square generator, two nonempty clusters with distinct means.
Proof
The statement on p. 5 and its proof on p. 18 assert that nonsingleton implies assuming only distinct centers for a solution Partial optimality is also necessary for this assertion as written. This is a Minor, local statement defect.
Take six distinct real points unit positive weights and Assign to the first cluster and to the second. Both clusters are nonempty, their unique optimal centers are and and The point ties between these centers, so has two elements. However, point is assigned to the wrong nearest center, as is point Every member of must change both assignments, and hence differs from in at least two coordinates. The intersection with is empty. Exact enumeration of the assignments gives Hamming distances and for the two minimizers.
Adding equivalently partial optimality here, repairs the second assertion. A tied point can then be moved alone while every other assignment stays minimizing. Distinct centers ensure that this tied point differs from each center, and Lemma 4.1 gives strict decrease through the positive center-shift terms. The first assertion, that a C-local solution with distinct centers has singleton is not refuted by this example. The text immediately below the theorem discusses converged K-means, which supplies the missing premise. Lemma D.4 likewise supplies it at the actual invocation in Theorem 4.4. Thus this counterexample does not invalidate the main algorithm’s convergence proof. Reading the word “solution” as implicitly meaning “partial optimal solution” would also avoid the defect, but that qualification is explicit in Theorem 4.2 and absent in stating it removes the ambiguity.
Possible revision
Add in to second assertion; supported by Lemma 4.1.
Problem 2. Released C-LO can terminate outside the proved conditions
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
The data are distinct points in the interior of the convex domain of a strictly convex differentiable generator with positive weights, and Bregman divergence The hard assignment set consists of vertices of the product-simplex relaxation For nonempty clusters have unique weighted-mean centers. is the set of minimizing assignments for fixed centers, while contains the hard assignments obtained by changing one point’s cluster. D-local optimality compares with all of C-local optimality is local optimality of on These are different from global optimality.
The concavity of as an infimum of linear functions of supports the D-local to C-local implication: near a vertex, feasible directions lie in the cone generated by its one-point neighbors, and concavity bounds the objective below by convex combinations of their values and The nonempty-cluster condition is essential when using continuous dependence of the weighted means on
Lemma 4.1 correctly expresses the change from moving an fraction of point from to The weighted-mean Bregman decomposition proves this identity. Independent numerical evaluations with squared, KL and Itakura–Saito generators on positive scalar data agree with direct recomputation to within This finite check supplements, rather than replaces, the algebra. Inspection of the original p. 16 confirms that Lemma D.2 has the correct sign; an initially suspected extraction-related sign problem is rejected.
The paper’s example unit weights and also checks. At centers and the indicated partition, Thus and validating this failure of ordinary K-means to reach a C-local solution under the paper’s definition.
For Theorem 4.2, a partial optimum with all masses positive and a unique nearest assignment has strictly positive assignment gaps. They persist for centers in a neighborhood. The weighted means are continuous there, so for nearby This independently supports C-local optimality. Lemma D.4 establishes the partial-optimality and distinct-center premises at the algorithm’s special branch; strict descent through a finite set of hard assignments then supports Theorem 4.4’s finite termination. The complexity result concerns each iteration, not an equal total runtime or a polynomial iteration bound.
Released C-LO can terminate outside the proved conditions.
Proof
The pinned Python and C++ implementations omit Algorithm 1’s requirement when repairing an empty cluster. Their random initialization samples with replacement. Together with the tie handler, this admits non-C-local output. This is a confirmed release-level defect; its historical experimental effect is Needs Evidence.
For the C++ file `cpp/LO_K_means.hpp`, random initialization at lines – draws independently, empty-cluster repair at – checks only that the donor has more than one point, and lines – assign a tied point to the second minimizing index without ensuring a change. The corresponding Python paths are at – – and – The public API permits ordered distinct data unit weights, squared divergence and random initialization. Both sampled centers equal with probability under independent uniform draws.
At these centers all points tie, so nearest assignment sends all three to cluster The empty-cluster repair takes the first point, into cluster Both resulting centers remain and the labels are The next iteration repeats those assignments and repair. The tie handler examines point sets its label to which is already its label, and breaks. The unchanged-assignment stopping condition terminates with loss This is a static state trace of the inspected code, not an execution of the authors’ program.
Move an fraction of point from cluster to cluster The cluster masses are and both positive, with centers and Exact recomputation gives Assignments and centers converge to the returned state as it is therefore neither C-local nor CJ-local. At the loss is so it is not D-local either. The supplied input satisfies the data, weight and divergence assumptions; the failure comes from implementation choices that differ from the paper’s algorithm.
The paper samples without replacement and explicitly requires in the empty-cluster repair. Its proof relies on the resulting strict decrease. These conditions exclude this trace and are material counterevidence against treating it as a false theoretical guarantee. The real-world driver selects random initialization, but its helper sorts and deduplicates data; that driver does not preserve the particular input ordering above. No assertion is made that a reported benchmark encountered this state. Aligning initialization and repair with the pseudocode, and requiring a genuine tie move, addresses the exhibited mechanism. A fully verified finite-precision implementation and historical rerun remain open. The shared tolerances and positive-mass thresholds also mean the release is not an exact-arithmetic implementation for arbitrarily small positive weights.
Possible revision
Align repair and initialization with paper; full finite-precision validation pending.
Supporting record & provenance
Work status
Current version
Version 1
Minhao Liu · Initial report · Version 1
Independent review pending
Original claim and review scope
Based on this, we propose simple modifications to the K-means algorithm which ensure local optimality in both the continuous and discrete sense, with the same computational complexity as the original K-means algorithm.
Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract
Actual review scope
The recorded inspection concerns these source locations: Theorem 4.3 p. 5; proof p. 18; Released C++ lines 81-84,222-244; Python 79-83,165-180 vs Algorithm 1.