Continuously Tempered Diffusion Samplers

Ezra Erives, Bowen Jing, Peter Holderrieth, Tommi Jaakkola

TL;DR

This paper introduces "Continuously Tempered Diffusion Samplers" (CTDS), a novel approach to improve neural samplers for complex probability distributions. By adapting techniques from molecular dynamics, CTDS enhances the exploration capabilities during training, leading to significantly better sampling performance compared to existing methods.

What Problem Does This Paper Address?

Sampling from complex, unnormalized probability distributions is a fundamental challenge in many scientific fields, including Bayesian statistics and machine learning. Traditional methods like MCMC can struggle with high-dimensional or multi-modal distributions, exhibiting "pseudo-ergodic behavior" where they fail to explore the entire probability space efficiently. Recent neural sampler approaches attempt to overcome this by learning a "transport" or vector field that guides samples along an annealed path of distributions, from a simple source to the target. However, a critical component is the "proposal distribution" used during training to evaluate the loss. Existing methods for generating this proposal can lead to insufficient exploration, especially when the annealing path encounters high energy barriers or isolated modes. This paper addresses this limitation by proposing a more robust proposal distribution that leverages continuous tempering.

Methods

The core contribution is the Continuously Tempered Diffusion Sampler (CTDS). This method extends the concept of an annealing path (a sequence of densities indexed by time $t$) to a density continuum indexed by both time $t$ and an inverse temperature parameter $\beta$. This is achieved by introducing a multi-temperature Physics-Informed Neural Network (PINN) objective.

The key innovation lies in how CTDS constructs the proposal distribution for training. Instead of relying solely on annealed Langevin dynamics, CTDS incorporates continuous tempering techniques, inspired by molecular dynamics. This involves running Langevin dynamics over an augmented state space that includes a continuous temperature variable. This allows the sampler to explore lower energy barriers at higher temperatures, which in turn drives better exploration at the target temperature of interest.

The paper also details:

  • Tempered Density Continuum: Defining a family of densities $\pi_{t,\beta}(x)$ indexed by time $t$ and inverse temperature $\beta$.
  • Multi-Temperature PINN Objective: A modified PINN loss that operates over this density continuum, allowing for amortized training across temperatures.
  • Temperature Reparameterization: A technique to map the inverse temperature $\beta$ to a continuous variable $\xi$, resolving challenges with boundary conditions and ensuring effective exploration across the temperature range.
  • Controlled Jarzynski Equality: A theoretical result that allows for reweighting samples from the CTDS forward process to match the true joint density, enabling more accurate training and importance sampling.

Datasets

  • 40-mode Gaussian Mixture: This is a challenging, synthetically generated dataset used for evaluation. It's described as a modified version of a benchmark from Midgley et al. (2023), specifically designed to test the sampler's ability to discover modes. The authors emphasize that their setup (e.g., source distribution $\pi_0 = \mathcal{N}(0, 5.0I_d)$) ensures that mode discovery is due to the proposal's exploration capabilities, not an overly easy initialization.

Key Insights and Ideas

  • Tempering for Exploration: The core insight is that by explicitly modeling and leveraging a continuum of temperatures during training, neural samplers can overcome high energy barriers and explore complex landscapes more effectively. Higher temperatures "melt" barriers, allowing for broader exploration, which then informs better sampling at the target temperature.
  • Bridging Molecular Dynamics and Neural Samplers: The paper successfully adapts well-established continuous tempering techniques from molecular dynamics to the domain of neural samplers, demonstrating a powerful cross-pollination of ideas.
  • Proposal Distribution is Key: The work highlights that the quality of the proposal distribution used during PINN-based training is paramount for sampler performance. A poorly exploring proposal leads to a poorly performing sampler, regardless of the underlying PINN loss.
  • Continuous vs. Discrete Annealing: While previous methods used discrete annealing steps, CTDS's continuous tempering offers a smoother and potentially more efficient way to navigate the density landscape.

Key Results

  • Improved Sampling Performance: CTDS-trained samplers significantly outperform baseline methods (including standard and overdamped Langevin annealing) on the challenging 40-mode Gaussian mixture target.
  • Lower W2 and ELBO: CTDS achieved lower 2-Wasserstein distances ($W_2$) and higher Evidence Lower Bounds (ELBOs), indicating more accurate and efficient sampling.
  • Lowest EUBO with Reweighting: The Jarzynski-reweighted CTDS proposal achieved the lowest Evidence Upper Bound (EUBO), suggesting it provides the tightest bound on the evidence.
  • Visualization of Exploration: Figure 2 shows that before training, CTDS samples are spread across inverse temperatures, while after training, they concentrate at the target temperature ($t=1.0$), demonstrating effective exploration and convergence.

Limitations and Future Work

  • Dimensionality: The paper focuses on a 2D Gaussian mixture. The authors suggest extending CTDS to higher dimensional targets as future work.
  • Target Complexity: While the 40-mode Gaussian is challenging, future work could explore CTDS on even more complex distributions or real-world scientific applications.
  • Hyperparameter Tuning: The performance of CTDS, like any complex model, likely depends on careful hyperparameter tuning (e.g., $\Delta, \Delta', \eta$ in the reparameterization and potentials). The paper mentions these are hyperparameters, but a systematic study of their impact is not presented.

Summary updated

BibTeX
@inproceedings{erives2025continuously,
  author = {Ezra Erives and Bowen Jing and Peter Holderrieth and Tommi Jaakkola},
  title = {{Continuously Tempered Diffusion Samplers}},
  booktitle = {FPI @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=060KGPDxbH},
}
Figure