Linear Time Algorithms for Individually Fair k-means via Multi-Swap Local Search
Beirong Cui, Qilong Feng, Junyu Huang
Abstract
The local search methods have been widely used to solve the clustering problems. In practice, local search algorithms for clustering problems mainly adapt the singleswap strategy, which enables them to handle large-scale datasets and achieve linear running time in the data size. However, compared with multi-swap local search algorithms, there is a considerable gap on the approximation ratios of the single-swap local search algorithms. Although the current multi-swap local search algorithms provide small constant approximation, the proposed algorithms tend to have large polynomial running time, which cannot be used to handle large-scale datasets. In this paper, we propose a multi-swap local search algorithm for the k-means problem with linear running time in the data size. Given a swap size t, our proposed algorithm can achieve a (50(1 + 1 t ) + ϵ)-approximation, which improves the current best result 509 (ICML 2019) with linear running time in the data size. Our proposed method, compared with previous multi-swap local search algorithms, is the first one to achieve linear running time in the data size. To obtain a more practical algorithm for the problem with better clustering quality and running time, we propose a sampling-based method which accelerates the process of clustering cost update during swaps. Besides, a recombination mechanism is proposed to find potentially better solutions. Empirical experiments show that our proposed algorithms achieve better performances compared with branch and bound solver (NeurIPS 2022) and other existing state-of-the-art local search algorithms on both small and large datasets.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d4386c54-d7f1-4ad2-9a4b-4b0a7701f37fBuilds on3
- Improved Guarantees for k-means++ and k-means++ ParallelKonstantin Makarychev, Aravind Reddy, Liren ShanNeurIPS 2020 · 34 citations
- Improved approximations for Euclidean k-means and k-median, via nested quasi-independent setsVincent Cohen-Addad, Hossein Esfandiari, Vahab S. Mirrokni, Shyam NarayananSTOC 2022 · 15 citations
- Global Optimal K-Medoids Clustering of One Million SamplesJiayang Ren, Kaixun Hua, Yankai CaoNeurIPS 2022 · 14 citations
Related papers
- Linear Time Algorithms for k-means with Multi-Swap Local SearchJunyu Huang, Qilong Feng, Ziyun Huang, Jinhui Xu et al.NeurIPS 2023 · 4 citations
- Local Search for Clustering in Almost-linear TimeShaofeng H.-C. Jiang, Yaonan Jin, Jianing Lou, Pinyan LuSODA 2026
- Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit StrategiesJunyu Huang, Zhen Zhang, Beirong Cui, Jianxin Wang et al.NeurIPS 2025
- Multi-Swap k-Means++Lorenzo Beretta, Vincent Cohen-Addad, Silvio Lattanzi, Nikos ParotsidisNeurIPS 2023 · 12 citations
- A Single-Swap Local Search Algorithm for k-Means of LinesTing Liang, Xiaoliang Wu, Junyu Huang, Jianxin Wang et al.NeurIPS 2025
