Learned Reference-based Diffusion Sampler for multi-modal distributions

Maxence Noble, Louis Grenioux, Marylou Gabrié, Alain Oliviero Durmus

Sampling from complex, multi-modal probability distributions is a cornerstone of Bayesian statistics, statistical mechanics, and molecular dynamics. However, when modes are separated by high "energy barriers," standard Markov Chain Monte Carlo (MCMC) methods struggle to move between them, leading to biased results. While recent diffusion-based samplers offer a promising alternative by bridging a simple base distribution to the target, they often fail to capture the correct relative weights of the modes without extensive hyperparameter tuning.

In this paper, researchers introduce the Learned Reference-based Diffusion Sampler (LRDS), a method that leverages prior knowledge of mode locations to learn a tailored reference distribution, ensuring accurate sampling even in high-dimensional, multi-modal settings.

TL;DR

LRDS is a variational diffusion-based sampler that accurately captures the global structure of multi-modal distributions by learning an expressive reference model (GMM or EBM) from known mode locations. It eliminates the need for ground-truth samples to tune critical hyperparameters, outperforming state-of-the-art samplers in high-dimensional and complex geometric tasks.

What Problem Does This Paper Address?

The core challenge is sampling from a target distribution $\pi$ when we only have access to its unnormalized density. In multi-modal settings, samplers often suffer from mode collapse (getting stuck in one mode) or fail to recover the correct mode weights (the relative probability mass of each mode).

Existing diffusion-based methods like Path Integral Sampler (PIS) or Denoising Diffusion Sampler (DDS) use a simple Gaussian reference. The performance of these methods is highly sensitive to the variance ($\sigma$) of this reference. As shown in the figure below, if $\sigma$ is not perfectly tuned, the error in estimating mode weights skyrockets. Since tuning usually requires ground-truth samples—which are exactly what we are trying to generate—these methods are difficult to use in practice.

Sensitivity of existing methods (LV-PIS, LV-DDS) to the reference variance $\sigma$.

Methods

LRDS operates in two main stages:

  1. Learning the Reference: Instead of a fixed Gaussian, LRDS learns a reference distribution $\pi^{ref}$ that shares the multi-modality of the target.
  2. Reference Sampling: It runs local MCMC chains initialized at known mode locations to collect samples from high-density regions.
  3. GMM-LRDS: For many targets, it fits a Gaussian Mixture Model (GMM) to these samples. This is computationally lightweight and provides analytical scores.
  4. EBM-LRDS: For targets with complex geometries (e.g., ring shapes), it fits a multi-level Energy-Based Model (EBM), which is more expressive but computationally heavier.
  5. Variational Optimization: It uses this learned reference to guide a diffusion process. It minimizes a Log-Variance (LV) loss on path measures, which is more robust to mode collapse than the standard reverse KL divergence. This optimization learns a "guidance term" that corrects the reference process to match the true target distribution.

Datasets

The authors evaluated LRDS against a wide array of challenging benchmarks:

  • High-dimensional Gaussian Mixtures: Bi-modal targets in 16, 32, and 64 dimensions with varying conditioning.
  • Statistical Mechanics: The $\phi^4$ field system ($d=32$), a discretized model used to study phase transitions.
  • Complex Geometries: 2D "Rings" (3 ring-shaped modes) and "Checkerboard" (8 square modes) distributions.
  • Real-world Bayesian Inference: Logistic regression tasks using the Ionosphere, Sonar, German Credit, and Breast Cancer datasets.

Key Insights and Ideas

  • The Reference is Decisive: The paper demonstrates that the "bridge" built by diffusion is only as good as its reference. A multi-modal reference acts as a much better prior, allowing the sampler to "see" all modes from the start.
  • Bypassing the Tuning Trap: By learning the reference from mode locations, LRDS removes the need for ground-truth samples to tune hyperparameters like isotropic variance.
  • LV Loss for Exploration: Using the Log-Variance loss instead of KL divergence provides zero variance at the optimal solution and significantly improves mode exploration.
  • Expressivity Matters: While GMMs work for many cases, EBMs are necessary when the modes have non-Gaussian, complex shapes.

Key Results

  • Superior Weight Recovery: In 64-dimensional Gaussian mixtures, GMM-LRDS achieved an absolute mode weight error of only 4.1%, while competing methods like PIS and DDS collapsed or showed errors exceeding 30%.
  • Robustness to Mode Collapse: On the $\phi^4$ field system, LRDS was the only method to accurately estimate relative mode weights across different energy barrier heights.
  • Handling Complex Shapes: EBM-LRDS successfully recovered the geometry and weights of the Rings and Checkerboard distributions, where GMM-based approaches failed to capture the non-Gaussian structure.
LRDS successfully recovers the correct mode weights (50.0%) in multi-modal target distributions.

Limitations and Future Work

  • Prior Knowledge: LRDS assumes the locations of the modes are known a priori. While common in fields like physics (where minima of energy landscapes are often known), it limits the method's use in "blind" discovery tasks.
  • Computational Cost: Pre-training the reference model (especially the EBM) adds an extra step and computational overhead compared to simpler samplers.
  • Scaling to Manifolds: The authors suggest that future work could extend EBM-LRDS to non-Euclidean spaces, which would be highly beneficial for sampling molecular configurations in internal coordinates.

Summary updated

BibTeX
@inproceedings{noble2025learned,
  author = {Maxence Noble and Louis Grenioux and Marylou Gabrié and Alain Oliviero Durmus},
  title = {{Learned Reference-based Diffusion Sampler for multi-modal distributions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=fmJUYgmMbL},
}
Figure