Abstract
The rapid advancement of generative AI has facilitated the creation of sophisticated "deepfakes" and unauthorized image manipulations. While image immunization—adding adversarial noise to disrupt AI editing—offers a potential defense, existing optimization-based methods are too slow for large-scale deployment. We present DiffVax, an optimization-free framework that utilizes a feed-forward neural network to immunize images and videos in milliseconds. By achieving a 250,000× speedup over current baselines, DiffVax enables real-time protection of digital content while remaining robust against common image processing attacks.
Introduction
Generative models like Stable Diffusion have democratized high-fidelity image editing, but they also pose significant risks regarding misinformation and non-consensual content creation. Current defensive strategies rely on "immunizing" images with imperceptible adversarial noise that causes diffusion models to fail. However, state-of-the-art methods such as PhotoGuard require expensive per-image optimization, often taking over 10 minutes per frame. This computational bottleneck prevents their application to the millions of images uploaded daily to social media platforms.
Methodology
DiffVax addresses the scalability challenge by replacing per-image optimization with a single forward pass through a trained immunizer model.
The Immunizer Model
The framework employs a UNet++ architecture trained to generate strategic perturbations ($\epsilon_{im}$). Unlike previous methods that produce high-frequency noise, DiffVax learns to apply subtle, low-frequency perturbations that are more resilient to image processing.
Training Objectives
The model is trained using a dual-objective loss function:
- Imperceptibility ($L_{noise}$): Ensures the added noise is invisible to human viewers.
- Disruption ($L_{edit}$): Forces the diffusion model to fail by pushing pixels in the edited region toward zero, effectively "blanking out" the unauthorized changes.
Experimental Results
DiffVax was evaluated using a dataset of 1,000 human images from the Clothing Co-Parsing (CCP) dataset, with masks generated by the Segment Anything Model (SAM) and prompts curated via ChatGPT.
Speed and Efficiency
The most significant contribution of DiffVax is its efficiency. It protects an image in approximately 70 milliseconds, representing a 250,000× speedup over optimization-based baselines (which range from 207 to 911 seconds).
Video Protection
DiffVax is the first framework capable of protecting video content at scale. It can process a 64-frame sequence in under a second, a task that would require days using traditional optimization methods.
Robustness
The defense remains effective even after common counter-measures:
- JPEG Compression: The low-frequency nature of the perturbations ensures survival through standard compression.
- Purification: The method resists "purification" denoisers like IMPRESS.
- Mask Mismatch: The immunization is robust even if the attacker uses a different mask than the one used during the protection phase.
Conclusion and Future Work
DiffVax provides a scalable, real-time solution for protecting visual media from unauthorized AI manipulation. While highly effective, future work will focus on improving protection for scenes with multiple small objects and reducing visual artifacts in uniform areas like clear skies. The authors also aim to develop "video-native" perturbations to further enhance temporal consistency.
Summary updated