Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling

Denis Blessing, Xiaogang Jia, Johannes Esslinger, Francisco Vargas, Gerhard Neumann

Abstract

Monte Carlo methods, Variational Inference, and their combinations play a pivotal role in sampling from intractable probability distributions. However, current studies lack a unified evaluation framework, relying on disparate performance measures and limited method comparisons across diverse tasks. This complicates the assessment of progress and hinders the decision-making of practitioners. In response, this work introduces a comprehensive benchmark that evaluates 16 different sampling algorithms using a standardized task suite and a broad range of performance criteria. By moving beyond the standard Evidence Lower Bound (ELBO) and introducing novel metrics to quantify "mode collapse," the authors reveal critical trade-offs between estimation accuracy and distribution coverage, particularly in high-dimensional spaces.

Introduction: The Problem with ELBO

Sampling from complex, high-dimensional probability distributions is a cornerstone of Bayesian statistics and the natural sciences. Traditionally, researchers have relied on either Monte Carlo (MC) methods or Variational Inference (VI). Recently, a surge of "Variational Monte Carlo" hybrids has emerged, but the field lacks a unified way to compare their efficacy.

The standard metric for evaluating these models, the Evidence Lower Bound (ELBO), is inherently "mode-seeking." This means an algorithm can achieve a very high ELBO by accurately modeling just one small part—or one "mode"—of a distribution while completely ignoring the rest. This failure state is known as mode collapse. Without a standardized benchmark and metrics sensitive to this failure, practitioners cannot easily choose the best tool for their specific multimodal problems.

Evolution of ELBO and EUBO during sampling. ELBO can remain high even when samples collapse into a single mode ($t_2$), whereas EUBO penalizes this lack of coverage, requiring samples to spread across all modes ($t_3, t_4$) to converge.

Methodology: Categorization and Novel Metrics

The authors categorize modern sampling methods into three main groups to structure their evaluation:

  1. Tractable Density Models: Simple models like Mean-Field VI (MFVI) and Gaussian Mixture Models (GMMVI) where the likelihood is easy to compute.
  2. Sequential Importance Sampling (SIS): Methods like Annealed Importance Sampling (AIS) and Flow Annealed Importance Sampling Bootstrap (FAB) that evolve a simple distribution into the target through a series of intermediate steps.
  3. Diffusion-Based Methods: A newer class of samplers (e.g., Path Integral Sampler, Denoising Diffusion Sampler) that treat sampling as a generative process governed by stochastic differential equations.

The Innovation: To fix the evaluation gap caused by ELBO's mode-seeking behavior, the authors propose utilizing the Evidence Upper Bound (EUBO). Unlike ELBO, EUBO is "mass-covering" and heavily penalizes models that miss parts of the target distribution.

Additionally, they introduce Entropic Mode Coverage (EMC), a heuristic metric that uses "mode descriptors" to quantify exactly how many distinct regions of the target distribution the sampler has successfully reached.

Experimental Setup

The benchmark includes a diverse "task suite" ranging from low to high dimensions to stress-test the algorithms:

  • Synthetic Targets: The "Funnel" distribution (testing high curvature), Mixtures of Gaussians (MoG), and Mixtures of Student-t distributions (MoS).
  • Image-based Targets: Variants of MNIST (Digits) and Fashion-MNIST, where the sampler must find the "modes" corresponding to different clothing items or numbers.
  • Real-world Bayesian Inference: Logistic regression on datasets like Credit, Cancer, Ionosphere, and Sonar; Random Effect Regression (Seeds); and high-dimensional Spatial Statistics (Log Gaussian Cox Process).

Key Insights and Results

Through extensive benchmarking, several critical insights regarding sampler performance and evaluation emerged:

  • The Dimensionality Trap: Mode collapse is significantly more severe in high dimensions. Methods that look perfect in 2D often fail to cover the distribution when scaled up to 50 or 200 dimensions.
  • ELBO is a Deceptive Metric: The authors empirically demonstrate that a model can have a "good" ELBO while suffering from total mode collapse. This confirms that relying solely on ELBO for evaluation is dangerous for multimodal problems. For instance, on the Fashion dataset, while MFVI achieved a respectable ELBO, its EMC was 0.0 (total collapse). In contrast, the General Bridge Sampler (GBS) achieved an EMC of 0.621, indicating it captured significantly more of the distribution's diversity.
  • The Resampling Paradox: In Sequential Monte Carlo, the "resampling" step—usually intended to improve performance—can actually cause mode collapse in high-dimensional settings.
  • Robustness of GMMVI and FAB: Despite being older or simpler in some respects, Gaussian Mixture Models (GMMVI) and Flow-based AIS (FAB) were among the most consistent performers across the entire benchmark. GMMVI was also found to be highly sample-efficient due to its use of a replay buffer, requiring orders of magnitude fewer target evaluations than Langevin-based diffusion methods.
  • Diffusion Resilience vs. Normalization: Diffusion-based methods generally showed better resilience against mode collapse than pure VI methods. However, they often struggled to provide accurate estimates of the normalization constant ($Z$).
  • High-Dimensional Scaling: In the challenging 1600-dimensional Log Gaussian Cox Process task, most methods struggled. However, CRAFT (Continual Repeated Annealed Flow Transport) achieved the highest ELBO (-495.291), outperforming standard MFVI.

Limitations and Future Work

The authors acknowledge certain limitations in their proposed metrics. The new EUBO metric introduces "looseness" when latent variables are involved, making it difficult to perfectly compare different categories of models (like diffusion vs. tractable flows). Furthermore, the EMC metric requires "mode descriptors." While these are easy to define for synthetic mixtures or labeled images, they are not always available for arbitrary "black-box" distributions.

Future work should focus on developing more "objective" metrics that do not rely on subjective choices like kernel selection (in Maximum Mean Discrepancy) or cost functions (in Wasserstein distance). Additionally, further exploration is needed to scale these samplers to even higher-dimensional scientific data effectively.

Summary updated

Abstract

Monte Carlo methods, Variational Inference, and their combinations play a pivotal role in sampling from intractable probability distributions. However, current studies lack a unified evaluation framework, relying on disparate performance measures and limited method comparisons across diverse tasks, complicating the assessment of progress and hindering the decision-making of practitioners. In response to these challenges, our work introduces a benchmark that evaluates sampling methods using a standardized task suite and a broad range of performance criteria. Moreover, we study existing metrics for quantifying mode collapse and introduce novel metrics for this purpose. Our findings provide insights into strengths and weaknesses of existing sampling methods, serving as a valuable reference for future developments.
BibTeX
@inproceedings{blessing2024beyond,
  author = {Denis Blessing and Xiaogang Jia and Johannes Esslinger and Francisco Vargas and Gerhard Neumann},
  title = {{Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=fVg9YrSllr},
}
Figure