SegPAR: Class-Centric Decision-Based Sparse Attack for Semantic Segmentation

Dongsu Song, DaeYun Go, Boseung Seo, Jay Hoon JungarXiv 2026

TL;DR

SegPAR is a novel decision-based, black-box sparse attack framework designed specifically for semantic segmentation models. By shifting from a global image-centric search to a class-centric exploration paradigm and introducing a "discrepancy reward," SegPAR drastically reduces model accuracy (MIoU) while manipulating only a tiny fraction of pixels. It significantly outperforms existing black-box attacks and even challenges strong white-box alternatives under strict query budgets.

What Problem Does This Paper Address?

Adversarial attacks expose critical vulnerabilities in deep learning models by introducing imperceptible perturbations that trigger incorrect outputs. While most research focuses on white-box attacks (where the attacker knows everything about the model, including its gradients), black-box attacks are much more realistic because they rely solely on observing the model's outputs (like labels or confidence scores).

Furthermore, sparse attacks—which perturb only a handful of pixels—mimic real-world physical threats like sensor defects (dead pixels) or strategically placed stickers on road signs.

While sparse black-box attacks have been successfully applied to simple image classification, adapting them to semantic segmentation is incredibly difficult. Semantic segmentation requires predicting a label for every single pixel in an image. Existing methods attempt to search the entire image space globally. This image-centric approach is highly inefficient; the attack quickly wastes its limited query budget on a few easy-to-exploit regions, failing to uncover vulnerabilities across the diverse mix of object classes present in a scene.

Methods

To solve this query-inefficiency, the authors introduce SegPAR (Segmentation Pixel Attack using RL), which fundamentally re-engineers the attack process through two core innovations:

  1. Class-Centric Exploration: Instead of treating the image as one giant search space, SegPAR breaks it down by object classes. It extracts binary masks for each class from the model's initial prediction and crops class-specific regions. A reinforcement learning (RL) agent then acts on these regions in parallel, ensuring that perturbations are distributed intelligently across different semantic categories rather than clustering in one spot.
  2. Mask-Based Sampling Strategy: To prevent actions from bleeding into neighboring classes within a rectangular bounding box, SegPAR uses a masked softmax distribution to confine the pixel selection strictly to the irregular geometry of the target class.
The SegPAR Framework architecture diagram
  1. Discrepancy Reward: Standard RL pixel-accumulation attacks reward any change in a pixel's predicted label from one step to the next. However, in dense prediction, this creates misleading feedback loops. For example, the agent might get a positive reward if a pixel fluctuates between two incorrect classes, or worse, if a previously fooled pixel reverts back to its correct class. SegPAR introduces a Discrepancy Reward that evaluates success strictly relative to the original, unperturbed prediction, ensuring the agent only receives positive reinforcement for net-new misclassifications.
Fig. 3: Comparison of the standard reward and the discrepancy reward.

Datasets

The authors evaluated SegPAR across three widely recognized semantic segmentation benchmarks:

  • Cityscapes: Focused on urban driving scenes (19 classes).
  • Pascal VOC2012: Covers 20 common object categories.
  • ADE20K: A highly complex dataset containing 150 diverse classes with fine-grained annotations.

Testing was conducted on a fixed subset of 100 randomly sampled validation images from each dataset due to the high computational cost of query-based attacks.

Key Insights and Ideas

  • The Global Search Trap: Image-centric pixel exploration fails in dense prediction because the search space scales exponentially with multi-class outputs. Attacks get trapped in local optima (large or easily perturbed regions like the sky or road) and ignore smaller, safety-critical targets.
  • Deceptive Rewards Hindered Progress: Standard transition-based rewards actively harm optimization in cumulative attack settings by reinforcing unstable fluctuations. Tracking the marginal gain of cumulatively successful pixels forces monotonic expansion of the fooled regions.
  • Prioritizing Safety-Critical Classes: Because SegPAR explores classes in parallel, it compromises safety-critical autonomous driving categories (such as traffic signs, pedestrians, and riders) much faster—often driving their per-class MIoU down sharply within just 200 queries.

Key Results

SegPAR demonstrated exceptional performance across various model architectures, including CNN-based networks (DeepLabV3, PSPNet) and Transformer-based networks (SegFormer, SETR):

  • Sparsity and Efficiency: On the VOC2012 dataset using DeepLabV3, SegPAR dropped the Mean Intersection over Union (MIoU) to 0.238 while altering just 2.24% of the pixels, requiring only 680.42 queries.
  • Baseline Destruction: It consistently achieved lower Robust MIoU (R.MIoU) with fewer perturbed pixels than black-box baselines like PointWise, SparseEvo, and RFPAR. For instance, on Cityscapes with PSPNet, SegPAR collapsed the MIoU to 0.057 at 3.53% sparsity.
Fig. 1: Qualitative comparison of sparse adversarial attacks on semantic segmentation models. Our proposed SegPAR induces severe misclassification with significantly lower sparsity compared to the baselines. As shown in the white boxes of the Delta maps, SegPAR maximizes attack efficiency by precisely targeting critical pixels, resulting in fatal semantic disruptions with minimal perturbations.
  • Closing the White-Box Gap: Despite having zero access to internal model gradients, SegPAR proved highly competitive with state-of-the-art white-box sparse attacks (like sPGD), frequently outperforming PGD0 under strict sparsity constraints.

Limitations and Future Work

While SegPAR represents a massive leap forward for black-box threats, the authors note a few limitations and areas for future exploration:

  • Resolution-Dependent Defenses: Adversarial training proved highly effective at defending models in high-resolution settings (like Cityscapes) because the massive search space naturally hinders sparse attacks. However, lower-resolution regimes (like VOC2012) remain highly vulnerable, showing only marginal defense gains.
  • Reward Stagnation: In high-resolution images, if the class-centric reduction isn't tight enough, the discrepancy reward can suffer from "rare reward events" because it only triggers when the set of cumulatively successful pixels expands.
  • The Need for Better White-Box Baselines: The fact that a black-box attack can approach or beat white-box methods suggests that the community still needs to develop stronger, segmentation-tailored white-box sparse attack baselines.

Summary updated

BibTeX
@misc{song2026segpar,
  author = {Dongsu Song and DaeYun GO and Boseung Seo and Jay Hoon Jung},
  title = {{SegPAR: Class-Centric Decision-Based Sparse Attack for Semantic Segmentation}},
  year = {2026},
  eprint = {2608.11285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.11285},
}
Figure