Parallel and Flexible Sampling from Autoregressive Models via Langevin Dynamics
Vivek Jayaram, John Thickstun
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. 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Gradient-based Constrained Sampling from Language Models cites COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
- Gradient-based Constrained Sampling from Language Models cites Language Models are Few-Shot Learners
- Gradient-based Constrained Sampling from Language Models cites The Curious Case of Neural Text Degeneration
- It's Raw! Audio Generation with State-Space Models cites Language Models are Few-Shot Learners
- It's Raw! Audio Generation with State-Space Models cites DiffWave: A Versatile Diffusion Model for Audio Synthesis
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics cites Language Models are Few-Shot Learners
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics cites The Curious Case of Neural Text Degeneration
- Multi-Source Diffusion Models for Simultaneous Music Generation and Separation cites DiffWave: A Versatile Diffusion Model for Audio Synthesis
- Multi-Source Diffusion Models for Simultaneous Music Generation and Separation cites Score-Based Generative Modeling through Stochastic Differential Equations
- Language Models are Few-Shot Learners cites The Curious Case of Neural Text Degeneration
- ShapeFormer: Transformer-based Shape Completion via Sparse Representation cites Language Models are Few-Shot Learners
- ShapeFormer: Transformer-based Shape Completion via Sparse Representation cites The Curious Case of Neural Text Degeneration
- DiffWave: A Versatile Diffusion Model for Audio Synthesis cites Improved Techniques for Training Score-Based Generative Models
- Score-Based Generative Modeling through Stochastic Differential Equations cites Improved Techniques for Training Score-Based Generative Models
- Score-Based Generative Modeling through Stochastic Differential Equations cites DiffWave: A Versatile Diffusion Model for Audio Synthesis
Cited by top-tier papers7
- It's Raw! Audio Generation with State-Space ModelsKaran Goel, Albert Gu, Chris Donahue, Christopher RéICML 2022 · 257 citations
- COLD Decoding: Energy-based Constrained Text Generation with Langevin DynamicsLianhui Qin, Sean Welleck, Daniel Khashabi, Yejin ChoiNeurIPS 2022 · 217 citations
- ShapeFormer: Transformer-based Shape Completion via Sparse RepresentationXingguang Yan, Liqiang Lin, Niloy J. Mitra, Dani Lischinski et al.CVPR 2022 · 124 citations
- Multi-Source Diffusion Models for Simultaneous Music Generation and SeparationGiorgio Mariani, Irene Tallini, Emilian Postolache, Michele Mancusi et al.ICLR 2024 · 75 citations
- Gradient-based Constrained Sampling from Language ModelsSachin Kumar, Biswajit Paria, Yulia TsvetkovEMNLP 2022 · 22 citations
Builds on11
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- DiffWave: A Versatile Diffusion Model for Audio SynthesisZhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao et al.ICLR 2021 · 1,902 citations
- Improved Techniques for Training Score-Based Generative ModelsYang Song, Stefano ErmonNeurIPS 2020 · 1,527 citations
- Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
Related papers
- Source Separation with Deep Generative PriorsVivek Jayaram, John ThickstunICML 2020 · 47 citations
- Posterior Sampling by Combining Diffusion Models with Annealed Langevin DynamicsZhiyang Xun, Shivam Gupta, Eric PriceNeurIPS 2025 · 8 citations
- A Mixture-Based Framework for Guiding Diffusion ModelsYazid Janati, Badr Moufad, Mehdi Abou El Qassime, Alain Oliviero Durmus et al.ICML 2025
- Outsourced Diffusion Sampling: Efficient Posterior Inference in Latent Spaces of Generative ModelsSiddarth Venkatraman, Mohsin Hasan, Minsu Kim, Luca Scimeca et al.ICML 2025
- Consistency Posterior Sampling for Diverse Image SynthesisVishal Purohit, Matthew Repasky, Jianfeng Lu, Qiang Qiu et al.CVPR 2025
