Lloyd's K-Means Clustering Algorithm Is Frank-Wolfe in Disguise

Michael Pokojovy, J. Marcus Jobe, Simon Lacoste-Julien
7/28/2026
stat.MLcs.LGstat.CO

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Lloyd's $K$-means algorithm, also known as naïve $K$-means, is a widely used ad hoc optimization heuristic, designed to minimize the sum of squared errors (SSE) across all $K$-partitions of a dataset via iterative cluster refinement. In this work, we establish a novel connection between Lloyd's algorithm and the Frank-Wolfe (FW) algorithm, a prominent first-order method for projection-free optimization.

Show full abstract

We demonstrate that Lloyd's algorithm is a special case of FW. Leveraging recent advances in FW methods for concave objectives, we derive a non-asymptotic $\mathcal{O}(1/t)$ convergence rate to a local minimum of the SSE objective. To account for empty clusters, an outcome possible under Lloyd's greedy assignment, we develop an FW variant for semismooth objectives while retaining the same convergence rate that is solely controlled by the initial SSE value. We illustrate our findings with a simulation study for spherical Gaussian mixtures and a real-world image segmentation dataset.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pokojovy2026lloyds,
  title  = {Lloyd's K-Means Clustering Algorithm Is Frank-Wolfe in Disguise},
  author = {Michael Pokojovy and J. Marcus Jobe and Simon Lacoste-Julien},
  year   = {2026},
  eprint = {2607.25190},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.25190v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.25190.svg)](https://codeofpaper.com/paper/2607.25190)

Discussion