Abstract
Clustering is among the most fundamental tasks in machine learning and artificial intelligence. In this paper, we propose Variational Deep Embedding (VaDE), a novel unsupervised generative clustering approach within the framework of Variational Auto-Encoder (VAE). Specifically, VaDE models the data generative procedure with a Gaussian Mixture Model (GMM) and a deep neural network (DNN): 1) the GMM picks a cluster; 2) from which a latent embedding is generated; 3) then the DNN decodes the latent embedding into an observable. Inference in VaDE is done in a variational way: a different DNN is used to encode observables to latent embeddings, so that the evidence lower bound (ELBO) can be optimized using the Stochastic Gradient Variational Bayes (SGVB) estimator and the reparameterization trick. Quantitative comparisons with strong baselines are included in this paper, and experimental results show that VaDE significantly outperforms the state-of-the-art clustering methods on 5 benchmarks from various modalities. Moreover, by VaDE's generative nature, we show its capability of generating highly realistic samples for any specified cluster, without using supervised information during training.
Introduction
Clustering high-dimensional data, such as images or text, remains a significant challenge in unsupervised learning. Traditional algorithms like K-means or Gaussian Mixture Models (GMMs) often struggle in high-dimensional spaces because they rely on simple distance metrics that do not capture the complex underlying structure of the data. While recent "Deep Clustering" methods like Deep Embedded Clustering (DEC) leverage neural networks to learn better feature representations, they are primarily discriminative. They can assign data points to clusters but lack the ability to model the generative process or "imagine" new samples.
Variational Deep Embedding (VaDE) addresses this gap by combining the representational power of Deep Neural Networks (DNNs) with the statistical flexibility of GMMs within a unified generative framework.
Methodology: The VaDE Framework
VaDE is built upon the Variational Autoencoder (VAE) architecture but introduces a critical modification to the latent prior. Instead of the standard single-Gaussian prior, VaDE employs a Mixture-of-Gaussians (MoG) prior.
The generative process follows three steps:
- Cluster Selection: A cluster $c$ is selected from a GMM prior.
- Latent Sampling: A latent vector $z$ is sampled from a Gaussian distribution specific to that cluster.
- Decoding: A decoder network transforms $z$ into the observed data $x$.
To train the model, an encoder network maps observed data $x$ back into the latent space. The entire system is optimized by maximizing the Evidence Lower Bound (ELBO). By utilizing the reparameterization trick and Stochastic Gradient Variational Bayes (SGVB), the complex GMM-prior becomes differentiable, allowing for end-to-end training via backpropagation.
Experimental Results
The authors evaluated VaDE on five diverse benchmarks: MNIST (images), HHAR (sensor data), REUTERS (text), and STL-10 (high-res images).
As shown in the performance curves, VaDE achieves a state-of-the-art clustering accuracy of 94.46% on MNIST, significantly surpassing DEC (84.30%) and standard GMM (53.73%). Across all datasets, VaDE demonstrated a relative accuracy increase of 4.75% to 12.05% over the strongest baselines.
Key Insights
- Joint Optimization: Unlike two-stage methods that separate feature learning from clustering (e.g., AE+GMM), VaDE optimizes both simultaneously. This ensures that the learned latent space is specifically structured for cluster separation.
- The MoG Manifold: The GMM prior acts as a regularizer, forcing latent embeddings to form distinct "blobs" in the latent space, which naturally pushes different classes apart.
- Generative Capability: As a generative model, VaDE can perform conditional generation without labels. By sampling from a specific Gaussian component in the latent space, it can generate realistic samples belonging to a chosen cluster.
Conclusion
VaDE represents a significant step forward in unsupervised clustering by successfully integrating GMMs into the VAE framework. While it requires a pre-defined number of clusters ($K$) and careful initialization to avoid local minima, its superior accuracy and generative flexibility make it a powerful tool for high-dimensional data analysis.
Summary updated