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

Learning with MISELBO: The Mixture Cookbook

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

Abstract

Standard Variational Autoencoders (VAEs) frequently encounter the "posterior mismatch" problem, where the approximate posterior fails to capture the complexity of the true latent distribution. While flexible priors and flows mitigate this, mixture models remain underutilized due to training challenges. This paper introduces the Multiple Importance Sampling Evidence Lower Bound (MISELBO) objective, which fosters cooperative behavior among mixture components. We present a "Mixture Cookbook" for integrating these components with hierarchical structures and normalizing flows. Our empirical results demonstrate that log-likelihood improves monotonically with the number of mixture components, achieving state-of-the-art performance on benchmark datasets like MNIST and FashionMNIST while enhancing latent representation quality for downstream tasks.

Introduction

The efficacy of Variational Autoencoders (VAEs) is often limited by the simplicity of the variational posterior, typically a single Gaussian. This leads to a gap between the true and approximate posterior distributions, known as posterior mismatch. To address this, researchers have explored Normalizing Flows (NFs) and hierarchical latent variables. However, mixture models—which utilize multiple "expert" components to represent the latent space—have historically struggled with redundant coverage when trained independently. When components are trained as a simple ensemble, they often "compete" for the same high-probability regions, failing to efficiently cover the entire target distribution.

In this work, we address the challenge of training mixture components jointly. We demonstrate that using the MISELBO objective allows components to "cooperate," effectively partitioning the latent space to cover distinct modes or regions of the target distribution. This "divide and conquer" strategy significantly improves the model's expressive power without the pitfalls of standard ensemble methods.

Methods: The MISELBO Objective and the Mixture Cookbook

The core innovation is the MISELBO (Multiple Importance Sampling Evidence Lower Bound) objective. Unlike the standard ELBO, which optimizes a single proposal, MISELBO enables the simultaneous learning of a mixture of proposal distributions. This objective naturally encourages diversity among components, drawing a theoretical parallel to Adaptive Importance Sampling (AIS). By treating the mixture components as a set of proposals, the model learns to distribute them across the latent space to minimize the variance of the importance weights.

The Mixture Cookbook

We provide explicit formulations for combining mixture components with three advanced VAE techniques:

  1. Hierarchical Models: Integrating mixtures across multiple layers of latent variables allows for capturing dependencies at different scales of abstraction.
  2. Normalizing Flows: Utilizing a "shared flow" architecture where complex transformations are applied to samples from all mixture components. This approach keeps memory costs manageable while providing the flexibility of flows to each component.
  3. VampPrior: Employing a mixture of variational posteriors as the prior distribution, which aligns the prior more closely with the aggregated posterior.

To maximize flexibility, each mixture component is paired with its own dedicated encoder network. This allows the model to capture highly non-Gaussian or multi-modal structures in the data by assigning different encoders to different data modes.

Visualizing component cooperation: The top and bottom rows show various target distributions (blue) and how MISELBO-trained mixture components (colored clusters) jointly cover them. Note how components partition the ring and multi-modal Gaussian distributions.

Key Insights and Results

Our investigation reveals several critical properties of MISELBO-trained mixture VAEs.

Cooperation vs. Competition

In traditional ensembles, components often cluster around the same major mode, leaving other parts of the distribution poorly represented. Under MISELBO, components exhibit cooperative behavior, spreading out to cover different facets of the data distribution. As shown in the visualizations, the components (represented by different colors) partition complex shapes like rings or multiple Gaussian clusters, effectively "dividing and conquering" the latent space.

A detailed view of mixture components (colors) cooperating to cover a ring-shaped target distribution. Each color represents a different encoder's contribution to the latent space coverage.

Empirical Monotonicity

A significant finding is the monotonic improvement of the Negative Log-Likelihood (NLL) as the number of mixture components ($S$) increases. Unlike many deep learning hyperparameters where increasing complexity can lead to overfitting or optimization instability, adding encoders consistently improves performance. On MNIST, for instance, NLL improved steadily as $S$ was increased from 1 to 12.

Performance Benchmarks

The "Composite Model" achieved state-of-the-art NLL results on standard benchmarks:

  • MNIST: 77.23
  • FashionMNIST: 222.38

Furthermore, we addressed the "Big IWAE" fallacy. One might assume that the benefits of mixtures come solely from the increased parameter count. However, when comparing our mixture model to a standard Importance Weighted Autoencoder (IWAE) with an equivalent number of parameters, the Mixture VAE consistently outperformed the scaled-up IWAE. This proves that the architectural benefit of cooperative mixtures exceeds simple parameter scaling.

Downstream Utility on Biological Data

We evaluated the model on the CORTEX dataset, which contains single-cell transcriptomics (RNA-seq) from 3,005 mouse cortex cells. The Mixture VAE demonstrated superior performance in linear classification and clustering metrics, such as the Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI). As the number of components increased, the model's ability to distinguish between different cell types improved, suggesting that the latent representations are more semantically meaningful.

Conclusion and Future Work

The MISELBO objective and the accompanying "Mixture Cookbook" provide a robust framework for enhancing VAEs. By fostering cooperation among mixture components, we achieve significant gains in both density estimation and latent representation quality. While the use of separate encoders increases parameter costs, future research could explore weight-sharing schemes to reduce overhead. Additionally, applying these techniques to domains with complex, high-dimensional latent spaces, such as phylogenetics, remains a promising avenue for future work.

Summary updated

BibTeX
@inproceedings{kviman2023learning,
  author = {Oskar Kviman and Ricky Molén and Alexandra Hotti and Semih Kurt and Víctor Elvira and Jens Lagergren},
  title = {{Learning with MISELBO: The Mixture Cookbook}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=1LwrewdXVJ},
}
Figure