Inverse-and-Edit: Simple and Effective Framework for Fast Image Editing
Organizations: HSE University, AIRI · AIRI, Sber, Innopolis
Abstract
Diffusion-based text-to-image models have recently been distilled into few-step samplers and fast generators, reducing inference cost while maintaining high image quality. However, text-guided editing with such accelerated backbones remains challenging: inversion in a small number of steps is unreliable, local errors accumulate along the trajectory, and existing fast-editing methods typically rely on backbone-specific inversion procedures, which limits their transferability. In this work, we propose a simple and universal framework for text-guided image editing with arbitrary accelerated diffusion and flow-matching models. Instead of optimizing local, per-timestep objectives, we directly minimize a global editing objective over the entire inversion-generation trajectory. The framework fine-tunes only 1.5-7 % of the base-model parameters through two lightweight LoRA adapters (forward and backward), trained on fewer than 10 K triplets from the publicly available HQ-Edit dataset. We validate our method on three architecturally distinct backbones: consistency-distilled SD1.5 LCM-Dreamshaper, adversarial-distilled SDXL-Turbo, and rectified-flow-distilled Z-Image-Turbo. On PIE-Bench, our method achieves the strongest editing alignment within each backbone family while ensuring a strong level of content preservation. Inference adds no extra steps beyond the standard inversion and editing passes. The project page with visual results is available at iliabeletskii.github.io/inverse-and-edit.
Figures & tables
| Method | CLIP | dCLIP | LPIPS | SSIM | PSNR | IR |
| w/o | 0.1901 | 0.8306 | ||||
| w/o | ||||||
| Ours (full) | 26.44 | 0.1541 | 22.01 | 0.7383 | ||
| w/o (no edit signal) |
| Editability | Preservation | Quality | Efficiency | Summary | ||||||
| Method | CLIP wh | CLIP ed | dCLIP | Struct | LPIPS | SSIM | PSNR | IR | Time (s) | Avg Rank |
| SD-based models | ||||||||||
| G&R | 26.47 | 22.79 | 13.7 | 3.33 | ||||||
| InfEdit | 0.053 | 0.850 | 28.0 | 3.33 | ||||||
| ChordEdit | 22.54 | 0.119 | 0.516 | |||||||
| SwiftEdit | 0.2 | |||||||||
| Ours vs. | Overall | Match | Preserve |
| RF-Edit | 78.0 | 59.0 | 81.0 |
| FlowEdit | 76.0 | 58.0 | 81.0 |
| FireFlow | 81.0 | 58.0 | 83.0 |
| UniEdit-Flow | 70.0 | 59.0 | 70.0 |
| Aggregate | 76.3 | 58.5 | 78.8 |
| SD-based methods | SDXL-based methods | Flow-based methods | |||||||||
| Model | MSE | ImageReward | LPIPS | Model | MSE | ImageReward | LPIPS | Model | MSE | ImageReward | LPIPS |
| DDIM-50 | 0.0079 | -0.023 | 0.279 | GNRi | 0.0065 | 0.416 | 0.283 | UniEdit-Flow | 0.0127 | -0.050 | 0.274 |
| iCD | 0.0447 | -0.497 | 0.611 | TurboEdit | 0.0470 | 0.427 | 0.483 | FireFlow | 0.0092 | -0.102 | 0.327 |
| SwiftEdit | 0.0496 | 0.437 | 0.507 | ReNoise | 0.0615 | 0.367 | 0.541 | RF-Edit | 0.0119 | -0.342 | 0.376 |
| Ours | 0.0056 | 0.425 | 0.172 | Ours | 0.0061 | 0.504 | 0.186 | Ours | 0.0052 | 0.535 | 0.166 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | LoRA rank | Per adapter | Total trainable | Frozen base | % of base |
| SD1.5 (LCM) | 32 | 6.38 M | 12.75 M | 865 M | 1.5% |
| SDXL-Turbo | 64 | 92.90 M | 185.79 M | 2.6 B | 7% |
| Z-Image-Turbo | 64 | 66.85 M | 133.69 M | 6.2B | 2.17% |
| CLIP wh | CLIP ed | dCLIP | Struct | LPIPS | SSIM | PSNR | IR | Time (s) | |
| SD-based | |||||||||
| PreciseInv | 26.65 | 22.95 | 0.129 | 33.0 | 0.132 | 0.765 | 21.9 | 0.520 | 3.4 |
| TFinv | 24.53 | 21.48 | 0.072 | 45.0 | 0.133 | 0.744 | 19.8 | 0.036 | 165 |
| Ours | 26.13 | 22.47 | 0.155 | 22.8 | 0.071 | 0.843 | 23.6 | 0.573 | 0.6 |
| SDXL-based | |||||||||
| PreciseInv | 27.49 | 24.08 | 0.151 | 64.6 | 0.213 | 0.735 | 18.2 | 0.736 | 9.4 |
| CLIP wh | CLIP ed | dCLIP | Struct | LPIPS | SSIM | PSNR | IR | |
| Ours | 26.13 | 22.47 | 0.155 | 22.8 | 0.071 | 0.843 | 23.6 | 0.573 |
| Ours (masked) | 25.43 | 21.85 | 0.120 | 14.3 | 0.051 | 0.864 | 25.8 | 0.440 |
| SD | SDXL | Flow | ||||
| Category | Ours | Best comp. | Ours | Best comp. | Ours | Best comp. |
| Random | 2.33 | 2.44 (InfEdit) | 1.89 | 2.11 (TurboEdit) | 1.33 | 2.67 (UniEdit) |
| Change object | 2.22 | 2.33 (InfEdit) | 1.67 | 2.22 (TurboEdit) | 2.33 | 2.67 (FlowEdit) |
| Add object | 1.44 | 2.89 (InfEdit) | 1.56 | 2.33 (TurboEdit) | 1.56 | 2.67 (UniEdit) |
| Delete object | 2.00 | 2.67 (InfEdit) | 1.78 | 2.22 (GNRi) | 2.78 | 2.78 (FlowEdit) |
| Content | 1.44 | 2.67 (InfEdit) | 1.78 | 2.11 (TurboEdit) | 1.56 | 2.67 (UniEdit) |
| SD-based | SDXL-based | Flow-based | ||||||
| Method | L/14 | bigG | Method | L/14 | bigG | Method | L/14 | bigG |
| Ours | 0.155 | 0.183 | Ours | 0.178 | 0.231 | Ours | 0.154 | 0.193 |
| ChordEdit | 0.119 | 0.145 | TurboEdit | 0.145 | 0.187 | UniEdit-Flow | 0.123 | 0.156 |
| G&R | 0.106 | 0.123 | ReNoise | 0.124 | 0.163 | FireFlow | 0.117 | 0.151 |
| InfEdit | 0.096 | 0.116 | GNRi | 0.038 | 0.043 | FlowEdit | 0.108 | 0.139 |
| NPI | 0.085 | 0.107 | RF-Edit | 0.103 | 0.128 | |||
| Sweep | CLIP | dCLIP | LPIPS | SSIM | PSNR | IR | |
| ( ) | 0 | 26.13 | 0.1423 | 0.2071 | 0.8171 | 21.49 | 0.6015 |
| 0.25 | 26.66 | 0.1641 | 0.2067 | 0.8062 | 20.71 | 0.8302 | |
| 0.5 | 26.94 | 0.1677 | 0.2269 | 0.7922 | 20.21 | 0.8626 | |
| 1 | 26.44 | 0.1541 | 0.1959 | 0.8296 | 22.01 | 0.7383 | |
| 2 | 27.01 | 0.1714 | 0.2636 | 0.7586 | 18.93 | 0.8501 | |
| ( ) | 0 | 26.06 | 0.1350 | 0.1901 | 0.8306 | 21.81 | 0.6029 |
Text-Guided Image Editing
Text-guided image editing changes selected image content from natural-language instructions while aiming to preserve everything else.
See all 166 papers