Test-Time Anchoring for Discrete Diffusion Posterior Sampling

Litu Rout, Andreas Lugmayr, Yasamin Jafarian, Srivatsan Varadharajan, Constantine Caramanis +2 more
10/2/2025
cs.LGcs.CVstat.ML

No official code found. Best implementation: LituRout/APS (11 stars, Apache-2.0, last commit 2026-02-04). 1 more below.

Abstract

We study the problem of posterior sampling using pretrained discrete diffusion foundation models, aiming to recover images from noisy measurements without retraining task-specific models. While diffusion models have achieved remarkable success in generative modeling, most advances rely on continuous Gaussian diffusion. In contrast, discrete diffusion offers a unified framework for jointly modeling categorical data such as text and images. Beyond unification, discrete diffusion provides faster inference, finer control, and principled training-free Bayesian inference, making it particularly well-suited for posterior sampling. However, existing approaches to discrete diffusion posterior sampling face severe challenges: derivative-free guidance yields sparse signals, continuous relaxations limit applicability, and split Gibbs samplers suffer from the curse of dimensionality. To overcome these limitations, we introduce Anchored Posterior Sampling (APS) for masked diffusion foundation models, built on two key innovations -- quantized expectation for gradient-like guidance in discrete embedding space, and anchored remasking for adaptive decoding. Our approach achieves state-of-the-art performance among discrete diffusion samplers across linear and nonlinear inverse problems on the standard benchmarks. We further demonstrate the benefits of our approach in training-free stylization and text-guided editing.

View on arXivView PDF

Code Implementations(2)

LituRout/APSCommunity65%
Apache-2.0

Test-Time Anchoring for Discrete Diffusion Posterior Sampling

110Jupyter NotebookSep 29, 20258 months agoApache-2.0
Apache-2.0

Test-Time Anchoring for Discrete Diffusion Posterior Sampling

00CSS, HTMLSep 30, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{rout2025testtime,
  title  = {Test-Time Anchoring for Discrete Diffusion Posterior Sampling},
  author = {Litu Rout and Andreas Lugmayr and Yasamin Jafarian and Srivatsan Varadharajan and Constantine Caramanis and Sanjay Shakkottai and Ira Kemelmacher-Shlizerman},
  year   = {2025},
  eprint = {2510.02291},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.02291v1}
}

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

Discussion