ELVIA analysis of: Modified K-means Algorithm with Local Optimality Guarantees — Problem 2: Released C-LO can terminate outside the proved conditions
Original paper: Mingyi Li; Michael R. Metel; Akiko Takeda. Modified K-means Algorithm with Local Optimality Guarantees. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/li25bt.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: Released C++ lines 81-84,222-244; Python 79-83,165-180 vs Algorithm 1
Question: What does the recorded analysis establish about “Released C-LO can terminate outside the proved conditions”?
Bounded finding:
Three-point exact loss curve and static trace in independent_checks_output.json. Fresh static reading confirms constructors retain supplied ordering; rand initialization can repeat centers; both empty-cluster repairs test donor mass but omit \(x_g \ne c_b\); the first tie is assigned to index 1 even if already there. Original Algorithm 1 samples without replacement and excludes moving a point equal to donor center. Independently traced \(X=(0,-1,1)\), unit weights, centers(0,0): every nearest label is 0; first empty repair moves the ordered point0 to label1, giving (1,0,0) with both means0. On the next pass the same repaired labels equal the old labels; first tie handling sets label1 again and exits unchanged. Cost is 2. Moving \(\alpha\) mass of -1 gives sums +\(\alpha\) and -\(\alpha\), masses 2-\(\alpha\) and 1+\(\alpha\); total within-cluster squared cost is 2-\(\alpha^{2}\)/(2-alpha)-\(\alpha^{2}\)/(1+alpha), strictly less for every positive \(\alpha\) and 1/2 at \(\alpha=1\). Centers also approach the returned centers as \(\alpha\) goes to zero, establishing non-CJ-local as well. Supported static counterexample; no author-code execution. The theoretical repair rule excludes this exact trace, and the real-world driver's sorted deduplication changes its order. The report therefore treats the later release as a separate, Minor implementation defect with historical effect unresolved. Aligning the rules addresses this mechanism; no general finite-precision guarantee is certified. Paper initialization without replacement and \(x_g \ne c_b\) repair exclude this trace; sorted experiment driver has different order.
Recorded check:
The pinned Python and C++ implementations omit Algorithm 1’s \(x_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 81–84 draws independently, empty-cluster repair at 222–229 checks only that the donor has more than one point, and lines 242–244 assign a tied point to the second minimizing index without ensuring a change. The corresponding Python paths are at 79–83, 165–170 and 173–180. The public API permits ordered distinct data \(X=(0,-1,1)\), unit weights, \(K=2\), squared divergence and random initialization. Both sampled centers equal \(0\) with probability \(1/9\) under independent uniform draws.
At these centers all points tie, so nearest assignment sends all three to cluster 0. The empty-cluster repair takes the first point, \(0\), into cluster 1. Both resulting centers remain \(0\) and the labels are \((1,0,0)\). The next iteration repeats those assignments and repair. The tie handler examines point \(0\), sets its label to 1, which is already its label, and breaks. The unchanged-assignment stopping condition terminates with loss \(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\) from cluster 0 to cluster 1. The cluster masses are \(2-\alpha\) and \(1+\alpha\), both positive, with centers \(\alpha/(2-\alpha)\) and \(-\alpha/(1+\alpha)\). Exact recomputation gives \[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 \(\alpha\downarrow0\); it is therefore neither C-local nor CJ-local. At \(\alpha=1\) the loss is \(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 \(x_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^{-10}\) tolerances and positive-mass thresholds also mean the release is not an exact-arithmetic implementation for arbitrarily small positive weights.
Case-wide limitations:
- Limitations: No author code executed or benchmarks reproduced.
- Limitations: Later release does not establish historical implementation.
- Limitations: Separate OpenReview attachments unavailable; later errata not surveyed.
- P1 — Counterevidence: Partial optimality is supplied by Lemma D.4 at the core convergence invocation.
- P2 — Counterevidence: Paper initialization without replacement and x_g != c_b repair exclude this trace; sorted experiment driver has different order.
- Limits: Remaining appendix tables read as text, not all visually audited.
- Limits: Static only; cpp/run.cpp and py/run.py not read; no execution.
- Limitations: Focused acceptance of reported issues only; initial full-paper coverage is not claimed as independently repeated.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p2
Source report index: 2
Original source excerpts (verbatim):
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.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1, Abstract
Source PDF SHA-256: 816b67b19ae88db2abdfd5490aec191a7f04fc691f07c8443b0686023c4ab1f4
Review status: Independent review pending
Case: icml2025-0325-modified-k-means-algorithm-with-local-optimality-guarantees
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0325-modified-k-means-algorithm-with-local-optimality-guarantees.html#problem-2
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0325-modified-k-means-algorithm-with-local-optimality-guarantees/records/icml2025-0325-modified-k-means-algorithm-with-local-optimality-guarantees.r1.json
Canonical record SHA-256: 32d4aa262c2c01d83e1e3ccfa8936dfb0d168e0191983e4a5187bc972032a4eb
The page follows the latest revision; the versioned record identifies this snapshot.