cs.AISep 28, 2026

Grab a Coffee: Future-Aware Guidance for Discrete Diffusion with Compiled Objectives

Authors: Hua, Xu, Dongxin Li, Gwen Yidou-Weng, Guy Van den Broeck, Wei Wang, Anji Liu

Organizations: Edward · Data Science and Analytics Thrust, The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China · Department of Computer Science, University of California, Los Angeles, USA · School of Computing, National University of Singapore, Singapore

Abstract

Discrete diffusion models generate sequences by iteratively resolving multiple tokens in parallel, offering a flexible alternative to left-to-right generation. However, guiding this process with a sequence-level objective is difficult because the value of one unresolved token depends on the other tokens with which it can form a high-reward sequence. Enumerating all such completions makes the whole guidance computation grow exponentially with the number of unresolved positions. We introduce COFFEE, a plug-and-play framework that avoids this enumeration by separating sequence dependence from the objective. At each diffusion step, a target-free carrier absorbs the marginal token distributions predicted by the denoiser to construct a joint model over the unresolved tokens, while a compiled finite-state model records how their combinations affect the sequence-level preference. Pairing their states allows COFFEE to transfer global preferences to unresolved positions and sample a clean reconstruction without retraining the diffusion model. The same framework supports explicit hard constraints and learned soft objectives. We evaluate COFFEE across multiple symbolic, language, and biological benchmarks, where it achieves strong control results with task-dependent quality and diversity trade-offs. By making objectives available to inference rather than only evaluation, COFFEE brings joint conditioning, completion-weighted guidance, and optimization-based constraints into pretrained neural generation, showing the potential of neural-symbolic methods in diffusion guidance.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A2D2: Fine-Tuning Any-Length Discrete Diffusion for Adaptive Decoding

    Jun 11, 2026Sophia Tang, Yuchen Zhu, Molei Tao +1Diffusion Models

  2. Primal-Dual Guided Decoding for Constrained Discrete Diffusion

    May 10, 2026Federico Tomasi, Dmitrii Moor, Alice Wang +1Diffusion ModelsDiffusion Dynamics

  3. Plug-and-Play Guidance for Discrete Diffusion Models via Gradient-Informed Logit Correction

    Jun 4, 2026Hongkun Dou, Zike Chen, Fengji Li +2Diffusion ModelsGuidance