Abstract
Classification has been the focal point of research on adversarial attacks, but only a few works investigate methods suited to denser prediction tasks, such as semantic segmentation. The methods proposed in these works do not accurately solve the adversarial segmentation problem and, therefore, overestimate the size of the perturbations required to fool models. Here, we propose a white-box attack for these models based on a proximal splitting to produce adversarial perturbations with much smaller $\ell_{\infty}$ norms. Our attack can handle large numbers of constraints within a nonconvex minimization framework via an Augmented Lagrangian approach, coupled with adaptive constraint scaling and masking strategies. We demonstrate that our attack significantly outperforms previously proposed ones, as well as classification attacks that we adapted for segmentation, providing a first comprehensive benchmark for this dense task.
Introduction
Adversarial attack research has predominantly focused on image classification, where the objective is to induce a single label flip. However, semantic segmentation presents a significantly greater challenge as a dense prediction task. In this domain, every pixel in a high-resolution image must be classified, leading to two primary hurdles:
- Optimization Complexity: Instead of a single constraint, the attacker must manage millions of per-pixel constraints simultaneously. Traditional methods like the Carlini & Wagner (C&W) attack, which rely on binary searches for penalty weights, do not scale to this level of complexity.
- Resource Intensity: Computing gradients for high-resolution datasets like Cityscapes ($2048 \times 1024$) is memory-intensive, often requiring over 20 GiB of VRAM for a single backward pass.
Existing segmentation attacks, such as Dense Adversary Generation (DAG), often fail to minimize the perturbation norm effectively, leading to an overestimation of model robustness.
Methodology: ALMA prox
We introduce ALMA prox (Augmented Lagrangian Method with Proximal splitting), a white-box attack designed to produce minimal $\ell_\infty$ perturbations. The framework integrates several key components:
- Augmented Lagrangian Framework: This allows the attack to handle millions of constraints by iteratively updating a penalty and a multiplier for each constraint.
- Proximal Splitting: To minimize the non-smooth $\ell_\infty$ norm, we utilize a proximal operator rather than standard gradient descent. This approach is mathematically more precise for the "box-shaped" constraints characteristic of $\ell_\infty$ norms.
- Ternary Search for the Prox Operator: We developed a numerically stable ternary search algorithm to compute the proximity operator of the $\ell_\infty$ norm efficiently under image boundary constraints.
- Adaptive Strategies: We employ Constraint Masking, targeting a 99% Attack Pixel Success Rate (APSR) to prevent the optimizer from stalling on "impossible" pixels. Additionally, Constraint Scaling dynamically adjusts weights to balance speed and success.
Experimental Evaluation
The attack was evaluated on two standard benchmarks: Cityscapes (urban scenes) and Pascal VOC 2012 (diverse object classes). We tested a variety of architectures, including CNN-based models (DeepLabV3+, FCN HRNetV2) and transformer-based models (SegFormer), as well as the robustly trained DDC-AT model.
Results and Discussion
ALMA prox reveals that the perceived robustness of segmentation models is largely an illusion. On Cityscapes, the attack found untargeted perturbations with an average $\ell_\infty$ norm below $0.5/255$. These perturbations are effectively invisible, being smaller than the rounding error of a standard 8-bit digital image.
Key findings include:
- Breaking Robust Models: Against the robust DeepLabV3 DDC-AT model, ALMA prox achieved a median perturbation of $0.81/255$ on Cityscapes, where previous adapted attacks failed.
- The 99% Rule: By allowing a 1% failure rate through masking, the attack finds significantly more subtle perturbations for the remaining 99% of the image.
- Proximal Efficiency: The ternary search for the proximal operator proved faster and more accurate than traditional iterative splitting methods like Dual Forward-Backward (DFB).
Conclusion
While ALMA prox demonstrates state-of-the-art performance in finding minimal perturbations, challenges remain regarding the digitization of continuous values into 8-bit integers and the high memory requirements for high-resolution images. Furthermore, targeted attacks on datasets lacking a "background" class, like Cityscapes, remain significantly more difficult. Nonetheless, ALMA prox provides a new, more accurate benchmark for evaluating the adversarial robustness of dense prediction models.
Summary updated