Efficient Centroid-Linkage Clustering

M. Bateni, Laxman Dhulipala, Willem Fletcher, Kishen N. Gowda, D. E. Hershkowitz +2 more
2/3/2026

No confident code implementation found for this paper.

Abstract

We give an efficient algorithm for Centroid-Linkage Hierarchical Agglomerative Clustering (HAC), which computes a $c$-approximate clustering in roughly $n^{1+O(1/c^2)}$ time. We obtain our result by combining a new Centroid-Linkage HAC algorithm with a novel fully dynamic data structure for nearest neighbor search which works under adaptive updates. We also evaluate our algorithm empirically. By leveraging a state-of-the-art nearest-neighbor search library, we obtain a fast and accurate Centroid-Linkage HAC algorithm. Compared to an existing state-of-the-art exact baseline, our implementation maintains the clustering quality while delivering up to a $36\times$ speedup due to performing fewer distance comparisons.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bateni2026efficient,
  title  = {Efficient Centroid-Linkage Clustering},
  author = {M. Bateni and Laxman Dhulipala and Willem Fletcher and Kishen N. Gowda and D. E. Hershkowitz and Rajesh Jayaram and Jakub Lkacki},
  year   = {2026},
  eprint = {2406.05066},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.05066},
  url    = {https://arxiv.org/abs/2406.05066},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.05066.svg)](https://codeofpaper.com/paper/2406.05066)

Discussion