The Blessing of Randomness: SDE Beats ODE in General Diffusion-based Image Editing

Shen Nie, Hanzhong Guo, Cheng Lu, Yuhao Zhou, Chenyu Zheng +1 more
11/1/2023

No official code found. Best implementation: ML-GSAI/SDE-Drag (113 stars, last commit 2024-02-26).

Abstract

We present a unified probabilistic formulation for diffusion-based image editing, where a latent variable is edited in a task-specific manner and generally deviates from the corresponding marginal distribution induced by the original stochastic or ordinary differential equation (SDE or ODE). Instead, it defines a corresponding SDE or ODE for editing. In the formulation, we prove that the Kullback-Leibler divergence between the marginal distributions of the two SDEs gradually decreases while that for the ODEs remains as the time approaches zero, which shows the promise of SDE in image editing. Inspired by it, we provide the SDE counterparts for widely used ODE baselines in various tasks including inpainting and image-to-image translation, where SDE shows a consistent and substantial improvement. Moreover, we propose SDE-Drag -- a simple yet effective method built upon the SDE formulation for point-based content dragging. We build a challenging benchmark (termed DragBench) with open-set natural, art, and AI-generated images for evaluation. A user study on DragBench indicates that SDE-Drag significantly outperforms our ODE baseline, existing diffusion-based methods, and the renowned DragGAN. Our results demonstrate the superiority and versatility of SDE in image editing and push the boundary of diffusion-based editing methods.

View on arXivView PDF

Code Implementations(1)

ML-GSAI/SDE-DragCommunity66%

Official PyTorch implementation for ICLR2024 paper "The Blessing of Randomness: SDE Beats ODE in General Diffusion-based Image Editing"

1134PythonNov 2, 20232 years ago

Similar Papers

Cite this paper

@article{nie2023blessing,
  title  = {The Blessing of Randomness: SDE Beats ODE in General Diffusion-based Image Editing},
  author = {Shen Nie and Hanzhong Guo and Cheng Lu and Yuhao Zhou and Chenyu Zheng and Chongxuan Li},
  year   = {2023},
  eprint = {2311.01410},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.01410},
  journal = {ICLR 2023 2023}
}

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

Discussion