Abstract
The proliferation of instruction-guided diffusion models has simplified image editing, allowing users to modify content through natural language commands. However, this accessibility also facilitates unauthorized manipulations and the creation of misinformation. We present EditShield, a defense mechanism that injects imperceptible adversarial perturbations into images to disrupt the editing process. By inducing latent inconsistency, EditShield ensures that malicious editing attempts result in garbled or semantically mismatched outputs, effectively protecting the original image's integrity.
Introduction
Instruction-guided models, such as InstructPix2Pix, enable dynamic image editing without requiring subject-specific fine-tuning. While beneficial for creative workflows, these tools pose significant risks regarding "fake news" and unauthorized modifications of personal data. Unlike existing defenses that target personalized editing, EditShield provides a robust, instruction-independent protection layer.
As shown in the overview, EditShield disrupts the AI's ability to follow instructions like "turn it into a cartoon" or "make her a clown," leading to successful protection through subject mismatch or visual degradation.
Methodology
EditShield operates by treating image protection as an optimization problem. It aims to find a perturbation that is human-invisible yet catastrophic for the diffusion model's internal processing.
Latent Inconsistency and Perceptual Fidelity
The core of the approach is shifting the image's representation within the model's latent space. By forcing the latent representation of a protected image to deviate from its original state, the AI is forced to initiate the editing process from a corrupted baseline. To maintain the visual quality for the owner, these perturbations are constrained using $l_2$ norm regularization, ensuring perceptual consistency.
The defense targets the latent diffusion stage (as seen in the architecture above), where text and image embeddings are combined. By corrupting the image embedding or the latent starting point, EditShield prevents the model from correctly applying the text-based instructions.
Robustness via EOT
To prevent malicious editors from bypassing the shield through simple transformations (e.g., cropping or blurring), EditShield incorporates Expectation Over Transformation (EOT) during the perturbation generation phase. This ensures the protection remains "sticky" across various common image processing operations.
Evaluation and Results
The effectiveness of EditShield was validated using the IPr2Pr and MagicBrush datasets, the latter providing a challenging real-world testbed with human-provided instructions.
Quantitative and Qualitative Performance
EditShield significantly outperforms baselines like PhotoGuard. On the MagicBrush dataset, the Peak Signal-to-Noise Ratio (PSNR) of edited images dropped from 19.11 to 16.82 upon applying protection, indicating a substantial loss in fidelity. Qualitative evaluations using GPT-4V and human participants confirmed that protected images consistently failed to follow editing instructions, often producing entirely different subjects—a phenomenon termed "subject mismatch."
Resilience to Countermeasures
The protection demonstrates high robustness against common "attacks" such as JPEG compression and spatial smoothing. Furthermore, it is robust against linguistic variations; protecting an image against one command (e.g., "make it burn") effectively protects it against synonyms (e.g., "make it on fire") because the disruption occurs at the visual representation level.
Conclusion and Future Work
EditShield offers a proactive defense against the unauthorized use of instruction-guided AI editing. While currently optimized for "white-box" scenarios where the model architecture is known, it sets a new standard for instruction-independent image protection. Future work will focus on enhancing the transferability of perturbations to "black-box" proprietary models and improving the computational efficiency of the protection process.
Summary updated