Tree-Based Inference for Dirichlet Process Mixtures

Yang Xu, Katherine A. Heller, Zoubin GhahramaniAISTATS 2009

Introduction

Dirichlet Process Mixture (DPM) models are considered the "gold standard" for nonparametric Bayesian clustering because they automatically infer the number of clusters from the data. However, they face a significant computational challenge: exact inference requires summing over an exponentially large number of partitions ($O(n^n)$).

Traditionally, researchers rely on Markov chain Monte Carlo (MCMC) or Variational Bayesian (VB) methods. MCMC is often slow to converge, while VB can get trapped in local optima or provide "loose" lower bounds on the marginal likelihood. This paper explores an alternative: using hierarchical trees to efficiently sum over a specific, high-probability subset of partitions.

Bayesian Hierarchical Clustering (BHC)

The authors build upon Bayesian Hierarchical Clustering (BHC). Unlike traditional clustering that uses simple distance metrics, BHC employs a statistical hypothesis test at every merge. It compares the hypothesis that all data in a node belongs to a single cluster ($H_1$) against the hypothesis that the data belongs to two or more clusters consistent with its subtrees ($H_2$).

An example of an original hierarchical tree with numbered internal nodes used for marginal likelihood calculation.

The core insight is combinatorial efficiency: a single binary tree represents exponentially many "tree-consistent" partitions. By calculating the marginal likelihood recursively up the tree, the model can sum over all these partitions in polynomial time ($O(n^2)$).

Technical Innovations: Branch-Swapping and Bayes K-Means

Standard BHC is greedy—once a merge occurs, it is final. To address this, the authors introduce two major technical novelties:

  1. Alternative Tree Algorithm: The authors propose a "branch-swapping" or relocation method. By moving a subtree to become a sibling of a different node, they create "alternative trees." Summing the contributions from these alternatives significantly tightens the lower bound on the marginal likelihood by accounting for the uncertainty inherent in the initial greedy construction.
Illustration of the branch-swapping algorithm to generate alternative subtrees.
  1. Fast Bayes K-Means BHC: To handle massive datasets where $O(n^2)$ is too slow, the authors propose a hybrid approach. They first use a "Bayes K-means" (using marginal likelihood as a criterion instead of Euclidean distance) to partition data into $k$ clusters, then run BHC on those clusters. This reduces complexity to $O(nk + k^2)$, achieving up to a 30-fold speedup on datasets like the 600-point Abalone benchmark.

Key Results and Performance

The authors evaluated their methods on synthetic 2D Gaussian mixtures and real-world benchmarks (Iris, Abalone, Wine, and CMU Newsgroups). Key findings include:

  • Tighter Bounds: Empirically, the BHC lower bound is almost always closer to the true marginal likelihood than Variational Bayes or Collapsed Variational methods.
  • Predictive Power: BHC outperformed VB in predictive log-likelihood across nearly all tested datasets.
  • Deterministic Advantage: Unlike VB, which depends on random initialization, BHC is deterministic, providing a stable and reproducible bound.

Conclusion and Future Work

Tree-based inference provides a robust and efficient alternative to variational methods for DPM models. While the method is still fundamentally bottom-up, the alternative tree algorithm effectively mitigates the risks of greedy merging. Future work could explore applying these tree-based combinatorial bounds to other complex models, such as Latent Dirichlet Allocation (LDA) or broader hierarchical Bayesian frameworks.

Summary updated

BibTeX
@article{xu2009tree,
  author = {Yang Xu and Katherine A. Heller and Zoubin Ghahramani},
  title = {{Tree-Based Inference for Dirichlet Process Mixtures}},
  journal = {AISTATS},
  year = {2009},
}
Figure