Optimal Scaling for Locally Balanced Proposals in Discrete Spaces

Haoran Sun, Hanjun Dai, Dale Schuurmans
9/16/2022
cs.LG

Official code: ha0ransun/LBP_Scale (9 stars, Python, MIT, last commit 2022-10-12).

Abstract

Optimal scaling has been well studied for Metropolis-Hastings (M-H) algorithms in continuous spaces, but a similar understanding has been lacking in discrete spaces. Recently, a family of locally balanced proposals (LBP) for discrete spaces has been proved to be asymptotically optimal, but the question of optimal scaling has remained open.

Show full abstract

In this paper, we establish, for the first time, that the efficiency of M-H in discrete spaces can also be characterized by an asymptotic acceptance rate that is independent of the target distribution. Moreover, we verify, both theoretically and empirically, that the optimal acceptance rates for LBP and random walk Metropolis (RWM) are $0.574$ and $0.234$ respectively. These results also help establish that LBP is asymptotically $O(N^\frac{2}{3})$ more efficient than RWM with respect to model dimension $N$. Knowledge of the optimal acceptance rate allows one to automatically tune the neighborhood size of a proposal distribution in a discrete space, directly analogous to step-size control in continuous spaces. We demonstrate empirically that such adaptive M-H sampling can robustly improve sampling in a variety of target distributions in discrete spaces, including training deep energy based models.

View on arXivView PDF

Code Implementations(1)

MIT

Official Repo for NeurIPS 2022 Paper: Optimal Scaling for Locally Balanced Proposals in Discrete Spaces

90Python, ShellOct 12, 20224 years agoMIT

Similar Papers

Cite this paper

@article{sun2022optimal,
  title  = {Optimal Scaling for Locally Balanced Proposals in Discrete Spaces},
  author = {Haoran Sun and Hanjun Dai and Dale Schuurmans},
  year   = {2022},
  eprint = {2209.08183},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.08183}
}

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/2209.08183.svg)](https://codeofpaper.com/paper/2209.08183)

Discussion