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

Learning-Augmented Hierarchical Clustering

Vladimir Braverman, Jon C. Ergun, Chen Wang, Samson Zhou

Abstract

Hierarchical clustering (HC) is a fundamental unsupervised learning task, yet finding optimal structures under standard objectives like Dasgupta’s or Moseley-Wang is computationally hard. This paper introduces a learning-augmented framework that utilizes a noisy "splitting oracle" to guide the construction of HC trees. By contracting small sub-clusters into super-vertices and building partial trees, the proposed algorithms achieve constant-factor and near-optimal approximations in near-linear time, effectively bypassing theoretical barriers like Small Set Expansion (SSE) hardness.

Introduction

Hierarchical Clustering (HC) aims to organize data into a recursive, tree-like structure known as a dendrogram. While heuristics like average-linkage are widely used, formalizing HC as an optimization problem reveals significant theoretical challenges. Two primary objectives are commonly studied: Dasgupta’s objective, which minimizes a cost based on cluster sizes, and the Moseley-Wang objective, which maximizes a revenue function.

Under the Small Set Expansion (SSE) hypothesis, achieving a constant-factor approximation for Dasgupta’s objective is mathematically impossible for standard polynomial-time algorithms. This paper explores whether access to "advice" from a pre-trained machine learning model—a Splitting Oracle—can overcome these deep-seated hardness barriers.

The Splitting Oracle and Partial Trees

The proposed framework relies on a Splitting Oracle: given a triplet of points $(u, v, w)$, the oracle predicts which point "splits away" first from the other two in the optimal tree. The authors demonstrate that even a noisy oracle, correct with probability $p > 1/2$, provides sufficient structural information.

The core technical innovation is the construction of Partial HC Trees. Instead of resolving the entire hierarchy, the algorithms build a tree down to "super-vertices" of size $O(\log n)$. By hiding the areas where oracle noise is most damaging within these small clusters, the algorithm can either solve them exactly via exhaustive search or treat them as atomic units with negligible impact on the overall objective.

Figure 4: The mapping from a full tree $\mathcal{T}$ to a partial tree $\mathcal{I}$, where sub-clusters of size $O(\log n)$ are contracted into super-vertices.

Algorithmic Strategies

The authors distinguish between two types of structural consistency:

  • Strongly Consistent Trees: These follow every partition of the optimal tree exactly until clusters are small enough for exhaustive search. This approach is used to break the SSE-hardness barrier for Dasgupta's objective.
  • Weakly Consistent Trees: These allow for more flexibility, enabling near-linear time construction. They utilize "vertical splits" and "horizon sets" to manage vertices that do not fit perfectly into a top-down split.
Figure 2: Comparison between an optimal tree structure $\mathcal{T}^*$ and a constructed tree $\mathcal{T}$ maintaining structural consistency.

For the Moseley-Wang objective, the authors show that arbitrary clustering within the small super-vertices results in only a negligible $o(1)$ loss in total revenue, allowing for highly efficient computation.

Key Results

The learning-augmented approach yields several breakthrough results:

  • Dasgupta’s Objective: A polynomial-time algorithm achieving an $O(1)$-approximation, bypassing SSE-hardness. A more practical $\tilde{O}(n^3)$ version provides an $O(\sqrt{\log \log n})$ guarantee.
  • Moseley-Wang Objective: A $(1 - o(1))$-approximation (nearly optimal) achieved in near-linear time ($\tilde{O}(n^2)$ queries/time, which is linear in the size of the input edge set for a complete graph).
  • Scalability: The framework extends to streaming (using $\tilde{O}(n)$ space) and parallel (PRAM) settings, significantly outperforming previous state-of-the-art algorithms that required exponential time for similar guarantees.

Discussion and Future Work

While the $O(1)$ algorithm for Dasgupta’s objective is a significant theoretical "proof of concept," its high polynomial exponent ($n^{50002}$) limits immediate deployment. Future research aims to reduce query complexity further to $\tilde{O}(n)$ and explore oracles based on approximately optimal trees. Nonetheless, this work proves that even moderately reliable machine learning advice can fundamentally change the tractability of complex combinatorial problems.

Summary updated

BibTeX
@inproceedings{braverman2025learning,
  author = {Vladimir Braverman and Jon C. Ergun and Chen Wang and Samson Zhou},
  title = {{Learning-Augmented Hierarchical Clustering}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=FU527ycGgW},
}
Figure