Skip to main content
QUICK REVIEW

[Paper Review] Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models

Daiki Miyake, Akihiro Iohara|arXiv (Cornell University)|May 26, 2023
Advanced Vision and ImagingComputer Science18 citations
TL;DR

This paper introduces negative-prompt inversion, a forward-propagation-based image inversion method for diffusion models that achieves reconstruction quality close to optimization-based methods but with over 30x speedup, enabling rapid editing.

ABSTRACT

In image editing employing diffusion models, it is crucial to preserve the reconstruction fidelity to the original image while changing its style. Although existing methods ensure reconstruction fidelity through optimization, a drawback of these is the significant amount of time required for optimization. In this paper, we propose negative-prompt inversion, a method capable of achieving equivalent reconstruction solely through forward propagation without optimization, thereby enabling ultrafast editing processes. We experimentally demonstrate that the reconstruction fidelity of our method is comparable to that of existing methods, allowing for inversion at a resolution of 512 pixels and with 50 sampling steps within approximately 5 seconds, which is more than 30 times faster than null-text inversion. Reduction of the computation time by the proposed method further allows us to use a larger number of sampling steps in diffusion models to improve the reconstruction fidelity with a moderate increase in computation time.

Motivation & Objective

  • Motivate fast, high-fidelity reconstruction of real images for editing with diffusion models.
  • Eliminate optimization in inversion while preserving reconstruction quality comparable to optimization-based methods.
  • Enable rapid real-image editing by integrating with existing editing frameworks like prompt-to-prompt.

Proposed method

  • Replace optimized null-text embeddings with the actual prompt embeddings in CFG to enable forward-only reconstruction.
  • Leverage DDIM inversion and CFG to derive latent trajectories without backpropagation.
  • Theoretical justification (Appendix) that optimal null-text embeddings can be approximated by the conditioning text embedding C.
  • Show empirically that negative-prompt inversion achieves reconstruction quality close to null-text inversion but with a ~30x speedup.
  • Demonstrate compatibility with image-editing approaches such as prompt-to-prompt for fast real-image editing.

Experimental results

Research questions

  • RQ1Can real-image reconstruction via diffusion models be achieved without optimization while maintaining high fidelity?
  • RQ2How does replacing null-text embeddings with prompt embeddings affect reconstruction and editing quality?
  • RQ3What are the speed and quality trade-offs between negative-prompt inversion, null-text inversion, and DDIM inversion with CFG?
  • RQ4Is the method compatible with existing editing pipelines like prompt-to-prompt for real-image editing?

Key findings

  • Negative-prompt inversion achieves reconstruction quality comparable to null-text inversion while enabling forward computation only.
  • The method runs at ~5 seconds for 512x512 images with 50 sampling steps, and is ~30x faster than null-text inversion.
  • Reconstruction quality is still significantly better than DDIM inversion with CFG.
  • Combining negative-prompt inversion with editing methods like prompt-to-prompt enables fast real-image editing.
  • Increasing sampling steps further improves reconstruction quality without sacrificing speed relative to optimization-based methods.
  • Inversion success varies across images, with some failures (notably in reconstructing human faces) discussed as limitations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.