English

TsallisPGD: Adaptive Gradient Weighting for Adversarial Attacks on Semantic Segmentation

Computer Vision and Pattern Recognition 2026-05-06 v1 Machine Learning

Abstract

Attacking semantic segmentation models is significantly harder than image classification models because an attacker must flip thousands of pixel predictions simultaneously. Standard pixel-wise cross-entropy (CE) is ill-suited to this setting: it tends to overemphasize already-misclassified pixels, which slows optimization and overstates model robustness. To address these issues, we introduce TsallisPGD, an adversarial attack built on the Tsallis cross-entropy, a generalization of CE parameterized by qq, which adaptively reshapes the gradient landscape by controlling gradient concentration across pixels. By varying qq, we steer the attack toward pixels at different confidence levels. We first show that no single fixed-qq is universally optimal, as its effectiveness depends on the dataset, model architecture, and perturbation budget. Motivated by this, we propose a dynamic qq-schedule that sweeps qq during optimization. Extensive experiments on Cityscapes, Pascal VOC, and ADE20K show that TsallisPGD, using a single validation-selected schedule, achieves the best average attack rank across all evaluated settings and improves over CEPGD, SegPGD, CosPGD, JSPGD, and MaskedPGD in reducing accuracy and mIoU on both standard and robust models.

Keywords

Cite

@article{arxiv.2605.03405,
  title  = {TsallisPGD: Adaptive Gradient Weighting for Adversarial Attacks on Semantic Segmentation},
  author = {Alexander Matyasko and Xin Lou and Indriyati Atmosukarto and Wei Zhang},
  journal= {arXiv preprint arXiv:2605.03405},
  year   = {2026}
}

Comments

Accepted to IJCNN 2026. Code: https://github.com/aam-at/tsallis_pgd

R2 v1 2026-07-01T12:49:54.452Z