Towards Efficient Exemplar Based Image Editing with Multimodal VLMs

Avadhoot Jadhav, Ashutosh Srivastava, Abhinav Java, Silky Singh, Tarun Ram Menta, Surgan Jandial, Balaji KrishnamurthyarXiv 2025 · DOI

Abstract

Exemplar-based image editing allows users to specify complex transformations by providing a "before" and "after" image pair. While powerful, existing methods often rely on time-consuming iterative optimization. We introduce ReEdit, a novel, optimization-free pipeline that leverages the reasoning capabilities of Multimodal Large Language Models (MLLMs) and the generative power of Diffusion Models. By combining textual descriptions from LLaVA with visual delta embeddings from CLIP, ReEdit achieves high-fidelity edits while operating approximately 4x faster than optimization-heavy baselines.

Introduction

Text-to-image diffusion models have made image editing accessible, yet text prompts often struggle to capture the nuance of specific artistic styles, textures, or structural modifications. Exemplar-based editing addresses this by using a reference pair ($x, x_{edit}$) to define the transformation for a target image $y$.

Current state-of-the-art approaches, such as VISII, typically require slow, per-image optimization at inference time, often taking nearly 10 minutes per edit. Other specialized models are limited to specific domains like global style transfer. ReEdit overcomes these hurdles by providing a general-purpose, zero-shot framework that preserves the target image's structure while accurately applying the desired transformation.

Methodology: The ReEdit Pipeline

ReEdit utilizes a frozen Stable Diffusion model and a Vision-Language Model (LLaVA) to perform edits without fine-tuning. The process is divided into two primary phases: multimodal embedding extraction and structure-preserving generation.

The ReEdit architecture combines LLaVA-generated text descriptions with CLIP-based visual difference embeddings to guide a frozen diffusion model.

1. Multimodal Edit Embedding

The system first captures the essence of the edit through two complementary signals:

  • Textual Reasoning: LLaVA analyzes the exemplar pair and the target image to generate a concise text description of the change.
  • Visual Delta: To capture details that text might omit (e.g., specific color gradients or textures), ReEdit computes the difference between the CLIP visual embeddings of the "before" and "after" exemplars ($\Delta_{img} = \mathcal{E}_{img}(x_{edit}) - \mathcal{E}_{img}(x)$).

These features are concatenated into a single "edit embedding" that conditions the diffusion process.

2. Structure-Preserving Generation

To ensure the target image $y$ retains its original layout and identity, ReEdit employs DDIM inversion. During the denoising process, the model uses the edit embedding via cross-attention. Crucially, it also performs feature injection, where structural information (Keys and Queries) from the original target image's inversion path is injected into the self-attention layers of the generating UNet. This mechanism ensures that only the attributes specified by the edit embedding are modified, leaving the background and unrelated structures intact.

Experimental Evaluation

The authors evaluated ReEdit on a curated dataset of 170 exemplar pairs sourced from Instruct-Pix2Pix, HQ-Edit, and Imagic, covering both local (e.g., object replacement) and global (e.g., scene change) edits.

Quantitative Performance

ReEdit demonstrates significant improvements in both speed and quality:

  • Efficiency: ReEdit processes images in roughly 140 seconds, a 4x speedup over the VISII baseline (~540 seconds).
  • Fidelity: The method achieved a state-of-the-art LPIPS score of 0.16, outperforming the next best method (0.20). It also led in SSIM (0.63) and Human Preference Score (HPS), indicating superior structural preservation and visual appeal.

Qualitative Results

As shown in the visual comparisons, ReEdit excels at maintaining the context of the target image while applying precise changes.

Qualitative comparison showing ReEdit's ability to perform complex local and global edits (e.g., changing a dog breed or adding a skeleton face) while preserving background details better than baselines.

Unlike Instruct-Pix2Pix, which often suffers from background "bleeding" or unwanted artifacts, ReEdit's feature injection mechanism keeps the non-edited regions stable. For instance, in the "Golden Retriever to Dalmatian" task, ReEdit successfully changes the dog's coat without altering the surrounding grass or fence, a common failure point for other models.

Conclusion

ReEdit represents a significant step toward practical exemplar-based image editing. By removing the need for per-image optimization and leveraging the combined strengths of MLLMs and diffusion models, it offers a fast, high-fidelity solution for complex visual transformations. Future work will explore extending this framework to more recent diffusion architectures and refining the MLLM prompting strategies for even more complex, multi-step editing tasks.

Summary updated

BibTeX
@misc{jadhav2025towards,
  author = {Avadhoot Jadhav and Ashutosh Srivastava and Abhinav Java and Silky Singh and Tarun Ram Menta and Surgan Jandial and Balaji Krishnamurthy},
  title = {{Towards Efficient Exemplar Based Image Editing with Multimodal VLMs}},
  year = {2025},
  eprint = {2506.20155},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.20155},
}
Figure