The Attack Generator: A Systematic Approach Towards Constructing Adversarial Attacks.

Felix Assion, Peter Schlicht, Florens Greßner, Wiebke Günther, Fabian Hüger, Nico M. Schmidt, Umair Rasheed

Abstract

Most state-of-the-art machine learning (ML) classification systems are vulnerable to adversarial perturbations. As a consequence, adversarial robustness poses a significant challenge for the deployment of ML-based systems in safety- and security-critical environments like autonomous driving, disease detection or unmanned aerial vehicles. In the past years we have seen an impressive amount of publications presenting more and more new adversarial attacks. However, the attack research seems to be rather unstructured and new attacks often appear to be random selections from the unlimited set of possible adversarial attacks. With this publication, we present a structured analysis of the adversarial attack creation process. By detecting different building blocks of adversarial attacks, we outline the road to new sets of adversarial attacks. We call this the "attack generator". In the pursuit of this objective, we summarize and extend existing adversarial perturbation taxonomies. The resulting taxonomy is then linked to the application context of computer vision systems for autonomous vehicles, i.e. semantic segmentation and object detection. Finally, in order to prove the usefulness of the attack generator, we investigate existing semantic segmentation attacks with respect to the detected defining components of adversarial attacks.

Introduction

Despite the rapid growth of research into adversarial attacks—small, intentional perturbations designed to deceive machine learning models—the field remains largely unstructured. New attacks are frequently presented as ad-hoc discoveries rather than systematic explorations of the attack space. This lack of organization complicates the evaluation of safety-critical systems, such as those used in autonomous driving. Without understanding the underlying "DNA" of an attack, it is difficult to ensure that defensive measures are truly comprehensive. This work proposes moving from accidental discovery to a systematic engineering approach via the "Attack Generator."

The Attack Generator Framework

The core contribution of this research is a modular framework that deconstructs adversarial attacks into functional building blocks. By treating attacks as customizable compositions rather than monolithic algorithms, researchers can systematically derive new, complex attacks by swapping individual components.

The high-level modular structure of the Attack Generator framework.

The framework categorizes attacks across two primary dimensions:

  1. The Threat Model: Defines adversary constraints, including goals (e.g., hiding an object vs. misclassifying it), knowledge (white-box vs. black-box), and capabilities (digital vs. physical).
  2. The Attack Strategy: The mathematical recipe involving the input (model and data) and the mathematical procedure (the optimization method used to find the perturbation).

Modular Optimization Objectives

An attack is formalized as a constrained optimization problem where the objective function is a composition of three distinct measures:

  • Specificity ($\\mathcal{M}_{sp}$): Defines the desired error or target misclassification.
  • Imperceptibility ($\\mathcal{M}_{im}$): Determines how the perturbation is hidden from human observers. While most research relies on $L^p$ norms, this framework allows for more sophisticated measures like attention-based spatial transformations.
  • Scope ($\\mathcal{M}_{sc}$): Defines how broadly the attack applies (e.g., to a single image or universally across a dataset).

Experimental Validation in Semantic Segmentation

To demonstrate the utility of the Attack Generator, the authors applied it to semantic segmentation for autonomous driving using an Image Cascade Network (ICNet). By modifying specific building blocks, they "generated" two distinct types of attacks:

  • Confusion Attack: By adjusting the Specificity component, the authors created an attack that enlarges a specific class (e.g., pedestrians) in the model's output rather than simply removing it.
  • Attention-based Attack: By swapping standard pixel-value changes for a flow field perturbation (governed by a Total Variation measure), they successfully removed pedestrians from the model's view by slightly shifting pixels in a way that remains hard for humans to detect.
Qualitative results showing the original image/prediction alongside the generated confusion and attention-based attacks.

Conclusion and Future Work

The Attack Generator demonstrates that viewing adversarial attacks as modular compositions allows for the systematic creation of diverse benchmark attacks. While this approach facilitates more rigorous testing, the authors note that provable verification remains a challenge for complex tasks like semantic segmentation. They advocate for a shift in research focus toward developing new "building blocks"—such as novel measures of imperceptibility or optimization tricks—rather than merely presenting fully assembled, one-off attacks.

Summary updated

BibTeX
@inproceedings{assion2019attack,
  author = {Felix Assion and Peter Schlicht and Florens Greßner and Wiebke Günther and Fabian Hüger and Nico M. Schmidt and Umair Rasheed},
  title = {{The Attack Generator: A Systematic Approach Towards Constructing Adversarial Attacks.}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=rjexWQNQeuTS},
}
Figure