Image Inversion: A Survey from GANs to Diffusion and Beyond

Yinan Chen, Jiangning Zhang, Yali Bi, Xiaobin Hu, Teng Hu, Zhucun Xue, Ran Yi, Yong Li, Ying TaiarXiv 2025

Abstract

Image inversion is a fundamental task in generative models, aiming to map images back to their latent representations to enable downstream applications such as editing, restoration, and style transfer. This paper provides a comprehensive review of the latest advancements in image inversion techniques, focusing on two main paradigms: Generative Adversarial Network (GAN) inversion and diffusion model inversion. We categorize these techniques based on their optimization methods. For GAN inversion, we systematically classify existing methods into encoder-based approaches, latent optimization approaches, and hybrid approaches, analyzing their theoretical foundations, technical innovations, and practical trade-offs. For diffusion model inversion, we explore training-free strategies, fine-tuning methods, and the design of additional trainable modules, highlighting their unique advantages and limitations. Additionally, we discuss several popular downstream applications and emerging applications beyond image tasks, identifying current challenges and future research directions.

Generative models have achieved remarkable success in synthesizing high-quality images from noise. However, the ability to manipulate existing real-world images remains a critical challenge. Image inversion serves as the "missing link," mapping images back to the internal mathematical language (latent space) of generative models to enable downstream tasks like editing, restoration, and style transfer.

The core challenge in image inversion is the Inversion-Editability Trade-off. A perfect reconstruction (overfitting) often locks the latent representation, preventing semantic modifications. Conversely, a loose representation may allow for easy editing but fails to preserve the identity and details of the original image. Researchers aim to find the "sweet spot" that maximizes both fidelity and controllability across different model architectures.

Methodology: GANs vs. Diffusion Models

The survey categorizes inversion techniques into two primary paradigms based on the underlying generative architecture.

A comprehensive overview of image inversion taxonomy, covering general forms, GAN-based approaches, diffusion-based strategies, and publication trends.

1. GAN Inversion

GAN inversion methods are classified into three main approaches:

  • Encoder-based: Employs a secondary neural network to predict latent codes. While computationally efficient and fast, these methods often struggle with fine-grained details.
  • Latent Optimization: Directly searches for the optimal latent code via gradient descent to minimize reconstruction error. This approach yields high fidelity but is computationally expensive and slow.
  • Hybrid Approaches: The current standard for GANs, combining an encoder's "initial guess" with subsequent optimization refinement to balance speed and quality.

2. Diffusion Model Inversion

Diffusion models, which operate through iterative denoising, require more complex inversion strategies. The survey highlights the emergence of Diffusion Transformers (DiT) and Rectified Flow as promising technologies that offer smoother latent spaces, making them inherently easier to invert than traditional U-Net architectures. Current strategies include:

  • Training-free: Methods like DDIM inversion or "Null-text Inversion" that manipulate noise trajectories or cross-attention maps without altering model weights.
  • Fine-tuning: Techniques such as DreamBooth that adapt the model's weights to "learn" specific subjects or styles.
  • Extra Trainable Modules: The use of small, efficient adapters or hypernetworks (e.g., ControlNet-style modules) to provide external guidance during the inversion process.

The field is currently undergoing a significant paradigm shift. As shown in the statistics, research interest in GAN-based inversion is declining, while Diffusion-based work is experiencing exponential growth due to its superior stability and semantic controllability.

Statistics showing the rapid growth of Diffusion Model inversion papers compared to GAN-based methods from 2021 to 2024.

Key takeaways from recent research include:

  • Attention-based Editing: Cross-attention maps (linking text to pixels) have emerged as the primary "steering wheel" for controlling diffusion-based editing, allowing for structural preservation during content modification.
  • Beyond Latent Points: High-fidelity diffusion inversion often requires optimizing the entire noise trajectory or null-text embeddings, rather than just a single latent point.
  • Expanding Domains: Inversion techniques are moving beyond 2D images into video (maintaining temporal consistency), audio (pitch/style adjustment), and 3D medical imaging (MRI/CT reconstruction).

Benchmarking and Datasets

Standardized evaluation is crucial for progress. The survey identifies several "gold standard" datasets:

  • Faces: FFHQ and CelebA-HQ remain the standard for testing attribute editing like age and expression.
  • General Scenes: MS COCO and LAION are used for diverse, large-scale testing.
  • Specialized Benchmarks: PIE-bench provides a rigorous framework for evaluating 10 different editing categories, such as object replacement and style modification.

Future Directions and Limitations

Despite rapid progress, several "open frontiers" remain:

  • Computational Efficiency: Reducing the cost of diffusion inversion for real-time mobile applications through better ODE solvers.
  • Multimodal Consistency: Ensuring seamless transitions between different data modalities (e.g., text-to-image-to-text).
  • Ethics and Bias: Addressing potential biases in generative models that can be amplified during inversion, such as unintended "beautification."
  • Reasoning-Integrated Inversion: Incorporating "Chain-of-Thought" logic to enable more intuitive, context-aware image editing.

For the latest updates and a curated list of papers, visit the Image Inversion GitHub repository.

Summary updated

BibTeX
@misc{chen2025image,
  author = {Yinan Chen and Jiangning Zhang and Yali Bi and Xiaobin Hu and Teng Hu and Zhucun Xue and Ran Yi and Yong Li and Ying Tai},
  title = {{Image Inversion: A Survey from GANs to Diffusion and Beyond}},
  year = {2025},
  eprint = {2502.11974},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.11974},
}
Figure