Harnessing the Power of Reinforcement Learning for Adaptive MCMC

Congye Wang, Matthew A. Fisher, Heishiro Kanagawa, Wilson Chen, Chris. J. Oates
7/1/2025
stat.COcs.LGstat.ML

No official code found. Best implementation: congyewang/Harnessing-the-Power-of-Reinforcement-Learning-for-Adaptive-MCMC (0 stars, MIT, last commit 2025-08-05).

Abstract

Sampling algorithms drive probabilistic machine learning, and recent years have seen an explosion in the diversity of tools for this task. However, the increasing sophistication of sampling algorithms is correlated with an increase in the tuning burden. There is now a greater need than ever to treat the tuning of samplers as a learning task in its own right. In a conceptual breakthrough, Wang et al (2025) formulated Metropolis-Hastings as a Markov decision process, opening up the possibility for adaptive tuning using Reinforcement Learning (RL). Their emphasis was on theoretical foundations; realising the practical benefit of Reinforcement Learning Metropolis-Hastings (RLMH) was left for subsequent work. The purpose of this paper is twofold: First, we observe the surprising result that natural choices of reward, such as the acceptance rate, or the expected squared jump distance, provide insufficient signal for training RLMH. Instead, we propose a novel reward based on the contrastive divergence, whose superior performance in the context of RLMH is demonstrated. Second, we explore the potential of RLMH and present adaptive gradient-based samplers that balance flexibility of the Markov transition kernel with learnability of the associated RL task. A comprehensive simulation study using the posteriordb benchmark supports the practical effectiveness of RLMH.

View on arXivView PDF

Code Implementations(1)

MIT

Harnessing the Power of Reinforcement Learning for Adaptive MCMC

00Shell, PythonJul 30, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2025harnessing,
  title  = {Harnessing the Power of Reinforcement Learning for Adaptive MCMC},
  author = {Congye Wang and Matthew A. Fisher and Heishiro Kanagawa and Wilson Chen and Chris. J. Oates},
  year   = {2025},
  eprint = {2507.00671},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.00671v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.00671.svg)](https://codeofpaper.com/paper/2507.00671)

Discussion