PairEdit: Learning Semantic Variations for Exemplar-based Image Editing

Hao Lu, Jia-Cheng Chen, Zhen-Guo Yang, Aurele Tohokantche Gnanha, Fu-Lee Wang +2 more
6/1/2025
9 citations

Official code: xudonmao/PairEdit (27 stars, Python, last commit 2025-11-25).

Abstract

Recent advancements in text-guided image editing have achieved notable success by leveraging natural language prompts for fine-grained semantic control. However, certain editing semantics are challenging to specify precisely using textual descriptions alone.

Show full abstract

A practical alternative involves learning editing semantics from paired source-target examples. Existing exemplar-based editing methods still rely on text prompts describing the change within paired examples or learning implicit text-based editing instructions. In this paper, we introduce PairEdit, a novel visual editing method designed to effectively learn complex editing semantics from a limited number of image pairs or even a single image pair, without using any textual guidance. We propose a target noise prediction that explicitly models semantic variations within paired images through a guidance direction term. Moreover, we introduce a content-preserving noise schedule to facilitate more effective semantic learning. We also propose optimizing distinct LoRAs to disentangle the learning of semantic variations from content. Extensive qualitative and quantitative evaluations demonstrate that PairEdit successfully learns intricate semantics while significantly improving content consistency compared to baseline methods. Code will be available at https://github.com/xudonmao/PairEdit.

View on arXivView PDF

Code Implementations(1)

xudonmao/PairEditOfficial100%
271PythonJun 9, 20251 years ago

Similar Papers

Cite this paper

@article{lu2025pairedit,
  title  = {PairEdit: Learning Semantic Variations for Exemplar-based Image Editing},
  author = {Hao Lu and Jia-Cheng Chen and Zhen-Guo Yang and Aurele Tohokantche Gnanha and Fu-Lee Wang and Qing Li and Xu-Dong Mao},
  year   = {2025},
  eprint = {2506.07992},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2506.07992},
  url    = {https://doi.org/10.48550/arXiv.2506.07992},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07992.svg)](https://codeofpaper.com/paper/2506.07992)

Discussion