Introduction
The advent of text-to-image (T2I) diffusion models, such as Stable Diffusion and DALL-E, has revolutionized visual content creation. However, while these models excel at generating high-quality images from scratch, achieving "surgical" precision in editing existing images remains a significant challenge. Image editing—defined as the modification of existing visual content to align with specific user intentions—requires a delicate balance between preserving the original image's identity and introducing requested changes. This survey provides a structured roadmap of this rapidly evolving field, establishing a formal taxonomy and categorizing state-of-the-art methods into three technical pillars.
A Taxonomy of Editing Tasks
To organize the diverse array of editing capabilities, the survey proposes a hierarchy based on the nature of the modification. Tasks are broadly divided into Visual Content and Visual Expression.
- Visual Content: This category focuses on the "what" of the image. It includes object-level edits (adding, removing, or replacing subjects) and background-level edits. Within object editing, "subject-driven" tasks involve maintaining the identity of a specific object across different contexts.
- Visual Expression: This category focuses on the "how." It encompasses structural changes (outpainting, view changes), style transfers (e.g., turning a photo into a sketch), relighting, and texture modifications (super-resolution, de-blurring).
Technical Pillars of Diffusion-Based Editing
The survey identifies three primary technical approaches that power modern image editing:
1. Inversion-Based Methods
Inversion is a "training-free" approach that seeks to find the initial noise latent that, when processed by the diffusion model, reconstructs the original image. By reversing the diffusion process, researchers can identify intermediate variables—such as attention maps or noise latents—and manipulate them during the subsequent re-generation (editing) phase. Notable examples include SDEdit, which adds noise to an image and then denoises it with a new prompt, and Prompt-to-Prompt (P2P), which edits images by swapping cross-attention maps.
2. Fine-Tuning-Based Methods
These methods involve updating the weights of the diffusion model itself.
- Training-time fine-tuning: Models like InstructPix2Pix are trained on massive datasets of "before and after" pairs to learn general editing instructions.
- Testing-time fine-tuning: Approaches like DreamBooth or Imagic optimize the model on a single image or a small set of images at the time of editing. This ensures the model "memorizes" the specific details of the subject, allowing for high-fidelity modifications.
3. Adapter-Based Methods
Adapters are lightweight, plug-and-play modules that provide additional control signals without altering the base model's parameters. These modules allow models to ingest non-text inputs like depth maps, Canny edges, or segmentation masks. ControlNet and T2I-Adapter are foundational examples that have enabled precise spatial control in the editing process.
Datasets and Benchmarks
The field is transitioning from simple data collection to sophisticated synthetic generation.
- Extraction-based datasets use computer vision tools to derive control signals (like edges or masks) from existing image-caption datasets like COCO.
- Generation-based datasets leverage Large Language Models (LLMs) to generate editing instructions and T2I models to create the corresponding image pairs.
Evaluation remains a hurdle. While traditional metrics like Fréchet Inception Distance (FID) measure overall image quality, they often fail to assess "edit faithfulness"—how well the change matches the user's prompt. Consequently, the field is moving toward specialized benchmarks like EditBench, TEdBench, and I2EBench, and increasingly employing Multimodal Large Language Models (MLLMs) like GPT-4V as automated judges.
Challenges and Future Directions
Despite significant progress, several "frontier" challenges remain. The stochastic nature of diffusion models often leads to a loss of fine detail during inversion. Furthermore, "multi-turn" editing—where a user provides a sequence of instructions—remains difficult due to the challenge of maintaining consistency across multiple edits. Finally, extending these techniques to video editing introduces exponential complexity in maintaining temporal and spatial coherence.
The integration of MLLMs represents a promising path forward, as these models can better interpret vague user instructions and bridge the gap between semantic intent and pixel-level execution.
Summary updated