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

Hua, Xu, Dongxin Li, Gwen Yidou-Weng, Guy Van den Broeck +2 more
9/28/2026
cs.AI
diffusion-flow

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hua2026grab,
  title  = {Grab a Coffee: Future-Aware Guidance for Discrete Diffusion with Compiled Objectives},
  author = {Hua and Xu and Dongxin Li and Gwen Yidou-Weng and Guy Van den Broeck and Wei Wang and Anji Liu},
  year   = {2026},
  eprint = {2609.35924},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.35924v1}
}

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

Discussion