PatchCensor: Patch Robustness Certification for Transformers via Exhaustive Testing
Not on the map. Why?
Abstract (arXiv)
Vision Transformer (ViT) is known to be highly nonlinear like other classical neural networks and could be easily fooled by both natural and adversarial patch perturbations. This limitation could pose a threat to the deployment of ViT in the real industrial environment, especially in safety-critical scenarios. In this work, we propose PatchCensor, aiming to certify the patch robustness of ViT by applying exhaustive testing. We try to provide a provable guarantee by considering the worst patch attack scenarios. Unlike empirical defenses against adversarial patches that may be adaptively breached, certified robust approaches can provide a certified accuracy against arbitrary attacks under certain conditions. However, existing robustness certifications are mostly based on robust training, which often requires substantial training efforts and the sacrifice of model performance on normal samples. To bridge the gap, PatchCensor seeks to improve the robustness of the whole system by detecting abnormal inputs instead of training a robust model and asking it to give reliable results for every input, which may inevitably compromise accuracy. Specifically, each input is tested by voting over multiple inferences with different mutated attention masks, where at least one inference is guaranteed to exclude the abnormal patch. This can be seen as complete-coverage testing, which could provide a statistical guarantee on inference at the test time. Our comprehensive evaluation demonstrates that PatchCensor is able to achieve high certified accuracy (e.g. 67.1% on ImageNet for 2%-pixel adversarial patches), significantly outperforming state-of-the-art techniques while achieving similar clean accuracy (81.8% on ImageNet). Meanwhile, our technique also supports flexible configurations to handle different adversarial patch sizes (up to 25%) by simply changing the masking strategy.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 64 of its 107 references that are in the map. First posted on arXiv 19 Nov 2021.
Builds on
64 of 107 references.
References · 64
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2013Intriguing properties of neural networkscited by 5,114
- 2014Going Deeper with Convolutionscited by 4,231
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2020Point Transformercited by 1,462
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2017Provable defenses against adversarial examples via the convex outer adversarial polytopecited by 564
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
38 more
- 2017Adversarial Patchcited by 514
- 2017Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networkscited by 484
- 2018Certified Robustness to Adversarial Examples with Differential Privacycited by 462
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2019SelectiveNet: A Deep Neural Network with an Integrated Reject Optioncited by 333
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
- 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 268
- 2019Fooling automated surveillance cameras: adversarial patches to attack person detectioncited by 268
- 2019Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNetcited by 260
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 249
- 2017On Detecting Adversarial Perturbationscited by 232
- 2021Vision Transformers are Robust Learnerscited by 208
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2017On the (Statistical) Detection of Adversarial Examplescited by 180
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2018Physical Adversarial Examples for Object Detectorscited by 163
- 2019AdvHat: Real-world adversarial attack on ArcFace Face ID systemcited by 161
- 2018SentiNet: Detecting Localized Universal Attacks Against Deep Learning Systemscited by 148
- 2017Generalization in Deep Learningcited by 146
- 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 144
- 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 123
- 2018LaVAN: Localized and Visible Adversarial Noisecited by 112
- 2020Certified Defenses for Adversarial Patchescited by 100
- 2020(De)Randomized Smoothing for Certifiable Defense against Patch Attackscited by 97
- 2021UBnormal: New Benchmark for Supervised Open-Set Video Anomaly Detectioncited by 91
- 2018Local Gradients Smoothing: Defense against localized adversarial attackscited by 85
- 2019PhysGAN: Generating Physical-World-Resilient Adversarial Examples for Autonomous Drivingcited by 72
- 2018DeepMutation: Mutation Testing of Deep Learning Systemscited by 66
- 2020Dirty Road Can Attack: Security of Deep Learning based Automated Lane Centering under Physical-World Attackcited by 64
- 2021PatchCleanser: Certifiably Robust Defense against Adversarial Patches for Any Image Classifiercited by 63
- 2019Misbehaviour Prediction for Autonomous Driving Systemscited by 55
- 2017Adversarial and Clean Data Are Not Twinscited by 52
- 2018DeepBillboard: Systematic Physical-World Testing of Autonomous Driving Systemscited by 50
- 2020Adversarial Training against Location-Optimized Adversarial Patchescited by 50
- 2017NO Need to Worry about Adversarial Examples in Object Detection in Autonomous Vehiclescited by 48
- 2018Adversarial Sample Detection for Deep Neural Network through Model Mutation Testingcited by 48
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 4; 2025: 3; 2026: 1.
11 papers.
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2022Visual Adversarial Attacks and Defenses in the Physical World: A Surveycited by 11
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forwardcited by 5
- 2023PatchBackdoor: Backdoor Attack against Deep Neural Networks without Model Modificationcited by 3
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformercited by 2
- 2023A Majority Invariant Approach to Patch Robustness Certification for Deep Learning Modelscited by 1
- 2024CrossCert: A Cross-Checking Detection Approach to Patch Robustness Certification for Deep Learning Modelscited by 1
- 2025RobustMask: Certified Robustness against Adversarial Neural Ranking Attack via Randomized Maskingcited by 1
- 2026Benchmarking Federated Learning in Edge Computing Environments: A Systematic Review and Performance Evaluationcited by 1
- 2025Scalable and Precise Patch Robustness Certification for Deep Learning Models with Top-k Predictionscited by 0
- 2025Influence-Guided Concolic Testing of Transformer Robustnesscited by 0
- 2026Benchmarking Federated Learning in Edge Computing Environments: A Systematic Review and Performance Evaluation24 Feb 2026
- 2025RobustMask: Certified Robustness against Adversarial Neural Ranking Attack via Randomized Masking29 Dec 2025
- 2025Influence-Guided Concolic Testing of Transformer Robustness28 Sep 2025
- 2025Scalable and Precise Patch Robustness Certification for Deep Learning Models with Top-k Predictions31 Jul 2025
- 2024ViTGuard: Attention-aware Detection against Adversarial Examples for Vision Transformer20 Sep 2024
- 2024Are LLMs Correctly Integrated into Software Systems?6 Jul 2024
- 2024CrossCert: A Cross-Checking Detection Approach to Patch Robustness Certification for Deep Learning Models13 May 2024
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward12 Apr 2024
- 2023PatchBackdoor: Backdoor Attack against Deep Neural Networks without Model Modification22 Aug 2023
- 2023A Majority Invariant Approach to Patch Robustness Certification for Deep Learning Models1 Aug 2023
- 2022Visual Adversarial Attacks and Defenses in the Physical World: A Survey3 Nov 2022