Delving into Decision-based Black-box Attacks on Semantic Segmentation

Zhaoyu Chen, Zhengyang Shan, Jingwen Chang, Kaixun Jiang, Dingkang Yang, Yiting Cheng, Wenqiang ZhangarXiv 2024 · DOI

Abstract

Adversarial attacks on semantic segmentation have primarily focused on white-box scenarios where model gradients are accessible. This paper explores the more challenging decision-based black-box setting, where an attacker only observes final predicted labels. We introduce the Discrete Linear Attack (DLA), which utilizes discrete linear noises and a hierarchical calibration strategy to efficiently disrupt segmentation models. Our method drastically reduces performance—for instance, dropping PSPNet's mIoU on Cityscapes from 77.83% to 2.14% with only 50 queries—demonstrating significant vulnerabilities in current state-of-the-art architectures.

Introduction

Semantic segmentation is a critical component in safety-critical systems like autonomous driving. While white-box attacks are well-studied, real-world scenarios often restrict attackers to "black-box" access, where only the model's final output is available. Decision-based attacks are particularly difficult because they lack the continuous confidence scores used by score-based attacks to estimate gradients.

Attacking segmentation models presents unique hurdles compared to image classification:

  1. Inconsistent Optimization Goals: Reducing perturbation size can inadvertently correct previously misclassified pixels, making the optimization path erratic.
  2. Perturbation Interaction: Spatial context causes noise in one area to affect predictions in another, creating a "whack-a-mole" effect where pixels flip back and forth.
  3. Complex Parameter Space: The high dimensionality of pixel-level predictions (millions of pixels) makes traditional random search strategies highly inefficient.

The Discrete Linear Attack (DLA)

To address these challenges, we propose DLA, which simplifies the attack by shifting from continuous noise to a discrete search space. DLA restricts perturbations to the extreme points of the $l_\infty$ norm ball (flipping pixels to $\pm\epsilon$), significantly reducing the search complexity.

A key innovation is the use of Linear Noises. Instead of global noise or square patches, DLA uses horizontal and vertical lines. These effectively disrupt the spatial dependencies models rely on while remaining less perceptible to the human eye.

Comparison of different noise patterns. Linear noise (right) provides a superior balance between disruption and perceptibility.

The DLA algorithm operates in two phases:

  • Perturbation Exploration: Rapidly identifies high-impact initial noise by alternating between horizontal and vertical linear patterns.
  • Perturbation Calibration: Uses a hierarchical approach to refine the attack. The image is divided into blocks, and the algorithm attempts to flip noise signs within these blocks, progressively moving from coarse to fine scales to avoid local optima.

Experimental Evaluation

We evaluated DLA on the Cityscapes (urban scenes) and ADE20K (diverse indoor/outdoor scenes) datasets. We tested five representative models: CNN-based architectures (FCN, PSPNet, DeepLabV3) and modern Transformer-based models (SegFormer, MaskFormer).

Key Results

DLA consistently outperforms existing black-box methods like Square Attack and Bandits in both efficiency and impact. As shown in the results table, DLA achieves extreme efficiency. On Cityscapes, it reduced PSPNet’s mIoU from 77.83% to a mere 2.14% within a 50-query budget. Even with a tiny budget of just 10 queries, DLA could drop SegFormer's mIoU by over 60% on Cityscapes.

Quantitative and qualitative comparison of DLA against baseline attacks across different models and datasets.

Insights and Discussion

  • Discrete Advantage: Searching the "corners" of the noise space is more effective than continuous search for finding adversarial examples in high-dimensional segmentation tasks.
  • Structural Vulnerability: Linear noise exploits the long-range dependencies in modern models. While Transformers (e.g., SegFormer) show slightly better robustness due to self-attention mechanisms, they remain highly susceptible to structured perturbations.
  • Model Fragility: The qualitative results illustrate how a tiny, structured perturbation can turn a coherent scene into a chaotic mess of misclassifications, highlighting a fundamental weakness in current spatial processing.

Conclusion

This work demonstrates that semantic segmentation models are highly vulnerable to efficient decision-based black-box attacks. DLA's success with minimal queries suggests that current robustness benchmarks may be overestimating model security in realistic settings. Future research should focus on developing defenses specifically tailored to resist structured linear perturbations and improving the inherent spatial robustness of segmentation architectures.

Summary updated

BibTeX
@misc{chen2024delving,
  author = {Zhaoyu Chen and Zhengyang Shan and Jingwen Chang and Kaixun Jiang and Dingkang Yang and Yiting Cheng and Wenqiang Zhang},
  title = {{Delving into Decision-based Black-box Attacks on Semantic Segmentation}},
  year = {2024},
  eprint = {2402.01220},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01220},
}
Figure