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:
- Non-Differentiability: Standard guidance relies on taking gradients with respect to data, which is impossible for discrete tokens.
- 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.
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