ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Minor

Modified K-means Algorithm with Local Optimality Guarantees

Mingyi Li, Michael R. Metel, Akiko Takeda

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

Minor
Evidence 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 ϕ,\phi, with positive weights, N>K,N>K, and Bregman divergence Dϕ(x,c).D_\phi(x,c). The hard assignment set S1S_1 consists of vertices of the product-simplex relaxation S2.S_2. For F(P)=min⁡Cf(P,C),F(P)=\min_C f(P,C), nonempty clusters have unique weighted-mean centers. A(C)A(C) is the set of minimizing assignments for fixed centers, while T(P)T(P) contains the hard assignments obtained by changing one point’s cluster. D-local optimality compares F(P)F(P) with all of T(P);T(P); C-local optimality is local optimality of FF on S2.S_2. These are different from global optimality.

The concavity of F,F, as an infimum of linear functions of P,P, 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 F(P).F(P). The nonempty-cluster condition is essential when using continuous dependence of the weighted means on P.P.

Lemma 4.1 correctly expresses the change from moving an α\alpha fraction of point gg from aa to b:b: F(P′)−F(P)=αwg{D(xg,cb)−D(xg,ca)}−(sa−αwg)D(ca′,ca)−(sb+αwg)D(cb′,cb).\begin{aligned} F(P')-F(P)={}&\alpha w_g\{D(x_g,c_b)-D(x_g,c_a)\}\\ &-(s_a-\alpha w_g)D(c'_a,c_a)-(s_b+\alpha w_g)D(c'_b,c_b).\end{aligned} 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 10−12.10^{-12}. This finite check supplements, rather than replaces, the algebra. Inspection of the original p. 16 confirms that Lemma D.2 has the correct pk,n′−pk,np'_{k,n}-p_{k,n} sign; an initially suspected extraction-related sign problem is rejected.

The paper’s example X=(−4,−2,0,1.5,2.5),X=(-4,-2,0,1.5,2.5), unit weights and K=2K=2 also checks. At centers (−2,2)(-2,2) and the indicated 3+23+2 partition, F(α)=572−363−α−162+α,F′(α)=−20α(α+12)(α−3)2(α+2)2<0(0<α≤1).F(\alpha)=\frac{57}{2}-\frac{36}{3-\alpha}-\frac{16}{2+\alpha},\qquad F'(\alpha)=\frac{-20\alpha(\alpha+12)}{(\alpha-3)^{2}(\alpha+2)^{2}}<0 \quad(0<\alpha\leq1). Thus F(0)=17/2F(0)=17/2 and F(1)=31/6,F(1)=31/6, 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 C(P′)C(P') are continuous there, so f(P′,C(P′))≥f(P,C(P′))≥F(P)f(P',C(P'))\geq f(P,C(P'))\geq F(P) for nearby P′.P'. 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 A(CP∗)A(C_P^*) implies A(CP∗)∩T(P)≠∅,A(C_P^*)\cap T(P)\ne\varnothing, assuming only distinct centers for a solution (P,CP∗).(P,C_P^*). Partial optimality is also necessary for this assertion as written. This is a Minor, local statement defect.

Take ϕ(x)=x2,\phi(x)=x^{2}, six distinct real points (−5,0,2,−2,1,4),(-5,0,2,-2,1,4), unit positive weights and K=2.K=2. Assign {−5,0,2}\{-5,0,2\} to the first cluster and {−2,1,4}\{-2,1,4\} to the second. Both clusters are nonempty, their unique optimal centers are −1-1 and 1,1, and F(P)=44.F(P)=44. The point 00 ties between these centers, so A(CP∗)A(C_P^*) has two elements. However, point 22 is assigned to the wrong nearest center, as is point −2.-2. Every member of A(CP∗)A(C_P^*) must change both assignments, and hence differs from PP in at least two coordinates. The intersection with T(P)T(P) is empty. Exact enumeration of the 262^{6} assignments gives Hamming distances 22 and 33 for the two minimizers.

Adding P∈A(CP∗),P\in A(C_P^*), 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 A(CP∗),A(C_P^*), 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 4.3;4.3; stating it removes the ambiguity.

□\square

Possible revision

Add PP in A(C)A(C) to second assertion; supported by Lemma 4.1.

Problem 2. Released C-LO can terminate outside the proved conditions

Minor
Evidence 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 ϕ,\phi, with positive weights, N>K,N>K, and Bregman divergence Dϕ(x,c).D_\phi(x,c). The hard assignment set S1S_1 consists of vertices of the product-simplex relaxation S2.S_2. For F(P)=min⁡Cf(P,C),F(P)=\min_C f(P,C), nonempty clusters have unique weighted-mean centers. A(C)A(C) is the set of minimizing assignments for fixed centers, while T(P)T(P) contains the hard assignments obtained by changing one point’s cluster. D-local optimality compares F(P)F(P) with all of T(P);T(P); C-local optimality is local optimality of FF on S2.S_2. These are different from global optimality.

The concavity of F,F, as an infimum of linear functions of P,P, 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 F(P).F(P). The nonempty-cluster condition is essential when using continuous dependence of the weighted means on P.P.

Lemma 4.1 correctly expresses the change from moving an α\alpha fraction of point gg from aa to b:b: F(P′)−F(P)=αwg{D(xg,cb)−D(xg,ca)}−(sa−αwg)D(ca′,ca)−(sb+αwg)D(cb′,cb).\begin{aligned} F(P')-F(P)={}&\alpha w_g\{D(x_g,c_b)-D(x_g,c_a)\}\\ &-(s_a-\alpha w_g)D(c'_a,c_a)-(s_b+\alpha w_g)D(c'_b,c_b).\end{aligned} 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 10−12.10^{-12}. This finite check supplements, rather than replaces, the algebra. Inspection of the original p. 16 confirms that Lemma D.2 has the correct pk,n′−pk,np'_{k,n}-p_{k,n} sign; an initially suspected extraction-related sign problem is rejected.

The paper’s example X=(−4,−2,0,1.5,2.5),X=(-4,-2,0,1.5,2.5), unit weights and K=2K=2 also checks. At centers (−2,2)(-2,2) and the indicated 3+23+2 partition, F(α)=572−363−α−162+α,F′(α)=−20α(α+12)(α−3)2(α+2)2<0(0<α≤1).F(\alpha)=\frac{57}{2}-\frac{36}{3-\alpha}-\frac{16}{2+\alpha},\qquad F'(\alpha)=\frac{-20\alpha(\alpha+12)}{(\alpha-3)^{2}(\alpha+2)^{2}}<0 \quad(0<\alpha\leq1). Thus F(0)=17/2F(0)=17/2 and F(1)=31/6,F(1)=31/6, 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 C(P′)C(P') are continuous there, so f(P′,C(P′))≥f(P,C(P′))≥F(P)f(P',C(P'))\geq f(P,C(P'))\geq F(P) for nearby P′.P'. 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 xg≠cbx_g\ne c_b 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 8181–8484 draws independently, empty-cluster repair at 222222–229229 checks only that the donor has more than one point, and lines 242242–244244 assign a tied point to the second minimizing index without ensuring a change. The corresponding Python paths are at 7979–83,83, 165165–170170 and 173173–180.180. The public API permits ordered distinct data X=(0,−1,1),X=(0,-1,1), unit weights, K=2,K=2, squared divergence and random initialization. Both sampled centers equal 00 with probability 1/91/9 under independent uniform draws.

At these centers all points tie, so nearest assignment sends all three to cluster 0.0. The empty-cluster repair takes the first point, 0,0, into cluster 1.1. Both resulting centers remain 00 and the labels are (1,0,0).(1,0,0). The next iteration repeats those assignments and repair. The tie handler examines point 0,0, sets its label to 1,1, which is already its label, and breaks. The unchanged-assignment stopping condition terminates with loss 2.2. This is a static state trace of the inspected code, not an execution of the authors’ program.

Move an α\alpha fraction of point −1-1 from cluster 00 to cluster 1.1. The cluster masses are 2−α2-\alpha and 1+α,1+\alpha, both positive, with centers α/(2−α)\alpha/(2-\alpha) and −α/(1+α).-\alpha/(1+\alpha). Exact recomputation gives F(α)=2−α22−α−α21+α<2(0<α≤1).F(\alpha)=2-\frac{\alpha^{2}}{2-\alpha}-\frac{\alpha^{2}}{1+\alpha}<2 \qquad(0<\alpha\leq1). Assignments and centers converge to the returned state as α↓0;\alpha\downarrow0; it is therefore neither C-local nor CJ-local. At α=1\alpha=1 the loss is 1/2,1/2, 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 xg≠cbx_g\ne c_b 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 10−1010^{-10} tolerances and positive-mass thresholds also mean the release is not an exact-arithmetic implementation for arbitrarily small positive weights.

□\square

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.

Submit an author revisionContribute a review