CoDe: Blockwise Control for Denoising Diffusion Models

Abstract

Aligning diffusion models to downstream tasks often requires finetuning new models or gradient-based guidance at inference time to enable sampling from the reward-tilted posterior. In this work, we explore a simple inference-time gradient-free guidance approach, called controlled denoising (CoDe), that circumvents the need for differentiable guidance functions and model finetuning. CoDe is a blockwise sampling method applied during intermediate denoising steps, allowing for alignment with downstream rewards. Our experiments demonstrate that, despite its simplicity, CoDe offers a favorable trade-off between reward alignment, prompt instruction following, and inference cost, achieving a competitive performance against the state-of-the-art baselines}. Our code is available at https://github.com/anujinho/code.

Cite

Text

Singh et al. "CoDe: Blockwise Control for Denoising Diffusion Models." Transactions on Machine Learning Research, 2025.

Markdown

[Singh et al. "CoDe: Blockwise Control for Denoising Diffusion Models." Transactions on Machine Learning Research, 2025.](https://mlanthology.org/tmlr/2025/singh2025tmlr-code/)

BibTeX

@article{singh2025tmlr-code,
  title     = {{CoDe: Blockwise Control for Denoising Diffusion Models}},
  author    = {Singh, Anuj and Mukherjee, Sayak and Beirami, Ahmad and Rad, Hadi J.},
  journal   = {Transactions on Machine Learning Research},
  year      = {2025},
  url       = {https://mlanthology.org/tmlr/2025/singh2025tmlr-code/}
}