Lune

SIGMOD2024Top-tier venue

TeraHAC: Hierarchical Agglomerative Clustering of Trillion-Edge Graphs

Laxman Dhulipala, Jakub Lacki, Jason Lee, Vahab Mirrokni

Abstract

We introduce TeraHAC, a (1 + 𝜖)-approximate hierarchical agglomerative clustering (HAC) algorithm which scales to trillion-edge graphs. Our algorithm is based on a new approach to computing (1 + 𝜖)-approximate HAC, which is a novel combination of the nearest-neighbor chain algorithm and the notion of (1 + 𝜖)-approximate HAC. Our approach allows us to partition the graph among multiple machines and make significant progress in computing the clustering within each partition before any communication with other partitions is needed. We evaluate TeraHAC on a number of real-world and synthetic graphs of up to 8 trillion edges. We show that TeraHAC requires over 100x fewer rounds compared to previously known approaches for computing HAC. It is up to 8.3x faster than SCC, the state-of-the-art distributed algorithm for hierarchical clustering, while achieving 1.16x higher quality. In fact, TeraHAC essentially retains the quality of the celebrated HAC algorithm while significantly improving the running time.

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.

5 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

  • Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depth cites Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time
  • On the cohesion and separability of average-link for hierarchical agglomerative clustering cites Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depth
  • On the cohesion and separability of average-link for hierarchical agglomerative clustering cites Scalable Hierarchical Agglomerative Clustering
  • On the cohesion and separability of average-link for hierarchical agglomerative clustering cites Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time
  • The ParClusterers Benchmark Suite (PCBS): A Fine-Grained Analysis of Scalable Graph Clustering cites Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depth
  • The ParClusterers Benchmark Suite (PCBS): A Fine-Grained Analysis of Scalable Graph Clustering cites Scalable Hierarchical Agglomerative Clustering
  • The ParClusterers Benchmark Suite (PCBS): A Fine-Grained Analysis of Scalable Graph Clustering cites Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time
  • Efficient Centroid-Linkage Clustering cites Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depth
  • Efficient Centroid-Linkage Clustering cites Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time
  • PiPNN: Ultra-Scalable Graph-Based Nearest Neighbor Indexing cites Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Improving Graph Compression for Efficient Resource-Constrained Graph AnalyticsQian Xu, Juan Yang, Feng Zhang, Zheng Chen et al.VLDB 2024 · 9 citations
  2. Efficient Centroid-Linkage ClusteringMohammad Hossein Bateni, Laxman Dhulipala, Willem Fletcher, Kishen N. Gowda et al.NeurIPS 2024 · 5 citations
  3. On the cohesion and separability of average-link for hierarchical agglomerative clusteringEduardo Laber, Miguel BatistaNeurIPS 2024 · 2 citations
  4. PiPNN: Ultra-Scalable Graph-Based Nearest Neighbor IndexingTobias Rubel, Richard Wen, Laxman Dhulipala, Lars Gottesbüren et al.KDD 2026 · 2 citations
  5. The ParClusterers Benchmark Suite (PCBS): A Fine-Grained Analysis of Scalable Graph ClusteringShangdi Yu, Jessica Shi, Jamison Meindl, David Eisenstat et al.VLDB 2025 · 1 citation

Builds on7

  1. Jupiter evolving: transforming google's datacenter network via optical circuit switches and software-defined networkingLeon Poutievski, Omid Mashayekhi, Joon Ong, Arjun Singh et al.SIGCOMM 2022 · 230 citations
  2. Correlation Clustering in Constant Many Parallel RoundsVincent Cohen-Addad, Silvio Lattanzi, Slobodan Mitrovic, Ashkan Norouzi-Fard et al.ICML 2021 · 51 citations
  3. Scalable Hierarchical Agglomerative ClusteringNicholas Monath, Kumar Avinava Dubey, Guru Guruganesh, Manzil Zaheer et al.KDD 2021 · 38 citations
  4. Hierarchical Agglomerative Graph Clustering in Nearly-Linear TimeLaxman Dhulipala, David Eisenstat, Jakub Lacki, Vahab S. Mirrokni et al.ICML 2021 · 30 citations
  5. Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic DepthLaxman Dhulipala, David Eisenstat, Jakub Lacki, Vahab Mirrokni et al.NeurIPS 2022 · 24 citations

Related papers

  1. ParChain: A Framework for Parallel Hierarchical Agglomerative Clustering using Nearest-Neighbor ChainShangdi Yu, Yiqiu Wang, Yan Gu, Laxman Dhulipala et al.VLDB 2022 · 14 citations
  2. PACk: An Efficient Partition-based Distributed Agglomerative Hierarchical Clustering Algorithm for DeduplicationYue Wang, Vivek R. Narasayya, Yeye He, Surajit ChaudhuriVLDB 2022 · 7 citations
  3. TianheEngine: Hierarchy-aware Adaptive Partitioning System for Trillion-scale Graph ProcessingXinbiao Gan, Tiejun Li, Yiqi Wang, Qiang Zhang et al.SC 2025 · 1 citation
  4. Nearly-Optimal Hierarchical Clustering for Well-Clustered GraphsSteinar Laenen, Bogdan-Adrian Manghiuc, He SunICML 2023 · 8 citations
  5. Sublinear Algorithms for Hierarchical ClusteringArpit Agarwal, Sanjeev Khanna, Huan Li, Prathamesh PatilNeurIPS 2022 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines