Copying As Defense: Protecting Images from Editing By Eliciting Model Copying
Salma Abdel Magid, Sanghyuk Chun, Eric Slyman, Kushal Kafle, Olga Russakovsky
Key points
From the paper's conclusion- We find that the opposite strategy is more effective: instead of leading the model to ignore the reference, we encourage it to copy it.
Abstract
Image editors built on diffusion transformers (DiTs), such as Flux Kontext, make it possible to turn a single photograph into a convincing manipulated image, including harmful and non-consensual edits. Proactive defenses aim to prevent such manipulations by adding an imperceptible perturbation before an image is shared. Existing defenses for DiT-based in-context editors make the output attend less to the protected reference image. But this leaves the model free to follow the edit instruction using the text and its own generated tokens, often producing a new, weakly grounded image rather than preventing the edit. We find that the opposite strategy is more effective: instead of leading the model to ignore the reference, we encourage it to copy it. Through controlled attention interventions, we show that concentrating target-token attention on the reference image in only a few early blocks is sufficient to collapse the editing behavior, causing the model to reproduce its input, often as a lossy copy, rather than execute the requested transformation. Based on this insight, we introduce Copying-as-Defense (CaD), which maximizes per-token target-to-reference attention mass in early transformer blocks. Since attention rows are normalized, increasing reference attention suppresses the attention allocated to the text and generated canvas. Restricting the objective to early blocks also lets us truncate the backpropagation path, keeping optimization cheap. Across editors and benchmarks, CaD reduces average edit success from 81.4% on unprotected images to 24.0%, a 70.6% relative reduction, and by a further 44.3% relative to DeContext, the strongest baseline (43.0%). CaD is also roughly 1.8-2.0x faster per optimization step than comparable methods.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PromptPack: Training-Free Augmentation of Diffusion Editors for Intent-Aligned Spatial and Semantic ControlarXiv · 2026
- StyleDiffusion: Prompt-Embedding Inversion for Text-Based EditingComputational Visual Media · 2026
- Instance-Specific Classifier-Free Guidance for Text-to-Image Diffusion/Flow-Based EditingarXiv · 2026
- ConserveEdit: Source-Anchored Transactions for Drift-Bounded Iterative Image EditingarXiv · 2026
- Continual Concept Erasure in Diffusion Models by Suppressing Cross-Edit InterferencearXiv · 2026
- Memorization Lives in a Few Attention Heads: Mitigating Memorization in Diffusion Models via Projection-Based SuppressionarXiv · 2026