CosPGD: an efficient white-box adversarial attack for pixel-wise prediction tasks
Not on the map. Why?
Abstract (arXiv)
While neural networks allow highly accurate predictions in many tasks, their lack of robustness towards even slight input perturbations often hampers their deployment. Adversarial attacks such as the seminal projected gradient descent (PGD) offer an effective means to evaluate a model's robustness and dedicated solutions have been proposed for attacks on semantic segmentation or optical flow estimation. While they attempt to increase the attack's efficiency, a further objective is to balance its effect, so that it acts on the entire image domain instead of isolated point-wise predictions. This often comes at the cost of optimization stability and thus efficiency. Here, we propose CosPGD, an attack that encourages more balanced errors over the entire image domain while increasing the attack's overall efficiency. To this end, CosPGD leverages a simple alignment score computed from any pixel-wise prediction and its target to scale the loss in a smooth and fully differentiable way. It leads to efficient evaluations of a model's robustness for semantic segmentation as well as regression models (such as optical flow, disparity estimation, or image restoration), and it allows it to outperform the previous SotA attack on semantic segmentation. We provide code for the CosPGD algorithm and example usage at https://github.com/shashankskagnihotri/cospgd.
Key facts. Cited by 27 papers in the map (data through 13 Oct 2026). Builds on 53 of its 90 references that are in the map. First posted on arXiv 4 Feb 2023.
Builds on
53 of 90 references.
References · 53
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2014Explaining and Harnessing Adversarial Examplescited by 7,336
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,379
- 2013Intriguing properties of neural networkscited by 5,137
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,435
- 2022A ConvNet for the 2020scited by 3,563
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,992
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,930
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,862
- 2016Pyramid Scene Parsing Networkcited by 2,474
- 2020RAFT: Recurrent All-Pairs Field Transforms for Optical Flowcited by 2,395
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,159
38 more
- 2016Adversarial examples in the physical worldcited by 1,767
- 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,622
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,445
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2019Natural Adversarial Examplescited by 1,405
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,268
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,068
- 2015FlowNet: Learning Optical Flow with Convolutional Networkscited by 1,057
- 2017PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volumecited by 967
- 2016Adversarial Machine Learning at Scalecited by 935
- 2015A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimationcited by 879
- 2016FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networkscited by 782
- 2020Fast is better than free: Revisiting adversarial trainingcited by 725
- 2016Deep Multi-scale Convolutional Neural Network for Dynamic Scene Deblurringcited by 724
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 684
- 2020RobustBench: a standardized adversarial robustness benchmarkcited by 658
- 2018Black-box Adversarial Attacks with Limited Queries and Informationcited by 499
- 2016Optical Flow Estimation using a Spatial Pyramid Networkcited by 423
- 2018Feature Denoising for Improving Adversarial Robustnesscited by 313
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 285
- 2021Learning to Estimate Hidden Motions with Global Motion Aggregationcited by 223
- 2020Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformerscited by 190
- 2014Hypercolumns for Object Segmentation and Fine-grained Localizationcited by 128
- 2017On the Robustness of Semantic Segmentation Models to Adversarial Attackscited by 126
- 2018Decoupling Direction and Norm for Efficient Gradient-Based L2 Adversarial Attacks and Defensescited by 109
- 2019Analysis of Explainers of Black Box Deep Neural Networks for Computer Vision: A Surveycited by 93
- 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
- 2020Targeted Adversarial Perturbations for Monocular Depth Predictioncited by 40
- 2020Dynamic Divide-and-Conquer Adversarial Training for Robust Semantic Segmentationcited by 38
- 2020Spectral Distribution Aware Image Generationcited by 29
- 2022FrequencyLowCut Pooling -- Plug & Play against Catastrophic Overfittingcited by 28
- 20213D Adversarial Attacks Beyond Point Cloudcited by 26
- 2022Proximal Splitting Adversarial Attacks for Semantic Segmentationcited by 23
- 2022A Perturbation-Constrained Adversarial Attack for Evaluating the Robustness of Optical Flowcited by 16
- 2021Towards Understanding Adversarial Robustness of Optical Flow Networkscited by 15
- 2022Learning Where To Look -- Generative NAS is Surprisingly Efficientcited by 15
- 2022MultiGuard: Provably Robust Multi-label Classification against Adversarial Examplescited by 9
- 2022Attacking Motion Estimation with Adversarial Snowcited by 9
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2023: 8; 2024: 7; 2025: 6; 2026: 6.
27 papers.
Sort:
By area:
- 2024Adversarial Attacks of Vision Tasks in the Past 10 Years: A Surveycited by 23
- 2023Distracting Downpour: Adversarial Weather Attacks for Motion Estimationcited by 15
- 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fixcited by 11
- 2024As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?cited by 11
- 2023Uncertainty-weighted Loss Functions for Improved Adversarial Attacks on Semantic Segmentationcited by 9
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
- 2025RobustSpring: Benchmarking Robustness to Image Corruptions for Optical Flow, Scene Flow and Stereocited by 7
- 2023Detection Defenses: An Empty Promise against Adversarial Patch Attacks on Optical Flowcited by 6
- 2024Beware of Aliases -- Signal Preservation is Crucial for Robust Image Restorationcited by 6
- 2023Uncertainty-based Detection of Adversarial Attacks in Semantic Segmentationcited by 5
- 2023Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Modelscited by 5
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?cited by 5
15 more
- 2023Transferable Attack for Semantic Segmentationcited by 4
- 2024Seeing is Deceiving: Exploitation of Visual Pathways in Multi-Modal Language Modelscited by 4
- 2023PEARL: Preprocessing Enhanced Adversarial Robust Learning of Image Deraining for Semantic Segmentationcited by 3
- 2024How Do Training Methods Influence the Utilization of Vision Models?cited by 3
- 2024Towards Dependable Optical Flow: Benchmarks for Real-World Spatiotemporal Corruptionscited by 3
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustnesscited by 3
- 2024Detecting Adversarial Attacks in Semantic Segmentation via Uncertainty Estimation: A Deep Analysiscited by 1
- 2025FSPGD: Rethinking Black-box Attacks on Semantic Segmentationcited by 0
- 2025DispBench: Benchmarking Disparity Estimation to Synthetic Corruptionscited by 0
- 2025Proxy-Embedding as an Adversarial Teacher: An Embedding-Guided Bidirectional Attack for Referring Expression Segmentation Modelscited by 0
- 2026A Unified Spatial Alignment Framework for Highly Transferable Transformation-Based Attacks on Spatially Structured Taskscited by 0
- 2026TsallisPGD: Adaptive Gradient Weighting for Adversarial Attacks on Semantic Segmentationcited by 0
- 2026Learning with Bilevel-Minimax Optimization for Efficient and Reliable Transfer Attackscited by 0
- 2026RL-FAT: Reinforcement Learning for Fair Adversarial Trainingcited by 0
- 2026Failure or Drift? Evaluating Monocular SLAM under Synthetic and Real-World Corruptionscited by 0
- 2026Failure or Drift? Evaluating Monocular SLAM under Synthetic and Real-World Corruptions31 Aug 2026
- 2026RL-FAT: Reinforcement Learning for Fair Adversarial Training29 Aug 2026
- 2026Learning with Bilevel-Minimax Optimization for Efficient and Reliable Transfer Attacks12 Aug 2026
- 2026TsallisPGD: Adaptive Gradient Weighting for Adversarial Attacks on Semantic Segmentation5 May 2026
- 2026A Unified Spatial Alignment Framework for Highly Transferable Transformation-Based Attacks on Spatially Structured Tasks26 Mar 2026
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustness21 Jan 2026
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Models10 Oct 2025
- 2025Proxy-Embedding as an Adversarial Teacher: An Embedding-Guided Bidirectional Attack for Referring Expression Segmentation Models19 Jun 2025
- 2025RobustSpring: Benchmarking Robustness to Image Corruptions for Optical Flow, Scene Flow and Stereo14 May 2025
- 2025DispBench: Benchmarking Disparity Estimation to Synthetic Corruptions8 May 2025
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?7 May 2025
- 2025FSPGD: Rethinking Black-box Attacks on Semantic Segmentation3 Feb 2025
15 more
- 2024Towards Dependable Optical Flow: Benchmarks for Real-World Spatiotemporal Corruptions22 Nov 2024
- 2024Seeing is Deceiving: Exploitation of Visual Pathways in Multi-Modal Language Models7 Nov 2024
- 2024Adversarial Attacks of Vision Tasks in the Past 10 Years: A Survey31 Oct 2024
- 2024How Do Training Methods Influence the Utilization of Vision Models?18 Oct 2024
- 2024Detecting Adversarial Attacks in Semantic Segmentation via Uncertainty Estimation: A Deep Analysis19 Aug 2024
- 2024Beware of Aliases -- Signal Preservation is Crucial for Robust Image Restoration11 Jun 2024
- 2024As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?19 Mar 2024
- 2023Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Models24 Nov 2023
- 2023Uncertainty-weighted Loss Functions for Improved Adversarial Attacks on Semantic Segmentation26 Oct 2023
- 2023Detection Defenses: An Empty Promise against Adversarial Patch Attacks on Optical Flow26 Oct 2023
- 2023Transferable Attack for Semantic Segmentation31 Jul 2023
- 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fix25 Jul 2023
- 2023PEARL: Preprocessing Enhanced Adversarial Robust Learning of Image Deraining for Semantic Segmentation25 May 2023
- 2023Uncertainty-based Detection of Adversarial Attacks in Semantic Segmentation22 May 2023
- 2023Distracting Downpour: Adversarial Weather Attacks for Motion Estimation11 May 2023
- 2026RL-FAT: Reinforcement Learning for Fair Adversarial Training29 Aug 2026
- 2023Distracting Downpour: Adversarial Weather Attacks for Motion Estimationcited by 15
- 2023On the unreasonable vulnerability of transformers for image restoration -- and an easy fixcited by 11
- 2024As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?cited by 11
- 2023Uncertainty-weighted Loss Functions for Improved Adversarial Attacks on Semantic Segmentationcited by 9
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
- 2025RobustSpring: Benchmarking Robustness to Image Corruptions for Optical Flow, Scene Flow and Stereocited by 7
- 2023Detection Defenses: An Empty Promise against Adversarial Patch Attacks on Optical Flowcited by 6
- 2024Beware of Aliases -- Signal Preservation is Crucial for Robust Image Restorationcited by 6
- 2023Uncertainty-based Detection of Adversarial Attacks in Semantic Segmentationcited by 5
- 2023Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Modelscited by 5
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?cited by 5
- 2023Transferable Attack for Semantic Segmentationcited by 4
12 most cited of 24 All 24 (JSON)
- 2026Failure or Drift? Evaluating Monocular SLAM under Synthetic and Real-World Corruptions31 Aug 2026
- 2026Learning with Bilevel-Minimax Optimization for Efficient and Reliable Transfer Attacks12 Aug 2026
- 2026TsallisPGD: Adaptive Gradient Weighting for Adversarial Attacks on Semantic Segmentation5 May 2026
- 2026A Unified Spatial Alignment Framework for Highly Transferable Transformation-Based Attacks on Spatially Structured Tasks26 Mar 2026
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustness21 Jan 2026
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Models10 Oct 2025
- 2025Proxy-Embedding as an Adversarial Teacher: An Embedding-Guided Bidirectional Attack for Referring Expression Segmentation Models19 Jun 2025
- 2025RobustSpring: Benchmarking Robustness to Image Corruptions for Optical Flow, Scene Flow and Stereo14 May 2025
- 2025DispBench: Benchmarking Disparity Estimation to Synthetic Corruptions8 May 2025
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?7 May 2025
- 2025FSPGD: Rethinking Black-box Attacks on Semantic Segmentation3 Feb 2025
- 2024Towards Dependable Optical Flow: Benchmarks for Real-World Spatiotemporal Corruptions22 Nov 2024
12 newest of 24 All 24 (JSON)