Hierarchical Clustering (HC) is a staple of data analysis, traditionally performed using "bottom-up" heuristics like Average Linkage. However, these heuristics often lack a clear mathematical objective. In 2016, Sanjoy Dasgupta introduced a formal cost function to measure the quality of an HC tree: the cost of an edge between two nodes is proportional to the size of the smallest cluster in the hierarchy that contains both nodes. Essentially, the goal is to keep "similar" items (connected by heavy edges) together in the same cluster for as long as possible.
The catch is that finding the optimal tree under this cost function is NP-hard. Furthermore, under the Small Set Expansion Hypothesis, it is impossible to get a constant-factor ($O(1)$) approximation for general graphs. This paper asks a critical question: Can we achieve $O(1)$-approximations for specific, realistic families of graphs?
By focusing on "expanders" (graphs where every set of nodes has many outgoing edges) and "well-clustered graphs" (where internal cluster connections are much stronger than external ones), the authors introduce two new polynomial-time algorithms that achieve provably near-optimal results, outperforming previous state-of-the-art methods on complex, asymmetric datasets.
Algorithmic Approaches
The authors propose two distinct methods tailored to different graph structures:
1. HCwithDegrees (for Expanders)
For graphs with high conductance (expanders), the authors prove a surprising result: a hierarchy built simply by sorting vertices by their degrees and recursively splitting them into halves achieves an $O(1)$-approximation. This degree-based sorting bypasses the need for the expensive recursive "sparse cut" routines typically used in the literature. The degree sequence alone provides enough information to build a near-optimal hierarchy.
2. PruneMerge (for Well-Clustered Graphs)
This is the paper's main contribution. It handles graphs that have a clear cluster structure but might feature clusters of varying sizes or internal densities. The algorithm operates in three phases:
- Partition: Uses spectral methods to find an initial set of clusters.
- Prune: For each cluster, the algorithm checks if the cost of edges leaving the cluster is "too high" compared to internal costs. If so, it "prunes" the problematic subtrees to be handled separately. This identifies critical nodes where crossing edges outweigh internal benefits, maintaining the $O(1)$ bound.
- Merge: Combines the resulting trees in a "caterpillar style" (merging them one by one sequentially) based on their sizes.
Moving Beyond Standard Models
Previous state-of-the-art results (like Linkage++) were often tied to the Stochastic Block Model (SBM), which assumes clusters are somewhat uniform. PruneMerge is significantly more robust because it relies on a broader "well-clustered" graph definition, allowing it to handle clusters with very different internal structures.
The authors evaluated their algorithms on both synthetic and real-world benchmarks:
- Synthetic Datasets: These included standard SBMs, Hierarchical SBMs (HSBM), and custom-built non-uniform/asymmetric graphs where clusters have different sizes or contain dense "cliques" designed to challenge existing algorithms.
- Real-World Datasets: Five datasets from the Scikit-learn and UCI repositories (Iris, Wine, Cancer, Boston, and Newsgroup).
Key Results and Performance
Theoretically, the paper provides the first $O(1)$-approximation guarantee for hierarchical clustering on well-clustered graphs that does not assume a rigid stochastic model.
Empirically, on synthetic graphs with non-uniform densities (e.g., a cluster containing a small, very dense clique), PruneMerge produced trees with 20% to 50% lower cost than the previous state-of-the-art (Linkage++). On standard real-world datasets like Iris and Wine, PruneMerge significantly outperformed PCA-based methods and remained highly competitive with traditional Linkage heuristics.
Limitations and Future Work
Despite these advances, a few open questions remain:
- The "Average Linkage" Mystery: In experiments, the classic Average Linkage heuristic often performed exceptionally well, sometimes even better than the authors' provably $O(1)$ algorithm. However, there is currently no proof that Average Linkage achieves an $O(1)$-approximation for Dasgupta's cost function. Closing this gap between theory and practice is a major open question.
- Parameter Sensitivity:
PruneMergerequires a parameter $k$ (the number of clusters) as input. While the authors suggest a way to iterate through values of $k$, a more automated or parameter-free version would be more practical for exploratory data analysis. - Computational Complexity: While polynomial-time, the "Strong Decomposition" required for the partition phase can be computationally heavy for extremely large graphs compared to simple linkage heuristics.
Summary updated