Abstract
Adversarial attacks on semantic segmentation often suffer from poor transferability, failing to fool models other than the one used for their generation. This paper investigates the causes of this "overfitting" and proposes an ensemble strategy—combining Nesterov momentum, diverse input scaling, and translation-invariant gradients—to create highly transferable perturbations. Evaluated on Cityscapes and Pascal VOC benchmarks, the method demonstrates superior performance in black-box scenarios, even successfully targeting foundation models like Segment Anything (SAM).
Introduction
Adversarial attacks—subtle, often imperceptible perturbations to an image that cause deep learning models to fail—have exposed significant vulnerabilities in computer vision. While image classification has been extensively studied, semantic segmentation, which requires pixel-level labeling, presents a more complex challenge. Most existing attacks for segmentation are highly specific to the target model's architecture; when applied to an unknown "black-box" model, these attacks typically fail to transfer, rendering them ineffective in real-world security scenarios.
A recent study by Mengqi He et al., titled "Transferable Attack for Semantic Segmentation," addresses this gap. The researchers analyze why standard attacks fail to generalize and propose a novel ensemble strategy designed to break through the defenses of diverse segmentation architectures.
The Challenge of Transferability
In a "white-box" attack, the adversary has full access to the model's weights and architecture. However, real-world threats often occur in "black-box" environments where the target model is unknown. To succeed, an attacker must generate an adversarial perturbation using a known "source" model and hope it remains effective on the "target" model. This property is known as transferability.
In semantic segmentation, transferability is notoriously difficult to achieve. Standard optimization methods, such as Projected Gradient Descent (PGD), tend to create perturbations that are finely tuned to the source model's specific decision boundaries. These perturbations often manifest as high-frequency noise that a different model architecture simply ignores. The authors argue that achieving transferability requires moving beyond model-specific weaknesses to target fundamental features shared across architectures.
Proposed Methodology: The Ensemble Attack
The authors propose that transferability is rooted in two key factors: data diversity and gradient stability. To achieve this, they integrate three established techniques into a unified "Ensemble Segmentation Attack":
- Nesterov Iterative (NI): By incorporating a "look-ahead" momentum term, this method stabilizes the optimization process. It helps the attack find a more "global" gradient direction that is likely to be shared by multiple models, rather than getting stuck in local minima specific to the source model.
- Diverse Inputs (DI): During the generation of the attack, the input image is subjected to random resizing and padding. This stochastic augmentation prevents the adversarial perturbation from overfitting to the specific pixel grid or resolution of the source model.
- Translation-Invariant (TI): By convolving the gradient with a Gaussian kernel, the attack becomes robust to small spatial shifts. This ensures the perturbation remains effective even if the target model employs different padding strategies or slight image translations.
By fusing these methods, the researchers create an attack that targets robust, cross-model features rather than architecture-specific artifacts.
Experimental Evaluation
The proposed approach was evaluated on two primary benchmarks:
- Pascal VOC 2012: A standard dataset for general object segmentation featuring 21 classes.
- Cityscapes: A high-resolution dataset of urban environments (19 classes), which is particularly relevant for the safety of autonomous driving systems.
Key Insights and the "Quality vs. Transfer" Paradox
A significant finding of the study is the inverse relationship between visual quality and transferability. Popular attacks like Dense Adversary Generation (DAG) produce adversarial images with high Structural Similarity (SSIM), meaning they look very clean to the human eye. However, these "precise" attacks exhibit poor transferability. In contrast, Nesterov-based attacks, which may appear slightly noisier, are far more effective at fooling unseen models because they target more fundamental visual features.
Furthermore, the study highlights an architecture bias: attacks transfer more readily between models with similar structural components (e.g., from one ResNet-based model to another) than across fundamentally different architectures, such as from a CNN to a Transformer-based model.
Results and Impact
The ensemble method (NI + DI + TI) consistently outperformed baseline attacks. On the Cityscapes dataset, using a Deeplabv3-Res50 source model, the ensemble attack achieved a success rate of approximately 89% against a Deeplabv3-MobilenetV2 target, a significant improvement over the ~61% achieved by standard FGSM.
In terms of accuracy degradation, the attack reduced the mean Intersection over Union (mIoU) of target models on Pascal VOC to as low as 0.08. Perhaps most strikingly, the researchers demonstrated that attacks generated from small, standard models could successfully compromise large-scale foundation models like Segment Anything (SAM), proving that even state-of-the-art systems share these underlying vulnerabilities.
Conclusion and Future Directions
This research demonstrates that semantic segmentation models are more vulnerable to black-box attacks than previously thought. While the gap between CNNs and Transformers remains a challenge for transferability, the success of ensemble methods against foundation models like SAM is a significant finding for the field of AI safety. Future work will likely focus on bridging the architectural gap between convolutions and self-attention mechanisms to create even more universal adversarial perturbations.
Summary updated