Zero-shot Image Editing with Reference Imitation

Xi Chen, Yutong Feng, Mengting Chen, Yiyang Wang, Shilong Zhang, Yu Liu, Yujun Shen, Hengshuang Zhao

Abstract

MimicBrush introduces a novel "imitative editing" paradigm, enabling precise image modifications guided by "in-the-wild" reference images. Unlike traditional methods that rely on restrictive text prompts or manual cropping, MimicBrush leverages a dual-branch diffusion architecture and self-supervised video training to automatically discover semantic correspondences. This approach ensures high-fidelity texture transfer and seamless blending across diverse categories.

Introduction: The Challenge of Precise Editing

Traditional image editing typically relies on either text-driven inpainting or manual image composition. Text prompts often fail to capture intricate details or specific patterns, while composition requires tedious manual segmentation and often results in poor blending. MimicBrush addresses these limitations by allowing users to mask a source region and provide a reference image, letting the model determine the relevant parts to imitate.

Figure 1: MimicBrush enables "imitative editing" where a source image is modified based on a reference image without manual cropping.

Methodology

The core of MimicBrush is a dual-branch diffusion architecture consisting of an Imitative U-Net and a Reference U-Net.

Dual U-Net Architecture

Instead of using a global CLIP encoder, which often loses fine-grained details, MimicBrush employs a second U-Net to extract multi-level features from the reference image. These features are integrated into the main editing U-Net via cross-attention layers, preserving "pixel-perfect" details.

Self-Supervised Video Training

To learn semantic correspondences without manual labels, the model is trained on video clips. By masking a region in one frame and tasking the model to recover it using another frame from the same video, the system learns to handle variations in pose and lighting naturally.

SIFT-Guided Masking and Shape Control

The training uses SIFT (Scale-Invariant Feature Transform) to identify meaningful regions for masking, forcing the model to learn complex reconstructions. For texture-specific tasks, the model can incorporate depth maps to maintain the original object's structure while adopting new patterns.

Experimental Results

MimicBrush was evaluated on a new Imitative Editing Benchmark covering part composition and texture transfer.

Figure 5: Qualitative results across various domains, including fashion, animals, and product design, showcasing MimicBrush's ability to transfer complex patterns and parts.

Quantitative Performance

MimicBrush significantly outperforms state-of-the-art baselines. On the Part Composition task, it achieved an SSIM of 0.70 and an LPIPS of 0.28, compared to 0.51 and 0.49 respectively for Paint-by-Example.

Qualitative and User Study

Qualitative comparisons show that MimicBrush excels at transferring complex local patterns (e.g., sneaker logos, knit patterns) while maintaining source lighting. In user studies, annotators preferred MimicBrush in over 50% of cases for fidelity and harmony.

Conclusion

MimicBrush represents a significant step forward in zero-shot image editing. By moving beyond text prompts and CLIP-based encoders, it provides a more intuitive and high-fidelity workflow for "imitative" tasks. Future work will focus on extending these capabilities to temporal consistency in video editing.

Summary updated

BibTeX
@inproceedings{chen2024zero,
  author = {Xi Chen and Yutong Feng and Mengting Chen and Yiyang Wang and Shilong Zhang and Yu Liu and Yujun Shen and Hengshuang Zhao},
  title = {{Zero-shot Image Editing with Reference Imitation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=LZV0U6UHb6},
}
Figure