From optimal transport to generative modeling: the VEGAN cookbook
Olivier Bousquet, Sylvain Gelly, Ilya Tolstikhin, Carl-Johann Simon-Gabriel, Bernhard Schoelkopf
TL;DR
The paper reframes unsupervised generative modeling as an optimal transport problem between the true data distribution $P_X$ and a latent-variable model $P_G$, deriving a primal formulation that passes through a probabilistic encoder $Q(Z|X)$ and a (potentially random) decoder $P_G(Y|Z)$. By penalizing deviations from the prior $P_Z$ via a POT objective, it becomes amenable to SGD using samples from $P_X$ and $P_G$, and it is shown that for squared Euclidean cost this reduces to the Adversarial Auto-Encoder objective, while for the 1-Wasserstein case it aligns with WGAN duality. The work links POT to VAEs and AVB, explains the blurriness of VAE-generated images, and establishes a spectrum of connections across GANs, VAEs, and AAEs under an OT framework, culminating in the VEGAN cookbook perspective. Practically, the POT framework provides a scalable recipe to blend the strengths of VAEs and GANs, offering theoretical insights and a unified objective for training high-quality generative models. Overall, the paper advances a principled, OT-based foundation for linking and constraining latent-variable generative models with tractable, gradient-based optimization.
Abstract
We study unsupervised generative modeling in terms of the optimal transport (OT) problem between true (but unknown) data distribution $P_X$ and the latent variable model distribution $P_G$. We show that the OT problem can be equivalently written in terms of probabilistic encoders, which are constrained to match the posterior and prior distributions over the latent space. When relaxed, this constrained optimization problem leads to a penalized optimal transport (POT) objective, which can be efficiently minimized using stochastic gradient descent by sampling from $P_X$ and $P_G$. We show that POT for the 2-Wasserstein distance coincides with the objective heuristically employed in adversarial auto-encoders (AAE) (Makhzani et al., 2016), which provides the first theoretical justification for AAEs known to the authors. We also compare POT to other popular techniques like variational auto-encoders (VAE) (Kingma and Welling, 2014). Our theoretical results include (a) a better understanding of the commonly observed blurriness of images generated by VAEs, and (b) establishing duality between Wasserstein GAN (Arjovsky and Bottou, 2017) and POT for the 1-Wasserstein distance.
