Abstract
Edit Transfer is a novel framework that enables complex, non-rigid image edits through a single "before-and-after" example. By conceptualizing image editing as a visual in-context learning task within a Diffusion Transformer (DiT), the model extracts transformations from an exemplar pair and applies them to a new query image with high precision. This approach bridges the gap between text-based and reference-based editing, particularly for spatial transformations that are difficult to describe verbally.
Introduction
Current image editing methodologies generally fall into two categories: Text-based Image Editing (TIE) and Reference-based Image Editing (RIE). TIE methods, while effective for semantic changes, often lack the "spatial bandwidth" required for precise geometric adjustments, such as specific limb curvatures or pose heights. Conversely, RIE methods typically focus on style or identity transfer and struggle with non-rigid transformations involving moving parts.
Edit Transfer addresses these limitations by framing editing as a Visual Relation In-Context Learning task. Instead of relying on complex text prompts or static references, the system learns the underlying transformation from a single visual example pair. This allows users to communicate complex spatial transformations that are easy to show but difficult to describe.
Methodology
The core of the Edit Transfer framework is the use of a Diffusion Transformer (DiT) backbone, specifically FLUX.1-dev, to process a $2 \times 2$ composite grid.
Visual In-Context Learning
The model is presented with a four-panel grid:
- Example-source ($I_s$): The original image of the example.
- Example-edited ($I_t$): The edited version of the example.
- Requested-source ($\hat{I}_s$): The new image to be edited.
- Requested-edited ($\hat{I}_t$): A noisy placeholder that the model denoises to produce the result.
Through Multi-Modal Attention (MMA), tokens from all four panels interact, allowing the model to compute the "delta" or relationship between the top row and replicate it in the bottom row. This architecture allows the model to attend to the spatial relationship between $I_s$ and $I_t$ and apply that learned mapping to $\hat{I}_s$, bypassing the need for explicit geometric modeling.
Training and Data
Remarkably, the model requires very little data. The authors utilized the EditTransfer Dataset, consisting of only 42 high-quality images covering 21 editing types (e.g., jumping, squatting, facial expressions). A lightweight LoRA (Low-Rank Adaptation) fine-tuning is applied to the pre-trained DiT to specialize it for this relational task, demonstrating that the pre-trained model already possesses significant latent understanding of visual relations.
Experimental Results
Edit Transfer was evaluated against leading TIE and RIE baselines using both quantitative metrics and qualitative analysis.
Performance Metrics
The framework achieved superior scores in CLIP-T (text alignment), CLIP-I (image similarity), and PickScore (aesthetic quality). In user studies, Edit Transfer was preferred over 80% of the time, particularly in scenarios involving complex anatomical movements where baseline methods often failed or produced artifacts. Qualitatively, the model excels at maintaining identity and texture consistency while performing large-scale spatial shifts.
Key Insights
- Transformation Learning: The model learns the transformation rather than just copying pixels, enabling cross-species generalization (e.g., transferring a human pose to an animal).
- Compositionality: The system can handle multiple simultaneous edits if demonstrated in the example pair (e.g., a person both shouting and clapping).
- Spatial Precision: Images serve as a higher-bandwidth "prompt" for geometric tasks compared to text, allowing for clean, anatomically plausible results.
Conclusion
Edit Transfer demonstrates that pre-trained Diffusion Transformers possess significant latent in-context learning capabilities that can be unlocked with minimal fine-tuning. While current limitations include potential semantic misalignment with text prompts and a focus on human-centric edits, the framework provides a powerful new paradigm for intuitive, example-based image manipulation.
Summary updated