You Only Look One Step: Accelerating Backpropagation in Diffusion Sampling with Gradient Shortcuts

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Dou, Hongkun, Li, Zeyu, Jiang, Xingyu, Li, Hongjue, Yang, Lijun, Yao, Wen, Deng, Yue
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909607693123584
author Dou, Hongkun
Li, Zeyu
Jiang, Xingyu
Li, Hongjue
Yang, Lijun
Yao, Wen
Deng, Yue
author_facet Dou, Hongkun
Li, Zeyu
Jiang, Xingyu
Li, Hongjue
Yang, Lijun
Yao, Wen
Deng, Yue
contents Diffusion models (DMs) have recently demonstrated remarkable success in modeling large-scale data distributions. However, many downstream tasks require guiding the generated content based on specific differentiable metrics, typically necessitating backpropagation during the generation process. This approach is computationally expensive, as generating with DMs often demands tens to hundreds of recursive network calls, resulting in high memory usage and significant time consumption. In this paper, we propose a more efficient alternative that approaches the problem from the perspective of parallel denoising. We show that full backpropagation throughout the entire generation process is unnecessary. The downstream metrics can be optimized by retaining the computational graph of only one step during generation, thus providing a shortcut for gradient propagation. The resulting method, which we call Shortcut Diffusion Optimization (SDO), is generic, high-performance, and computationally lightweight, capable of optimizing all parameter types in diffusion sampling. We demonstrate the effectiveness of SDO on several real-world tasks, including controlling generation by optimizing latent and aligning the DMs by fine-tuning network parameters. Compared to full backpropagation, our approach reduces computational costs by $\sim 90\%$ while maintaining superior performance. Code is available at https://github.com/deng-ai-lab/SDO.
format Preprint
id arxiv_https___arxiv_org_abs_2505_07477
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle You Only Look One Step: Accelerating Backpropagation in Diffusion Sampling with Gradient Shortcuts
Dou, Hongkun
Li, Zeyu
Jiang, Xingyu
Li, Hongjue
Yang, Lijun
Yao, Wen
Deng, Yue
Machine Learning
Computer Vision and Pattern Recognition
Diffusion models (DMs) have recently demonstrated remarkable success in modeling large-scale data distributions. However, many downstream tasks require guiding the generated content based on specific differentiable metrics, typically necessitating backpropagation during the generation process. This approach is computationally expensive, as generating with DMs often demands tens to hundreds of recursive network calls, resulting in high memory usage and significant time consumption. In this paper, we propose a more efficient alternative that approaches the problem from the perspective of parallel denoising. We show that full backpropagation throughout the entire generation process is unnecessary. The downstream metrics can be optimized by retaining the computational graph of only one step during generation, thus providing a shortcut for gradient propagation. The resulting method, which we call Shortcut Diffusion Optimization (SDO), is generic, high-performance, and computationally lightweight, capable of optimizing all parameter types in diffusion sampling. We demonstrate the effectiveness of SDO on several real-world tasks, including controlling generation by optimizing latent and aligning the DMs by fine-tuning network parameters. Compared to full backpropagation, our approach reduces computational costs by $\sim 90\%$ while maintaining superior performance. Code is available at https://github.com/deng-ai-lab/SDO.
title You Only Look One Step: Accelerating Backpropagation in Diffusion Sampling with Gradient Shortcuts
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2505.07477