[Paper Review] Further heuristics for $k$-means: The merge-and-split heuristic and the $(k,l)$-means
This paper introduces the merge-and-split $k$-means heuristic and the $(k,l)$-means objective to improve $k$-means clustering by escaping local minima. It extends Lloyd’s and Hartigan’s algorithms to handle empty and single-point clusters via partial reseeding, and shows that $(k,l)$-means with $l>1$ can be relaxed into standard $k$-means, yielding better solutions—especially under limited restarts, with experiments showing up to 80.55% improvement over standard $k$-means on the Iris dataset.
Finding the optimal $k$-means clustering is NP-hard in general and many heuristics have been designed for minimizing monotonically the $k$-means objective. We first show how to extend Lloyd's batched relocation heuristic and Hartigan's single-point relocation heuristic to take into account empty-cluster and single-point cluster events, respectively. Those events tend to increasingly occur when $k$ or $d$ increases, or when performing several restarts. First, we show that those special events are a blessing because they allow to partially re-seed some cluster centers while further minimizing the $k$-means objective function. Second, we describe a novel heuristic, merge-and-split $k$-means, that consists in merging two clusters and splitting this merged cluster again with two new centers provided it improves the $k$-means objective. This novel heuristic can improve Hartigan's $k$-means when it has converged to a local minimum. We show empirically that this merge-and-split $k$-means improves over the Hartigan's heuristic which is the {\em de facto} method of choice. Finally, we propose the $(k,l)$-means objective that generalizes the $k$-means objective by associating the data points to their $l$ closest cluster centers, and show how to either directly convert or iteratively relax the $(k,l)$-means into a $k$-means in order to reach better local minima.
Motivation & Objective
- To address the limitation of $k$-means heuristics being trapped in poor local minima due to poor initialization or high $k/d$.
- To extend classical $k$-means heuristics (Lloyd’s and Hartigan’s) to handle empty and single-point clusters by enabling partial reseeding.
- To introduce a novel merge-and-split $k$-means heuristic that improves upon Hartigan’s method by reconfiguring clusters when objective function improvement is possible.
- To generalize the $k$-means objective to $(k,l)$-means, allowing points to be assigned to their $l$ closest centers, and to show how this can be relaxed into standard $k$-means for better convergence.
- To empirically validate that $(k,l)$-means and its cascading relaxation outperform standard $k$-means, especially when restarts are limited.
Proposed method
- Extend Lloyd’s algorithm to handle empty clusters by reassigning cluster centers during relocations, treating such events as opportunities for partial reseeding.
- Extend Hartigan’s single-point relocation heuristic to handle single-point clusters by allowing reassignment and recentering, leveraging these as triggers for reseeding.
- Propose the merge-and-split $k$-means heuristic: merge two clusters, split them into two new clusters with updated centers if the $k$-means objective improves.
- Introduce the $(k,l)$-means objective, where each point is assigned to its $l$ closest cluster centers, generalizing the standard $k$-means objective.
- Develop two conversion strategies: direct assignment (keep only the closest center) or iterative relaxation from $(k,l)$-means to $(k,l-1)$-means until reaching standard $k$-means.
- Use the $(k,l)$-means as a pre-processing step to escape local minima before final $k$-means refinement via conversion or relaxation.
Experimental results
Research questions
- RQ1Can empty and single-point cluster events in $k$-means heuristics be leveraged as opportunities for partial reseeding to improve convergence?
- RQ2Does the proposed merge-and-split $k$-means heuristic outperform Hartigan’s method in escaping local minima?
- RQ3Can the $(k,l)$-means objective with $l>1$ smooth the optimization landscape and yield better local minima than standard $k$-means?
- RQ4How effective is the relaxation of $(k,l)$-means into standard $k$-means in terms of solution quality and robustness to initialization?
- RQ5Under limited restarts, does $(k,l)$-means with conversion or relaxation consistently outperform standard $k$-means?
Key findings
- The merge-and-split $k$-means heuristic improves over Hartigan’s method, which is the de facto standard, by enabling reconfiguration of clusters when objective function improvement is possible.
- For $k=6$, the converted $(k,2)$-means outperforms standard $k$-means in 80.55% of trials on the Iris dataset with 10,000 restarts.
- The $(k,l)$-means objective with $l=2$ consistently beats standard $k$-means in 80% of cases on the Iris dataset when restarts are limited.
- Cascading relaxation from $(k,l)$-means to $k$-means via iterative dropping of farthest centers yields better solutions than direct $k$-means, especially for higher $k$.
- For $k=10$, the $(k,3)$-means relaxation outperforms standard $k$-means in 82.5% of trials, with a 27.76 average score compared to 28.02 for $k$-means.
- The $(k,l)$-means approach smooths the optimization landscape, reducing the number of poor local minima while preserving or enhancing the quality of the best minima.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.