Abstract
Variational inference for latent variable models is prevalent in various machine learning problems, typically solved by maximizing the Evidence Lower Bound (ELBO) of the true data likelihood with respect to a variational distribution. However, freely enriching the family of variational distribution is challenging since the ELBO requires variational likelihood evaluations of the latent variables. In this paper, we propose a novel framework to enrich the variational family by incorporating auxiliary variables to the variational family. The resulting inference network doesn't require density evaluations for the auxiliary variables and thus complex implicit densities over the auxiliary variables can be constructed by neural networks. It can be shown that the actual variational posterior of the proposed approach is essentially modeling a rich probabilistic mixture of simple variational posterior indexed by auxiliary variables, thus a flexible inference model can be built. Empirical evaluations on several density estimation tasks demonstrates the effectiveness of the proposed method.
Introduction: Breaking the Gaussian Bottleneck
In Variational Autoencoders (VAEs), the goal is to approximate an intractable posterior distribution $p(z|x)$—the probability of a latent code $z$ given data $x$—using a simpler, tractable distribution $q(z|x)$. The standard approach assumes $q(z|x)$ is a Gaussian. While mathematically convenient, this is a significant oversimplification. Real-world data often possesses complex, multi-modal, or highly skewed latent structures that a single Gaussian cannot capture. This mismatch creates a gap in the Evidence Lower Bound (ELBO), limiting the model's ability to generate high-quality data or learn meaningful representations.
The primary challenge in making $q(z|x)$ more complex (e.g., using mixture models or deep implicit models) is the requirement to calculate its density ($\log q$) to optimize the ELBO. Calculating the density of complex neural-network-driven distributions is often computationally prohibitive.
Methodology: Asymmetric Variational Autoencoders (AVAE)
The proposed framework, termed Asymmetric Variational Autoencoders (AVAE), enriches the flexibility of the inference model by incorporating "auxiliary variables" that do not require explicit density evaluations. The "asymmetry" refers to the inference model (encoder) being significantly more flexible than the generative model (decoder).
The Auxiliary Variable Trick
Instead of modeling $q(z|x)$ directly, the authors introduce an auxiliary random variable $\tau$. The joint distribution is defined as: $$q(z, \tau | x) = q(\tau | x)q(z | \tau, x)$$
The actual variational posterior is the marginal: $q(z|x) = \mathbb{E}_{q(\tau|x)}[q(z|\tau, x)]$. This approach offers two key advantages:
- Implicit $\tau$: The distribution $q(\tau|x)$ is modeled implicitly using a neural network. We can sample from it easily, but we do not need to evaluate its density.
- Complex Mixture: Because $q(z|x)$ is an expectation (a mixture) of Gaussians indexed by a complex $\tau$, the resulting posterior can approximate almost any shape.
By treating the posterior as a mixture of simple distributions indexed by a neural network, the model effectively becomes a universal approximator for the true posterior. Furthermore, this method is orthogonal to other VAE improvements, such as Normalizing Flows or Importance Weighted sampling (IW-AVAE).
Empirical Evaluation
The researchers evaluated AVAE on classic generative modeling benchmarks and synthetic tasks:
- MNIST & OMNIGLOT: On both datasets, AVAE and its importance-weighted variant (IW-AVAE) consistently achieved lower Negative Log-Likelihood (NLL) than standard VAEs. For instance, on MNIST, IW-AVAE achieved an NLL of approximately 83.77, significantly outperforming standard VAE benchmarks (85-88).
- Latent Space Visualization: Using t-SNE, the authors demonstrated that AVAE produces cleaner, more separable clusters in the latent space compared to standard VAEs, which often overlap different classes (e.g., digits 3 and 5).
- Synthetic 2D Densities: In tests with "ring" and "banana" shapes, standard VAEs could only produce circular Gaussian blobs. In contrast, AVAE successfully captured the complex geometries of the target distributions.
Conclusion and Future Work
AVAE provides a powerful mechanism for building flexible inference models using likelihood-free components. While the method introduces some computational overhead due to multiple sampling steps during training, it yields tighter evidence bounds and superior latent representations. Future work may explore combining these flexible inference networks with more sophisticated generative models to further enhance data synthesis capabilities.
Summary updated