NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Discrete-Diffusion Posterior Sampling with Langevin-Inspired Proposals

Sattwik Basu, Chaitanya Amballa, Jorge Vančo Sampedro, Romit Roy ChoudhuryNeurIPS 2026

TL;DR

When solving inverse problems—like unblurring an image, designing DNA, or reconstructing a floorplan from footsteps—continuous diffusion models have long stolen the spotlight because continuous space gives us smooth gradients to follow. This paper introduces $\Delta$LPS, a clever, training-free sampler for discrete diffusion models that uses continuous gradients as a compass to make smart, parallel "hops" between discrete tokens without ever leaving the discrete state space. It works with virtually any discrete diffusion prior, updates all tokens simultaneously, and matches or beats existing discrete and continuous solvers across images, music, and biology.

What Problem Does This Paper Address?

Inverse problems ask us to reconstruct a clean signal $x$ from messy, incomplete measurements $y$ (think deblurring a photo or filling in missing musical notes). Because many signals can explain the same messy measurement, we rely on generative priors—especially diffusion models—to tell us what "plausible" looks like.

In continuous diffusion models, guiding generation toward a measurement is straightforward: you compute the gradient of how well your current guess matches $y$ and nudge your pixels in that direction. But much of our modern data—text, DNA bases, MIDI notes, and vector-quantized (VQ) image tokens—lives in discrete state spaces. You can't add $0.03$ to a DNA nucleotide.

Recent attempts to do posterior sampling with discrete diffusion priors have hit three main roadblocks:

  1. Continuous relaxations: Turning discrete tokens into "soft" continuous vectors to take gradient steps, then rounding back to tokens. Often, a soft vector that satisfies the measurement projects back onto a discrete token that doesn't.
  2. Gibbs-style sequential updates: Updating one or a few tokens at a time, which mixes painfully slowly in high dimensions.
  3. Prior lock-in: Designing clever samplers that only work for one specific type of discrete diffusion (e.g., masked diffusion, where corrupted tokens become [MASK], rather than uniform-state diffusion, where tokens mutate randomly).

The authors ask: Can we build a fast, parallel, prior-agnostic sampler that stays strictly discrete from start to finish?

Examples of discrete inverse problems solved by ΔLPS: box inpainting on CIFAR/MNIST (left) and reconstructing indoor floorplans solely from simulated walking trajectories (right).

Methods

The authors propose $\Delta$LPS (Discrete Langevin-Inspired Posterior Sampler). Borrowing a classic framework from continuous diffusion (DAPS), transitioning from a noisy state $z_t$ to a slightly cleaner state $z_s$ is broken into two steps: first, sample a clean, measurement-consistent token sequence $z_0$; second, re-noise $z_0$ back to time $s$.

The magic happens in how $\Delta$LPS samples that clean discrete sequence $z_0$:

  • Gradient-informed discrete hops: Imagine $z_0$ were continuous. Standard Langevin dynamics would compute the gradient of the log-posterior (measurement fit + diffusion prior probability) and define a Gaussian distribution centered at a gradient-shifted point. Instead of sampling a continuous value from that Gaussian and rounding it, $\Delta$LPS evaluates that Gaussian score exclusively on the finite set of valid discrete tokens and normalizes across them via a Softmax.
  • Parallel coordinate factorization: Because the math of this score decomposes cleanly across sequence positions, $\Delta$LPS produces independent categorical distributions for all $L$ token positions at once. Every token is informed by the global gradient, yet all tokens are sampled in parallel.
  • Adam preconditioning: In discrete latent spaces (like VQ-VAEs), gradients can be wildly mis-scaled across coordinates. Replacing raw gradients with Adam-rescaled directions stabilizes the discrete transition probabilities.
  • Plug-and-play likelihoods: Changing the problem only changes how the gradient is computed. Differentiable operators use standard autograd; "blind" problems (where the forward physics are unknown) swap in gradients from a learned contrastive embedding space.
Super-resolution (4x) on FFHQ: Ground truth (left), pixelated measurement (middle), and ΔLPS reconstruction (right) operating directly in VQ-VAE discrete token space.

Datasets

No new datasets are introduced, though the authors construct Easy/Medium/Hard corruption tiers and binary logic operators (XOR, AND) on standard datasets to stress-test ill-posedness. Evaluations span:

  • Images: FFHQ ($256\times256$ faces in VQ-VAE latent space), MNIST ($32\times32$ binary pixels), and CIFAR-10 ($32\times32$ 8-bit color pixels).
  • Spatial Mapping: HouseExpo ($64\times64$ binary indoor floorplans paired with simulated $A^*$ walking trajectories).
  • Music: 100 monophonic MIDI test songs (129-token vocabulary with scrambled pitch indices so tokens carry no ordinal meaning).
  • Biology: Regulatory DNA sequence design ($L=200$, vocabulary $\{A, C, G, T\}$) targeting enhancer activity in the HepG2 cell line.

Key Insights and Ideas

  • Gradients are a great discrete compass: You don't need to leave discrete space to use continuous calculus. Evaluating a continuous Langevin proposal strictly on discrete grid points avoids the "projection trap" of continuous relaxations while keeping updates fast and parallel.
  • True prior-agnosticism: Because $\Delta$LPS only asks the diffusion model for clean-token log-probabilities $\log p_\theta(z_0; z_t)$, it works seamlessly on both masked (MDLM) and uniform-corruption (DUO) priors without touching the training setup.
  • Ordinality isn't required: On the music infilling task, the authors deliberately scramble the MIDI pitch-to-token mapping so adjacent numbers don't mean adjacent musical notes—and $\Delta$LPS still crushes baselines.

Key Results

  • Image Restoration: On FFHQ, $\Delta$LPS beats all discrete baselines in perceptual quality (LPIPS) on inpainting ($0.172$), Gaussian deblurring ($0.276$), and $4\times$ super-resolution ($0.230$), though PSNR drops on HDR and motion deblurring compared to anchored masked samplers (APS). On MNIST and CIFAR-10, $\Delta$LPS consistently beats discrete baselines—even outperforming a Split-Gibbs baseline (SGDD) given 6,400$\times$ more function evaluations on hard CIFAR-10 inpainting ($15.75\text{ dB}$ vs. $9.71\text{ dB}$ PSNR).
  • Blind Spatial Mapping: Inferring floorplans from sparse walking trajectories with an unknown motion model, $\Delta$LPS achieves $0.92$ F1 and $0.86$ IoU, beating continuous diffusion baselines.
  • Music Infilling: With $60\%$ of notes masked, $\Delta$LPS slashes pitch-histogram Hellinger distance from $0.244$ (SGDD) down to $0.082$, with $0.000$ measurement outliers.
  • DNA Generation: $\Delta$LPS achieves a median predicted enhancer activity of $9.37$ and $98.6\%$ chromatin accessibility (ATAC-Acc), surpassing specialized discrete baselines (SGDD peaks at $9.14$ and $93.0\%$) without collapsing sequence log-likelihood (i.e., no reward-hacking).

Limitations and Future Work

  • Gradient reliance: $\Delta$LPS still needs informative gradients. If a forward process is a non-differentiable black box, you have to train a surrogate model or contrastive encoder first, making sampler quality dependent on surrogate fidelity.
  • Factorized proposals miss tight token coupling: Updating all coordinates independently in parallel is fast, but if two tokens must flip together to make semantic sense, independent sampling might miss the move. The authors suggest exploring blockwise proposals, autoregressive corrections, or combining $\Delta$LPS with anchored remasking in future work.

Summary updated

BibTeX
@inproceedings{basu2026discrete,
  author = {Sattwik Basu and Chaitanya Amballa and Jorge Vančo Sampedro and Romit Roy Choudhury},
  title = {{Discrete-Diffusion Posterior Sampling with Langevin-Inspired Proposals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=E9UMLvG2aa},
}
Figure