NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchical Clustering via Sketches and Hierarchical Correlation Clustering

Danny Vainstein, Vaggos Chatziafratis, Gui Citovsky, Anand Rajagopalan, Mohammad Mahdian, Yossi Azar

Abstract

Recently, Hierarchical Clustering (HC) has been considered through the lens of optimization. In particular, two maximization objectives have been defined. Moseley and Wang defined the Revenue objective to handle similarity information given by a weighted graph on the data points, while Cohen-Addad et al. defined the Dissimilarity objective to handle dissimilarity information. In this paper, we prove structural lemmas for both objectives allowing us to convert any HC tree to a tree with constant number of internal nodes while incurring an arbitrarily small loss in each objective. Although the best-known approximations are 0.585 and 0.667 respectively, using our lemmas we obtain approximations arbitrarily close to 1, if not all weights are small (i.e., there exist constants $\epsilon, \delta$ such that the fraction of weights smaller than $\delta$, is at most $1 - \epsilon$); such instances encompass many metric-based similarity instances, thereby improving upon prior work. Finally, we introduce Hierarchical Correlation Clustering (HCC) to handle instances that contain similarity and dissimilarity information simultaneously. For HCC, we provide an approximation of 0.4767 and for complementary similarity/dissimilarity weights (analogous to $+/-$ correlation clustering), we again present nearly-optimal approximations.

Introduction

Hierarchical Clustering (HC) is a cornerstone of unsupervised learning, yet optimizing its structure is notoriously difficult. Researchers typically optimize for one of two objectives: Revenue (maximizing similarity between points split lower in the tree) or Dissimilarity (maximizing distance between points split near the root). Most general versions of these problems are APX-hard, meaning finding an arbitrarily close solution in polynomial time is generally impossible.

This paper addresses these limitations by asking if better approximations are possible for real-world instances and how to extend correlation clustering—which handles both positive and negative constraints—to a hierarchical framework. The authors introduce Hierarchical Correlation Clustering (HCC) and a powerful "sketching" technique that simplifies the optimization landscape.

Methodology: Tree Sketches and Reductions

The primary technical innovation is a structural lemma proving that any optimal HC tree can be contracted into a "sketch" $K(T)$ with a constant number of internal nodes while losing only a negligible fraction of the objective value. This reduces the search space from an exponential number of possible trees to a manageable set of constant-sized structures.

Figure 3: The process of contracting a large hierarchical tree T into a sketch K(T) with a constant number of internal nodes.

To handle the expansion of these sketches back into full trees, the authors define specific reduction strategies. For the Revenue objective, they use "star" structures, while for Dissimilarity, they employ "comb" structures. These auxiliary node constructions ensure that the approximation guarantees are maintained during the reconstruction process.

Figure 2: Illustration of Revenue and Dissimilarity reductions using auxiliary nodes to maintain objective values during tree simplification.

By combining these sketches with property testing techniques, the authors develop an algorithm that effectively "guesses" the optimal tree's structure, leading to the first Efficient Polynomial Time Randomized Approximation Schemes (Efficient-PRAS) for a large class of HC problems.

Theoretical Insights and HCC

The authors identify a broad class of "not all small" weight instances where these near-optimal approximations are feasible. This class includes many metric-based similarity instances common in machine learning, such as those using Gaussian Kernels.

Furthermore, the paper introduces the Hierarchical Correlation Clustering (HCC) objective. This new framework interpolates between Revenue and Dissimilarity, rewarding a hierarchy for keeping similar points together (low in the tree) and keeping dissimilar points apart (high in the tree) simultaneously. To solve HCC, the authors combine a greedy approach with a "Max-Uncut Bisection" algorithm.

Key Results

  • Near-Optimal Approximations: For instances where weights are not uniformly small, the authors provide an Efficient-PRAS, achieving a $(1 - \epsilon)$ approximation for any $\epsilon > 0$.
  • HCC Performance: The new HCC objective achieves a 0.4767 approximation ratio.
  • Hardness Proofs: The paper proves that even for dense instances, the Revenue, Dissimilarity, and HCC objectives remain NP-complete to solve exactly.
  • Gaussian Kernels: The authors provide a near-optimal approximation for high-dimensional Gaussian Kernels when minimal similarity is bounded, solving a previously open question.

Limitations and Future Work

The primary limitation of the Efficient-PRAS is its reliance on the "not all small weights" condition. If an instance consists entirely of extremely small, uniform weights, the sketching technique provides less advantage. Future work may focus on improving the 0.4767 constant for general HCC, exploring other hierarchical objectives like Dasgupta’s cost function, and testing these sketch-based heuristics on large-scale empirical datasets.

Summary updated

BibTeX
@inproceedings{vainstein2021hierarchical,
  author = {Danny Vainstein and Vaggos Chatziafratis and Gui Citovsky and Anand Rajagopalan and Mohammad Mahdian and Yossi Azar},
  title = {{Hierarchical Clustering via Sketches and Hierarchical Correlation Clustering}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=20bQQEDoox},
}
Figure