This paper, published in Machine Learning (2024), provides a definitive theoretical analysis of one of the most popular clustering algorithms in data science: Complete Linkage. While practitioners have used this hierarchical method for decades, its performance guarantees in general metric spaces remained a major open question—until now.
Abstract
In hierarchical clustering, the goal is to compute a series of nested clusterings of a finite metric space $(P, \text{dist})$. Complete linkage is a widely used agglomerative algorithm that, at each step, merges the two clusters whose union has the smallest radius (or diameter). This paper provides a definitive theoretical analysis of complete linkage in general metric spaces. We prove that the radius (or diameter) of any $k$-clustering computed by complete linkage is at most a factor $O(k)$ (or $O(k^{\ln(3)/\ln(2)}) \approx O(k^{1.59})$) worse than an optimal $k$-clustering. Furthermore, we resolve a long-standing open question by providing a lower bound of $\Omega(k)$, showing that complete linkage does not asymptotically outperform single linkage in the worst case for general metric spaces.
Introduction
Hierarchical clustering is a cornerstone of data analysis, offering a multi-scale view of data without requiring a pre-specified number of clusters. Among agglomerative methods, Complete Linkage is particularly popular. It works by iteratively merging clusters to minimize the maximum distance between any two points in the resulting cluster (diameter) or the maximum distance from a central point (radius).
The central question is: How much worse is the $k$-clustering produced by complete linkage compared to the mathematically optimal $k$-clustering? In 2005, researchers Dasgupta and Long proved a lower bound of $\Omega(\log k)$ and asked if the true approximation factor was $\Theta(\log k)$. This paper tackles that 18-year-old question, exploring both the "radius" ($k$-center) and "diameter" objectives in general metric spaces.
Methods and Theoretical Framework
The authors employ sophisticated combinatorial and geometric techniques to bound the performance of complete linkage. A key challenge in hierarchical clustering is that a single "bad" merge early in the process can propagate errors through the entire dendrogram.
To establish the lower bound, the authors construct a "diagonal shift" instance. This construction forces the algorithm into a "chaining" behavior, where locally optimal merges lead to a globally poor $k$-clustering.
For the upper bounds, the paper introduces a novel analysis of "active" and "inactive" clusters. By mapping the clusters formed by complete linkage to an optimal $k$-clustering, the authors can bound the total cost increase. They show that while some clusters may become "expensive" (inactive), their number is limited, allowing for a global bound on the approximation ratio.
Key Insights: Radius vs. Diameter
A significant contribution of this work is highlighting the mathematical divergence between the radius ($k$-center) and diameter objectives. While often treated similarly in practice, they behave differently under the greedy merges of complete linkage.
The analysis reveals that the radius objective is more "stable," allowing for a tighter $O(k)$ upper bound. In contrast, the diameter objective is harder to control, leading to the $O(k^{1.59})$ bound. This distinction is crucial for understanding why certain datasets might be more challenging for complete linkage depending on the chosen objective function.
Key Results
- Lower Bound: Proved a lower bound of $\Omega(k)$ for both $k$-center and $k$-diameter objectives, significantly improving upon the previous $\Omega(\log k)$.
- Upper Bound (Radius): Established the first non-trivial upper bound of $O(k)$ for the $k$-center objective in general metric spaces.
- Upper Bound (Diameter): Established an upper bound of $O(k^{\ln(3)/\ln(2)}) \approx O(k^{1.59})$ for the $k$-diameter objective.
- Average Case: Proved that the average approximation factor for complete linkage is $O(\log n)$, providing a theoretical justification for its empirical success compared to single linkage.
Limitations and Future Work
The authors acknowledge a remaining gap in the diameter objective: they prove a lower bound of $\Omega(k)$ but an upper bound of $O(k^{1.59})$. Closing this gap—determining if the true bound is $O(k)$—remains an open challenge. Additionally, while the average-case analysis is a strong start, it focuses on the $k$-center objective; extending this rigorous average-case analysis to the $k$-diameter objective is a promising direction for future research.
Summary updated