Source Prompt Disentangled Inversion for Boosting Image Editability with Diffusion Models
Ruibin Li, Ruihuang Li, Song Guo, Lei Zhang
TL;DR
This work tackles the problem that inverted latent noise codes in diffusion‑based image editing remain biased by the source prompt, hindering edits guided by a new target prompt. It analyzes DDIM inversion and formalizes a fixed‑point constraint, then proposes Source Prompt Disentangled Inversion (SPDInv), which turns each inversion step into a fixed‑point search by minimizing $L = \lVert f_{\theta}(z_t) - z_t \rVert_2$ with a pre‑trained diffusion model to obtain a near‑ideal noise $z_T^*$. SPDInv significantly reduces the noise gap $D_{noi}$, improves editing fidelity across multiple engines (P2P, MasaCtrl, PNP), and extends to customized image generation by enabling localized edits with methods like ELITE. The approach yields substantial practical benefits in text‑driven and localized editing scenarios, with known limitations in portrait edits and reliance on existing editing pipelines, suggesting directions for further stability and robustness improvements.
Abstract
Text-driven diffusion models have significantly advanced the image editing performance by using text prompts as inputs. One crucial step in text-driven image editing is to invert the original image into a latent noise code conditioned on the source prompt. While previous methods have achieved promising results by refactoring the image synthesizing process, the inverted latent noise code is tightly coupled with the source prompt, limiting the image editability by target text prompts. To address this issue, we propose a novel method called Source Prompt Disentangled Inversion (SPDInv), which aims at reducing the impact of source prompt, thereby enhancing the text-driven image editing performance by employing diffusion models. To make the inverted noise code be independent of the given source prompt as much as possible, we indicate that the iterative inversion process should satisfy a fixed-point constraint. Consequently, we transform the inversion problem into a searching problem to find the fixed-point solution, and utilize the pre-trained diffusion models to facilitate the searching process. The experimental results show that our proposed SPDInv method can effectively mitigate the conflicts between the target editing prompt and the source prompt, leading to a significant decrease in editing artifacts. In addition to text-driven image editing, with SPDInv we can easily adapt customized image generation models to localized editing tasks and produce promising performance. The source code are available at https://github.com/leeruibin/SPDInv.
