[Paper Review] SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equations
SDEdit uses a pretrained score-based diffusion model to perform guided image synthesis and editing from user guides without task-specific training, balancing realism and faithfulness.
Guided image synthesis enables everyday users to create and edit photo-realistic images with minimum effort. The key challenge is balancing faithfulness to the user input (e.g., hand-drawn colored strokes) and realism of the synthesized image. Existing GAN-based methods attempt to achieve such balance using either conditional GANs or GAN inversions, which are challenging and often require additional training data or loss functions for individual applications. To address these issues, we introduce a new image synthesis and editing method, Stochastic Differential Editing (SDEdit), based on a diffusion model generative prior, which synthesizes realistic images by iteratively denoising through a stochastic differential equation (SDE). Given an input image with user guide of any type, SDEdit first adds noise to the input, then subsequently denoises the resulting image through the SDE prior to increase its realism. SDEdit does not require task-specific training or inversions and can naturally achieve the balance between realism and faithfulness. SDEdit significantly outperforms state-of-the-art GAN-based methods by up to 98.09% on realism and 91.72% on overall satisfaction scores, according to a human perception study, on multiple tasks, including stroke-based image synthesis and editing as well as image compositing.
Motivation & Objective
- Motivate and enable guided image synthesis and editing that is faithful to user guides while remaining realistic.
- Avoid task-specific training data and loss design for new editing tasks.
- Leverage a pretrained diffusion-based generative prior to integrate user guidance with image realism.
Proposed method
- Formulate image synthesis/editing as reversing a VE-SDE starting from a noisy version of the user guide.
- Add Gaussian noise to the guide at time t0 and run the reverse SDE to produce x(0).
- Use a pretrained score model s_theta(x(t), t) trained via denoising score matching to approximate grad log p_t(x).
- Discretize the reverse SDE with Euler-Maruyama (Equation 4) to generate the final image.
- Provide a realism-faithfulness trade-off via the hyperparameter t0, where larger t0 yields more realism but less faithfulness.
Experimental results
Research questions
- RQ1Can a single pretrained diffusion-based prior produce realistic and faithful edits for diverse guides without task-specific training?
- RQ2How does the realism-faithfulness balance vary with the starting time t0 in the reverse SDE?
- RQ3How does SDEdit perform on stroke-based generation, stroke-based editing, and image compositing compared with GAN-based baselines?
Key findings
- SDEdit outperforms state-of-the-art GAN-based methods on stroke-based generation in realism and overall satisfaction in human studies (up to 98.09% realism and 91.72% satisfaction on LSUN Bedroom data with specific baselines).
- SDEdit achieves more faithful and realistic results than baselines for stroke-based editing on LSUN and CelebA-HQ datasets.
- In image compositing, SDEdit yields better faithfulness and realism, with up to 83.73% improvement in overall satisfaction over traditional blending and GAN baselines.
- The realism-faithfulness trade-off can be controlled by t0, with reasonable guides often requiring t0 in the range [0.3, 0.6].
- A proposition provides a probabilistic bound on the guide-to-output deviation that grows with t0, explaining the trade-off.
- The method requires only a pretrained SDE model and does not rely on task-specific training data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.