A Split-Merge MCMC Algorithm for the Hierarchical Dirichlet Process

Chong Wang, David M. BleiarXiv 2012

Introduction

In the field of unsupervised learning, the Hierarchical Dirichlet Process (HDP) is a cornerstone for modeling grouped data, such as collections of documents. It enables the discovery of an unknown number of "topics" shared across different groups. However, the standard inference method—incremental Gibbs sampling—is notoriously slow and prone to getting stuck in local optima. This research by Chong Wang and David Blei introduces a novel "split-merge" strategy to help these models learn faster and more accurately by allowing for large-scale structural changes during the inference process.

The Challenge of Local Optima

The HDP is a nonparametric model, meaning it automatically determines the number of topics needed to explain a dataset. Standard inference typically relies on incremental Gibbs sampling, which reassigns the topic of one word at a time.

This "one-word-at-a-time" approach is inherently local. If the model mistakenly merges two distinct topics into one, the sampler must reassign every individual word to "un-merge" them. Because this is statistically improbable, the Markov chain takes a long time to "mix," often remaining trapped in states where the discovered topics are suboptimal or the total count is incorrect.

Methods: The Split-Merge Algorithm

The authors propose a split-merge MCMC algorithm that operates at the top level of the HDP hierarchy. They utilize the Chinese Restaurant Franchise (CRF) representation, where words are grouped into "tables" within documents, and each table is served a "dish" representing a global topic.

The Chinese Restaurant Franchise (CRF) representation of the HDP, showing how words are grouped into tables assigned to global topics.

Key features of their approach include:

  • Top-Level Operations: Instead of splitting individual words, the algorithm proposes splitting or merging entire tables. Since tables already group related words, this is significantly more efficient.
  • Sequential Allocation: To propose a "split," the algorithm uses a restricted "mini one-pass" Gibbs sampler to intelligently decide how to distribute the tables of an existing topic into two new candidates.
  • Metropolis-Hastings Step: Every proposed split or merge is accepted or rejected based on a calculated probability that ensures the sampler eventually converges to the true posterior distribution.

Experimental Evaluation

The researchers evaluated their algorithm on four datasets:

  1. Synthetic Data: 100 documents with a 12-word vocabulary and 5 ground-truth topics, designed with two very similar topics to test the sampler's resolution.
  2. ARXIV: 2,000 abstracts from research papers (~89K words).
  3. ML+IR: 2,080 conference abstracts from machine learning and information retrieval venues (~118K words).
  4. NIPS: 1,392 abstracts from the NIPS conference (~263K words).

Key Results and Discussion

The "Gibbs+SM" (Split-Merge) algorithm consistently outperformed pure Gibbs sampling across all tested corpora. On synthetic data, pure Gibbs sampling often got trapped with only 4 topics, merging the two similar ones. In contrast, Gibbs+SM correctly identified all 5 ground-truth topics.

The difference in per-word log likelihood between the Gibbs+SM algorithm and standard Gibbs sampling, showing consistent improvement over 1000 iterations.

On real-world corpora, Gibbs+SM reached higher log-likelihood modes faster than the standard approach. Even with a modest acceptance rate (around 3% on real data), the split-merge moves were sufficient to significantly improve the quality of the discovered topics. The authors found that running split-merge moves primarily during the "burn-in" phase is highly effective for finding a good region of the posterior quickly.

Conclusion

The split-merge MCMC algorithm provides a robust solution to the mixing bottlenecks of the HDP. By enabling global structural updates, it allows for better topic resolution and faster convergence on complex datasets. Future work may apply similar split-merge logic to more complex models like the distance-dependent Chinese Restaurant Process (ddCRP), further improving our ability to model intricate relationships within data.

Summary updated

BibTeX
@misc{wang2012split,
  author = {Chong Wang and David M. Blei},
  title = {{A Split-Merge MCMC Algorithm for the Hierarchical Dirichlet Process}},
  year = {2012},
  eprint = {1201.1657},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1201.1657},
}
Figure