English

Exact and Approximate Hierarchical Clustering Using A*

Machine Learning 2021-04-16 v1 Data Structures and Algorithms Data Analysis, Statistics and Probability Machine Learning

Abstract

Hierarchical clustering is a critical task in numerous domains. Many approaches are based on heuristics and the properties of the resulting clusterings are studied post hoc. However, in several applications, there is a natural cost function that can be used to characterize the quality of the clustering. In those cases, hierarchical clustering can be seen as a combinatorial optimization problem. To that end, we introduce a new approach based on A* search. We overcome the prohibitively large search space by combining A* with a novel \emph{trellis} data structure. This combination results in an exact algorithm that scales beyond previous state of the art, from a search space with 101210^{12} trees to 101510^{15} trees, and an approximate algorithm that improves over baselines, even in enormous search spaces that contain more than 10100010^{1000} trees. We empirically demonstrate that our method achieves substantially higher quality results than baselines for a particle physics use case and other clustering benchmarks. We describe how our method provides significantly improved theoretical bounds on the time and space complexity of A* for clustering.

Keywords

Cite

@article{arxiv.2104.07061,
  title  = {Exact and Approximate Hierarchical Clustering Using A*},
  author = {Craig S. Greenberg and Sebastian Macaluso and Nicholas Monath and Avinava Dubey and Patrick Flaherty and Manzil Zaheer and Amr Ahmed and Kyle Cranmer and Andrew McCallum},
  journal= {arXiv preprint arXiv:2104.07061},
  year   = {2021}
}

Comments

30 pages, 9 figures

R2 v1 2026-06-24T01:10:35.727Z