Lune

NeurIPS2025Top-tier venue

Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit Strategies

Junyu Huang, Zhen Zhang, Beirong Cui, Jianxin Wang, Qilong Feng

Abstract

Local search is a powerful clustering technique that provides high-quality solutions with theoretical guarantees. With distance-based sampling strategies, local search methods can achieve constant approximations for clustering with linear running time in data size. Despite their effectiveness, existing algorithms still face scalability issues as they require scanning the entire dataset for iterative center swaps. This typically leads to an O ( ndk ) running time, where n is the data size, d is the dimension, k is the number of clusters. To further improve the efficiency of local search algorithms, we propose new methods based on adaptive sampling and bandit strategies. Specifically, adaptive sampling can well approximate the distance-based sampling distribution without maintaining pairwise distances between data points and the centers, enabling fast and accurate sampling in sublinear time after an ˜ O ( nd ) time preprocessing step. The bandit strategy models the best swap pair selection as a bandit problem, where a grouping strategy is proposed for fast identification of the optimal swap pair. With these techniques, our proposed algorithm can achieve constant approximation in expected running time ˜ O ( nd + k 4 ) under mild assumptions on optimal clusters and swap pair distributions. Our approach also extends naturally to the k -median objective, achieving constant approximation in expected running time ˜ O ( nd + √ nk 3 ) without distributional assumptions. Empirical results demonstrate that our algorithm achieves up to 1000× speedup over existing local search methods on datasets with 100 million points, while delivering comparable clustering quality. Compared to coreset-based approaches, it provides up to around 80× speedup and consistently yields better clustering results.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Improved Coresets for Euclidean k-Means cites Towards optimal lower bounds for k-median and k-means coresets
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on13

  1. Improved Coresets for Euclidean k-MeansVincent Cohen-Addad, Kasper Green Larsen, David Saulpic, Chris Schwiegelshohn et al.NeurIPS 2022 · 47 citations
  2. Towards optimal lower bounds for k-median and k-means coresetsVincent Cohen-Addad, Kasper Green Larsen, David Saulpic, Chris SchwiegelshohnSTOC 2022 · 20 citations
  3. An Improved Local Search Algorithm for k-MedianVincent Cohen-Addad, Anupam Gupta, Lunjia Hu, Hoon Oh et al.SODA 2022 · 14 citations
  4. Global Optimal K-Medoids Clustering of One Million SamplesJiayang Ren, Kaixun Hua, Yankai CaoNeurIPS 2022 · 14 citations
  5. BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed BanditsMo Tiwari, Martin Jinye Zhang, James Mayclin, Sebastian Thrun et al.NeurIPS 2020 · 13 citations

Related papers

  1. Linear Time Algorithms for k-means with Multi-Swap Local SearchJunyu Huang, Qilong Feng, Ziyun Huang, Jinhui Xu et al.NeurIPS 2023 · 4 citations
  2. Linear Time Algorithms for Individually Fair k-means via Multi-Swap Local SearchBeirong Cui, Qilong Feng, Junyu HuangAAAI 2026
  3. Local Search for Clustering in Almost-linear TimeShaofeng H.-C. Jiang, Yaonan Jin, Jianing Lou, Pinyan LuSODA 2026
  4. LSDS++ : Dual Sampling for Accelerated k-means++Chenglin Fan, Ping Li, Xiaoyun LiICML 2023 · 4 citations
  5. Near-Linear Time Approximation Algorithms for k-means with OutliersJunyu Huang, Qilong Feng, Ziyun Huang, Jinhui Xu et al.ICML 2024 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines