Parallel and Flexible Sampling from Autoregressive Models via Langevin Dynamics

Vivek Jayaram, John Thickstun
5/17/2021
cs.LGcs.SDeess.AS

Official code: vivjay30/pnf-sampling (22 stars, Python, MIT, last commit 2021-06-08).

Abstract

This paper introduces an alternative approach to sampling from autoregressive models. Autoregressive models are typically sampled sequentially, according to the transition dynamics defined by the model.

Show full abstract

Instead, we propose a sampling procedure that initializes a sequence with white noise and follows a Markov chain defined by Langevin dynamics on the global log-likelihood of the sequence. This approach parallelizes the sampling process and generalizes to conditional sampling. Using an autoregressive model as a Bayesian prior, we can steer the output of a generative model using a conditional likelihood or constraints. We apply these techniques to autoregressive models in the visual and audio domains, with competitive results for audio source separation, super-resolution, and inpainting.

View on arXivView PDF

Code Implementations(1)

MIT
224PythonMay 11, 20215 years agoMIT

Similar Papers

Cite this paper

@article{jayaram2021parallel,
  title  = {Parallel and Flexible Sampling from Autoregressive Models via Langevin Dynamics},
  author = {Vivek Jayaram and John Thickstun},
  year   = {2021},
  eprint = {2105.08164},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.08164}
}

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

Discussion