Local Search for Clustering in Almost-linear Time
Shaofeng H.-C. Jiang, Yaonan Jin, Jianing Lou, Pinyan Lu
Abstract
We propose the first local search algorithm for Euclidean clustering that attains an O(1)approximation in almost-linear time. Specifically, for Euclidean k-Means, our algorithm achieves an O(c)-approximation in O(n 1+1/c ) time, for any constant c ≥ 1, maintaining the same running time as the previous (non-local-search-based) approach [la Tour and Saulpic, arXiv'2407.11217] while improving the approximation factor from O(c 6 ) to O(c). The algorithm generalizes to any metric space with sparse spanners, delivering efficient constant approximation in ℓ p metrics, doubling metrics, Jaccard metrics, etc.
This generality derives from our main technical contribution: a local search algorithm on general graphs that obtains an O(1)-approximation in almost-linear time. We establish this through a new 1-swap local search framework featuring a novel swap selection rule. At a high level, this rule "scores" every possible swap, based on both its modification to the clustering and its improvement to the clustering objective, and then selects those high-scoring swaps. To implement this, we design a new data structure for maintaining approximate nearest neighbors with amortized guarantees tailored to our framework.
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 5056e356-e27f-4433-aa09-e94b12fe07f5Builds on21
- Parallel approximate undirected shortest paths via low hop emulatorsAlexandr Andoni, Clifford Stein, Peilin ZhongSTOC 2020 · 50 citations
- Improved Coresets for Euclidean k-MeansVincent Cohen-Addad, Kasper Green Larsen, David Saulpic, Chris Schwiegelshohn et al.NeurIPS 2022 · 47 citations
- Coresets for clustering in Euclidean spaces: importance sampling is nearly optimalLingxiao Huang, Nisheeth K. VishnoiSTOC 2020 · 36 citations
- Fast and Accurate -means++ via Rejection SamplingVincent Cohen-Addad, Silvio Lattanzi, Ashkan Norouzi-Fard, Christian Sohler et al.NeurIPS 2020 · 32 citations
- On Approximability of Clustering Problems Without Candidate CentersVincent Cohen-Addad, Karthik C. S., Euiwoong LeeSODA 2021 · 24 citations
Related papers
- Linear Time Algorithms for Individually Fair k-means via Multi-Swap Local SearchBeirong Cui, Qilong Feng, Junyu HuangAAAI 2026
- Linear Time Algorithms for k-means with Multi-Swap Local SearchJunyu Huang, Qilong Feng, Ziyun Huang, Jinhui Xu et al.NeurIPS 2023 · 4 citations
- 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
- k-means++: few more steps yield constant approximationDavin Choo, Christoph Grunau, Julian Portmann, Václav RozhonICML 2020 · 36 citations
