Adv-Diffusion: Imperceptible Adversarial Face Identity Attack via Latent Diffusion Model

Decheng Liu, Xijun Wang, Chunlei Peng, Nannan Wang, Ruiming Hu, Xinbo Gao

TL;DR

Adv-Diffusion is a novel framework that generates imperceptible adversarial face images by injecting perturbations into the latent space of a diffusion model rather than directly onto raw pixels. By leveraging the inpainting capabilities of Latent Diffusion Models (LDMs), it creates highly realistic images that successfully trick state-of-the-art face recognition systems while remaining visually indistinguishable from the source to human eyes.

What Problem Does This Paper Address?

Deep learning-based face recognition (FR) systems are ubiquitous but remain vulnerable to adversarial attacks—small, intentional perturbations designed to cause misclassification.

Existing attack methods generally fall into two categories, both with significant drawbacks:

  1. Gradient-based methods: These add noise directly to pixels. While effective in "white-box" settings (where the attacker knows the model), they often look like obvious digital noise and don't transfer well to "black-box" systems they weren't designed for.
  2. Patch-based/Stealthy methods: These try to be more natural (e.g., adding adversarial glasses or makeup). However, they often require complex training, specific reference images, or produce textures that still look "off" to humans.

The authors aim to bridge this gap by creating attacks that are both highly transferable (effective against unknown models) and highly imperceptible (looking like natural, high-quality photos).

Methods

The core innovation of Adv-Diffusion is moving the attack from pixel space to the latent space of a pre-trained Latent Diffusion Model.

Figure 2: The framework of the proposed imperceptible adversarial face identity attack via latent diffusion model.

Key components include:

  • Latent Space Perturbation: Instead of tweaking pixels, the algorithm optimizes the latent representation ($z$) during the diffusion model's reverse denoising process. Because the LDM's latent space is perceptually grounded, changes here translate to realistic semantic changes in the final image.
  • Identity-Sensitive Conditioning: The authors use a face parsing model to create a mask. They keep "identity-sensitive" regions (eyes, nose, mouth) as a fixed condition for the LDM's inpainting process, while allowing the "identity-agnostic" regions (hair, background, accessories) to be subtly deformed to carry the adversarial information.
  • Adaptive Strength-Based Perturbation: The strength of the adversarial gradient injected at each denoising step is scaled by the noise level of that step. As the image becomes clearer, the attack strength decreases, ensuring the final output maintains high visual fidelity.
  • No Extra Training: Crucially, Adv-Diffusion works "out of the box" with pre-trained LDMs (like Stable Diffusion) and face recognition models, requiring no additional generative model training.

Datasets

The researchers evaluated their method using two standard high-quality face benchmarks:

  • FFHQ (Flickr-Faces-HQ): A dataset of 70,000 high-quality face images at 1024x1024 resolution.
  • CelebA-HQ: A large-scale face attribute dataset containing 30,000 images at 512x512 resolution.

For the attacks, they tested against four popular face recognition architectures: IR152, IRSE50, FaceNet, and MobileFace, as well as commercial APIs like Face++ and Aliyun.

Key Insights and Ideas

  • Semantic vs. Pixel Attacks: The "aha moment" is realizing that identity is perceived by AI through semantic context as much as specific features. By subtly altering the surroundings of the eyes and nose in a way that looks like natural lighting or hair shifts, the model can be tricked without touching the core facial features.
  • LDM as a Prior: The paper treats the pre-trained diffusion model as a powerful "natural image prior." By staying within the manifold of what the LDM considers a "real face," the adversarial examples avoid the weird artifacts common in GAN-based or gradient-based attacks.
  • The Power of Inpainting: Framing the attack as a conditioned inpainting task is clever. It forces the model to maintain the source's identity-sensitive regions while "filling in" the rest of the image with adversarial intent.

Key Results

Adv-Diffusion significantly outperformed existing state-of-the-art (SOTA) methods in both attack success and image quality.

  • Attack Success Rate (ASR): In black-box scenarios on CelebA-HQ, Adv-Diffusion achieved an ASR of 73.02% against MobileFace, compared to just 46.8% for the previous SOTA stealthy method, AMT-GAN.
  • Image Quality: The method achieved a Frechet Inception Distance (FID) of 15.51 on CelebA-HQ, where lower is better. For comparison, traditional gradient methods like FGSM scored over 100, and AMT-GAN scored 22.57.
  • Commercial APIs: The attack proved effective against real-world systems. On the Face++ API, Adv-Diffusion generated images with a mean confidence score of 61.37, indicating a very high likelihood of successful identity spoofing.
Figure 5: Mean confidence scores calculated from Face++ and Aliyun, which illustrate the possibility of the generated adversarial face image having the same identity as the target image.

Visually, the results are striking. As shown in Figure 4, while other methods produce visible blurring or strange textures, Adv-Diffusion images look like high-quality, natural portraits.

Figure 4: Comparison Results of generated adversarial samples when T is set as 1000. The number below the images means the calculated similarity score with the target face by the refined recognition model. Noting that the identity similarity score varies from 0 to 1.

Limitations and Future Work

  • Generative Constraints: The quality of the attack is bound by the capabilities of the underlying LDM. If the base model produces artifacts (e.g., in complex hair or backgrounds), the adversarial image will inherit them.
  • Domain Specificity: While the authors showed some success with non-face images (like dogs and trucks), the current framework is heavily optimized for face parsing and identity similarity.
  • Failure Cases: The authors noted that extremely complex hairstyles can sometimes lead to parsing errors, which in turn affects the diffusion process. Future work will focus on making the pipeline more robust to these edge cases.

Summary updated

BibTeX
@inproceedings{liu2024adv,
  author = {Decheng Liu and Xijun Wang and Chunlei Peng and Nannan Wang and Ruiming Hu and Xinbo Gao},
  title = {{Adv-Diffusion: Imperceptible Adversarial Face Identity Attack via Latent Diffusion Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28147},
}
Figure