TL;DR
Showing an AI a "before and after" photo pair is often the easiest way to specify a complex visual edit—like transferring the exact font of a logo or a specific lighting mood onto a new image. Until now, these image analogies have been an all-or-nothing deal: every change in the example gets copied over, whether you want it or not. SIA (Selective Image Analogy) turns a single multi-edit demonstration into an à la carte menu, letting you pick which visual changes to transfer and actively suppressing the rest at inference time.
What Problem Does This Paper Address?
Text-based image editing is intuitive, but human language is a lossy compression of visual reality. You can prompt a model to "add star-shaped sunglasses" or "add an SIA logo," yet text alone cannot specify the exact frame geometry, lens tint, or custom typography you have in mind.
Image analogy solves this by letting you demonstrate the transformation using a reference pair $(A, A')$ and applying that learned mapping to a new query image $B$. The catch? Real-world photo pairs rarely isolate a single variable. Going from $A$ to $A'$ might simultaneously add a logo, change a facial expression, and swap the background to a cave. Existing analogy methods entangle all these changes into one indivisible transformation.
What if you want the custom logo and the smile on your new subject $B$, while leaving the cave behind? Simply deleting "at Batu Caves" from a text prompt fails, because the model still sees the cave in $A'$ and dutifully copies it over anyway. SIA introduces a way to disentangle and selectively block unwanted edits even while they remain in plain sight in the visual reference.
Methods
Built on the multimodal diffusion transformer Flux.2-Klein (using standard flow-matching objectives and in-context latent concatenation of $A$, $A'$, and $B$), SIA always feeds the model the complete visual demonstration and a full text list of all edits. Rather than retraining or creating new example pairs for every subset, SIA uses a binary token suppression mask over the unwanted edit phrases to intervene at two aligned stages:
- AnaLoRA (Standard Full Transfer): First, a lightweight Low-Rank Adaptation (LoRA) module is trained so the backbone reliably transfers all demonstrated edits from $(A, A')$ to $B$.
- ExLoRA (Denoising-Time Gating): A second, token-gated LoRA is trained on counterfactual targets (where masked edits are absent from the ground-truth output). During denoising, ExLoRA applies its weight updates only to the text tokens flagged by the suppression mask, teaching the transformer to actively block those specific visual features.
- Concept Suppression Vector (CSV) (Pre-Denoising Steering): Before denoising even begins, SIA scrubs residual semantic signals from the masked text embeddings. Using cached embeddings of contrastive prompt pairs (e.g., "open-wing swan" vs. "folded-wing swan"), SIA calculates a "difference of means" direction vector in text-encoder space, projecting out the unwanted concept and pushing the masked tokens in the opposite direction.
Datasets
Because no existing benchmark tests partial transfer from multi-edit analogies, the authors curated a Multi-Edit Analogy Dataset:
- Structure: Organized into "edit recipes" of 2 to 4 simultaneous edits (object additions, style transfers, and background swaps) across creature and non-creature subjects. Crucially, each recipe stores the original image, the fully edited image, and partial-edit targets for retained subsets.
- Construction & Scale: Two-edit groups augment a subset of the existing RelationAdapter dataset using Flux.2-Klein; three- and four-edit groups are synthesized sequentially and filtered for accuracy via a vision-language model (VLM). It totals 1,606 training samples (across 238 edit settings) and 239 test cases.
Key Insights and Ideas
- Visual context overrides text deletion: In multimodal transformers, removing an edit from the text prompt does not stop the model from inferring and copying it from $A'$. Active suppression is required to counter visual conditioning.
- Counterfactual supervision: Showing the model the full transformation in $(A, A')$ and naming all edits in the prompt—while supervising the output against a partial target—teaches the network to treat the token mask like a switchboard for visual features.
- Two-stage suppression is complementary: Weakening text embeddings beforehand (CSV) and gating transformer adapters during generation (ExLoRA) tackle leakage from two angles. Neither is as effective solo as both working together.
Key Results
Evaluated against adapted visual analogy baselines (RelationAdapter, VisualCloze, Edit Transfer, and LoRWeB) using independent VLM judges (Qwen3-VL-32B and Gemma 4) and CLIP directional metrics:
- Top Selective Accuracy: Under Gemma 4, SIA achieves a Retained Accuracy of 9.31 (out of 10) and 96.5% Edit Recall, outperforming the closest baseline (VisualCloze at 6.35 and 74.3%) while maintaining the highest query preservation (9.89). Under Qwen3-VL, SIA similarly leads with 8.01 Retained Accuracy and 89.2% Recall.
- Directional Alignment: SIA scores highest on CLIP-Dir Image (0.543) and CLIP-Dir Retained (0.171).
- Ablation Proof: With AnaLoRA alone, VLM-judged Suppression of unwanted edits sits at a leaky 1.93. Adding CSV bumps suppression to 4.93; ExLoRA alone reaches 7.81; combining both hits 7.85 with the highest overall average score (8.54), confirming that SIA cleanly transfers complex details while preserving the query subject's identity.
Limitations and Future Work
- Scale and Divergence: SIA currently handles up to four simultaneous edits and can struggle when $A$ and $A'$ differ drastically in structure.
- Edit Diversity: The curated dataset focuses on object additions, styles, and backgrounds, leaving out fine-grained tasks like artifact removal or complex spatial layout rearrangements.
- Compositional Analogies: Looking ahead, the authors envision mixing and matching demonstrated edits across multiple distinct $(A, A')$ pairs with continuous intensity sliders, rather than drawing from a single fixed reference pair.
Summary updated