Edit Transfer: Learning Image Editing via Vision In-Context Relations

Lan Chen, Qi Mao, Yuchao Gu, Mike Zheng Shou
3/17/2025
cs.CV

No official code found. Best implementation: CUC-MIPG/Edit-Transfer (90 stars, last commit 2025-06-06).

Abstract

We introduce a new setting, Edit Transfer, where a model learns a transformation from just a single source-target example and applies it to a new query image. While text-based methods excel at semantic manipulations through textual prompts, they often struggle with precise geometric details (e.g., poses and viewpoint changes). Reference-based editing, on the other hand, typically focuses on style or appearance and fails at non-rigid transformations. By explicitly learning the editing transformation from a source-target pair, Edit Transfer mitigates the limitations of both text-only and appearance-centric references. Drawing inspiration from in-context learning in large language models, we propose a visual relation in-context learning paradigm, building upon a DiT-based text-to-image model. We arrange the edited example and the query image into a unified four-panel composite, then apply lightweight LoRA fine-tuning to capture complex spatial transformations from minimal examples. Despite using only 42 training samples, Edit Transfer substantially outperforms state-of-the-art TIE and RIE methods on diverse non-rigid scenarios, demonstrating the effectiveness of few-shot visual relation learning.

View on arXivView PDF

Code Implementations(1)

Official code of "Edit Transfer: Learning Image Editing via Vision In-Context Relations"

901Python, Jupyter NotebookMar 13, 20251 years ago

Similar Papers

Cite this paper

@article{chen2025edit,
  title  = {Edit Transfer: Learning Image Editing via Vision In-Context Relations},
  author = {Lan Chen and Qi Mao and Yuchao Gu and Mike Zheng Shou},
  year   = {2025},
  eprint = {2503.13327},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.13327v2}
}

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/2503.13327.svg)](https://codeofpaper.com/paper/2503.13327)

Discussion