Abstract
Text-guided image manipulation typically relies on inversion-based methods, which are often computationally expensive and struggle to balance consistency with accuracy. We introduce InfEdit (Inversion-Free Editing), a framework that eliminates the need for explicit inversion. By utilizing a novel Denoising Diffusion Consistent Model (DDCM) for "virtual inversion" and a Unified Attention Control (UAC) mechanism, InfEdit enables high-fidelity rigid and non-rigid edits in under 3 seconds. Our approach is compatible with efficient consistency sampling, facilitating real-time applications without compromising image integrity.
Introduction: The Inversion Bottleneck
Editing real images with diffusion models traditionally requires "inversion"—the process of finding a noise map that reconstructs the original image. This step introduces three primary challenges:
- Latency: Inversion is an iterative, time-consuming process that often exceeds the time required for the generation itself.
- Consistency vs. Accuracy: Maintaining background details while performing significant subject changes, such as pose adjustments, is notoriously difficult.
- Sampling Incompatibility: Traditional inversion techniques are mathematically incompatible with modern, high-speed Consistency Models (CMs) designed for few-step generation.
Methodology
InfEdit addresses these hurdles through two core innovations that bypass the need for explicit latent optimization.
Denoising Diffusion Consistent Model (DDCM)
InfEdit introduces the concept of Virtual Inversion. The authors demonstrate that when the initial image is known, a specific variance schedule can reduce the standard denoising step into the same mathematical form used by multi-step consistency sampling. This allows the model to anchor the generation to the original image's structure without the overhead of explicit inversion.
Unified Attention Control (UAC)
To manage the delicate balance between preservation and modification, InfEdit employs a three-branch architecture:
- Source Branch: Maintains the original image's integrity and identity.
- Layout Branch: An intermediate branch that captures structural and spatial changes (e.g., a new pose).
- Target Branch: The final output that blends new semantic content with the original background.
By unifying Cross-Attention and Mutual Self-Attention, UAC facilitates both rigid edits (e.g., texture changes) and complex non-rigid edits (e.g., pose transformations) in a single, tuning-free pass.
Experimental Results
Evaluated on the PIE-Bench (700 images across 9 scenarios), InfEdit demonstrates state-of-the-art performance across several metrics:
- Efficiency: Complex edits are completed in less than 3 seconds on an NVIDIA A40 GPU, making it suitable for real-time applications.
- Fidelity: The model achieves superior background preservation (measured by PSNR/SSIM) and high edit faithfulness (CLIPScore) compared to optimization-based baselines.
- Step Efficiency: InfEdit achieves high-quality results in just 12-15 steps when using a Latent Consistency Model (LCM) backbone, significantly reducing the drift often seen in long diffusion chains.
Conclusion
InfEdit represents a significant step toward real-time, high-fidelity image editing. By bypassing explicit inversion and utilizing a robust attention control framework, it handles intricate semantic modifications while maintaining the integrity of the original scene. Future work will explore extending this efficiency to video editing domains where the speed of virtual inversion would be even more transformative.
Summary updated