Introduction
Editing real images using diffusion models requires a delicate balance between reconstruction fidelity and editability. To modify an existing image, it must first be "inverted" to find the initial noise latent that reproduces the original image upon denoising. However, standard deterministic methods like DDIM inversion often struggle to deviate from the original structure when given a new prompt (e.g., changing a "torch" to a "flower"). Conversely, introducing stochasticity ($\eta > 0$) typically degrades reconstruction quality. Eta Inversion addresses this "reconstruction vs. editability" gap by introducing a time- and region-dependent $\eta$ function into the DDIM sampling process.
Methodology
The core of Eta Inversion lies in strategically injecting Gaussian noise where and when it is most beneficial. The approach is built on three pillars:
- Time-Dependent $\eta$ Schedule: High-level structures are formed early in denoising, while fine details are refined later. Eta Inversion uses a decreasing $\eta$ schedule—applying higher noise early to provide the flexibility needed for structural changes, and reducing it to zero in later steps to preserve low-level textures.
- Region-Dependent (Masked) $\eta$: To ensure background stability, the method uses cross-attention maps to identify pixels relevant to the edit prompt. Stochastic noise ($\eta > 0$) is only applied to these "active" regions, while the rest of the image remains deterministic ($\eta = 0$).
- Optimal Noise Selection: To maintain perfect reconstruction without departing from the Gaussian noise distribution the model expects, the method samples multiple noise candidates ($\epsilon_{add}$) at each step. It then selects the candidate that minimizes the discrepancy between the forward and backward latent paths.
Experimental Setup
The researchers evaluated Eta Inversion using PIE-Bench, a comprehensive benchmark for real image editing tasks including object replacement, style transfer, and color modification. They also utilized a specific Change-style subset to assess performance on global artistic transformations.
Key Results and Insights
The proposed method demonstrates that stochasticity is a necessary tool for helping the "target" editing path diverge from the "source" reconstruction path. By ensuring the injected noise remains Gaussian, Eta Inversion avoids the quality degradation seen in previous "perfect reconstruction" methods.
Quantitative results on PIE-Bench show that Eta Inversion achieves superior text alignment, evidenced by the highest CLIP similarity scores among baselines like Null-text Inversion, EDICT, and Direct Inversion. Furthermore, the use of region-dependent masks allows for better structure preservation in non-edited areas, reflected in lower DINO and LPIPS scores compared to other high-editability techniques. The method particularly excels in style transfer tasks, where it effectively creates the necessary gap between source and target branches to allow for dramatic artistic shifts.
Conclusion and Future Work
While Eta Inversion significantly advances real image editing, it currently requires task-specific $\eta$ configurations (e.g., for structural similarity vs. style transfer). Future research may explore the use of Multimodal Large Language Models (MLLMs) to automatically determine optimal $\eta$ schedules and masking thresholds for any given image-prompt pair. Additionally, improving metrics to better capture the subjective quality of an "edit" remains an open challenge in the field.
Summary updated