Abstract
A recurring problem when building probabilistic latent variable models is regularization and model selection, for instance, the choice of the dimensionality of the latent space. In the context of belief networks with latent variables, this problem has been adressed with Automatic Relevance Determination (ARD) employing Monte Carlo inference. We present a variational inference approach to ARD for Deep Generative Models using doubly stochastic variational inference to provide fast and scalable learning. We show empirical results on a standard dataset illustrating the effects of contracting the latent space automatically. We show that the resulting latent representations are significantly more compact without loss of expressive power of the learned models.
Introduction
A fundamental challenge in deep generative modeling is determining the optimal dimensionality of the latent space. This "Goldilocks" problem involves a trade-off: a latent space that is too small lacks the capacity to capture data complexity, while one that is too large risks overfitting and computational inefficiency. Traditionally, researchers rely on manual cross-validation or tedious "line-searches" to find the right size. This paper introduces a principled, automated approach using Automatic Relevance Determination (ARD) within a variational inference framework to let the data dictate the relevance of each latent dimension.
Methodology: Integrating ARD with Variational Inference
The authors adapt the classical Bayesian technique of ARD for modern deep learning architectures like the Variational Autoencoder (VAE). The core innovation involves introducing a vector of "relevance weights" ($w$) that scale each dimension of the latent variable ($z$).
The model places a Gaussian prior on these weights, $p(w) = \mathcal{N}(0, \Lambda)$, where $\Lambda$ is a diagonal covariance matrix. During training, the variational lower bound (ELBO) is optimized with respect to both the neural network parameters and the hyperparameters in $\Lambda$. As training progresses, dimensions that do not contribute to explaining the data see their corresponding hyperparameters shrink toward zero, effectively pruning them from the model.
A refined variant, termed GSGVB-ARD, is proposed for Gaussian priors. By analytically combining the distributions of $z$ and $w$ into a single joint Gaussian, the authors reduce sampling noise and improve training stability compared to standard stochastic variational inference.
Empirical Evaluation on Frey Faces
The method was evaluated using the Frey Faces dataset, which consists of approximately 2,000 grayscale images of a single face with different expressions. This dataset is particularly suitable for testing regularization because its small size makes it highly susceptible to overfitting in high-dimensional latent spaces, providing an ideal stress test for the ARD framework.
Results and Discussion
The experimental results demonstrate significant latent space compression. Models initialized with 50 or 100 latent dimensions consistently pruned the space down to just 8 or 9 active dimensions.
As shown in the training curves, the models exhibit a "phase switch" behavior. Initially, the model focuses on reducing uncertainty. After approximately 900 iterations, it rapidly prunes irrelevant dimensions, leading to a more efficient training regime. Crucially, this compression does not come at the cost of performance; the ARD-augmented models achieved significantly higher test log-likelihoods (e.g., 667.42 nats) compared to standard SGVB models (547.17 nats).
The resulting sparsity enhances interpretability. By forcing the model to use the minimum number of dimensions necessary, the resulting latent space is easier for humans to inspect. Researchers can directly identify which latent variables the model considers essential for data reconstruction by looking at the relevance weight masks.
Conclusion
This work provides a scalable and automated solution for model selection in deep generative models. By incorporating ARD, the authors achieve more compact and robust latent representations that generalize better to unseen data. Future research may explore applying ARD to the internal layers of the generative networks themselves, potentially enabling the automatic pruning of entire neurons or layers to further optimize model architecture.
Summary updated