Cluster Trellis: Data Structures & Algorithms for Exact Inference in Hierarchical Clustering

Abstract

Hierarchical clustering is a fundamental task often used to discover meaningful structures in data. Due to the combinatorial number of possible hierarchical clusterings, approximate algorithms are typically used for inference. In contrast to existing methods, we present novel dynamic-programming algorithms for exact inference in hierarchical clustering based on a novel trellis data structure, and we prove that we can exactly compute the partition function, maximum likelihood hierarchy, and marginal probabilities of sub-hierarchies and clusters. Our algorithms scale in time and space proportional to the powerset of N elements, which is super-exponentially more efficient than explicitly considering each of the (2N − 3)!! possible hierarchies. Also, for larger datasets where our exact algorithms become infeasible, we introduce an approximate algorithm based on a sparse trellis that out- performs greedy and beam search baselines.

Cite

Text

Macaluso et al. " Cluster Trellis: Data Structures & Algorithms for Exact Inference in Hierarchical Clustering ." Artificial Intelligence and Statistics, 2021.

Markdown

[Macaluso et al. " Cluster Trellis: Data Structures & Algorithms for Exact Inference in Hierarchical Clustering ." Artificial Intelligence and Statistics, 2021.](https://mlanthology.org/aistats/2021/macaluso2021aistats-cluster/)

BibTeX

@inproceedings{macaluso2021aistats-cluster,
  title     = {{ Cluster Trellis: Data Structures & Algorithms for Exact Inference in Hierarchical Clustering }},
  author    = {Macaluso, Sebastian and Greenberg, Craig and Monath, Nicholas and Ah Lee, Ji and Flaherty, Patrick and Cranmer, Kyle and McGregor, Andrew and McCallum, Andrew},
  booktitle = {Artificial Intelligence and Statistics},
  year      = {2021},
  pages     = {2467-2475},
  volume    = {130},
  url       = {https://mlanthology.org/aistats/2021/macaluso2021aistats-cluster/}
}