Introduction
Unsupervised clustering is a fundamental task in machine learning, aiming to group data points without explicit labels. While traditional methods like $k$-means and Gaussian Mixture Models (GMMs) are effective for low-dimensional, linear data, they often fail when applied to complex, high-dimensional inputs like images. Deep generative models, particularly Variational Autoencoders (VAEs), offer a solution by learning low-dimensional latent representations. However, standard VAEs typically assume a unimodal Gaussian prior, which is ill-suited for clustering. This paper introduces the Gaussian Mixture Variational Autoencoder (GMVAE), a model designed to explicitly model multiple clusters in the latent space while overcoming the common issue of cluster degeneracy.
The Challenge of Cluster Degeneracy
In a standard VAE, the objective function includes a Kullback-Leibler (KL) divergence term that regularizes the latent distribution toward a simple prior (usually a single Gaussian). When researchers attempt to use a mixture of Gaussians as a prior for clustering, this KL term often acts as a "bully," forcing all the components of the mixture to collapse into a single point. This phenomenon, known as over-regularization or cluster degeneracy, results in the model failing to discover distinct categories, as the mathematical pressure for simplicity outweighs the need to represent the data's underlying structure.
The GMVAE Framework
The GMVAE addresses these challenges through a specific architectural design and a modified training objective.
Architecture and Generative Process
The model utilizes two distinct latent variables to disentangle the identity of a cluster from the specific style of a data point:
- $z$ (Discrete): Represents the cluster assignment (e.g., which digit is being drawn).
- $w$ (Continuous): Represents the "style" or variation within that cluster (e.g., the slant or thickness of the stroke).
The generative process involves selecting a style $w$, then a cluster $z$, which together determine the parameters for the latent representation $x$. Finally, $x$ is decoded into the observed data $y$.
Minimum Information Constraint
To prevent cluster collapse, the authors introduce a "minimum information constraint." Instead of penalizing the discrete latent variable $z$ from the start, they set a threshold $\lambda$. The model only incurs a penalty when the information cost of the cluster assignments exceeds this threshold. This "slack" allows clusters to spread out and differentiate during the early stages of training before the regularizer becomes dominant.
Experimental Evaluation
The GMVAE was tested on synthetic data, MNIST, and the Street View House Numbers (SVHN) dataset.
Synthetic Data
On a 2D synthetic dataset consisting of five distinct arcs, the GMVAE successfully identified the non-linear clusters. Unlike standard GMMs that might struggle with the curved shapes, the GMVAE's latent mapping allows it to capture complex geometries.
Real-World Performance
- MNIST: The model achieved an unsupervised classification accuracy of 96.92%, outperforming several contemporary benchmarks like DEC (84.30%).
- SVHN: On the more complex SVHN dataset, the GMVAE demonstrated qualitative success by grouping visually similar house numbers together without any supervised labels.
- Latent Traversal: By fixing $z$ and varying $w$, the authors showed that the model successfully disentangles category from style. For instance, it can change the slant of a digit while maintaining its identity.
Conclusion
The GMVAE provides a robust framework for deep unsupervised clustering. By combining a mixture-model prior with a "minimum information constraint," it avoids the pitfalls of cluster degeneracy that plague simpler VAE extensions. While it requires some hyperparameter tuning for the information threshold and a predefined number of clusters, its performance on complex image datasets marks a significant step forward in learning interpretable, categorical representations from unlabeled data.
Summary updated