Toward Robust Imperceptible Perturbation against Unauthorized Text-to-image Diffusion-based Synthesis

Yixin Liu, Chenrui Fan, Yutong Dai, Xun Chen, Pan Zhou, Lichao Sun · DOI

Abstract

The rapid advancement of subject-driven text-to-image synthesis, such as DreamBooth, poses significant privacy risks by enabling the creation of realistic, unauthorized images of individuals. MetaCloak addresses this by introducing a "poisoning" defense that applies imperceptible perturbations to personal photos. Unlike previous methods, MetaCloak utilizes a meta-learning framework and Expectation Over Transformation (EOT) to ensure the "cloaks" remain effective against common image pre-processing and various diffusion model architectures. Experimental results demonstrate that MetaCloak significantly degrades the quality of unauthorized generations, maintaining robustness where prior defenses fail.

Introduction

Subject-driven text-to-image synthesis allows users to fine-tune diffusion models on a small set of reference images to generate new images of a specific subject. While powerful, this technology can be weaponized to create deepfakes or misleading content. Existing "poisoning" defenses attempt to add adversarial noise to images to disrupt the fine-tuning process. However, these methods often suffer from sub-optimality due to heuristic optimization and fragility against simple image transformations like cropping or blurring.

The MetaCloak Framework

MetaCloak overcomes these limitations through a sophisticated optimization strategy. It treats the adversarial perturbation as a hyperparameter within a meta-learning loop, simulating the model's training trajectory to craft noise that disrupts the final fine-tuned state.

Overview of MetaCloak's protection pipeline against unauthorized subject-driven synthesis.

Key technical components include:

  • Meta-learning Optimization: Uses a K-step unrolling process to "look ahead" at the model's potential training path.
  • Transformation-Robustness: Incorporates Expectation Over Transformation (EOT) during noise generation, ensuring the protection survives data pre-processing like resizing or filtering.
  • Model-Agnostic Transferability: Employs "steps-staggered surrogates" to ensure the noise works across different diffusion model versions.
  • Denoising-Error Maximization: A simplified loss function that forces the model to learn meaningless patterns instead of the actual subject's identity.

Experimental Evaluation and Results

The effectiveness of MetaCloak was evaluated on datasets including VGGFace2, CelebA-HQ, and the official DreamBooth dataset. The primary metric, Subject Detection Score (SDS), measures the ability of a face-detection AI to identify the subject in the generated output.

Performance comparison of MetaCloak against clean images across various metrics and fine-tuning strategies.

MetaCloak demonstrated superior robustness. Under Gaussian filtering, it reduced the SDS to 0.432 on VGGFace2, significantly outperforming competitors like EASPL (0.801). Furthermore, tests on real-world platforms like Replicate confirmed that MetaCloak effectively disrupts black-box training processes, including those using Low-Rank Adaptation (LoRA).

Key Insights and Discussion

A critical finding of this research is that effective defense requires semantic distortion rather than just a reduction in image quality. Wavelet analysis showed that MetaCloak produces "sharper" high-frequency noise, which is more resilient to smoothing filters than the noise generated by previous methods.

Despite its strengths, MetaCloak faces a trade-off between protection strength and visual imperceptibility. At high protection radii, the noise may become visible. Additionally, the defense is most effective when the entire dataset is protected; a low "poisoning ratio" can allow the model to reconstruct the subject from remaining clean images. Future work may explore more stealthy attack vectors, such as global color modifications (ReColorAdv), to enhance the invisibility of the protection.

Summary updated

BibTeX
@inproceedings{liu2024toward,
  author = {Yixin Liu and Chenrui Fan and Yutong Dai and Xun Chen and Pan Zhou and Lichao Sun},
  title = {{Toward Robust Imperceptible Perturbation against Unauthorized Text-to-image Diffusion-based Synthesis}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02286},
}
Figure