Assessing Robustness via Score-Based Adversarial Image Generation

Marcel Kollovieh, Lukas Gosch, Marten Lienen, Yan Scholten, Leo Schwinn, Stephan Günnemann

Introduction: The $\ell_p$ Fallacy

Traditional adversarial robustness research has long relied on the $\ell_p$-norm constraint as a proxy for human perception. By restricting perturbations to a tiny "norm-ball" around an image, researchers ensure that changes are mathematically small and often invisible. However, this approach fails to capture real-world variations—like changes in lighting, weather, or minor object removals—that significantly alter pixel values while preserving the image's semantic meaning for a human observer.

Comparison of ScoreAG-GAT with traditional adversarial attacks (APGD) on a tiger shark image.

As shown in Figure 1, traditional attacks like APGD introduce visible "digital frost" or rainbow-colored noise. In contrast, the proposed Score-Based Adversarial Generation (ScoreAG) framework produces "unrestricted" adversarial images that look natural. In the tiger shark example, ScoreAG fools the classifier by subtly altering semantic features (like removing a small fish in the background) rather than adding high-frequency noise.

ScoreAG: Navigating the Natural Image Manifold

ScoreAG leverages score-based generative models (diffusion) to explore the manifold of realistic images. Unlike standard adversarial attacks that move in arbitrary directions in pixel space, ScoreAG uses the gradient of the log-density of the data distribution to ensure generated images remain "natural."

The framework introduces three primary modes of operation:

  1. Generative Adversarial Synthesis (GAS): Synthesizing adversarial images from scratch based on a target class.
  2. Generative Adversarial Transformation (GAT): Perturbing an existing image to find the nearest adversarial example on the natural manifold.
  3. Generative Adversarial Purification (GAP): A defense mechanism that "purifies" potentially attacked images by projecting them back onto the clean image manifold using the diffusion process.

To overcome the high computational cost of standard diffusion guidance, the authors utilize a "one-step Euler approximation" ($\hat{x}_0$). This technique estimates the final denoised image at each step, allowing pre-trained, off-the-shelf classifiers to guide the generation process without requiring specialized training on noisy data.

Evaluating Robustness and Purification

The researchers evaluated ScoreAG across CIFAR10, CIFAR100, TinyImageNet, and ImageNet-Compatible datasets. The results highlight a significant gap in current AI safety:

  • Vulnerability of Standard Models: Against non-robust models, ScoreAG achieved nearly 0% robust accuracy across all benchmarks, demonstrating that these models are highly fragile to natural-looking semantic shifts.
  • Breaking Adversarial Training: Even models specifically hardened against $\ell_p$ attacks (via Adversarial Training) proved vulnerable to ScoreAG-GAT, which was more effective at finding adversarial examples than traditional PGD.
  • State-of-the-Art Purification: In defense tasks, the GAP mode outperformed existing purifiers like DiffPure. On CIFAR10, it maintained a high 93.9% clean accuracy while providing 90-92% robust accuracy against a variety of common attacks.
  • Human Alignment: A study involving 60 human evaluators confirmed the "semantics-preserving" nature of the attack. While the AI was consistently fooled, humans correctly identified the objects in ScoreAG-generated images 94% of the time.

Conclusion

ScoreAG demonstrates that current measures of AI robustness are often an illusion created by narrow pixel-level constraints. By shifting the focus from $\ell_p$ distances to semantic preservation on the natural image manifold, this work provides both a more rigorous testing framework for AI safety and a powerful new tool for image purification. Future work will focus on improving the inference speed of these SDE-based methods and developing more objective metrics for semantic preservation.

This summary is based on the paper "Assessing Robustness via Score-Based Adversarial Image Generation," published in Transactions on Machine Learning Research (11/2024).

Summary updated

BibTeX
@article{kollovieh2024assessing,
  author = {Marcel Kollovieh and Lukas Gosch and Marten Lienen and Yan Scholten and Leo Schwinn and Stephan Günnemann},
  title = {{Assessing Robustness via Score-Based Adversarial Image Generation}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure