Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Agglomerative Graph Clustering in Poly-Logarithmic Depth

Laxman Dhulipala, David D. Eisenstat|arXiv (Cornell University)|Jun 23, 2022
Advanced Clustering Algorithms ResearchComputer Science5 citations
TL;DR

This paper presents ParHAC, the first parallel hierarchical agglomerative clustering algorithm for average-linkage HAC with poly-logarithmic depth and near-linear work. It achieves a (1+ε)-approximation on similarity graphs using Õ(m) work and O(log⁴n) depth, enabling scalable clustering of massive graphs—e.g., 124 billion edges in under 3.5 hours on a commodity machine—while matching exact HAC quality.

ABSTRACT

Obtaining scalable algorithms for hierarchical agglomerative clustering (HAC) is of significant interest due to the massive size of real-world datasets. At the same time, efficiently parallelizing HAC is difficult due to the seemingly sequential nature of the algorithm. In this paper, we address this issue and present ParHAC, the first efficient parallel HAC algorithm with sublinear depth for the widely-used average-linkage function. In particular, we provide a $(1+ε)$-approximation algorithm for this problem on $m$ edge graphs using $ ilde{O}(m)$ work and poly-logarithmic depth. Moreover, we show that obtaining similar bounds for exact average-linkage HAC is not possible under standard complexity-theoretic assumptions. We complement our theoretical results with a comprehensive study of the ParHAC algorithm in terms of its scalability, performance, and quality, and compare with several state-of-the-art sequential and parallel baselines. On a broad set of large publicly-available real-world datasets, we find that ParHAC obtains a 50.1x speedup on average over the best sequential baseline, while achieving quality similar to the exact HAC algorithm. We also show that ParHAC can cluster one of the largest publicly available graph datasets with 124 billion edges in a little over three hours using a commodity multicore machine.

Motivation & Objective

  • To address the long-standing challenge of parallelizing hierarchical agglomerative clustering (HAC) due to its inherently sequential nature.
  • To design a parallel HAC algorithm that achieves sublinear depth and near-linear work while maintaining high clustering quality.
  • To provide the first (1+ε)-approximate HAC algorithm with poly-logarithmic depth for average-linkage on similarity graphs.
  • To demonstrate practical scalability and quality on real-world and synthetic datasets, including billion-edge graphs.
  • To show theoretical limits by proving that exact average-linkage HAC with similar bounds is unlikely under standard complexity assumptions.

Proposed method

  • The algorithm uses a similarity graph representation where each point is a vertex and edges represent nonzero similarities, reducing the input size from O(n²) to O(m).
  • It introduces a novel parallel data structure to maintain and update cluster similarities efficiently, enabling concurrent merging decisions.
  • The method employs a hierarchical decomposition of the graph using a recursive clustering strategy that respects the (1+ε)-approximation guarantee.
  • It leverages randomized sampling and sparsification techniques to maintain approximate cluster similarities without storing the full similarity matrix.
  • The algorithm uses a work-depth model to analyze performance, ensuring Õ(m) expected work and O(log⁴n) depth with high probability.
  • It integrates a dynamic priority queue abstraction to efficiently select the next merge operation in parallel, minimizing dependency chains.

Experimental results

Research questions

  • RQ1Can hierarchical agglomerative clustering be parallelized to achieve poly-logarithmic depth while maintaining high-quality clustering?
  • RQ2Is it possible to design a (1+ε)-approximate HAC algorithm with near-linear work and sublinear depth for average-linkage clustering?
  • RQ3What are the theoretical limits of parallelizing exact average-linkage HAC under standard complexity assumptions?
  • RQ4How does the quality and performance of the proposed parallel algorithm compare to sequential and existing parallel baselines on real-world datasets?
  • RQ5Can the algorithm scale to massive graphs, such as those with over 100 billion edges, on commodity hardware?

Key findings

  • ParHAC achieves a 50.1x average speedup over the best sequential baseline on a broad set of real-world datasets while maintaining clustering quality comparable to exact HAC.
  • The algorithm runs in Õ(m) expected work and O(log⁴n) depth with high probability, making it work-efficient and highly parallelizable.
  • ParHAC successfully clusters a 124-billion-edge graph in under 3.5 hours on a commodity multicore machine, demonstrating practical scalability.
  • The method provides a (1+ε)-approximation to average-linkage HAC, ensuring that merge decisions are within a factor of (1+ε) of the optimal choice at each step.
  • Theoretical analysis shows that achieving similar bounds for exact average-linkage HAC is unlikely under standard complexity assumptions, highlighting the necessity of approximation.
  • Empirical evaluation on diverse datasets—including synthetic, UCI, GeoLife, and CHEM—confirms consistent high-quality results across multiple metrics like ARI, NMI, and Dasgupta cost.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.