Search-Augmented Masked Diffusion Models for Constrained Generation
Huu Binh Ta, Michael Cardei, Alvaro Velasquez, Ferdinando Fioretto
TL;DR
This work tackles constrained generation for discrete diffusion models by introducing SearchDiff, a training-free inference framework that embeds a constraint-aware search into each reverse denoising step. By generating a denoiser-based proposal, performing CSS and local refinement to minimize a constraint-violation objective, and applying a modified reverse kernel, the method steers samples toward feasible regions without retraining. The approach yields substantial gains in constraint satisfaction and non-differentiable property adherence across molecular design, peptide design, tRNA generation, and symbolic reasoning benchmarks like Sudoku and Boolean SAT, often outperforming both diffusion-based and autoregressive baselines. The results demonstrate the practicality and versatility of trajectory-level, inference-time optimization for reliable, constraint-driven discrete sequence generation in scientific and reasoning domains.
Abstract
Discrete diffusion models generate sequences by iteratively denoising samples corrupted by categorical noise, offering an appealing alternative to autoregressive decoding for structured and symbolic generation. However, standard training targets a likelihood-based objective that primarily matches the data distribution and provides no native mechanism for enforcing hard constraints or optimizing non-differentiable properties at inference time. This work addresses this limitation and introduces Search-Augmented Masked Diffusion (SearchDiff), a training-free neurosymbolic inference framework that integrates informed search directly into the reverse denoising process. At each denoising step, the model predictions define a proposal set that is optimized under a user-specified property satisfaction, yielding a modified reverse transition that steers sampling toward probable and feasible solutions. Experiments in biological design and symbolic reasoning illustrate that SearchDiff substantially improves constraint satisfaction and property adherence, while consistently outperforming discrete diffusion and autoregressive baselines.
