Theoretical Convergence Guarantees for Variational Autoencoders
Sobihan Surendran, Antoine Godichon-Baggioni, Sylvain Le Corff
TL;DR
This work delivers non-asymptotic convergence guarantees for training Variational Autoencoders with SGD and Adam, establishing a fundamental rate of $\mathcal{O}(\log n/\sqrt{n})$ under realistic assumptions. It systematically treats multiple VAE instantiations—Linear, Deep Gaussian, $\beta$-VAE, IWAE—and extends to BBVI—providing a unified convergence framework with explicit dependencies on batch size, variational-sample count, and network depth. The analysis reveals practical tradeoffs: larger $B$ and $K$ speeds convergence but increases cost, while smaller $\beta$ and deeper networks demand careful architectural and activation choices (e.g., generalized soft-clipping) to preserve smoothness. Empirical results on CelebA and CIFAR-100 corroborate the theory and offer actionable guidelines for hyperparameter selection and activation design in VAE training.
Abstract
Variational Autoencoders (VAE) are popular generative models used to sample from complex data distributions. Despite their empirical success in various machine learning tasks, significant gaps remain in understanding their theoretical properties, particularly regarding convergence guarantees. This paper aims to bridge that gap by providing non-asymptotic convergence guarantees for VAE trained using both Stochastic Gradient Descent and Adam algorithms. We derive a convergence rate of $\mathcal{O}(\log n / \sqrt{n})$, where $n$ is the number of iterations of the optimization algorithm, with explicit dependencies on the batch size, the number of variational samples, and other key hyperparameters. Our theoretical analysis applies to both Linear VAE and Deep Gaussian VAE, as well as several VAE variants, including $β$-VAE and IWAE. Additionally, we empirically illustrate the impact of hyperparameters on convergence, offering new insights into the theoretical understanding of VAE training.
