Skip to main content
QUICK REVIEW

[Paper Review] Diffusion Models for Imperceptible and Transferable Adversarial Attack

Jianqi Chen, Hao Chen|arXiv (Cornell University)|May 14, 2023
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes DiffAttack, the first adversarial attack framework leveraging diffusion models to generate imperceptible and highly transferable adversarial examples. By optimizing perturbations in the diffusion model's latent space and leveraging its generative and implicit discriminative capabilities, the method achieves high attack success rates across diverse models and defenses while maintaining low perceptibility, outperforming existing methods in both transferability and human imperceptibility.

ABSTRACT

Many existing adversarial attacks generate $L_p$-norm perturbations on image RGB space. Despite some achievements in transferability and attack success rate, the crafted adversarial examples are easily perceived by human eyes. Towards visual imperceptibility, some recent works explore unrestricted attacks without $L_p$-norm constraints, yet lacking transferability of attacking black-box models. In this work, we propose a novel imperceptible and transferable attack by leveraging both the generative and discriminative power of diffusion models. Specifically, instead of direct manipulation in pixel space, we craft perturbations in the latent space of diffusion models. Combined with well-designed content-preserving structures, we can generate human-insensitive perturbations embedded with semantic clues. For better transferability, we further "deceive" the diffusion model which can be viewed as an implicit recognition surrogate, by distracting its attention away from the target regions. To our knowledge, our proposed method, DiffAttack, is the first that introduces diffusion models into the adversarial attack field. Extensive experiments on various model structures, datasets, and defense methods have demonstrated the superiority of our attack over the existing attack methods.

Motivation & Objective

  • Address the limitation of existing Lp-norm constrained attacks that produce visually noticeable, high-frequency noise, compromising human imperceptibility.
  • Overcome the trade-off between imperceptibility and transferability in unrestricted attacks, which often lack robustness across black-box models.
  • Leverage the inherent properties of diffusion models—natural image generation and implicit classification capacity—to create a new attack paradigm.
  • Develop a method that simultaneously enhances transferability and preserves image content quality without relying on pixel-space optimization.
  • Demonstrate the effectiveness of diffusion models as implicit surrogates for generating transferable adversarial examples, even against defended models.

Proposed method

  • Optimize adversarial perturbations in the latent space of a pretrained diffusion model (e.g., DDIM) rather than in pixel space, enabling more natural and imperceptible perturbations.
  • Introduce a multi-loss optimization framework combining: (1) attack loss to mislead the target model, (2) transferability loss to align predictions across models, and (3) structure-preserving loss to maintain semantic content.
  • Apply a guidance scale during DDIM sampling to control the strength of perturbation injection while preserving image fidelity.
  • Use a distillation strategy to 'deceive' the diffusion model’s internal attention by distracting it from target regions, enhancing transferability.
  • Perform DDIM inversion to reconstruct the clean image in latent space before perturbation, ensuring minimal structural deviation.
  • Leverage the diffusion model’s denoising process as an implicit defense, improving robustness against purification-based defenses.

Experimental results

Research questions

  • RQ1Can diffusion models be effectively repurposed as a source of latent-space perturbations to generate imperceptible adversarial examples?
  • RQ2Does optimizing in the latent space of a diffusion model improve transferability compared to pixel-space attacks?
  • RQ3Can the generative and implicit discriminative capabilities of diffusion models jointly enhance both imperceptibility and transferability?
  • RQ4How does the proposed method perform against defended models, particularly those employing purification-based defenses?
  • RQ5To what extent does the diffusion model’s internal denoising process contribute to robustness against defensive mechanisms?

Key findings

  • DiffAttack achieves a 74.5% average top-1 attack success rate across 11 standard models (excluding the surrogate), outperforming baseline methods that rely on Lp constraints.
  • The method achieves a FID score of 69.2, indicating high perceptual quality and human imperceptibility, significantly lower than pixel-based attacks.
  • On defensive models, DiffAttack maintains a 68.0% average attack success rate, surpassing the 46.9% of the ablation without the diffusion model component.
  • Abllation studies show that removing the transferability loss reduces average attack success to 66.5%, confirming its critical role in cross-model generalization.
  • The guidance scale of 2.5 was optimal—balancing attack success (62.5% on Inc-v3) and perceptibility (FID 69.2), with higher values degrading image quality.
  • Using 20 DDIM sampling steps and 30 optimization iterations strikes the best balance between attack performance, image quality, and computational cost.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.