REG: Rectified Gradient Guidance for Conditional Diffusion Models

Zhengqi Gao, Kaiwen Zha, Tianyuan Zhang, Zihui Xue, Duane S. Boning
2/14/2026

No official code found. Best implementation: zhengqigao/REG (7 stars, MIT, last commit 2025-08-13).

Abstract

Guidance techniques are simple yet effective for improving conditional generation in diffusion models. Albeit their empirical success, the practical implementation of guidance diverges significantly from its theoretical motivation. In this paper, we reconcile this discrepancy by replacing the scaled marginal distribution target, which we prove theoretically invalid, with a valid scaled joint distribution objective. Additionally, we show that the established guidance implementations are approximations to the intractable optimal solution under no future foresight constraint. Building on these theoretical insights, we propose rectified gradient guidance (REG), a versatile enhancement designed to boost the performance of existing guidance methods. Experiments on 1D and 2D demonstrate that REG provides a better approximation to the optimal solution than prior guidance techniques, validating the proposed theoretical framework. Extensive experiments on class-conditional ImageNet and text-to-image generation tasks show that incorporating REG consistently improves FID and Inception/CLIP scores across various settings compared to its absence.

View on arXivView PDF

Code Implementations(1)

zhengqigao/REGCommunity74%
MIT

[ICML'25] REG: Rectified Gradient Guidance for Conditional Diffusion Models

70PythonMay 21, 20251 years agoMIT

Similar Papers

Cite this paper

@article{gao2026reg,
  title  = {REG: Rectified Gradient Guidance for Conditional Diffusion Models},
  author = {Zhengqi Gao and Kaiwen Zha and Tianyuan Zhang and Zihui Xue and Duane S. Boning},
  year   = {2026},
  eprint = {2501.18865},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2501.18865},
  journal = {ICML 2025 2025}
}

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

Discussion