mlsanityData to 7 Oct 2026

Visual Prompting for Adversarial Robustness

arXiv 2210.06284 ↗First posted 12 Oct 2022cs.CV cs.CR cs.LGcited by 33

Not on the map. Why?

Abstract (arXiv)

In this work, we leverage visual prompting (VP) to improve adversarial robustness of a fixed, pre-trained model at testing time. Compared to conventional adversarial defenses, VP allows us to design universal (i.e., data-agnostic) input prompting templates, which have plug-and-play capabilities at testing time to achieve desired model performance without introducing much computation overhead. Although VP has been successfully applied to improving model generalization, it remains elusive whether and how it can be used to defend against adversarial attacks. We investigate this problem and show that the vanilla VP approach is not effective in adversarial defense since a universal input prompt lacks the capacity for robust learning against sample-specific adversarial perturbations. To circumvent it, we propose a new VP method, termed Class-wise Adversarial Visual Prompting (C-AVP), to generate class-wise visual prompts so as to not only leverage the strengths of ensemble prompts but also optimize their interrelations to improve model robustness. Our experiments show that C-AVP outperforms the conventional VP method, with 2.1X standard accuracy gain and 2X robust accuracy gain. Compared to classical test-time defenses, C-AVP also yields a 42X inference time speedup.

Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Builds on 43 of its 50 references that are in the map. First posted on arXiv 12 Oct 2022.

Builds on

43 of 50 references.

References · 43

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  4. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  7. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
  8. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
  9. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
  10. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  11. 2019Adversarial Training for Free!cited by 638
  12. 2017Provable defenses against adversarial examples via the convex outer adversarial polytopecited by 564
31 more
  1. 2019Unlabeled Data Improves Adversarial Robustnesscited by 415
  2. 2018Feature Denoising for Improving Adversarial Robustnesscited by 312
  3. 2018Certified Defenses against Adversarial Examplescited by 305
  4. 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 268
  5. 2017On Detecting Adversarial Perturbationscited by 232
  6. 2019You Only Propagate Once: Accelerating Adversarial Training via Maximal Principlecited by 181
  7. 2017On the (Statistical) Detection of Adversarial Examplescited by 180
  8. 2020Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuningcited by 152
  9. 2021Adversarial purification with Score-based generative modelscited by 132
  10. 2018Adversarial Reprogramming of Neural Networkscited by 115
  11. 2019Adversarial Robustness vs Model Compression, or Both?cited by 98
  12. 2021Voice2Series: Reprogramming Acoustic Models for Time Series Classificationcited by 91
  13. 2021Stable Neural ODE with Lyapunov-Stable Equilibrium Points for Defending Against Adversarial Attackscited by 91
  14. 2020Transfer Learning without Knowing: Reprogramming Black-box Machine Learning Models with Scarce Data and Limited Resourcescited by 83
  15. 2021When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?cited by 76
  16. 2022Model Reprogramming: Resource-Efficient Cross-Domain Machine Learningcited by 64
  17. 2022Evaluating the Adversarial Robustness of Adaptive Test-time Defensescited by 64
  18. 2019ML-LOO: Detecting Adversarial Examples with Feature Attributioncited by 48
  19. 2021Adversarial Attacks are Reversible with Natural Supervisioncited by 47
  20. 2020Unadversarial Examples: Designing Objects for Robust Visioncited by 45
  21. 2020Proper Network Interpretability Helps Adversarial Robustness in Classificationcited by 41
  22. 2022How to Robustify Black-Box ML Models? A Zeroth-Order Optimization Perspectivecited by 39
  23. 2021Cross-modal Adversarial Reprogrammingcited by 34
  24. 2022Fairness Reprogrammingcited by 33
  25. 2021On Fast Adversarial Robustness Adaptation in Model-Agnostic Meta-Learningcited by 29
  26. 2021Combating Adversaries with Anti-Adversariescited by 27
  27. 2021Towards Robust Neural Networks via Close-loop Controlcited by 23
  28. 2022Reverse Engineering of Imperceptible Adversarial Image Perturbationscited by 17
  29. 2021Why Adversarial Reprogramming Works, When It Fails, and How to Tell the Differencecited by 13
  30. 2020Adversarial Examples Detection and Analysis with Layer-wise Autoencoderscited by 9
  31. 2020Hidden Cost of Randomized Smoothingcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 2; 2023: 9; 2024: 10; 2025: 9; 2026: 3.

33 papers.

Sort:

By area:

  1. 2022PointCLIP V2: Prompting CLIP and GPT for Powerful 3D Open-world Learningcited by 186
  2. 2022Understanding and Improving Visual Prompting: A Label-Mapping Perspectivecited by 86
  3. 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
  4. 2023AutoVP: An Automated Visual Prompting Framework and Benchmarkcited by 29
  5. 2024Learning Background Prompts to Discover Implicit Knowledge for Open Vocabulary Object Detectioncited by 24
  6. 2023Text-Visual Prompting for Efficient 2D Temporal Video Groundingcited by 18
  7. 2023Exploring the Benefits of Visual Prompting in Differential Privacycited by 17
  8. 2023Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Promptingcited by 12
  9. 2023Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learningcited by 11
  10. 2023Adversarial Examples in the Physical World: A Surveycited by 10
  11. 2024Subgraph-level Universal Prompt Tuningcited by 9
  12. 2025Few-Shot Adversarial Low-Rank Fine-Tuning of Vision-Language Modelscited by 9
21 more
  1. 2025DAVSP: Safety Alignment for Large Vision-Language Models via Deep Aligned Visual Safety Promptcited by 7
  2. 2024Adversarial Prompt Distillation for Vision-Language Modelscited by 6
  3. 2025Evolution-based Region Adversarial Prompt Learning for Robustness Enhancement in Vision-Language Modelscited by 6
  4. 2023Adversarial Machine Learning for Social Good: Reframing the Adversary as an Allycited by 5
  5. 2023Towards Robust and Accurate Visual Promptingcited by 5
  6. 2024Not All Prompts Are Secure: A Switchable Backdoor Attack Against Pre-trained Vision Transformerscited by 5
  7. 2023Prompt Backdoors in Visual Prompt Learningcited by 4
  8. 2024Encapsulating Knowledge in One Promptcited by 3
  9. 2025Towards Ambiguity-Free Spatial Foundation Model: Rethinking and Decoupling Depth Ambiguitycited by 2
  10. 2024Adversarial Examples are Misaligned in Diffusion Model Manifoldscited by 1
  11. 2024Enhancing Parameter-Efficient Fine-Tuning of Vision Transformers through Frequency-Based Adaptationcited by 1
  12. 2025Invisible Watermarks, Visible Gains: Steering Machine Unlearning with Bi-Level Watermarking Designcited by 1
  13. 2025FedAPT: Federated Adversarial Prompt Tuning for Vision-Language Modelscited by 1
  14. 2026Visual prompting reimagined: The power of the Activation Promptscited by 1
  15. 2024ADAPT to Robustify Prompt Tuning Vision Transformerscited by 0
  16. 2024E2MPL:An Enduring and Efficient Meta Prompt Learning Framework for Few-shot Unsupervised Domain Adaptationcited by 0
  17. 2025Improving Adversarial Robustness via Phase and Amplitude-aware Promptingcited by 0
  18. 2025MoAPT: Mixture of Adversarial Prompt Tuning for Vision-Language Modelscited by 0
  19. 2025Exploring Visual Prompting: Robustness Inheritance and Beyondcited by 0
  20. 2026Rectifying Adversarial Examples Using Their Vulnerabilitiescited by 0
  21. 2026One Scene, Two Depths: Probing Geometric Ambiguity in Monocular Foundation Modelscited by 0