Deep Dirichlet Process Mixture Models

Naiqi Li, Wenjie Li, Yong Jiang, Shu-Tao Xia

Abstract

In this paper, we propose the deep Dirichlet process mixture (DDPM) model, which is an unsupervised method that simultaneously performs clustering and feature learning. The traditional Dirichlet process mixture model can infer the number of mixture components, but its capacity is restricted since the clustering is performed in the raw feature space. Our method alleviates this limitation by using the flow-based deep neural network to learn more expressive features. DDPM unifies Dirichlet processes and the flow-based model with Monte Carlo expectation-maximization, and uses Gibbs sampling to sample from the posterior. This combination allows our method to exploit the mutually beneficial relation between clustering and feature learning. The effectiveness of DDPM is demonstrated by thorough experiments in various synthetic and real-world datasets.

Introduction

Clustering is a fundamental task in unsupervised learning, yet practitioners often face a recurring challenge: determining the optimal number of clusters ($k$). While traditional Bayesian methods like Dirichlet Process Mixture (DPM) models can infer the number of clusters automatically, they often struggle with high-dimensional, complex data because they operate in the raw feature space. Conversely, modern deep clustering algorithms typically rely on a fixed hyperparameter $k$, which is a significant limitation in real-world scenarios where the true number of clusters is unknown.

Deep Dirichlet Process Mixture (DDPM) models bridge this gap by marrying the "infinite" flexibility of Bayesian nonparametrics with the representational power of deep learning, allowing a model to learn what the features should look like and how many clusters exist simultaneously.

The DDPM Framework

The core innovation of DDPM lies in its architecture and its optimization strategy, which integrates flow-based generative models with a DPM prior.

Flow-Based Representation

The model utilizes a flow-based generative model called NICE (Non-linear Independent Components Estimation). Unlike standard autoencoders, flow-based models are invertible and have a tractable Jacobian. This allows the model to map complex input data into a latent space where the clusters look like simple isotropic Gaussians, without losing information. This invertibility makes calculating the exact likelihood of the data possible, a major advantage over Variational Autoencoders (VAEs).

Optimization via Monte Carlo EM

To train the network, the authors use a hybrid Monte Carlo Expectation-Maximization (MC-EM) approach:

  • E-step: Gibbs Sampling is used to estimate the cluster assignments and the parameters (mean and precision) for each cluster in the latent space.
  • M-step: The samples from the E-step are used to update the weights of the flow-based neural network via stochastic gradient descent.

This creates a "mutually beneficial" cycle: better feature representations make it easier for the DPM to identify clusters, and more accurate clustering assignments provide a clearer signal for the neural network to refine its features.

Visualization of the latent space transformation for synthetic datasets. The top row shows non-isotropic Gaussians being disentangled, while the bottom row illustrates the "unwrapping" of intertwined moons into distinct clusters in the latent space.

Experimental Evaluation

The authors evaluated DDPM on a mix of synthetic and classic real-world benchmarks, including MNIST, HHAR, STL-10, and REU-10K.

Key Results

DDPM consistently outperformed baselines like G-means (which also tries to infer $k$) and standard DPMs across multiple metrics. On the MNIST dataset, DDPM achieved an Adjusted Rand Index (ARI) of 0.4400, significantly higher than the standard DPM's 0.3974.

Furthermore, the features learned by DDPM are highly transferable. When these features are plugged into a standard algorithm like $k$-means, the performance is superior to using raw features or standard autoencoder features, as shown in the comparative analysis across multiple datasets.

Performance comparison across four real-world datasets (MNIST, STL-10, HHAR, REU-10K). The results demonstrate that flow-based representations (red) consistently outperform standard autoencoder representations (blue) across ARI, F-score, and V-score metrics.

Visual Disentanglement and Generative Power

In the "intertwined moon" experiment, DDPM successfully "unwrapped" the complex shapes in the latent space, turning them into two distinct Gaussian blobs. Because the flow model is invertible, the authors could sample from the learned cluster centers and map them back to the original space, generating clear, sharp handwritten digits that prove the model captured the underlying data distribution.

Conclusion and Future Work

DDPM demonstrates the power of unifying Bayesian nonparametrics with deep flow-based learning for unsupervised tasks. While powerful, the authors note that computational efficiency could be improved by moving from Gibbs sampling toward a Variational Inference (VI) framework. Future iterations could also incorporate more sophisticated flow architectures like RealNVP or Glow to handle even more intricate data structures.

Summary updated

BibTeX
@inproceedings{li2022deep,
  author = {Naiqi Li and Wenjie Li and Yong Jiang and Shu-Tao Xia},
  title = {{Deep Dirichlet Process Mixture Models}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=rOufYULiqe5},
}
Figure