Abstract
In this paper, we show how the mixture components cooperate when they jointly adapt to maximize the ELBO. We build upon recent advances in the multiple and adaptive importance sampling literature. We then model the mixture components using separate encoder networks and show empirically that the ELBO is monotonically non-decreasing as a function of the number of mixture components. These results hold for a range of different VAE architectures on the MNIST, FashionMNIST, and CIFAR-10 datasets. In this work, we also demonstrate that increasing the number of mixture components improves the latent-representation capabilities of the VAE on both image and single-cell datasets. This cooperative behavior motivates that using Mixture VAEs should be considered a standard approach for obtaining more flexible variational approximations. Finally, Mixture VAEs are here, for the first time, compared and combined with normalizing flows, hierarchical models and/or the VampPrior in an extensive ablation study. Multiple of our Mixture VAEs achieve state-of-the-art log-likelihood results for VAE architectures on the MNIST and FashionMNIST datasets. The experiments are reproducible using our code, provided here: https://github.com/lagergren-lab/mixturevaes.
Introduction
Variational Autoencoders (VAEs) are a cornerstone of generative modeling, yet they frequently struggle to approximate complex, multi-modal posterior distributions. While advancements like Normalizing Flows (NFs) and hierarchical architectures have been developed to address these limitations, mixture models—utilizing multiple encoders to represent the latent space—have often been overlooked. This research investigates the interaction between mixture components during training, demonstrating that they do not merely act as an ensemble of independent models but instead actively cooperate to cover the target distribution.
Methodology: The MISELBO Objective
The foundational contribution of this work is the use of the Multiple Importance Sampling Evidence Lower Bound (MISELBO). Unlike standard ensemble methods where models are trained independently, MISELBO facilitates joint training of mixture components.
The authors distinguish between "Ensemble VAEs" (independent components) and "Mixture VAEs" (jointly learned components). In the latter, the joint learning objective forces components to "cooperate" by spreading out to cover different regions of the target distribution. This is mathematically driven by the MISELBO objective, where the presence of other components in the denominator creates pressure for individual encoders to move away from each other and capture lighter modes that independent ensembles might ignore.
The study also provides a "Mixture Cookbook" for integrating these components into existing frameworks, including hierarchical models, Normalizing Flows (Inverse Autoregressive Flows), and VampPrior models.
Key Insights and Results
Empirical Monotonicity and Cooperation
A primary finding is that the Negative Log-Likelihood (NLL) is a monotonically non-increasing function of the number of mixture components ($S$). This suggests that adding more encoders consistently improves model performance without immediate saturation. This improvement is attributed to the "cooperation" effect, where components avoid redundancy to maximize the overall coverage of the latent space. This training process is essentially a gradient-based version of Adaptive Importance Sampling (AIS).
Performance Benchmarks
The researchers evaluated the Mixture VAE on image datasets (MNIST, FashionMNIST, CIFAR-10) and biological data (CORTEX single-cell RNA-seq).
- State-of-the-Art Results: A "Composite Model" combining hierarchical structures, Normalizing Flows, and VampPrior achieved SOTA log-likelihoods on MNIST (NLL: 77.23) and FashionMNIST (NLL: 222.38).
- Latent Representation Quality: Linear classifiers trained on the latent space of Mixture VAEs consistently outperformed vanilla and ensemble counterparts, indicating superior feature extraction.
- Biological Data: On the CORTEX dataset, the Mixture VAE outperformed the standard scVI baseline in clustering tasks, as measured by the Adjusted Rand Index and Normalized Mutual Information.
Discussion and Future Work
While Mixture VAEs offer significant performance gains, they currently require separate encoder networks for each component, leading to linear parameter growth with $S$. Future research could explore weight-sharing schemes to mitigate this scaling issue. Additionally, while density estimation (NLL) is significantly improved, further investigation into the visual fidelity and diversity of generated samples is warranted. The authors also suggest extending these techniques to more complex latent structures, such as those found in phylogenetic inference.
In conclusion, Mixture VAEs represent a robust, "off-the-shelf" enhancement for variational inference, bridging the gap between machine learning and adaptive importance sampling to provide more flexible and accurate posterior approximations.
Summary updated