NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cooperation in the Latent Space: The Benefits of Adding Mixture Components in Variational Autoencoders

Oskar Kviman, Ricky Molén, Alexandra Hotti, Semih Kurt, Víctor Elvira, Jens Lagergren

Introduction

By treating the variational posterior as a mixture of distributions rather than a single one, Variational Autoencoders (VAEs) can achieve significantly better performance. This paper demonstrates that mixture components "cooperate" to cover complex target distributions, leading to monotonic improvements in log-likelihood and superior latent representations across multiple architectures and datasets.

The Limitations of Standard VAEs

Standard VAEs typically use a simple Gaussian distribution to approximate the posterior. While mathematically convenient, this "one-size-fits-all" approach is often too rigid to capture the complex, multi-modal nature of real-world data distributions in the latent space.

Researchers have previously attempted to add flexibility using Normalizing Flows or hierarchical models, but mixture models—despite being a classic statistical tool—have been somewhat sidelined. The authors identify a critical gap: the field lacks a comprehensive understanding of how mixture components interact during training and how to systematically combine them with other state-of-the-art VAE techniques.

Introducing the Mixture VAE

The authors bridge the gap between Variational Inference (VI) and Adaptive Importance Sampling (AIS). They utilize the MISELBO (Multiple Importance Sampling Evidence Lower Bound), an objective function that allows multiple mixture components to be learned jointly.

Key methodological contributions include:

  • Separate Encoders: Each mixture component is modeled by its own dedicated encoder network.
  • The "Mixture Cookbook": A systematic guide for integrating mixtures with three popular VAE enhancements:
  • Hierarchical Models: Stacking latent variables in layers.
  • Normalizing Flows (NFs): Using invertible transformations to warp simple distributions into complex ones.
  • VampPrior: A prior distribution based on "pseudo-inputs" from the data.
  • The Composite Model: A highly flexible "super-VAE" architecture that combines all the above elements into a single framework.

Experimental Setup

The researchers evaluated their approach on four diverse datasets to ensure robustness and scalability:

  • MNIST: The classic handwritten digit benchmark.
  • FashionMNIST: A more complex dataset of clothing items.
  • CIFAR-10: Natural images, used primarily to test the model's scalability.
  • CORTEX: Single-cell transcriptome data from mouse cortex cells, demonstrating the model's utility in bioinformatics.

Cooperation and Monotonicity in the Latent Space

Cooperation is Key

The most striking finding of the study is that mixture components actively cooperate. When trained jointly using the MISELBO objective, components naturally "divvy up" the target distribution to ensure full coverage. This behavior contrasts sharply with "Ensemble VAEs" (where components are trained independently), which tend to over-concentrate on the same easy-to-model regions of the distribution.

Latent space visualization demonstrating how multiple mixture components (represented by different colors) cooperate to cover a complex target distribution.

The "Monotonicity" Property

In every experiment conducted, adding more mixture components ($S$) resulted in a non-decreasing Evidence Lower Bound (ELBO) and a decreasing Negative Log-Likelihood (NLL). This suggests that adding mixture components is a highly reliable method for boosting model performance, provided the computational budget allows for it.

Latent Space Diversity

Mixture VAEs produce significantly more diverse latent representations. The authors measured this using Jensen-Shannon Divergence (JSD), finding that mixtures maintain high diversity even as more components are added. This diversity directly explains their superior performance in downstream tasks like classification.

Key Results

  • State-of-the-Art Performance: The proposed "Composite Model" achieved state-of-the-art log-likelihood results for VAE architectures on MNIST (NLL: 77.23) and FashionMNIST (NLL: 222.38).
  • Better Representations: On the CORTEX dataset, the Mixture VAE outperformed both vanilla VAEs and ensembles in linear classification accuracy. This proves that the learned latent features are more informative for complex tasks like biological cell-type identification.
  • Robustness: The benefits of mixtures held true across a variety of base architectures, ranging from simple Multi-Layer Perceptrons (MLPs) to complex PixelCNN decoders.

Limitations and Future Directions

While highly effective, the approach does introduce computational overhead. Because each mixture component requires its own encoder, the total parameter count and memory requirements scale with the number of components. The authors note that their largest model ($S=4$) took 52 hours to train on a single GPU, though these encoders can theoretically be run in parallel.

Future work will likely investigate how the choice of mixture approximation affects the learning dynamics of the decoder (the generative model), as this paper focuses heavily on the encoder and latent space. Additionally, applying these mixture techniques to non-Euclidean latent spaces—such as those used in phylogenetic tree inference—represents a highly promising frontier.

Summary updated

BibTeX
@inproceedings{kviman2023cooperation,
  author = {Oskar Kviman and Ricky Molén and Alexandra Hotti and Semih Kurt and Víctor Elvira and Jens Lagergren},
  title = {{Cooperation in the Latent Space: The Benefits of Adding Mixture Components in Variational Autoencoders}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=1LwrewdXVJ},
}
Figure