Adversarial Examples for Semantic Image Segmentation

Volker Fischer, Mummadi Chaithanya Kumar, Jan Hendrik Metzen, Thomas Brox

This paper explores a chilling possibility for computer vision: making objects "disappear" from a neural network's sight without changing the image in a way a human would notice. While adversarial attacks were well-documented for simple image classification at the time of publication, this work extends the threat to the more complex domain of semantic image segmentation.

The Threat to Scene Understanding

Most early research into adversarial examples focused on image classification: changing a few pixels so a network labels a "panda" as a "gibbon." However, real-world applications like autonomous driving rely on semantic segmentation, where the network must assign a class label to every single pixel in an image to understand the scene's geometry.

The authors sought to answer a critical question: Is it harder to fool a segmentation network because it makes thousands of predictions at once? Or can an attacker selectively "erase" an object from the network's internal map while keeping the rest of the environment looking normal? This has massive implications for the safety and reliability of vision-based AI, as these models serve as the "eyes" of many self-driving car systems.

Methodology: Cloaking Objects

The researchers adapted the "least-likely" iterative method for the segmentation task to demonstrate that these models are highly vulnerable to adversarial perturbations.

  1. Target Map Generation: Instead of just picking a "wrong" class, the authors created a clever "adversarial target." For a chosen class (e.g., "person"), they replaced those pixels in the ground-truth map with the label of the nearest neighboring non-person pixel. This encourages the network to "fill in" the space where the person was with a plausible background.
  2. Iterative Optimization: They used gradient descent to find a perturbation that minimizes the loss between the network's prediction and this fake target map.
  3. Constraint: To keep the attack imperceptible, they used an $L_\infty$ norm constraint ($\epsilon$), ensuring no pixel value changed by more than a tiny amount (e.g., 10 out of 255).
  4. Restricted Attacks: They also tested a "restricted" version where noise was only added to the pixels belonging to the target class, testing if local noise is sufficient to hide an object.

Key Results and Insights

The study used the Cityscapes dataset, a standard benchmark for urban scene understanding, evaluating against a Fully Convolutional Network (FCN8) with a VGG16 backbone.

Visual demonstration of the adversarial attack on semantic segmentation, showing how pedestrians are 'cloaked' from the network's predictions.
  • The "Cloaking" Effect: The most striking insight is that you don't need to corrupt the whole image to fool the network. By targeting specific regions, an attacker can make a pedestrian "vanish" into the sidewalk or a building.
  • High Success Rate: With a very small perturbation ($\epsilon = 10$), the attack successfully hid over 85% of person pixels while preserving over 97% of the background predictions.
  • Imperceptibility: At this constraint level, the adversarial noise is virtually invisible to the human eye, yet it completely changes the network's understanding of the scene.
  • Spatial Consistency Matters: Simply forcing pixels to be "wrong" isn't as effective as forcing them to be a specific wrong class that makes sense for the surrounding area (the nearest-neighbor trick). This creates a more "stable" adversarial example for the optimizer.
  • Local Noise is Sufficient: The researchers found that applying noise only to the pixels of the object you want to hide is often enough to make the model misclassify those pixels. This proves that the attack doesn't rely on global image distortion and suggests that the network's local features are highly sensitive to these specific patterns.

Limitations and Future Work

  • Model Architecture: The study used FCN8, which was state-of-the-art at the time but has since been surpassed. Future work is needed to test if more modern architectures (like DeepLab or Transformers) are more resilient.
  • Physical World Attacks: The authors acknowledge that these perturbations are digital. A major open question is whether such an attack could be translated into the physical world—for example, by wearing a specifically patterned t-shirt that makes a person "invisible" to a self-driving car's cameras.
  • Defense Mechanisms: The paper focuses on demonstrating the attack vulnerability; it does not propose a defense (like adversarial training), leaving that as a critical next step for the research community.

Summary updated

BibTeX
@inproceedings{fischer2017adversarial,
  author = {Volker Fischer and Mummadi Chaithanya Kumar and Jan Hendrik Metzen and Thomas Brox},
  title = {{Adversarial Examples for Semantic Image Segmentation}},
  booktitle = {Workshops @ ICLR},
  year = {2017},
  url = {https://openreview.net/forum?id=KfZ9YRx0RtW},
}
Figure