Abstract
Real image editing with diffusion models requires accurate inversion of pixels to noise vectors. Standard DDIM inversion often suffers from reconstruction drift due to linearization assumptions. We present Accelerated Iterative Diffusion Inversion (AIDI), which treats inversion as a fixed-point iteration problem solved via the implicit backward Euler method. Combined with a novel blended guidance technique, AIDI achieves high-fidelity editing and reconstruction in significantly fewer steps (10-20) than existing state-of-the-art methods.
Introduction
Diffusion models have revolutionized image generation, yet editing existing real-world images remains a challenge. The core difficulty lies in "inversion"—the process of mapping an image back to the specific noise vector that would generate it. Traditional methods like DDIM inversion rely on a linearization assumption that frequently fails, leading to significant "drift" where the reconstructed image deviates from the original. While solutions like Null-Text Inversion (NTI) or EDICT exist, they are often computationally prohibitive or architecturally complex. AIDI addresses these issues by providing a mathematically grounded, stable inversion method that remains robust even at low sampling step counts.
Methodology
Accelerated Iterative Diffusion Inversion (AIDI)
The authors model the inversion process as an Ordinary Differential Equation (ODE) and apply the implicit backward Euler method. This approach treats inversion as a fixed-point iteration problem: $z_t^{n+1} = f(z_t^n)$. To ensure rapid convergence, the framework incorporates Anderson acceleration, a classic numerical technique for speeding up fixed-point iterations. A simplified variant, AIDI_E, is also provided to reduce computational overhead by using fixed parameters.
Blended Guidance and Stochastic Editing
High Classifier-Free Guidance (CFG) is essential for effective semantic editing but typically causes inversion to diverge. AIDI solves this through Blended Guidance, which decouples the guidance scales. By extracting soft masks from the model’s cross-attention maps, the system applies high guidance only to the specific regions targeted for editing (e.g., changing a dog to a cat) while maintaining low guidance on the background to preserve the original image structure. Additionally, a small amount of stochastic noise ($\eta = 0.1$) is introduced during editing to improve recovery in difficult areas, such as overexposed regions.
Experimental Results
Quantitative Performance
Evaluations on the COCO dataset demonstrate that AIDI significantly outperforms baselines in reconstruction accuracy. At 20 steps, AIDI achieved an LPIPS score of 0.063, a substantial improvement over the standard baseline's 0.148.
Efficiency and Qualitative Quality
Unlike Null-Text Inversion, which requires expensive backpropagation, AIDI is highly efficient, making it suitable for interactive editing. Qualitative tests on the AFHQ dataset show that AIDI produces more photorealistic results while better preserving the original pose and lighting than PTP or EDICT, particularly in the "fast" regime of 10 to 20 steps. The method proves versatile across various tasks, including local object swaps, global style transfers, and background replacements.
Conclusion and Future Work
AIDI provides a robust numerical solution to the diffusion inversion problem. By treating inversion as a fixed-point iteration, it achieves high fidelity and speed. Future work may focus on improving the spatial resolution of the cross-attention maps to prevent minor "bleeding" of edits and further refining iteration parameters to handle extremely high guidance scales without structural loss.
Summary updated