Score Mismatch and Set-Constrained Sampling in Zero-Shot Conditional Discrete Diffusion

Renxiang Huang, Yuchen Liang, Yingbin Liang, Ness Shroff, Lifeng LaiarXiv 2026

This paper, recently published by researchers from UC Davis, Indiana University, and Ohio State, tackles a fundamental theoretical gap in discrete diffusion models: what happens when the model you trained isn't exactly the one you're using at inference time?

TL;DR

The authors provide the first theoretical convergence analysis for discrete diffusion models under "score mismatch," a common occurrence in zero-shot conditional sampling. They demonstrate that while standard "hard clamping" is unbiased for absorbing-rate models, it fails for uniform-rate models; to fix this, they introduce Randomized Hard Clamping (RHC), a novel sampler that handles complex set constraints using only pre-trained unconditional scores.

What Problem Does This Paper Address?

Diffusion models have revolutionized generative AI, but most theoretical guarantees assume an "ideal" world where the training distribution matches the target distribution. In practice, we often perform zero-shot conditional generation—for example, taking a model trained to generate any text and forcing it to perform "infilling" (filling in the blanks of a specific sentence).

This creates a score mismatch. In discrete spaces (like text), the "score" is a ratio of probabilities between states. When we impose constraints at inference time, the true conditional score differs from the unconditional score the model learned during training. Until now, we didn't have a rigorous way to quantify the bias this mismatch introduces or a proven way to handle "set constraints" (where a missing word must come from a specific set of candidates, like synonyms).

Methods

The paper contributes both new theory and a new algorithm:

  1. Theoretical Framework: The authors derive a general KL divergence upper bound for score-mismatched discrete diffusion. They analyze two main types of noise processes:
  2. Absorbing Rate: Tokens gradually turn into a [MASK] symbol.
  3. Uniform Rate: Tokens gradually transition to any other random token in the vocabulary.
  4. Conditional SEDD Analysis: They analyze the popular "hard clamping" method (forcing observed tokens to stay fixed). They prove a surprising result: for absorbing-rate models, hard clamping is actually mathematically exact (unbiased), but for uniform-rate models, it introduces a structural bias that scales with vocabulary size and sequence length.
  5. Randomized Hard Clamping (RHC): To handle set constraints (where a coordinate $i$ must belong to a set $A_i$), they propose RHC.
  6. First, it calculates an "assignment distribution" using the pre-trained unconditional scores.
  7. It then samples a specific assignment from this distribution.
  8. Finally, it proceeds with standard hard-clamped sampling.

Datasets

The authors validated their findings using two distinct setups:

  • Synthetic Data: A small-scale discrete state space ($d=4, S=4$) where the ground-truth distribution is known, allowing for exact KL divergence calculations.
  • Real-world Text: They used the SEDD-small pre-trained model with a GPT-2 tokenizer.
  • Benchmarks: They created six custom "infilling" scenarios (Transportation, Study, Game, Cooking, Project, Weather) where specific positions in a sentence were constrained to sets of 5-10 candidate tokens.

Key Insights and Ideas

  • The "Absorbing" Advantage: The paper highlights why absorbing-rate diffusion (like the SEDD model) is so effective for zero-shot tasks. Because the transition only goes from "data" to [MASK], the conditional score ratio for unobserved tokens remains identical to the unconditional one. This isn't true for uniform-rate models.
  • Exactness from Unconditional Scores: One of the most elegant findings (Proposition V.1) is that the exact probability distribution for a set of constraints can be reconstructed using only the unconditional scores of an absorbing-rate model. You don't need to retrain the model to know which "fill-in-the-blank" option is most likely.
  • Quantifying the Cost of Constraints: For uniform-rate models, the authors show the bias is controlled by a "compatibility" parameter $\gamma$. If the context is highly restrictive (low $\gamma$), the sampling error explodes.

Key Results

  • Theoretical Convergence: The authors established the first non-asymptotic convergence bounds for mismatched discrete diffusion, separating the "oracle" error (from training) from the "mismatch" bias (from the task).
  • Superior Text Quality: In text infilling experiments, the RHC sampler significantly outperformed a uniform-assignment baseline. For the "Transportation" scenario, RHC achieved a perplexity of 61.01, compared to 100.61 for the baseline.
  • Efficiency: Despite the extra step of calculating assignment probabilities, RHC only increased total generation time by about 3.1% to 3.4%, making it highly practical for real-world deployment.

Limitations and Future Work

  • Absorbing Rate Reliance: Much of the "exactness" and the RHC algorithm's efficiency rely on the specific properties of absorbing-rate Markov chains. Applying this to other noise schedules (like uniform rates) remains computationally "impractical" due to the need for large matrix inversions.
  • Coordinate-wise Constraints: The current RHC framework focuses on constraints applied to individual positions. Future work is needed to handle more global constraints, such as ensuring a generated sentence follows a specific grammatical structure or maintains a specific sentiment.
  • Scaling: While tested on SEDD-small, the behavior of these bounds in massive models (like billion-parameter discrete diffusion models) is an open question.

Summary updated

BibTeX
@misc{huang2026score,
  author = {Renxiang Huang and Yuchen Liang and Yingbin Liang and Ness Shroff and Lifeng Lai},
  title = {{Score Mismatch and Set-Constrained Sampling in Zero-Shot Conditional Discrete Diffusion}},
  year = {2026},
  eprint = {2610.21061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.21061},
}
Figure