mlsanityData to 7 Oct 2026

PatchCensor: Patch Robustness Certification for Transformers via Exhaustive Testing

arXiv 2111.10481 ↗First posted 19 Nov 2021cs.CV cs.AI cs.CRcited by 11

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2013Intriguing properties of neural networkscited by 5,114
  6. 2014Going Deeper with Convolutionscited by 4,231
  7. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  8. 2020Point Transformercited by 1,462
  9. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
  10. 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
  11. 2017Provable defenses against adversarial examples via the convex outer adversarial polytopecited by 564
  12. 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
38 more
  1. 2017Adversarial Patchcited by 514
  2. 2017Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networkscited by 484
  3. 2018Certified Robustness to Adversarial Examples with Differential Privacycited by 462
  4. 2021Intriguing Properties of Vision Transformerscited by 446
  5. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  6. 2019SelectiveNet: A Deep Neural Network with an Integrated Reject Optioncited by 333
  7. 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
  8. 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 268
  9. 2019Fooling automated surveillance cameras: adversarial patches to attack person detectioncited by 268
  10. 2019Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNetcited by 260
  11. 2021Understanding Robustness of Transformers for Image Classificationcited by 250
  12. 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 249
  13. 2017On Detecting Adversarial Perturbationscited by 232
  14. 2021Vision Transformers are Robust Learnerscited by 208
  15. 2021Are Transformers More Robust Than CNNs?cited by 187
  16. 2017On the (Statistical) Detection of Adversarial Examplescited by 180
  17. 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
  18. 2018Physical Adversarial Examples for Object Detectorscited by 163
  19. 2019AdvHat: Real-world adversarial attack on ArcFace Face ID systemcited by 161
  20. 2018SentiNet: Detecting Localized Universal Attacks Against Deep Learning Systemscited by 148
  21. 2017Generalization in Deep Learningcited by 146
  22. 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 144
  23. 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 123
  24. 2018LaVAN: Localized and Visible Adversarial Noisecited by 112
  25. 2020Certified Defenses for Adversarial Patchescited by 100
  26. 2020(De)Randomized Smoothing for Certifiable Defense against Patch Attackscited by 97
  27. 2021UBnormal: New Benchmark for Supervised Open-Set Video Anomaly Detectioncited by 91
  28. 2018Local Gradients Smoothing: Defense against localized adversarial attackscited by 85
  29. 2019PhysGAN: Generating Physical-World-Resilient Adversarial Examples for Autonomous Drivingcited by 72
  30. 2018DeepMutation: Mutation Testing of Deep Learning Systemscited by 66
  31. 2020Dirty Road Can Attack: Security of Deep Learning based Automated Lane Centering under Physical-World Attackcited by 64
  32. 2021PatchCleanser: Certifiably Robust Defense against Adversarial Patches for Any Image Classifiercited by 63
  33. 2019Misbehaviour Prediction for Autonomous Driving Systemscited by 55
  34. 2017Adversarial and Clean Data Are Not Twinscited by 52
  35. 2018DeepBillboard: Systematic Physical-World Testing of Autonomous Driving Systemscited by 50
  36. 2020Adversarial Training against Location-Optimized Adversarial Patchescited by 50
  37. 2017NO Need to Worry about Adversarial Examples in Object Detection in Autonomous Vehiclescited by 48
  38. 2018Adversarial Sample Detection for Deep Neural Network through Model Mutation Testingcited by 48

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 2; 2024: 4; 2025: 3; 2026: 1.

11 papers.