A permutation-augmented sampler for DP mixture models

Percy Liang, Michael I. Jordan, Benjamin Taskar

TL;DR

This paper introduces a "permutation-augmented" sampler for Dirichlet Process (DP) mixture models that overcomes the slow convergence of traditional Gibbs samplers. By augmenting the model with a data-point permutation and using dynamic programming, the algorithm can sample an entire clustering at once. These "global moves" significantly slash burn-in times and help the model avoid getting trapped in local optima.

The Challenge with DP Mixture Models

Dirichlet Process mixture models are a cornerstone of Bayesian nonparametrics, allowing the number of clusters in a dataset to grow automatically with the data. However, performing posterior inference—finding the most likely clusters—is notoriously difficult.

The standard tool for this task, the collapsed Gibbs sampler, reassigns only one data point at a time. This "local" move makes it extremely slow to "mix." It frequently gets stuck in local optima because moving from one good clustering to another often requires passing through highly improbable intermediate states (e.g., slowly moving 100 points from one cluster to another, one by one). While "split-merge" algorithms exist to move groups of points simultaneously, they are often computationally expensive or struggle to propose "good" moves in high-dimensional spaces.

Proposed Method: The Augmentation Sampler

The authors propose a novel augmentation sampler to address these bottlenecks. The core idea is to introduce an auxiliary variable: a permutation (an ordering) of the data points.

Graphical models comparing the standard DP mixture model and the permutation-augmented model.
  1. The Permutation Constraint: If you fix the order of data points, you can define a "consistent" clustering as one where each cluster consists of a contiguous segment of that ordering.
  2. Dynamic Programming (DP): While the total number of ways to cluster $N$ points is astronomical (scaling with Bell numbers), the number of ways to partition a sequence into contiguous segments is much smaller. The authors use dynamic programming to sum over all exponentially many clusterings consistent with a permutation in polynomial time.
  3. The Blocked Sampler: The algorithm alternates between sampling a permutation given the current clustering, and sampling a new clustering given the permutation (using the DP approach).
  4. Optimizations: To make this practical for large datasets, the authors introduce two key optimizations:
  5. Metropolis-Hastings: They use a Taylor expansion to approximate the cluster-size factor, reducing the DP complexity from $O(n^3)$ to $O(n^2)$.
  6. Beam Search: Observing that the DP sum is usually dominated by a few terms, they prune the search space to achieve roughly $O(n)$ time per sample.
  7. Random Projections: To find "good" permutations during the burn-in phase, they project high-dimensional data onto a random 1D line. Points that are close in the original space are likely to end up near each other in the 1D ordering, creating a "stochastic hill-climbing" effect.

Key Insights

  • Permutations as a Bridge: The breakthrough is realizing that a permutation acts as a bridge between the discrete, combinatorial world of clustering and the efficient world of sequence-based dynamic programming.
  • Global vs. Local: By sampling an entire clustering at once, the algorithm can jump across "low-probability valleys" that typically trap Gibbs samplers.
  • The Power of 1D Projections: In high-dimensional spaces, a simple random 1D projection is surprisingly effective at grouping members of the same cluster together in a permutation, allowing the DP step to "discover" the cluster.
  • Burn-in vs. Mixing: The data-dependent permutation (via random projections) is specifically framed as a tool for the "burn-in" phase to find the right neighborhood. Uniform permutations are used later to ensure unbiased sampling from the true posterior.

Experimental Results

The authors evaluated their sampler on synthetic Gaussians, MNIST (PCA-reduced to 50 dimensions), and AP News documents (10,473-dimensional multinomial data).

  • Faster Burn-in: In almost all tests, the permutation-augmented sampler reached high-probability regions significantly faster than the collapsed Gibbs sampler or a Gibbs+Split-Merge hybrid.
  • Initialization Independence: Unlike Gibbs sampling, which can stall if initialized poorly (e.g., with all points in one cluster), the permutation sampler is largely insensitive to its starting state.
  • High-Dimensional Scaling: Performance gains were particularly pronounced in higher dimensions (e.g., 80-160 dimensions), where random projections become more effective at separating true clusters.
  • Real-World Performance: On MNIST, the permutation moves showed a clear advantage in rapidly increasing log-probability. On the AP News dataset, a hybrid approach (Gibbs + Split-Merge + Permutation) performed best, suggesting these methods are highly complementary.

Limitations and Future Work

While powerful, the approach has limitations. On the AP News dataset, random projections were less effective, likely because document data involves overlapping topics, making a simple 1D linear ordering less representative of the underlying structure. Additionally, the $O(n)$ and $O(n^2)$ optimizations are approximations; while corrected via Metropolis-Hastings, the sampler's efficiency depends on the tightness of this approximation.

Future work could explore richer augmentation schemes, such as using trees instead of linear permutations, to capture even more complex subsets of possible clusterings.

Summary updated

BibTeX
@inproceedings{liang2007permutation,
  author = {Percy Liang and Michael I. Jordan and Benjamin Taskar},
  title = {{A permutation-augmented sampler for DP mixture models}},
  booktitle = {International Conference on Machine Learning},
  year = {2007},
  doi = {10.1145/1273496.1273565},
}
Figure