[Paper Review] Fast K-Means Clustering with Anderson Acceleration
This paper proposes a novel acceleration method for Lloyd’s K-Means algorithm using Anderson acceleration with dynamic parameter adjustment. By treating centroid updates as a fixed-point iteration and applying adaptive m-value selection, the method reduces convergence iterations by over 33% on average, outperforming 106 out of 120 test cases and enabling state-of-the-art performance when combined with existing techniques.
We propose a novel method to accelerate Lloyd's algorithm for K-Means clustering. Unlike previous acceleration approaches that reduce computational cost per iterations or improve initialization, our approach is focused on reducing the number of iterations required for convergence. This is achieved by treating the assignment step and the update step of Lloyd's algorithm as a fixed-point iteration, and applying Anderson acceleration, a well-established technique for accelerating fixed-point solvers. Classical Anderson acceleration utilizes m previous iterates to find an accelerated iterate, and its performance on K-Means clustering can be sensitive to choice of m and the distribution of samples. We propose a new strategy to dynamically adjust the value of m, which achieves robust and consistent speedups across different problem instances. Our method complements existing acceleration techniques, and can be combined with them to achieve state-of-the-art performance. We perform extensive experiments to evaluate the performance of the proposed method, where it outperforms other algorithms in 106 out of 120 test cases, and the mean decrease ratio of computational time is more than 33%.
Motivation & Objective
- To address the slow convergence of Lloyd’s K-Means algorithm, which often requires many iterations despite being computationally efficient per step.
- To improve convergence rate without altering computational cost per iteration or initialization strategy.
- To develop a robust acceleration technique that maintains performance across diverse data distributions and problem instances.
- To enable integration with existing acceleration methods that reduce per-iteration cost or improve initialization.
Proposed method
- Treat the sequence of centroid updates in Lloyd’s algorithm as a fixed-point iteration problem.
- Apply Anderson acceleration—a technique for accelerating fixed-point solvers—using the last m iterates to compute an accelerated iterate.
- Adopt a modified Anderson acceleration scheme from Peng et al. (2018) to reduce computational overhead and improve numerical stability.
- Introduce a dynamic strategy to adjust the memory parameter m based on the decrease in objective function value (energy) over iterations.
- Use the dynamic m-selection to enhance robustness and consistency across different datasets, cluster counts, and initializations.
- Combine the proposed method with existing acceleration techniques (e.g., distance bound pruning, k-means++ initialization) for cumulative performance gains.
Experimental results
Research questions
- RQ1Can Anderson acceleration be effectively applied to accelerate Lloyd’s K-Means algorithm by treating it as a fixed-point iteration?
- RQ2How does the performance of classical Anderson acceleration depend on the choice of memory parameter m in K-Means clustering?
- RQ3Can a dynamic adjustment strategy for m improve the robustness and consistency of Anderson acceleration across diverse K-Means problem instances?
- RQ4Does the proposed method achieve consistent speedups regardless of data dimensionality, sample size, number of clusters, or initialization?
- RQ5Can the method be effectively combined with existing acceleration techniques to achieve state-of-the-art performance?
Key findings
- The proposed method outperformed other algorithms in 106 out of 120 test cases across diverse datasets, demonstrating broad effectiveness.
- The mean reduction in computational time across all test cases exceeded 33%, with significant speedups observed on large-scale and high-dimensional datasets.
- The dynamic m-selection strategy significantly improved robustness, ensuring consistent acceleration across all problem instances and initializations.
- On the MNIST dataset (20 classes), the method reduced time from 72.35s (Lloyd) to 7.34s (proposed), a 90% speedup, with only 35 iterations compared to 106 in standard Lloyd.
- On the 100000x100 dataset, the method reduced time from 3087.60s to 2541.44s (17.4% improvement) with fewer iterations (226 vs. 308), showing effectiveness on large-scale problems.
- The method achieved a 90% speedup on the 10000x10 dataset (11.09s vs. 1.16s) and a 95% speedup on the 1000x10 dataset (1.03s vs. 0.05s), highlighting strong scalability.
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.