Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models

Abstract

The diffusion inversion problem seeks to recover the latent generative trajectory of a diffusion model given a real image. Faithful inversion is critical for ensuring consistency in diffusion-based image editing. Prior works formulate this task as a fixed-point problem and solve it using numerical methods. However, achieving both accuracy and efficiency remains challenging, especially for few-step models and novel samples. In this paper, we propose ***PreciseInv***, a general-purpose test-time optimization framework that enables fast and faithful inversion in as few as two inference steps. Unlike root-finding methods, we reformulate inversion as a learning problem and introduce a dynamic programming-inspired strategy to recursively estimate a parameterized sequence of noise embeddings. This design leverages the smoothness of the diffusion latent space for accurate gradient-based optimization and ensures memory efficiency via recursive subproblem construction. We further provide a theoretical analysis of ***PreciseInv***'s convergence and derive a provable upper bound on its reconstruction error. Extensive experiments on COCO 2017, DarkFace, and a stylized cartoon dataset show that ***PreciseInv*** achieves state-of-the-art performance in both reconstruction quality and inference speed. Improvements are especially notable for few-step models and under distribution shifts. Moreover, precise inversion yields substantial gains in editing consistency for text-driven image manipulation tasks. Code is available at: https://github.com/panda7777777/PreciseInv

Cite

Text

Zuo et al. "Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models." Advances in Neural Information Processing Systems, 2025.

Markdown

[Zuo et al. "Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models." Advances in Neural Information Processing Systems, 2025.](https://mlanthology.org/neurips/2025/zuo2025neurips-precise/)

BibTeX

@inproceedings{zuo2025neurips-precise,
  title     = {{Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models}},
  author    = {Zuo, Jing and Cui, Luoping and Zhu, Chuang and Qi, Yonggang},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2025},
  url       = {https://mlanthology.org/neurips/2025/zuo2025neurips-precise/}
}