Adapter Shield: A Unified Framework with Built-in Authentication for Preventing Unauthorized Zero-Shot Image-to-Image Generation

Jun Jia, Hongyi Miao, Yingjie Zhou, Wangqiu Zhou, Jianbo Zhang, Linhan Cao, Dandan Zhu, Hua Yang, Xiongkuo Min, Wei Sun, Guangtao Zhai · DOI

Abstract

Adapter Shield is a proactive defense framework designed to safeguard facial identity and artistic style against unauthorized zero-shot image-to-image (I2I) generation. By integrating reversible embedding encryption with adversarial protective coatings, the framework ensures that only authorized users with a valid password can utilize images for high-fidelity AI generation. Unauthorized attempts result in distorted, nonsensical outputs, effectively mitigating risks of deepfakes and style plagiarism while maintaining image utility for the owner.

Introduction

The rapid advancement of "zero-shot" image-to-image (I2I) models, such as IP-Adapter and Instant-ID, has introduced significant privacy and copyright challenges. These models can replicate a person's facial identity or an artist's unique style using only a single reference image, facilitating the creation of deepfakes and unauthorized style cloning. Existing adversarial defenses often render images unusable for all users, including the original creators. This paper introduces Adapter Shield, a universal and authenticated defense framework that "locks" images, allowing only authorized users to leverage them for AI-driven generation.

Methodology

Adapter Shield employs a dual-layered approach to secure images by targeting the "eyes" of the AI—the image encoder. Since many generation models share common encoders (like CLIP), this approach provides universal protection across different AI architectures.

  1. Embeddings Encryption: The framework targets the latent embeddings generated by image encoders. A reversible encryption system, comprising an Encryptor and Decryptor module, maps original embeddings into an encrypted space based on a secret password. This ensures that different passwords produce distinct encrypted results.
  2. Protective Coating: A multi-target adversarial perturbation is applied to the image using a modified Fast Gradient Sign Method (FGSM). This "coating" is designed to mislead image encoders into extracting the encrypted embedding instead of the authentic one. The loss function accounts for multiple encoders simultaneously to prevent bypasses via model switching.
Overview of the threat scenario and the proposed Adapter Shield solution.

Unauthorized users attempting to process a protected image receive distorted outputs because the model operates on "garbage" encrypted data. Conversely, authorized users can use the Decryptor and the correct password to recover the original embeddings, enabling high-quality generation.

Experimental Results

The framework was evaluated on facial identity protection (using CelebA and FFHQ datasets) and artistic style protection (using the Wikiart dataset).

Performance Metrics

  • Facial Protection: Adapter Shield achieved significantly lower Identity Similarity (ISM) and a higher Abnormal Face Rate (AFR) compared to state-of-the-art defenses like Pretender, Adv-DM, and ACE.
  • Art Protection: For artworks, the Embedding Cosine Similarity (ESM) was drastically reduced (e.g., from 1.0 to 0.0161), indicating the AI failed to capture the artist's style.
  • Visual Fidelity: Protected images maintained a high Peak Signal-to-Noise Ratio (PSNR) of approximately 30dB, ensuring the adversarial noise remains largely imperceptible to human viewers.
Visual comparison of unauthorized vs. authorized generation for faces and artwork.

Discussion and Conclusion

Adapter Shield provides a robust, reversible defense against unauthorized zero-shot I2I generation. Unlike "one-way" defenses, it acts as a digital vault for visual data. However, the current implementation shows some sensitivity to heavy JPEG compression, which can "wash away" the subtle adversarial noise. Future work will focus on enhancing robustness against lossy compression and further refining the visual quality to make the defense completely invisible.

Summary updated

BibTeX
@inproceedings{jia2026adapter,
  author = {Jun Jia and Hongyi Miao and Yingjie Zhou and Wangqiu Zhou and Jianbo Zhang and Linhan Cao and Dandan Zhu and Hua Yang and Xiongkuo Min and Wei Sun and Guangtao Zhai},
  title = {{Adapter Shield: A Unified Framework with Built-in Authentication for Preventing Unauthorized Zero-Shot Image-to-Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=t0dGrKY1oi},
}
Figure