Lightning-Fast Image Inversion and Editing for Text-to-Image Diffusion Models

Dvir Samuel, Barak Meiri, Haggai Maron, Yoad Tewel, Nir Darshan +3 more
2/12/2026

No official code found. Best implementation: dvirsamuel/NewtonRaphsonInversion (66 stars, last commit 2025-03-09). 1 more below.

Abstract

Diffusion inversion is the problem of taking an image and a text prompt that describes it and finding a noise latent that would generate the exact same image. Most current deterministic inversion techniques operate by approximately solving an implicit equation and may converge slowly or yield poor reconstructed images. We formulate the problem by finding the roots of an implicit equation and devlop a method to solve it efficiently. Our solution is based on Newton-Raphson (NR), a well-known technique in numerical analysis. We show that a vanilla application of NR is computationally infeasible while naively transforming it to a computationally tractable alternative tends to converge to out-of-distribution solutions, resulting in poor reconstruction and editing. We therefore derive an efficient guided formulation that fastly converges and provides high-quality reconstructions and editing. We showcase our method on real image editing with three popular open-sourced diffusion models: Stable Diffusion, SDXL-Turbo, and Flux with different deterministic schedulers. Our solution, Guided Newton-Raphson Inversion, inverts an image within 0.4 sec (on an A100 GPU) for few-step models (SDXL-Turbo and Flux.1), opening the door for interactive image editing. We further show improved results in image interpolation and generation of rare objects.

View on arXivView PDF

Code Implementations(2)

dvirsamuel/FPICommunity100%

Code for our paper "Fixed-point Inversion for Text-to-image diffusion models"

191PythonFeb 20, 20242 years ago

[ICLR 2025] Code for our paper: GNRI: Lightning-Fast Image Inversion and Editing for Text-to-Image Diffusion Models

6611Python, Jupyter NotebookAug 27, 20241 years ago

Cite this paper

@article{samuel2026lightningfast,
  title  = {Lightning-Fast Image Inversion and Editing for Text-to-Image Diffusion Models},
  author = {Dvir Samuel and Barak Meiri and Haggai Maron and Yoad Tewel and Nir Darshan and S. Avidan and Gal Chechik and Rami Ben-Ari},
  year   = {2026},
  eprint = {2312.12540},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.12540},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.12540.svg)](https://codeofpaper.com/paper/2312.12540)

Discussion