VENOM: Text-driven Unrestricted Adversarial Example Generation with Diffusion Models

Hui Kuurila-Zhang, Haoyu Chen, Guoying ZhaoarXiv 2025 · DOI

Abstract

Adversarial attacks traditionally rely on imperceptible $l_p$-norm perturbations, which often fail to capture the complexity of real-world distribution shifts. Unrestricted Adversarial Examples (UAEs) and Natural Adversarial Examples (NAEs) offer a more realistic alternative by manipulating image semantics through generative models. However, existing diffusion-based methods struggle with stability and image fidelity when generating adversarial content from scratch. We present VENOM (adVersarial Examples geNeration through diffusiOn Models), a unified framework that stabilizes the generation of high-quality UAEs and NAEs. By integrating an adaptive control strategy with momentum-based adversarial guidance into a Stable Diffusion pipeline, VENOM achieves near 100% white-box attack success rates while maintaining superior image fidelity and text alignment compared to state-of-the-art baselines.

Introduction

Deep learning models are notoriously vulnerable to adversarial examples—inputs specifically crafted to cause misclassification. While early research focused on "constrained" attacks (adding small pixel-level noise), recent interest has shifted toward Unrestricted Adversarial Examples (UAEs). These images undergo significant but semantically consistent changes (e.g., texture or lighting shifts) that remain recognizable to humans but deceive classifiers. A more challenging subset is Natural Adversarial Examples (NAEs), which are generated entirely from scratch using random noise and text prompts.

Current state-of-the-art generative models, particularly diffusion models, are powerful tools for creating such examples. However, they face a fundamental stability issue: injecting adversarial gradients into the reverse diffusion process often conflicts with the model's objective of producing natural images. This frequently results in "adversarial noise" that manifests as visual artifacts, semantic drift, or complete image corruption.

Methodology: The VENOM Framework

VENOM addresses these stability issues by modifying the standard Stable Diffusion pipeline with two core mechanisms: Adversarial Guidance with Momentum and an Adaptive Control Strategy.

The VENOM pipeline integrates adversarial guidance with momentum and an adaptive control module into the standard reverse diffusion process.

Adversarial Guidance with Momentum

Standard adversarial attacks often apply raw gradients at each step, leading to jittery trajectories that degrade image quality. VENOM instead employs an exponentially weighted moving average of past gradients. By using a momentum factor (typically $\beta=0.5$), the framework smooths the optimization path, ensuring that the adversarial push does not derail the generative process from the natural image manifold.

Adaptive Control Strategy

To prevent over-perturbation, VENOM introduces a dynamic "switch." At each denoising step $t$, the intermediate latent is decoded and passed to the victim classifier. If the current image already successfully fools the model (i.e., achieves the target label or causes a misclassification), the adversarial guidance is temporarily disabled. This allows the diffusion model to focus purely on refining image quality. If the image drifts back toward the correct classification in subsequent steps, the guidance is reactivated.

Experimental Setup

The authors evaluated VENOM in two primary modes:

  1. NAE Mode (Generation from scratch): Using 2,330 prompts derived from 466 unambiguous ImageNet labels.
  2. UAE Mode (Perturbing reference images): Using the standard ImageNet-Compatible Dataset.

Performance was measured using the Attack Success Rate (ASR) for efficacy, and Fréchet Inception Distance (FID) and CLIP scores for image quality and text-to-image alignment, respectively.

Results and Discussion

VENOM demonstrates a significant leap in both attack potency and visual realism. In NAE mode, it achieved a 99.18% white-box ASR against ResNet50. Crucially, it maintained an FID of 14.49, vastly outperforming competitors like AdvDiffuser (21.34) and SD-NAE (27.78), which often produced distorted or nonsensical images.

Visual comparison of Natural Adversarial Examples (NAEs) across different methods.

In UAE mode, VENOM maintained a 98.70% targeted ASR while achieving higher structural similarity (SSIM) to reference images than previous methods like DiffAttack. The framework also proved robust against common defense mechanisms such as Neural Representation Purifier (NRP) and Random Smoothing (RS).

A key insight from the study is the "fake transferability" problem. Some existing methods report high black-box transferability simply because they generate highly corrupted images that fail on any model. VENOM emphasizes that a true adversarial example must remain a high-quality, semantically correct image.

Conclusion

VENOM provides a robust framework for generating high-fidelity unrestricted adversarial examples. By balancing adversarial strength with generative stability through momentum and adaptive control, it exposes critical vulnerabilities in vision models without sacrificing image quality. Future work will focus on improving black-box transferability and developing more rigorous, automated metrics for evaluating the visual validity of unrestricted attacks.

Summary updated

BibTeX
@misc{kuurilazhang2025venom,
  author = {Hui Kuurila-Zhang and Haoyu Chen and Guoying Zhao},
  title = {{VENOM: Text-driven Unrestricted Adversarial Example Generation with Diffusion Models}},
  year = {2025},
  eprint = {2501.07922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.07922},
}
Figure