Abstract
Text-to-image diffusion models offer powerful image editing capabilities. To edit real images, many methods rely on the inversion of the image into Gaussian noise. A common approach to invert an image is to gradually add noise to the image, where the noise is determined by reversing the sampling equation. This process has an inherent tradeoff between reconstruction and editability, limiting the editing of challenging images such as highly-detailed ones. Recognizing the reliance of text-to-image models inversion on a text condition, this work explores the importance of the condition choice. We show that a condition that precisely aligns with the input image significantly improves the inversion quality. Based on our findings, we introduce Tight Inversion, an inversion method that utilizes the most possible precise condition -- the input image itself. This tight condition narrows the distribution of the model's output and enhances both reconstruction and editability. We demonstrate the effectiveness of our approach when combined with existing inversion methods through extensive experiments, evaluating the reconstruction accuracy as well as the integration with various editing methods.
The Reconstruction-Editability Tradeoff
To edit a real-world photo using a diffusion model like Stable Diffusion, the image must first be "inverted" to find the specific starting noise that recreates the original image upon denoising. Standard approaches, such as DDIM inversion, rely on text prompts to guide this process. However, text is often too imprecise to capture the fine-grained details of a complex scene. This leads to a fundamental bottleneck: the reconstruction-editability tradeoff. If the process prioritizes perfect reconstruction, the resulting noise becomes too "stiff" for meaningful edits; if it prioritizes editability, fine details like textures and reflections are lost.
Methodology: Tight Inversion
Tight Inversion addresses this by using the source image itself as the conditioning signal during inversion, rather than a vague text prompt. This "tightens" the probability distribution the model searches through, making the inversion process significantly more accurate.
The method integrates seamlessly with existing architectures (SDXL, Flux) via pre-trained adapters like IP-Adapter for general scenes and PuLID for facial identity. By aligning the condition used during inversion with the one used during denoising, the mathematical trajectories of the diffusion process align perfectly, preventing the "drift" that causes reconstruction errors in traditional methods.
Key Results and Identity Preservation
Quantitative evaluations on MS-COCO and MagicBrush benchmarks show substantial gains. For instance, adding Tight Inversion to DDIM improved the PSNR from 25.34 to 26.90 and significantly reduced perceptual loss (LPIPS). Qualitatively, the method excels at preserving intricate details—such as tattoos or window reflections—that vanilla inversion methods typically smooth over.
One of the most striking applications is in identity-preserving edits. When using the Flux model with PuLID, Tight Inversion maintains the subject's facial structure even during dramatic transformations.
Conclusion and Future Work
Tight Inversion demonstrates that the most effective condition for inverting an image is the image itself. While the method is currently dependent on the quality of underlying adapters, it provides a robust framework for high-fidelity real-image editing. Future research may focus on developing conditioning mechanisms specifically optimized for the inversion task to further decouple reconstruction accuracy from editing flexibility.
Summary updated