SimAC: A Simple Anti-Customization Method for Protecting Face Privacy against Text-to-Image Synthesis of Diffusion Models

Feifei Wang, Zhentao Tan, Tianyi Wei, Yue Wu, Qidong Huang

TL;DR

SimAC (Simple Anti-Customization) is a new method designed to protect personal photos from being used to train personalized AI models (like DreamBooth) without consent. By strategically targeting specific time steps and internal layers of the diffusion process, SimAC generates imperceptible adversarial noise that effectively "breaks" the model's ability to learn a specific person's identity.

What Problem Does This Paper Address?

The rise of text-to-image diffusion models has brought about powerful customization tools like DreamBooth and Textual Inversion. These allow anyone to fine-tune a model on just a few photos of a person to generate new, photorealistic images of them in any context. While great for creativity, this poses a massive privacy risk: malicious actors can easily create deepfakes or fake news using a handful of social media portraits.

Existing "anti-customization" defenses try to solve this by adding adversarial noise to photos. If a model is trained on these "protected" photos, it should fail to capture the user's identity. However, the authors of SimAC found that current methods are inefficient because they treat the diffusion model as a black box. They often waste computation on "noisy" time steps where gradients are nearly zero, or they target internal features that don't actually contribute much to identity perception.

Methods

SimAC improves upon existing frameworks (like Anti-DreamBooth) by exploiting two inherent properties of Latent Diffusion Models (LDMs):

  1. Adaptive Greedy Time Interval Selection: Diffusion models work by gradually removing noise over a series of time steps ($t$). The authors discovered that adversarial noise is most effective at lower time steps (where the image is less noisy). As shown in Figure 2, gradients often vanish at high time steps, making optimization there useless. SimAC uses a greedy search to identify and focus on the time intervals that provide the strongest signal for adversarial perturbation.
  2. Feature Interference Loss: Not all layers in a U-Net are created equal. By analyzing the decoder layers using PCA (Principal Component Analysis), the authors found that deeper layers (layers 9-11) focus heavily on high-frequency textures—the very details that define a person's unique "look." SimAC introduces a loss function that maximizes the difference between the features of the clean image and the protected image specifically within these deep layers.

The overall pipeline, illustrated in Figure 3, integrates these two strategies to iteratively optimize the protective noise.

The SimAC pipeline: selecting optimal time steps and applying feature interference loss to generate protected images.

Datasets

The researchers evaluated SimAC using two standard facial benchmarks:

  • CelebA-HQ: A high-quality dataset of celebrity faces.
  • VGGFace2: A large-scale dataset containing faces with significant variations in pose, age, and ethnicity.

For each experiment, they used subsets of individuals, providing 5 images for "training" (customization) and evaluating the results on unseen prompts.

Key Insights and Ideas

  • The Gradient Vanishing Problem: A major "aha" moment was realizing that random time step sampling—a standard practice in diffusion training—is a bottleneck for adversarial attacks. Figure 2 quantifies this, showing that absolute gradients are nearly zero for a large portion of the diffusion process.
  • Frequency Domain Sensitivity: The model's perception of high-frequency details (textures) vs. low-frequency details (structure) changes over time. Adversarial noise is typically high-frequency, so it is naturally more effective at time steps where the model is actually "looking" at those frequencies.
  • Texture vs. Structure: The visualization in Figure 5 confirms that deeper U-Net layers are the "texture experts." Targeting these layers specifically makes the identity disruption much more potent than just maximizing the overall training loss.
PCA visualization showing that deeper U-Net layers capture more high-frequency texture information.

Key Results

SimAC significantly outperforms previous state-of-the-art methods across several metrics:

  • Identity Disruption: On CelebA-HQ, SimAC boosted the Face Detection Failure Rate (FDFR) of Anti-DreamBooth from 77.28% to 87.07%.
  • Efficiency: SimAC is much faster to train. The authors found that SimAC + Anti-DreamBooth achieved better protection in just 20 epochs than vanilla Anti-DreamBooth could achieve in 50 epochs.
  • Black-Box Robustness: The protection remains effective even if the attacker uses a different version of Stable Diffusion (e.g., v1.4 vs v2.1) or a different customization method like LoRA.
  • Human-Centric Validation: The authors even used GPT-4V to judge identity similarity. As shown in Table 8, GPT-4V gave SimAC-protected results the lowest similarity scores, confirming that the disruption is meaningful to vision-capable agents.
Figure 1. Comparison between Anti-DreamBooth before and after adding SimAC. Our method further boosts its ability to de-identity.

Limitations and Future Work

While SimAC is a significant step forward, it isn't a silver bullet. The authors note that:

  • Model Mismatch: If the "surrogate" model used to generate the noise is vastly different from the one the attacker uses, the protection level drops (though it still outperforms other methods).
  • Transferability: Enhancing the "transferable defense"—making the noise work perfectly across all possible future architectures—remains an open research challenge.
  • Adaptive Attackers: As defenses get better, attackers may develop new fine-tuning techniques specifically designed to ignore high-frequency adversarial noise. The "arms race" in AI privacy continues.

Summary updated

Abstract

Despite the success of diffusion-based customization methods on visual content creation, increasing concerns have been raised about such techniques from both privacy and political perspectives. To tackle this issue, several anti-customization methods have been proposed in very recent months, predominantly grounded in adversarial attacks. Unfortunately, most of these methods adopt straightforward designs, such as end-to-end optimization with a focus on adversarially maximizing the original training loss, thereby neglecting nuanced internal properties intrinsic to the diffusion model, and even leading to ineffective optimization in some diffusion time steps. In this paper, we strive to bridge this gap by undertaking a comprehensive exploration of these inherent properties to boost the performance of current anti-customization approaches. Two aspects of properties are investigated: 1) We examine the relationship between time step selection and the model's perception in the frequency domain of images and find that lower time steps can give much more contributions to adversarial noises. This inspires us to propose an adaptive greedy search for optimal time steps that seamlessly integrates with existing anti-customization methods. 2) We scrutinize the roles of features at different layers during denoising and devise a sophisticated feature-based optimization framework for anti-customization. Experiments on facial benchmarks demonstrate that our approach significantly increases identity disruption, thereby protecting user privacy and copyright.
BibTeX
@inproceedings{wang2024simac,
  author = {Feifei Wang and Zhentao Tan and Tianyi Wei and Yue Wu and Qidong Huang},
  title = {{SimAC: A Simple Anti-Customization Method for Protecting Face Privacy against Text-to-Image Synthesis of Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.01145},
}
Figure