Adaptive parallel tempering algorithm

Błażej Miasojedow, Éric Moulines, Matti ViholaarXiv 2012 · DOI

Abstract

Parallel tempering is a generic Markov chain Monte Carlo sampling method which allows good mixing with multimodal target distributions, where conventional Metropolis-Hastings algorithms often fail. The mixing properties of the sampler depend strongly on the choice of tuning parameters, such as the temperature schedule and the proposal distribution used for local exploration. We propose an adaptive algorithm which tunes both the temperature schedule and the parameters of the random-walk Metropolis kernel automatically. We prove the convergence of the adaptation and a strong law of large numbers for the algorithm. We illustrate the performance of our method with examples. Our empirical findings indicate that the algorithm can cope well with different kind of scenarios without prior tuning.

Introduction

Markov Chain Monte Carlo (MCMC) methods are the workhorse of Bayesian statistics, but they face a significant challenge: "stickiness." When a probability distribution contains multiple peaks (modes) separated by regions of low probability, standard samplers often become trapped in a single mode, failing to explore the global landscape.

Parallel Tempering (PT) addresses this by running multiple chains at different "temperatures." High-temperature chains explore the space broadly, while the low-temperature chain—the one of primary interest—samples the target distribution accurately. However, PT is notoriously difficult to tune. If temperatures are too far apart, chains fail to swap states; if they are too close, computational resources are wasted. Furthermore, the local proposal distributions for each chain must be optimized for their specific temperature. This paper introduces an Adaptive Parallel Tempering algorithm that eliminates this manual "black magic" by automatically optimizing both temperature schedules and proposal kernels on the fly.

Methodology

The proposed framework implements two distinct adaptation processes that occur simultaneously during the simulation:

1. Temperature Adaptation

The algorithm dynamically adjusts the inverse temperature levels ($\beta$) using a stochastic approximation procedure. It targets a specific mean acceptance rate for swaps between adjacent chains—typically $\alpha^* = 0.234$. By continuously shifting temperatures until the "flow" of information between the hot and cold chains is optimized, the algorithm finds a "Goldilocks" schedule that is efficient without requiring prior knowledge of the target landscape.

2. Local Proposal Adaptation

Within each temperature level, the algorithm employs Adaptive Metropolis (AM) or Robust Adaptive Metropolis (RAM). These techniques observe the history of the chain to learn the covariance (shape) of the local distribution. This ensures that random-walk steps are appropriately scaled—neither so large that they are constantly rejected nor so small that exploration becomes sluggish.

Theoretical Guarantees

A critical contribution of this work is the rigorous mathematical foundation for continuous adaptation. Typically, changing the rules of a Markov chain during execution can invalidate the results. However, the authors prove that provided the adaptation speed decreases over time, the algorithm eventually stabilizes. They provide proofs for both the convergence of the adaptation and a strong law of large numbers, ensuring that the resulting estimates are mathematically valid.

Experimental Evaluation

The algorithm was evaluated across three primary scenarios to test its versatility and robustness:

  • 2D Mixture of Gaussians: In a classic benchmark featuring 20 distinct components, the adaptive sampler successfully identified all modes, achieving results comparable to or better than state-of-the-art samplers that require manual tuning.
  • 8D Modified Mixture of Gaussians: This higher-dimensional test with low-variance components demonstrated the algorithm's ability to handle more complex, restricted landscapes.
  • Spatial Imaging (Satellite Data): The algorithm was applied to a real-world problem of identifying ice floes in 200x200 gray-scale satellite images using an Ising model prior. This high-dimensional discrete problem is one where standard MCMC often fails, yet the adaptive PT algorithm produced accurate posterior estimates without any prior tuning of temperature levels.

Key Insights and Results

  • Efficiency and Stability: Compared to non-adaptive parallel tempering, the proposed method showed lower variance across multiple runs, indicating higher reliability.
  • Unique Convergence: The paper demonstrates that for a given target distribution, there is a unique set of optimal temperatures that the algorithm will naturally gravitate toward.
  • Robustness: The use of RAM is particularly effective for handling local distribution shapes, which is vital when different modes have different orientations or scales.

Limitations and Future Work

While the algorithm is highly effective, the authors note that as the number of dimensions ($d$) grows very large, the computational cost of adapting a full $d \times d$ covariance matrix increases. Potential solutions include "block-wise" adaptation or Metropolis-within-Gibbs approaches. Additionally, the current proofs assume the target distribution has infinite support; distributions restricted to finite boundaries may require further refinements in how temperature adaptation behaves at the edges.

In conclusion, the adaptive parallel tempering algorithm provides a robust, self-tuning framework that significantly lowers the barrier to using PT for complex Bayesian inference tasks.

Summary updated

BibTeX
@misc{miasojedow2012adaptive,
  author = {Błażej Miasojedow and Éric Moulines and Matti Vihola},
  title = {{Adaptive parallel tempering algorithm}},
  year = {2012},
  eprint = {1205.1076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1205.1076},
}
Figure