Abstract
Traditional Variational Autoencoders (VAEs) are constrained by the limitations of the Evidence Lower Bound (ELBO) formulation, particularly when utilizing simplistic, non-analytic, or unknown prior distributions. These limitations inhibit the VAE's ability to generate high-quality samples and provide clear, interpretable latent representations. This work introduces the Entropy Decomposed Variational Autoencoder (ED-VAE), a novel re-formulation of the ELBO that explicitly includes entropy and cross-entropy components. This reformulation significantly enhances model flexibility, allowing for the integration of complex and non-standard priors. By providing more detailed control over the encoding and regularization of latent spaces, ED-VAE not only improves interpretability but also effectively captures the complex interactions between latent variables and observed data, thus leading to better generative performance.
Introduction
Variational Autoencoders (VAEs) are a powerful class of generative models, yet they are often restricted by the requirement for computationally tractable, analytic prior distributions. The standard ELBO formulation relies on a Kullback-Leibler (KL) divergence term that typically necessitates a closed-form expression, such as a standard Normal distribution. When faced with complex or domain-specific priors that lack such analytic forms, traditional VAEs often suffer from poor generative quality, posterior collapse, and a lack of latent space interpretability. ED-VAE addresses these issues by redesigning the objective function to accommodate any prior distribution that can be sampled.
Methods: ELBO Surgery
The primary contribution of this work is the decomposition of the traditional ELBO into three interpretable components, a process referred to as "ELBO Surgery":
- Reconstruction Accuracy: The standard expected log-likelihood of the data.
- Mutual Information ($I_q(x, z)$): This term explicitly measures the information shared between the input data and the latent variables. To maintain tractability without an analytic form, the authors utilize the InfoNCE loss as a lower bound.
- Marginal KL Divergence: This is further decomposed into the Entropy ($H[q_\phi(z)]$) of the encoded distribution and the Cross-Entropy ($H[q_\phi(z), p(z)]$) between the learned latent distribution and the prior.
Crucially, the cross-entropy term only requires the ability to sample from the prior distribution, removing the need for a closed-form density function and enabling the use of highly complex latent structures.
Experimental Evaluation
The ED-VAE was evaluated against a standard VAE baseline using two synthetic datasets:
- Dataset 1 (Gaussian Prior): A baseline using a standard multidimensional Gaussian to ensure the new formulation remains effective under standard conditions.
- Dataset 2 (Complex Non-Gaussian Prior): A challenging mixture of Gaussians modulated by sinusoidal functions, creating non-linear interactions that standard VAEs struggle to model.
Results and Discussion
As shown in the experimental results, ED-VAE consistently outperformed the traditional VAE, with the performance gap widening significantly on the complex dataset.
On Dataset 2, the traditional VAE failed to adapt, maintaining a high KL divergence (12.5). In contrast, ED-VAE achieved a KLD near zero (0.05), demonstrating its ability to successfully align the latent space with complex, non-Gaussian priors. Furthermore, by explicitly optimizing for mutual information, ED-VAE effectively mitigates posterior collapse, ensuring that latent representations remain informative of the input data.
Conclusion
ED-VAE introduces a flexible framework for latent variable modeling by shifting the focus from analytic formulas to sampling-based cross-entropy. While this flexibility comes with increased computational costs during training, it allows for granular regularization and the use of "black-box" priors. Future research will focus on scaling this architecture to high-dimensional real-world datasets and exploring methods to infer unknown priors directly from data in an unsupervised manner.
Summary updated