Detecting Adversarial Attacks in Semantic Segmentation via Uncertainty Estimation: A Deep Analysis
Kira Maag, Roman Resner, Asja Fischer
TL;DR
This paper addresses the vulnerability of semantic segmentation models to adversarial perturbations in safety-critical settings. It introduces an uncertainty-based detection framework that uses pixel-wise uncertainty measures, including the entropy $E(x)_z$, variation ratio $V(x)_z$, and margin $M(x)_z$, as post-processing features to distinguish benign from attacked inputs, without altering the segmentation model. Across Cityscapes with multiple CNN and transformer architectures and a wide set of attacks, the approach achieves high detection performance (average ADA* around $89.36\%$) and operates efficiently as a post-processing step. The method provides a robust, attack-agnostic baseline for uncertainty-based detection in semantic segmentation with practical implications for real-world deployment.
Abstract
Deep neural networks have demonstrated remarkable effectiveness across a wide range of tasks such as semantic segmentation. Nevertheless, these networks are vulnerable to adversarial attacks that add imperceptible perturbations to the input image, leading to false predictions. This vulnerability is particularly dangerous in safety-critical applications like automated driving. While adversarial examples and defense strategies are well-researched in the context of image classification, there is comparatively less research focused on semantic segmentation. Recently, we have proposed an uncertainty-based method for detecting adversarial attacks on neural networks for semantic segmentation. We observed that uncertainty, as measured by the entropy of the output distribution, behaves differently on clean versus adversely perturbed images, and we utilize this property to differentiate between the two. In this extended version of our work, we conduct a detailed analysis of uncertainty-based detection of adversarial attacks including a diverse set of adversarial attacks and various state-of-the-art neural networks. Our numerical experiments show the effectiveness of the proposed uncertainty-based detection method, which is lightweight and operates as a post-processing step, i.e., no model modifications or knowledge of the adversarial example generation process are required.
