Dynamic Search for Inference-Time Alignment in Diffusion Models
Xiner Li, Masatoshi Uehara, Xingyu Su, Gabriele Scalia, Tommaso Biancalani, Aviv Regev, Sergey Levine, Shuiwang Ji
TL;DR
This work tackles the problem of aligning diffusion-generated outputs to non-differentiable reward signals during inference. It reframes inference-time alignment as a reward-driven search over denoising trajectories and introduces Dynamic Search for Diffusion (DSearch), which dynamically allocates computation through beam-width and tree-width adaptation, plus a lookahead heuristic. The method is instantiated with a pruning strategy using pre-trained policies, node-level heuristics, and an efficient lookahead estimation, and is validated across image, biological sequence, and molecular design tasks, showing superior reward optimization while preserving diversity and near-original likelihood. Overall, DSearch offers a scalable, gradient-free, inference-time alignment framework with practical impact for reward-guided generation in scientific domains where differentiable rewards are unavailable or unreliable.
Abstract
Diffusion models have shown promising generative capabilities across diverse domains, yet aligning their outputs with desired reward functions remains a challenge, particularly in cases where reward functions are non-differentiable. Some gradient-free guidance methods have been developed, but they often struggle to achieve optimal inference-time alignment. In this work, we newly frame inference-time alignment in diffusion as a search problem and propose Dynamic Search for Diffusion (DSearch), which subsamples from denoising processes and approximates intermediate node rewards. It also dynamically adjusts beam width and tree expansion to efficiently explore high-reward generations. To refine intermediate decisions, DSearch incorporates adaptive scheduling based on noise levels and a lookahead heuristic function. We validate DSearch across multiple domains, including biological sequence design, molecular optimization, and image generation, demonstrating superior reward optimization compared to existing approaches.
