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

Ensemble-Based Annealed Importance Sampling

Haoxuan Chen, Lexing Ying · OpenReview

Abstract

Sampling from a multimodal distribution is a fundamental and challenging problem in computational science and statistics. Among various approaches proposed for this task, one popular method is Annealed Importance Sampling (AIS). In this paper, we propose an ensemble-based version of AIS by combining it with population-based Monte Carlo methods to improve its efficiency. By keeping track of an ensemble instead of a single particle along some continuation path between the starting distribution and the target distribution, we take advantage of the interaction within the ensemble to encourage the exploration of undiscovered modes. Specifically, our main idea is to utilize either the snooker algorithm or the genetic algorithm used in Evolutionary Monte Carlo. We discuss how the proposed algorithm can be implemented and derive a partial differential equation governing the evolution of the ensemble under the continuous time and mean-field limit. We also test the efficiency of the proposed algorithm on various continuous and discrete distributions.

Introduction

Sampling from unnormalized distributions is a cornerstone of Bayesian inference, machine learning, and statistical physics. However, when a distribution is multimodal—characterized by multiple "peaks" of high probability separated by "valleys" of low probability—standard Markov Chain Monte Carlo (MCMC) methods often suffer from metastability. In these scenarios, chains become trapped in local modes and fail to explore the global state space effectively.

Annealed Importance Sampling (AIS) was developed to mitigate this by gradually "melting" a simple, tractable distribution into the complex target distribution. While powerful, standard AIS generates samples independently. If no individual sample happens to land near a specific mode during the annealing process, that mode remains undiscovered. This paper introduces Ensemble-Based Annealed Importance Sampling, a framework that allows a population of particles to interact, sharing information to overcome the metastability trap.

Methodology

The proposed method replaces the independent chains of standard AIS with an interacting ensemble. The evolution of this ensemble is governed by three distinct mechanisms:

  1. Local Exploitation: The algorithm employs standard MCMC moves, such as Langevin Dynamics for continuous spaces or Glauber Dynamics for discrete spaces. These moves allow particles to refine their positions and explore local high-probability regions.
  2. Global Exploration: To prevent particles from becoming trapped, the authors incorporate the Snooker Algorithm (for continuous distributions) or Genetic Algorithms (for discrete ones). These mechanisms allow particles to use the positions of other ensemble members to make long-range jumps, effectively "sharing" the discovery of new modes across the population.
  3. Weight Balancing (Birth-Death Process): Standard AIS often suffers from "weight collapse," where a few samples dominate the importance weights. This framework utilizes birth-death dynamics to handle weights: particles in high-probability regions are duplicated, while those in low-probability regions are removed. This physically redistributes the population to match the target density, stabilizing the variance.

Theoretical Framework

A significant contribution of this work is the derivation of a Partial Differential Equation (PDE) that describes the density evolution of the ensemble in the mean-field limit (as the number of particles approaches infinity). This PDE provides a rigorous mathematical foundation, showing that the ensemble's behavior is a predictable combination of diffusion (Langevin), non-local jumps (Snooker), and reaction terms (Birth-Death).

Experimental Evaluation

The authors evaluated the Ensemble-Based AIS on several synthetic benchmarks designed to test mode discovery and convergence:

  • Gaussian Mixture Models (2D): A standard test featuring four distinct peaks.
  • Ginzburg-Landau Distributions (1D & 2D): Physics-inspired models used to study superconductivity, featuring symmetric local minimizers.
  • Product of Double Wells (20D): A high-dimensional challenge containing $2^{10} = 1024$ separate modes.
  • Ising Models (1D & 2D): Discrete distributions used to validate the Genetic Algorithm component of the framework.

Key Results

  • Superior Mode Discovery: In the 20D Double Well experiment, the Ensemble-Based AIS was the only method capable of discovering all 1,024 local modes. Standard AIS and non-interactive ensemble methods failed to locate specific high-dimensional coordinates.
  • Enhanced Convergence: Across GMM, Ginzburg-Landau, and Ising models, the proposed method achieved lower Kullback–Leibler (KL) divergence and lower $L_2$ error compared to standard AIS, often requiring significantly fewer time steps.
  • Estimation Accuracy: The method provided more accurate estimations of test functions (e.g., $E[y]$) compared to reweighted MALA or Gaussian Metropolis-Hastings.

Discussion and Conclusion

The primary insight of this research is that interaction is essential for efficient sampling. By treating annealing as a collective population process rather than a set of independent trials, the Snooker and Genetic moves act as a communication channel that leverages the successes of individual particles for the benefit of the whole ensemble.

While the method introduces computational overhead due to the management of interactions, this is offset by the massive gains in sampling efficiency and accuracy in complex landscapes. Future work may involve combining this approach with other continuation methods like Simulated Tempering or applying it to distributions with approximate symmetries.

Summary updated

BibTeX
@misc{chen2024ensemble,
  author = {Haoxuan Chen and Lexing Ying},
  title = {{Ensemble-Based Annealed Importance Sampling}},
  year = {2024},
  eprint = {2401.15645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.15645},
}
Figure