Abstract: It has been well demonstrated that adversarial examples, i.e., natural images with visually imperceptible perturbations added, cause deep networks to fail on image classification. In this paper, we extend adversarial examples to semantic segmentation and object detection which are much more difficult. Our observation is that both segmentation and detection are based on classifying multiple targets on an image (e.g., the target is a pixel or a receptive field in segmentation, and an object proposal in detection). This inspires us to optimize a loss function over a set of targets for generating adversarial perturbations. Based on this, we propose a novel algorithm named Dense Adversary Generation (DAG), which applies to the state-of-the-art networks for segmentation and detection. We find that the adversarial perturbations can be transferred across networks with different training data, based on different architectures, and even for different recognition tasks. In particular, the transfer ability across networks with the same architecture is more significant than in other cases. Besides, we show that summing up heterogeneous perturbations often leads to better transfer performance, which provides an effective method of black-box adversarial attack.
Introduction
Adversarial examples—images modified by imperceptible perturbations that cause deep neural networks to fail—have been extensively studied in the context of image classification. In classification, the network's goal is to assign a single label to an entire image. However, many critical real-world applications, such as autonomous driving and medical diagnosis, rely on more complex "dense" vision tasks: semantic segmentation and object detection. These tasks require the network to make thousands of simultaneous predictions, either labeling every pixel or identifying multiple object instances. This paper explores the vulnerability of these sophisticated systems to adversarial attacks.
The Dense Adversary Generation (DAG) Algorithm
The core contribution of this work is the Dense Adversary Generation (DAG) algorithm. Unlike classification-based attacks that target a single output, DAG treats every pixel in segmentation or every object proposal in detection as an individual target. The algorithm identifies "active" targets—those currently classified correctly—and iteratively optimizes a loss function to push these targets toward a random "incorrect" label.
By performing gradient back-propagation across all active targets simultaneously, DAG generates a single perturbation that subverts the entire dense prediction map. To maintain visual imperceptibility, the noise is constrained to a very small magnitude (e.g., less than 10 units in a 0-255 scale). For object detection, the authors ensure the noise covers almost every possible bounding box location by increasing the overlap threshold in the Region Proposal Network (RPN).
Experimental Results
The authors evaluated DAG on standard benchmarks, including Pascal VOC 2007 and 2012, targeting state-of-the-art architectures like Fully Convolutional Networks (FCN) for segmentation and Faster R-CNN for object detection. The results demonstrate that dense vision tasks are remarkably fragile. For semantic segmentation using FCN-VGG, the mean Intersection-over-Union (mIOU) dropped from 65.49% to a mere 4.09%. Similarly, for object detection with Faster R-CNN (VGG), the mean Average Precision (mAP) plummeted from 69.14% to 5.92%.
Transferability and Insights
A key finding is the transferability of these adversarial examples. Perturbations generated for one network architecture often successfully fool others, even if they were trained on different data or designed for different tasks. For instance, noise generated to disrupt a segmentation model can significantly degrade the performance of a detection model. This suggests that these models share common underlying feature representations that are susceptible to the same spatial patterns.
Furthermore, the authors found that an ensemble of heterogeneous perturbations (summing noise from different models) provides a highly effective method for black-box attacks where the target model's architecture is unknown. Shuffling the spatial structure of the noise causes the attack's effectiveness to vanish, proving that the failure is caused by specific spatial patterns rather than simple noise magnitude.
Conclusion
This research highlights a significant security concern for deep learning in complex vision tasks. The effectiveness of the DAG algorithm across various architectures and tasks underscores the need for more robust training methods. Future work should focus on adversarial training—incorporating these dense adversarial examples into the training process—to enhance the reliability of systems in safety-critical environments.
Summary updated