Abstract
Can we efficiently learn the parameters of directed probabilistic models, in the presence of continuous latent variables with intractable posterior distributions, and large datasets? We introduce an unsupervised on-line learning algorithm that efficiently optimizes the variational lower bound on the marginal likelihood and that, under some mild conditions, even works in the intractable case. The algorithm, Stochastic Gradient Variational Bayes (SGVB), optimizes a probabilistic encoder (also called a recognition model) to approximate the intractable posterior distribution of the latent variables. Crucial is a reparameterization of the variational bound with an independent noise variable, yielding a stochastic objective function which can be jointly optimized w.r.t. variational and generative parameters using standard gradient-based stochastic optimization methods.
Introduction
In probabilistic modeling, we often assume that observed data $x$ is generated by some hidden, "latent" variables $z$. To learn these models, we need to calculate the posterior distribution $p(z|x)$—essentially asking, "Given this data, what are the most likely hidden causes?"
For complex models, such as those parameterized by neural networks, this posterior is intractable. Traditional approximation methods like Markov Chain Monte Carlo (MCMC) are computationally expensive and do not scale well to large datasets. This paper addresses the challenge of performing efficient inference and learning in directed graphical models with continuous latent variables.
Methods: The Variational Auto-Encoder
The authors propose the Variational Auto-Encoder (VAE), a framework that combines deep learning with Bayesian inference. The model consists of a generative model $p_\theta(x,z)$ and a recognition model $q_\phi(z|x)$ (the encoder) that approximates the true posterior.
The Reparameterization Trick
The core innovation is the reparameterization trick. Standard stochastic gradient descent cannot backpropagate through a random sampling step. By expressing the latent variable $z$ as a deterministic function of the input $x$ and an auxiliary noise variable $\epsilon$ (e.g., $z = \mu + \sigma \odot \epsilon$ for a Gaussian), the sampling process becomes differentiable. This allows for joint optimization of both the generative parameters $\theta$ and the variational parameters $\phi$ using standard backpropagation.
Stochastic Gradient Variational Bayes (SGVB)
Using this trick, the authors derive the SGVB estimator for the Evidence Lower Bound (ELBO). The ELBO objective function balances reconstruction accuracy (how well the decoder reconstructs $x$ from $z$) with a regularization term (the KL divergence between the approximate posterior $q_\phi(z|x)$ and the prior $p(z)$).
Experimental Results
The method was evaluated on the MNIST handwritten digit dataset and the Frey Face dataset. These experiments demonstrated the efficiency and scalability of the SGVB algorithm compared to existing methods like the "Wake-Sleep" algorithm.
As shown in the results, SGVB consistently achieves higher lower bounds and converges faster than the Wake-Sleep algorithm across different dimensions of the latent space ($N_z$). The model successfully learns smooth, meaningful latent representations, allowing for the generation of new data points by sampling from the latent space.
Key Insights and Discussion
- Probabilistic Deep Learning: The VAE demonstrates that neural networks can be used as powerful function approximators within a rigorous Bayesian framework.
- KL Divergence as a Regularizer: The KL term in the ELBO forces the latent space to be continuous and well-structured, preventing the model from simply memorizing training examples.
- Limitations: The current reparameterization trick is primarily suited for continuous variables. Furthermore, while VAEs excel at learning latent manifolds, the generated samples can sometimes appear blurry compared to adversarial methods.
In conclusion, the VAE and the reparameterization trick have become fundamental tools in the deep learning toolbox, bridging the gap between generative modeling and efficient stochastic optimization.
Summary updated