Hierarchical Clustering: Objective Functions and Algorithms

Vincent Cohen-Addad, Varun Kanade, Frederik Mallmann-Trenn, Claire Mathieu · DOI

Introduction

Hierarchical clustering (HC) is a fundamental technique in data analysis, facilitating the discovery of multi-scale structures in datasets ranging from biological phylogenies to social networks. Despite its ubiquity, the field has historically relied on procedural heuristics—such as single-linkage, complete-linkage, and average-linkage—without a unified theoretical framework to evaluate the "quality" of the resulting hierarchies. This research addresses this gap by establishing an axiomatic framework for objective functions in HC, providing rigorous performance guarantees for existing heuristics, and introducing new algorithms with superior approximation ratios.

An Axiomatic Framework for Admissible Cost Functions

The transition of HC from a procedural task to a combinatorial optimization problem requires a well-defined cost function. Building upon the work of Sanjoy Dasgupta (2016), this research identifies the criteria for "admissible" cost functions. A cost function is considered admissible if it satisfies three fundamental axioms:

  • Symmetry: The cost of a split remains invariant regardless of the ordering of the resulting child clusters.
  • Monotonicity: The cost associated with splitting a cluster must scale with the size of the clusters involved, ensuring that larger partitions incur higher costs.
  • Clique-Invariance: For a structureless graph (a complete graph or clique), every possible binary tree must yield the same cost, reflecting the absence of an inherent hierarchy.

This framework allows for a systematic evaluation of both similarity-based clustering (where edge weights represent affinity) and dissimilarity-based clustering (where edge weights represent distance).

Algorithmic Contributions and Performance Guarantees

The research provides a theoretical bridge between classic heuristics and modern optimization, offering specific guarantees for different data contexts.

Similarity-Based Clustering

For similarity-based HC, the authors utilize the Recursive Sparsest-Cut approach. By refining the analysis of this top-down method, they improved the approximation bound from $O(\log n)$ to $O(\sqrt{\log n})$. This result is significant as it matches the best-known approximation ratios for the sparsest-cut problem itself, suggesting a fundamental limit on efficiency for this class of objectives.

Dissimilarity-Based Clustering

A major contribution of this work is the theoretical validation of Average-Linkage. While widely used, its worst-case performance was previously poorly understood. The authors prove that Average-Linkage provides a 2-approximation for a natural dissimilarity objective. Furthermore, they introduce the Locally Densest-Cut algorithm, which achieves a superior 3/2-approximation, setting a new benchmark for dissimilarity-based hierarchical partitioning.

Spectral Recovery in Random Graphs

To address noisy environments, the authors propose a spectral method combining Singular Value Decomposition (SVD) with linkage heuristics. In the context of the Hierarchical Stochastic Block Model (HSBM)—a generative model where clusters are planted at different levels—this approach achieves a $1 + o(1)$ factor approximation. This indicates that the algorithm recovers the ground-truth hierarchy with near-perfect accuracy as the dataset size increases.

Evaluation and Robustness

The theoretical findings are supported by analysis across diverse models beyond standard benchmarks:

  • Worst-Case Synthetic Graphs: Used to establish lower bounds and verify the robustness of approximation ratios on structures like paths or metric spaces.
  • $\delta$-Adversarial Perturbations: A "beyond-worst-case" analysis demonstrating that the algorithms remain effective even when a natural ground-truth hierarchy is slightly corrupted by an adversary.

A key insight of the paper is that if a dataset possesses a "natural" ground-truth hierarchy (represented by an ultrametric), that structure is proven to be the global optimum for any admissible cost function defined under this framework.

Conclusion and Future Directions

This work provides the necessary theoretical rigor to move hierarchical clustering beyond simple heuristics. By defining what constitutes a "good" tree through admissible cost functions, the authors have enabled the design of algorithms with provable guarantees.

While the $O(\sqrt{\log n})$ approximation is a landmark theoretical result, the reliance on solving NP-hard problems like the sparsest-cut remains a computational challenge for massive datasets. Future research may explore the extension of these axioms to non-binary trees and investigate performance under more complex, non-adversarial noise distributions.

Summary updated

BibTeX
@article{cohenaddad2017hierarchical,
  author = {Vincent Cohen-Addad and Varun Kanade and Frederik Mallmann-Trenn and Claire Mathieu},
  title = {{Hierarchical Clustering: Objective Functions and Algorithms}},
  journal = {J. ACM},
  year = {2017},
  doi = {10.1137/1.9781611975031.26},
}
Figure