Message Passing Algorithms for the Dirichlet Diffusion Tree

David A. Knowles, Jurgen Van Gael, Zoubin GhahramaniICML 2011

Hierarchical structures are everywhere—from the "tree of life" in biology to the taxonomy of products in e-commerce. While we have many ways to cluster data, the Dirichlet Diffusion Tree (DDT) stands out as a mathematically elegant, principled way to model these hierarchies. However, for years, the DDT was sidelined because it relied on slow, computationally expensive Markov Chain Monte Carlo (MCMC) simulations.

In this paper, Knowles, Van Gael, and Ghahramani introduce the first deterministic approximate inference methods for DDTs, using message passing to make these powerful models practical for real-world datasets.

TL;DR

The authors develop a fast message-passing framework for Dirichlet Diffusion Trees, replacing slow MCMC sampling with efficient deterministic approximations. This allows for high-quality hierarchical clustering and density estimation on large datasets in minutes rather than hours, while maintaining the statistical rigor of a generative Bayesian model.

What Problem Does This Paper Address?

Traditional hierarchical clustering (like the kind you find in standard machine learning libraries) is often ad-hoc—it uses heuristics to decide how to merge clusters without a clear underlying statistical model. On the other hand, flat mixture models (like Dirichlet Process Mixtures) assume clusters are independent, failing to capture the similarity between sub-groups.

The Dirichlet Diffusion Tree solves both: it is a generative model where data points "diffuse" (move like Brownian motion) over time, branching off to create a tree. The closer the branch point, the more similar the data.

Illustration of a Dirichlet Diffusion Tree branching process.

The catch? Figuring out the "posterior" (the most likely tree given your data) is notoriously difficult. Until this paper, researchers relied on MCMC, which is slow and hard to scale. This paper aims to provide a faster, deterministic alternative.

Methods

The authors move away from sampling and toward Message Passing on factor graphs.

  1. Factor Graph Representation: They break the complex DDT prior into a series of simpler mathematical constraints (factors).
  2. Hybrid Inference: They use a mix of Expectation Propagation (EP) and Variational Message Passing (VMP). Specifically, they use $\alpha$-divergence minimization to pass statistical summaries (messages) between nodes in the tree.
  3. The EM Variant: In high dimensions, modeling the exact uncertainty of when branches occur becomes unstable. To fix this, they propose an Expectation-Maximization (EM) algorithm. The E-step uses message passing to handle data locations, while the M-step optimizes the branching times using a standard optimizer (L-BFGS).
  4. Structure Search: Since the true tree shape is unknown, they use the approximate model evidence (calculated via message passing) to drive a greedy search. They start with a simple tree and iteratively detach and re-attach branches to find the best fit.

Datasets

The authors evaluated their approach on a diverse set of benchmarks:

  • Toy 2D Fractal: A synthetic dataset designed to test if the algorithm can recover a known, complex hierarchy.
  • Macaque Skull Measurements: A 10-dimensional biological dataset ($N=200$) used to compare density estimation against MCMC and flat models.
  • Gene Expression Data: A high-dimensional dataset ($N=2000, D=171$) used to test scalability.
  • Animal Species Attributes: A dataset of 33 animals and 102 binary features to demonstrate the model's flexibility with non-continuous data.

Key Insights and Results

Unlike flat models, the DDT allows parameters to be shared across branches. If the model learns something about a broad category, that information helps it better estimate the parameters for sub-categories, even with limited data. The ability to calculate a marginal likelihood (model evidence) provides a principled objective function for the greedy search, telling the algorithm exactly how much better one tree structure is than another.

Performance comparison of DDT inference methods across different datasets.
  • Speed: On the gene expression dataset, the EM-based message passing took 48 minutes, compared to 18 hours for MCMC, while achieving nearly identical predictive scores.
  • Accuracy: The DDT consistently outperformed the Infinite Mixture of Gaussians (iMOG), proving that modeling the hierarchy explicitly leads to better density estimation.
  • Qualitative Success: On the animal dataset, the model automatically recovered an intuitive hierarchy, correctly grouping land mammals, aquatic mammals, birds, and insects without any prior knowledge of biological categories.

Limitations and Future Work

While much faster than MCMC, the greedy search for tree structures can still get stuck in local optima. The authors mitigate this by keeping a "K-best" list of trees, but it isn't a silver bullet.

The authors suggest that this framework could be adapted to Kingman’s Coalescent, another popular tree prior that works backwards in time (merging points rather than branching them). Finally, they see a path toward using DDTs as a component in larger models, such as hierarchical Hidden Markov Models or Latent Dirichlet Allocation (LDA) for topic modeling.

Summary updated

BibTeX
@inproceedings{knowles2011message,
  author = {David A. Knowles and Jurgen Van Gael and Zoubin Ghahramani},
  title = {{Message Passing Algorithms for the Dirichlet Diffusion Tree}},
  booktitle = {International Conference on Machine Learning},
  year = {2011},
  url = {https://openreview.net/forum?id=BJVkFoW_Wr},
}
Figure