Hierarchical clustering (HC) is a fundamental tool in data science, yet its theoretical foundations were only formalized recently. In 2016, Sanjoy Dasgupta introduced a cost function that transformed HC from a set of heuristics into a rigorous optimization problem. However, this formalization revealed a significant hurdle: finding an optimal tree is NP-hard, and even constant-factor approximations are likely impossible for general graphs under the Small Set Expansion Hypothesis.
This paper, authored by researchers from the University of Edinburgh, breaks this hardness barrier. By shifting the focus from "worst-case" graphs to "well-clustered" graphs—the types of structures typically encountered in practical applications—the authors demonstrate that an $O(1)$-approximation is indeed achievable in polynomial time.
The Objective: Dasgupta’s Cost Function
Traditional HC relies on heuristics like average-linkage or complete-linkage, which lack a clear objective to optimize. Dasgupta’s cost function measures the quality of an HC tree by evaluating when similar items are separated. A "good" tree keeps similar items (those connected by high-weight edges) together as long as possible, separating them only deep within the tree.
While this provided a much-needed metric for the field, the gap between theory and practice remained wide. Previous attempts to find good approximations often relied on the Stochastic Block Model (SBM), which assumes clusters are generated by specific random processes. Real-world data, however, is rarely so uniform. This paper addresses this gap by defining a broader class of "well-clustered" graphs based on conductance—where internal cluster connectivity is high and external connections are sparse.
Algorithmic Innovations
The researchers introduce two primary algorithms to tackle different graph structures:
1. HCwithDegrees (For High-Conductance Graphs)
For expander graphs—where every possible cut is "expensive"—the authors made a surprising discovery: the internal structure of the graph matters less than its degree distribution.
- The Approach: The algorithm sorts vertices by their degrees and recursively splits the ordered list to build the tree.
- Efficiency: This method bypasses expensive recursive sparse-cut routines, running in near-linear $O(m + n \log n)$ time while providing strong theoretical guarantees for expanders.
2. PruneMerge (For Well-Clustered Graphs)
This is the paper's central contribution, designed for graphs containing multiple distinct clusters. It operates in three distinct phases:
- Partition: Utilizing a "Strong Decomposition Lemma," the algorithm identifies an initial set of potential clusters.
- Prune: This novel step evaluates whether the cost of edges leaving a cluster is "paid for" by its internal connectivity. If a cluster is too weakly connected to the outside relative to its internal density, it is pruned and treated as a foundational building block.
- Merge: The resulting subtrees are combined in a "caterpillar-style" hierarchy based on their relative sizes.
Empirical Performance
The authors evaluated their algorithms using a mix of synthetic models (SBM and Hierarchical SBM) and five classic real-world benchmarks: Iris, Wine, Cancer, Boston, and Newsgroup.
Key Findings:
- Robustness to Non-Uniformity: In synthetic tests involving "non-uniform densities" (such as embedding cliques within clusters),
PruneMergeachieved costs 20% to 50% lower than the current state-of-the-art method,Linkage++. This suggests the pruning phase is highly effective at ignoring "noisy" edges that typically confuse spectral or linkage methods. - Real-World Competitiveness: On standard UCI datasets,
PruneMergeconsistently outperformed PCA-based methods. While it occasionally trailed behind the classicAverage Linkageheuristic, it remained highly competitive while offering much stronger theoretical backing.
Conclusion and Future Directions
This work provides the first $O(1)$-approximation for Dasgupta’s cost function in a broad, non-stochastic setting. By leveraging the structural properties of well-clustered graphs, the authors have bridged the gap between theoretical hardness and practical clustering performance.
The primary remaining challenge is the assumption of a constant number of clusters ($k$). Currently, the approximation ratio depends on $k$; extending these results to a regime where the number of clusters grows with the number of vertices ($n$) remains an open problem. Additionally, the continued success of Average Linkage on real-world data suggests a need for further research into why that specific heuristic is so robust and whether it, too, might possess hidden $O(1)$-approximation properties for well-clustered data.
Summary updated