Auto-Encoding Variational Bayes
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "arXiv — non-exclusive licence to distribute" does not allow redistributing the text itself. Original — arxiv.org/pdf/1312.6114
Summary
The paper tackles learning in directed probabilistic models with continuous latent variables when the posterior over those latents cannot be computed exactly and the dataset is too large for batch methods or per-example sampling such as MCMC. The authors rewrite the variational lower bound so that a latent sample becomes a deterministic, differentiable function of the input and independent noise. This is the "reparameterization trick." It produces a low-variance, unbiased estimator of the bound, called SGVB, which can be maximized with ordinary stochastic gradient methods. For i.i.d. data, they build on this estimator with AEVB. In AEVB, a recognition model (a probabilistic encoder) is trained jointly with the generative decoder. When both are neural networks, the result is the variational auto-encoder. On MNIST and Frey Face, AEVB converged faster than wake-sleep and reached better lower bounds. In marginal-likelihood tests it also compared well against Monte Carlo EM. The work matters because it makes scalable variational learning practical for nearly any model with continuous latents.
Key points
- Two estimators:
- The generic estimator (SGVB A) uses only sampling.
- The second variant (SGVB B) computes the KL term between the approximate posterior and the prior analytically, which typically reduces variance. That KL term acts as a regularizer, and the other term corresponds to reconstruction error.
- Training setup:
- Minibatches of M = 100 with L = 1 noise sample per datapoint were sufficient.
- Optimization used Adagrad, with the global step size chosen from {0.01, 0.02, 0.1}.
- Weights were initialized from N(0, 0.01).
- Lower-bound experiments:
- Encoders and decoders had 500 hidden units on MNIST and 200 on the smaller Frey Face dataset.
- Latent dimensionality ranged from 2 to 200.
- Adding superfluous latent variables did not cause overfitting.
- Marginal-likelihood experiments:
- These used MNIST with 3 latent variables and 100 hidden units.
- AEVB was compared with wake-sleep and with Monte Carlo EM using a Hybrid Monte Carlo sampler, at 1,000 and 50,000 training points.
- MCEM does not scale efficiently to the full dataset.
- Compute: Training took roughly 20–40 minutes per million training samples on an Intel Xeon CPU running at about 40 GFLOPS. With a 2D latent space, the learned encoder can also be used to visualize data manifolds.
Cited by
- Structured Denoising Diffusion Models in Discrete State-Spaces
- On the Opportunities and Risks of Foundation Models
- Controllable Paraphrase Generation with a Syntactic Exemplar
- A Simple Framework for Contrastive Learning of Visual Representations
- Controllable Abstractive Summarization
- Generating Sentences by Editing Prototypes
- Toward Controlled Generation of Text
- Categorical Reparameterization with Gumbel-Softmax
- Disentangled Representation Learning for Non-Parallel Text Style Transfer
- CTRL: A Conditional Transformer Language Model for Controllable Generation
- Submodular Optimization-based Diverse Paraphrasing and its Effectiveness in Data Augmentation
- Syntax-Guided Controlled Generation of Paraphrases
- Unsupervised Machine Translation Using Monolingual Corpora Only
- Diffusion-LM Improves Controllable Text Generation
- Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow
- The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery
- The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables
- Text and Code Embeddings by Contrastive Pre-Training
- Scaling Speech Technology to 1,000+ Languages
- Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
- Zero-Shot Text-to-Image Generation
- Stochastic Backpropagation and Approximate Inference in Deep Generative Models
- A Hierarchical Latent Variable Encoder-Decoder Model for Generating Dialogues
- Style Transfer from Non-Parallel Text by Cross-Alignment
- Deep Unsupervised Learning using Nonequilibrium Thermodynamics
- Generative Modeling by Estimating Gradients of the Data Distribution
- Denoising Diffusion Implicit Models
Cite
@misc{kingma2013auto,
title = {{Auto-Encoding Variational Bayes}},
author = {Kingma, Diederik P and Welling, Max},
year = {2013},
doi = {10.48550/arxiv.1312.6114},
eprint = {1312.6114},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1312.6114}
}References
- Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. 2013. find our card
- David M Blei, Michael I Jordan, and John W Paisley. Variational Bayesian inference with Stochastic Search. In Proceedings of the 29th International Conference on Machine Learning (ICML-12), pages 1367–1374, 2012. find
- Yoshua Bengio and Éric Thibodeau-Laufer. Deep generative stochastic networks trainable by backprop. arXiv preprint arXiv:1306.1091, 2013. — [arXiv:1306.1091](https://arxiv.org/abs/1306.1091) find
- Luc Devroye. Sample-based non-uniform random variate generation. In Proceedings of the 18th conference on Winter simulation, pages 260–265. ACM, 1986. find
- John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12:2121– 2159, 2010. find
- Simon Duane, Anthony D Kennedy, Brian J Pendleton, and Duncan Roweth. Hybrid monte carlo. Physics letters B, 195(2):216–222, 1987. find
- Karol Gregor, Andriy Mnih, and Daan Wierstra. Deep autoregressive networks. arXiv preprint arXiv:1310.8499, 2013. — [arXiv:1310.8499](https://arxiv.org/abs/1310.8499) find
- Matthew D Hoffman, David M Blei, Chong Wang, and John Paisley. Stochastic variational inference. The Journal of Machine Learning Research, 14(1):1303–1347, 2013. find
- Geoffrey E Hinton, Peter Dayan, Brendan J Frey, and Radford M Neal. The” wake-sleep” algorithm for unsupervised neural networks. SCIENCE, pages 1158–1158, 1995. find
- Koray Kavukcuoglu, Marc’Aurelio Ranzato, and Yann LeCun. Fast inference in sparse coding algorithms with applications to object recognition. Technical Report CBLL-TR-2008-12-01, Computational and Biological Learning Lab, Courant Institute, NYU, 2008. find
- Ralph Linsker. An application of the principle of maximum information preservation to linear systems. Morgan Kaufmann Publishers Inc., 1989. find
- Rajesh Ranganath, Sean Gerrish, and David M Blei. Black Box Variational Inference. arXiv preprint arXiv:1401.0118, 2013. — [arXiv:1401.0118](https://arxiv.org/abs/1401.0118) find
- Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and variational inference in deep latent gaussian models. arXiv preprint arXiv:1401.4082, 2014. find our card
- Sam Roweis. EM algorithms for PCA and SPCA. Advances in neural information processing systems, pages 626–632, 1998. find
- Tim Salimans and David A Knowles. Fixed-form variational posterior approximation through stochastic linear regression. Bayesian Analysis, 8(4), 2013. find
- Ruslan Salakhutdinov and Hugo Larochelle. Efficient learning of deep boltzmann machines. In International Conference on Artificial Intelligence and Statistics, pages 693– 700, 2010. find
- Pascal Vincent, Hugo Larochelle, Isabelle Lajoie, Yoshua Bengio, and Pierre-Antoine Manzagol. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. The Journal of Machine Learning Research, 9999:3371–3408, 2010. find