Anti-Reference: Universal and Immediate Defense Against Reference-Based Generation
Yiren Song, Shengtao Lou, Xiaokang Liu, Hai Ci, Pei Yang, Jiaming Liu, Mike Zheng Shou
TL;DR
This work introduces Anti-Reference, a universal defense against reference-based diffusion generation by adding imperceptible adversarial noise via a ViT-based Adversarial Noise Encoder and a unified loss that jointly attacks fine-tuning-based and tuning-free methods as well as human-driven generation. The method leverages differentiable augmentation and white-box proxy models to enable gray-box transfer to commercial APIs, achieving strong protection with high efficiency through a dedicated PGD and ANE framework. Comprehensive experiments across seven customization tasks, using metrics like ISM, Aesthetic Score, and CLIP-IQA, demonstrate superior protection and practical performance, including notable gray-box transfer. Limitations include reliance on SD1.5 architectures, with future work extending to other diffusion variants and improving stealth of adversarial noise for broader real-world applicability.
Abstract
Diffusion models have revolutionized generative modeling with their exceptional ability to produce high-fidelity images. However, misuse of such potent tools can lead to the creation of fake news or disturbing content targeting individuals, resulting in significant social harm. In this paper, we introduce Anti-Reference, a novel method that protects images from the threats posed by reference-based generation techniques by adding imperceptible adversarial noise to the images. We propose a unified loss function that enables joint attacks on fine-tuning-based customization methods, non-fine-tuning customization methods, and human-centric driving methods. Based on this loss, we train a Adversarial Noise Encoder to predict the noise or directly optimize the noise using the PGD method. Our method shows certain transfer attack capabilities, effectively challenging both gray-box models and some commercial APIs. Extensive experiments validate the performance of Anti-Reference, establishing a new benchmark in image security.
