Expectation-maximization algorithms for inference in Dirichlet processes mixture

Tomoaki Kimura, T. Tokuda, Yohei Nakada, T. Nokajima, Takashi Matsumoto, Arnaud DoucetPattern Anal. Appl 2013

Abstract

Dirichlet Process Mixture (DPM) models provide a robust Bayesian framework for density estimation and clustering by automatically inferring the number of components. However, traditional inference methods like Markov Chain Monte Carlo (MCMC) and Variational Bayes (VB) often struggle with scalability and computational overhead. This paper introduces novel batch and recursive Expectation-Maximization (EM) algorithms for DPMs. By leveraging a truncated stick-breaking construction and updating sufficient statistics, these algorithms offer a fast, efficient alternative that performs parameter estimation and model selection in a single pass.

Introduction

Mixture models are fundamental tools in machine learning for clustering and density estimation. A persistent challenge in their application is the "model selection" problem: determining the optimal number of components ($k$). Standard techniques often involve training multiple models with different $k$ values and comparing them using information criteria like AIC or BIC—a process that is computationally expensive and inefficient for large datasets.

Dirichlet Process Mixture (DPM) models circumvent this by treating the number of components as a random variable to be inferred. While elegant, DPMs have historically relied on MCMC or VB for inference. MCMC is notoriously slow to converge and difficult to scale, while VB can be prone to local optima and requires multiple passes over the data. This research proposes to bridge the gap by adapting the speed and simplicity of EM algorithms to the DPM framework.

The DPM-EM Framework

The proposed approach utilizes a truncated DPM model, where the theoretically infinite number of components is capped at a large finite number $N$ (e.g., $N=100$). The mixture weights are defined using the stick-breaking construction, which naturally orders components by their expected weight.

A key feature of the DPM-EM algorithm is its inherent regularization. Unlike standard finite mixture models that might overfit by utilizing all available components, the DPM-EM incorporates the concentration parameter $\alpha$ into the weight updates. This forces redundant or insignificant components to "shut down," effectively performing automatic model selection during the optimization process.

Evolution of mixing parameters $p_k$ over iterations, showing the automatic pruning of redundant components.

Algorithmic Innovations: Batch and Recursive EM

The authors contribute two primary algorithmic variants:

  1. Batch EM for DPM: This iterative algorithm updates parameters based on the entire dataset. It introduces a novel update for the stick-breaking weights ($v_i$) that accounts for the DPM's prior structure.
  2. Recursive (Online) EM for DPM: Designed for high-velocity or large-scale data, this version updates the model's sufficient statistics (counts, sums, and squared sums) incrementally.

The use of sufficient statistics is a critical design choice. By updating these statistics rather than the parameters directly, the algorithm avoids complex "reprojection" steps required to maintain constraints (such as ensuring covariance matrices remain positive definite). This makes the recursive EM highly efficient, often requiring only a single pass through the data to achieve results comparable to batch methods.

Algorithmic Dynamics and Convergence

The convergence behavior of these algorithms demonstrates their stability. As the iterations proceed, both the component means and the mixing parameters stabilize toward their optimal values. The "pruning" effect is visible early in the process, as the algorithm quickly identifies which components are supported by the data and which are extraneous.

Simultaneous convergence of component means (top) and mixing parameters (bottom) during the EM process.

Experimental Results

The algorithms were rigorously tested on synthetic Gaussian mixtures and real-world datasets, including the Berkeley Segmentation Dataset and the Caltech image database.

  • Accuracy: In synthetic tests, the DPM-EM achieved lower Kullback–Leibler (KL) distances to the ground truth compared to Variational Bayes.
  • Efficiency: The EM approach proved significantly faster than MCMC and required fewer iterations than typical VB implementations.
  • Applications: In image segmentation, the algorithm successfully identified 16 distinct color components in complex scenes. For image classification on the Caltech dataset, the DPM-based classifier achieved over 89% accuracy in the "airplane" category, outperforming standard K-means-based bag-of-features models.

Conclusion

The introduction of EM-type algorithms for Dirichlet Process Mixtures provides a powerful "plug-and-play" tool for large-scale inference. By combining the flexibility of Bayesian nonparametrics with the efficiency of EM and sufficient statistics updates, this framework enables robust model selection and parameter estimation without the heavy computational tax of traditional Bayesian methods.

Summary updated

BibTeX
@article{kimura2013expectation,
  author = {Tomoaki Kimura and T. Tokuda and Yohei Nakada and T. Nokajima and Takashi Matsumoto and Arnaud Doucet},
  title = {{Expectation-maximization algorithms for inference in Dirichlet processes mixture}},
  journal = {Pattern Anal. Appl.},
  year = {2013},
  doi = {10.1007/s10044-011-0256-4},
}
Figure