Simple Guidance Mechanisms for Discrete Diffusion Models

Yair Schiff, Subham Sekhar Sahoo, Hao Phung, Guanghan Wang, Sam Boshar, Hugo Dalla-torre, Bernardo P. de Almeida, Alexander M. Rush, Thomas Pierrot, Volodymyr Kuleshov · DOI · OpenReview

Diffusion models have revolutionized generative AI, enabling high-fidelity synthesis across images and audio. A cornerstone of their success is guidance—the ability to steer generation toward specific attributes using classifiers or classifier-free methods. However, these techniques have historically struggled with discrete data like text, DNA, or chemical strings, where gradients are undefined. In their ICLR 2025 paper, Schiff et al. introduce effective guidance mechanisms for discrete diffusion, paired with a refined model class that enables iterative "editing" for superior results.

The Challenge of Discrete Guidance

Controlling generative models for discrete sequences is notoriously difficult. Traditional autoregressive (AR) models generate tokens sequentially; once a token is produced, it cannot be revised, making it hard to satisfy global constraints.

Discrete diffusion models offer an alternative by denoising entire sequences simultaneously. However, they face two primary hurdles:

  1. Non-Differentiability: Standard guidance relies on taking gradients with respect to data, which is impossible for discrete tokens.
  2. The "Lock-in" Problem: Many discrete models use "absorbing state" (masking) diffusion. Like AR models, once a token is unmasked, it is fixed, preventing the model from correcting errors during guided generation.

Proposed Methods: D-CFG and D-CBG

The authors propose two primary adaptations for discrete guidance:

  • Discrete Classifier-Free Guidance (D-CFG): This adapts the continuous CFG technique by training a model with and without conditions. During inference, the outputs are combined to amplify the conditional signal.
  • Discrete Classifier-Based Guidance (D-CBG): This uses a separate classifier trained on noisy data. To maintain efficiency, the authors employ a first-order Taylor approximation, allowing the model to compute guidance with a single forward and backward pass rather than evaluating every possible token at every position.
The discrete guidance mechanism adjusts token probabilities (left) to steer generation, while the resulting models achieve a superior Pareto frontier (right) compared to autoregressive baselines.

Uniform Diffusion Language Models (UDLM)

To solve the "lock-in" problem, the authors revisit Uniform Diffusion Language Models (UDLM). Unlike masking models, UDLMs use uniform noise where any token can flip to any other at any time. This allows the model to "edit" and refine the entire sequence throughout the denoising process.

Crucially, the authors derive a continuous-time variational lower bound ($\mathcal{L}^\infty$) for training. Formulating the objective as the limit where steps go to infinity ($T \to \infty$) simplifies the loss function and significantly improves empirical performance (perplexity).

Experimental Results

The methods were evaluated across genomics (Species10), small molecules (QM9), discretized images (CIFAR10), and natural language (text8, LM1B).

  • State-of-the-Art Performance: UDLM achieved the best reported perplexity for uniform noise models on text8 and LM1B benchmarks.
  • Superior Controllability: In molecule design, D-CBG combined with UDLM outperformed both previous diffusion guidance methods and AR baselines in maximizing properties like drug-likeness (QED) and ring count.
  • Robustness: UDLM remains effective even with fast sampling (e.g., 128 steps), whereas other discrete diffusion models often collapse under reduced step counts.

Conclusion

By combining simple, efficient guidance mechanisms with continuous-time training for uniform noise models, Schiff et al. demonstrate that discrete diffusion can be more "guidable" than traditional autoregressive models. This ability to refine global properties makes them particularly promising for complex domains like protein design and chemical synthesis, where satisfying global constraints is critical.

Summary updated

BibTeX
@inproceedings{schiff2025simple,
  author = {Yair Schiff and Subham Sekhar Sahoo and Hao Phung and Guanghan Wang and Sam Boshar and Hugo Dalla-torre and Bernardo P. de Almeida and Alexander M. Rush and Thomas Pierrot and Volodymyr Kuleshov},
  title = {{Simple Guidance Mechanisms for Discrete Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=i5MrJ6g5G1},
}
Figure