Lune

NeurIPS2023Top-tier venue

Simple, Scalable and Effective Clustering via One-Dimensional Projections

Moses Charikar, Monika Henzinger, Lunjia Hu, Maximilian Vötsch, Erik Waingarten

Abstract

Clustering is a fundamental problem in unsupervised machine learning with many applications in data analysis. Popular clustering algorithms such as Lloyd's algorithm and kk-means++ can take Ω(ndk)\Omega(ndk) time when clustering nn points in a dd-dimensional space (represented by an n×dn\times d matrix XX) into kk clusters. In applications with moderate to large kk, the multiplicative kk factor can become very expensive. We introduce a simple randomized clustering algorithm that provably runs in expected time O(nnz(X)+nlog⁡n)O(\mathrm{nnz}(X) + n\log n) for arbitrary kk. Here nnz(X)\mathrm{nnz}(X) is the total number of non-zero entries in the input dataset XX, which is upper bounded by ndnd and can be significantly smaller for sparse datasets. We prove that our algorithm achieves approximation ratio O~(k4)\smash{\widetilde{O}(k^4)} on any input dataset for the kk-means objective. We also believe that our theoretical analysis is of independent interest, as we show that the approximation ratio of a kk-means algorithm is approximately preserved under a class of projections and that kk-means++ seeding can be implemented in expected O(nlog⁡n)O(n \log n) time in one dimension. Finally, we show experimentally that our clustering algorithm gives a new tradeoff between running time and cluster quality compared to previous state-of-the-art methods for these tasks.

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.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • OneBatchPAM: A Fast and Frugal K-Medoids Algorithm cites Fast and Accurate k-means++ via Rejection Sampling
  • OneBatchPAM: A Fast and Frugal K-Medoids Algorithm cites BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits
  • OneBatchPAM: A Fast and Frugal K-Medoids Algorithm cites Towards optimal lower bounds for k-median and k-means coresets
  • Towards optimal lower bounds for k-median and k-means coresets cites A new coreset framework for clustering
  • Fast k-means Seeding Under The Manifold Hypothesis cites Fast and Accurate k-means++ via Rejection Sampling
  • Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit Strategies cites BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits
  • Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit Strategies cites Towards optimal lower bounds for k-median and k-means coresets
  • Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit Strategies cites A new coreset framework for clustering
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. OneBatchPAM: A Fast and Frugal K-Medoids AlgorithmAntoine de Mathelin, Nicolas Enrique Cecchi, François Deheeger, Mathilde Mougeot et al.AAAI 2025 · 3 citations
  2. Fast k-means Seeding Under The Manifold HypothesisPoojan Shah, Shashwat Agrawal, Ragesh JaiswalICML 2026 · 1 citation
  3. Matrix Editing Meets Fair Clustering: Parameterized Algorithms and ComplexityRobert Ganian, Hung P. Hoang, Simon WiethegerAAAI 2026
  4. Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit StrategiesJunyu Huang, Zhen Zhang, Beirong Cui, Jianxin Wang et al.NeurIPS 2025

Builds on5

  1. k-means++: few more steps yield constant approximationDavin Choo, Christoph Grunau, Julian Portmann, Václav RozhonICML 2020 · 36 citations
  2. Fast and Accurate kk-means++ via Rejection SamplingVincent Cohen-Addad, Silvio Lattanzi, Ashkan Norouzi-Fard, Christian Sohler et al.NeurIPS 2020 · 32 citations
  3. Towards optimal lower bounds for k-median and k-means coresetsVincent Cohen-Addad, Kasper Green Larsen, David Saulpic, Chris SchwiegelshohnSTOC 2022 · 20 citations
  4. 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
  5. A new coreset framework for clusteringVincent Cohen-Addad, David Saulpic, Chris SchwiegelshohnSTOC 2021 · 3 citations

Related papers

  1. BSP k-MeansSebastian Künzel, Daniel WeiskopfKDD 2026
  2. Analyzing Dα seeding for k-meansÉtienne Bamas, Sai Ganesh Nagarajan, Ola SvenssonICML 2024
  3. Near-Optimal Quantum Coreset Construction Algorithms for ClusteringYecheng Xue, Xiaoyu Chen, Tongyang Li, Shaofeng H.-C. JiangICML 2023 · 6 citations
  4. Multi-Swap k-Means++Lorenzo Beretta, Vincent Cohen-Addad, Silvio Lattanzi, Nikos ParotsidisNeurIPS 2023 · 12 citations
  5. A Nearly Tight Analysis of Greedy k-means++Christoph Grunau, Ahmet Alper Özüdogru, Václav Rozhon, Jakub TetekSODA 2023 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines