A Langevin-like Sampler for Discrete Distributions

Ruqi Zhang, Xingchao Liu, Qiang Liu
6/20/2022
cs.LGstat.ML

Official code: ruqizhang/discrete-langevin (42 stars, Python, last commit 2022-09-20).

Abstract

We propose discrete Langevin proposal (DLP), a simple and scalable gradient-based proposal for sampling complex high-dimensional discrete distributions. In contrast to Gibbs sampling-based methods, DLP is able to update all coordinates in parallel in a single step and the magnitude of changes is controlled by a stepsize.

Show full abstract

This allows a cheap and efficient exploration in the space of high-dimensional and strongly correlated variables. We prove the efficiency of DLP by showing that the asymptotic bias of its stationary distribution is zero for log-quadratic distributions, and is small for distributions that are close to being log-quadratic. With DLP, we develop several variants of sampling algorithms, including unadjusted, Metropolis-adjusted, stochastic and preconditioned versions. DLP outperforms many popular alternatives on a wide variety of tasks, including Ising models, restricted Boltzmann machines, deep energy-based models, binary neural networks and language generation.

View on arXivView PDF

Code Implementations(1)

427Python, ShellJun 14, 20224 years ago

Similar Papers

Cite this paper

@article{zhang2022langevinlike,
  title  = {A Langevin-like Sampler for Discrete Distributions},
  author = {Ruqi Zhang and Xingchao Liu and Qiang Liu},
  year   = {2022},
  eprint = {2206.09914},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.09914}
}

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

Discussion