[Paper Review] Parallel and Flexible Sampling from Autoregressive Models via Langevin Dynamics
This paper proposes Parallel and Flexible (PnF) sampling for autoregressive models using Langevin dynamics on a smoothed global log-likelihood, enabling parallel, conditional, and constraint-based generation. The method achieves competitive performance in audio and image restoration tasks like source separation, super-resolution, and inpainting, with sampling speed independent of sequence length and scalable across devices.
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.
Motivation & Objective
- To address the slow, sequential nature of ancestral sampling in autoregressive models, which limits practical use in high-resolution audio and image generation.
- To enable flexible conditional sampling—such as inpainting, super-resolution, and source separation—without retraining models or reversing autoregressive factorization.
- To develop a sampling method that is parallelizable and scales efficiently with computing resources, reducing wall-clock time.
- To generalize autoregressive models as priors for Bayesian inverse problems by incorporating conditional likelihoods or constraints.
- To demonstrate that PnF sampling achieves competitive generative quality while enabling new conditional sampling capabilities.
Proposed method
- Proposes a PnF sampler that initializes a full sequence with random noise and evolves it via Langevin dynamics on the global log-likelihood of the sequence.
- Applies a smoothing technique using a Gaussian convolution to make the discrete autoregressive model's log-likelihood differentiable and suitable for continuous optimization.
- Employs an annealing schedule to gradually reduce the smoothing temperature, guiding the Markov chain toward the target distribution.
- Extends the method to stochastic gradient Langevin dynamics (SGLD), enabling embarrassingly parallel, distributed sampling across multiple devices.
- Uses an autoregressive model (e.g., WaveNet, PixelCNN++) as a prior and incorporates conditional likelihoods or constraints into the posterior sampling process.
- Applies the method to linear inverse problems such as source separation, super-resolution, and inpainting by defining appropriate observation models.
Experimental results
Research questions
- RQ1Can Langevin dynamics on a smoothed global log-likelihood enable parallel sampling from autoregressive models without sequential dependency?
- RQ2Can PnF sampling generalize to conditional generation tasks like inpainting and super-resolution without retraining or reversing the autoregressive order?
- RQ3Does PnF sampling achieve competitive generative quality compared to ancestral sampling while reducing wall-clock time?
- RQ4Can the method scale efficiently with the number of computing devices, enabling near-linear speedup?
- RQ5How well does PnF sampling perform on real-world audio and image restoration tasks such as source separation and super-resolution?
Key findings
- PnF sampling achieved a PSNR of 29.78 on 4x audio super-resolution for piano data, outperforming the KEE baseline (22.25) and spline interpolation (23.07).
- For 16x super-resolution, PnF achieved 14.23 PSNR on piano data, significantly outperforming the KEE baseline (6.76) and demonstrating feasibility beyond prior methods.
- In image source separation on CIFAR-10, PnF with PixelCNN++ achieved an FID of 40.66 in the Class Split setting, comparable to the state-of-the-art BASIS (Glow) method (FID 40.21).
- In the Class Agnostic setting, PnF with PixelCNN++ achieved an FID of 37.89, close to the BASIS (NCSN) baseline (FID 29.92), showing strong performance with a simpler prior.
- PnF sampling enabled high-quality audio inpainting and 32x super-resolution, with qualitative results showing strong perceptual quality beyond existing baselines.
- Stochastic PnF sampling achieved ancestral sampling quality with compute time inversely proportional to the number of devices, enabling scalable, parallel sampling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.