Visual Prompting for Adversarial Robustness
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
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2019Adversarial Training for Free!cited by 638
- 2017Provable defenses against adversarial examples via the convex outer adversarial polytopecited by 564
31 more
- 2019Unlabeled Data Improves Adversarial Robustnesscited by 415
- 2018Feature Denoising for Improving Adversarial Robustnesscited by 312
- 2018Certified Defenses against Adversarial Examplescited by 305
- 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 268
- 2017On Detecting Adversarial Perturbationscited by 232
- 2019You Only Propagate Once: Accelerating Adversarial Training via Maximal Principlecited by 181
- 2017On the (Statistical) Detection of Adversarial Examplescited by 180
- 2020Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuningcited by 152
- 2021Adversarial purification with Score-based generative modelscited by 132
- 2018Adversarial Reprogramming of Neural Networkscited by 115
- 2019Adversarial Robustness vs Model Compression, or Both?cited by 98
- 2021Voice2Series: Reprogramming Acoustic Models for Time Series Classificationcited by 91
- 2021Stable Neural ODE with Lyapunov-Stable Equilibrium Points for Defending Against Adversarial Attackscited by 91
- 2020Transfer Learning without Knowing: Reprogramming Black-box Machine Learning Models with Scarce Data and Limited Resourcescited by 83
- 2021When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?cited by 76
- 2022Model Reprogramming: Resource-Efficient Cross-Domain Machine Learningcited by 64
- 2022Evaluating the Adversarial Robustness of Adaptive Test-time Defensescited by 64
- 2019ML-LOO: Detecting Adversarial Examples with Feature Attributioncited by 48
- 2021Adversarial Attacks are Reversible with Natural Supervisioncited by 47
- 2020Unadversarial Examples: Designing Objects for Robust Visioncited by 45
- 2020Proper Network Interpretability Helps Adversarial Robustness in Classificationcited by 41
- 2022How to Robustify Black-Box ML Models? A Zeroth-Order Optimization Perspectivecited by 39
- 2021Cross-modal Adversarial Reprogrammingcited by 34
- 2022Fairness Reprogrammingcited by 33
- 2021On Fast Adversarial Robustness Adaptation in Model-Agnostic Meta-Learningcited by 29
- 2021Combating Adversaries with Anti-Adversariescited by 27
- 2021Towards Robust Neural Networks via Close-loop Controlcited by 23
- 2022Reverse Engineering of Imperceptible Adversarial Image Perturbationscited by 17
- 2021Why Adversarial Reprogramming Works, When It Fails, and How to Tell the Differencecited by 13
- 2020Adversarial Examples Detection and Analysis with Layer-wise Autoencoderscited by 9
- 2020Hidden Cost of Randomized Smoothingcited by 5
Built on by
Citing papers per year: 2022: 2; 2023: 9; 2024: 10; 2025: 9; 2026: 3.
33 papers.
Sort:
By area:
- 2022PointCLIP V2: Prompting CLIP and GPT for Powerful 3D Open-world Learningcited by 186
- 2022Understanding and Improving Visual Prompting: A Label-Mapping Perspectivecited by 86
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
- 2023AutoVP: An Automated Visual Prompting Framework and Benchmarkcited by 29
- 2024Learning Background Prompts to Discover Implicit Knowledge for Open Vocabulary Object Detectioncited by 24
- 2023Text-Visual Prompting for Efficient 2D Temporal Video Groundingcited by 18
- 2023Exploring the Benefits of Visual Prompting in Differential Privacycited by 17
- 2023Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Promptingcited by 12
- 2023Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learningcited by 11
- 2023Adversarial Examples in the Physical World: A Surveycited by 10
- 2024Subgraph-level Universal Prompt Tuningcited by 9
- 2025Few-Shot Adversarial Low-Rank Fine-Tuning of Vision-Language Modelscited by 9
21 more
- 2025DAVSP: Safety Alignment for Large Vision-Language Models via Deep Aligned Visual Safety Promptcited by 7
- 2024Adversarial Prompt Distillation for Vision-Language Modelscited by 6
- 2025Evolution-based Region Adversarial Prompt Learning for Robustness Enhancement in Vision-Language Modelscited by 6
- 2023Adversarial Machine Learning for Social Good: Reframing the Adversary as an Allycited by 5
- 2023Towards Robust and Accurate Visual Promptingcited by 5
- 2024Not All Prompts Are Secure: A Switchable Backdoor Attack Against Pre-trained Vision Transformerscited by 5
- 2023Prompt Backdoors in Visual Prompt Learningcited by 4
- 2024Encapsulating Knowledge in One Promptcited by 3
- 2025Towards Ambiguity-Free Spatial Foundation Model: Rethinking and Decoupling Depth Ambiguitycited by 2
- 2024Adversarial Examples are Misaligned in Diffusion Model Manifoldscited by 1
- 2024Enhancing Parameter-Efficient Fine-Tuning of Vision Transformers through Frequency-Based Adaptationcited by 1
- 2025Invisible Watermarks, Visible Gains: Steering Machine Unlearning with Bi-Level Watermarking Designcited by 1
- 2025FedAPT: Federated Adversarial Prompt Tuning for Vision-Language Modelscited by 1
- 2026Visual prompting reimagined: The power of the Activation Promptscited by 1
- 2024ADAPT to Robustify Prompt Tuning Vision Transformerscited by 0
- 2024E2MPL:An Enduring and Efficient Meta Prompt Learning Framework for Few-shot Unsupervised Domain Adaptationcited by 0
- 2025Improving Adversarial Robustness via Phase and Amplitude-aware Promptingcited by 0
- 2025MoAPT: Mixture of Adversarial Prompt Tuning for Vision-Language Modelscited by 0
- 2025Exploring Visual Prompting: Robustness Inheritance and Beyondcited by 0
- 2026Rectifying Adversarial Examples Using Their Vulnerabilitiescited by 0
- 2026One Scene, Two Depths: Probing Geometric Ambiguity in Monocular Foundation Modelscited by 0
- 2026One Scene, Two Depths: Probing Geometric Ambiguity in Monocular Foundation Models28 Jun 2026
- 2026Visual prompting reimagined: The power of the Activation Prompts7 Apr 2026
- 2026Rectifying Adversarial Examples Using Their Vulnerabilities1 Jan 2026
- 2025FedAPT: Federated Adversarial Prompt Tuning for Vision-Language Models3 Sep 2025
- 2025Invisible Watermarks, Visible Gains: Steering Machine Unlearning with Bi-Level Watermarking Design13 Aug 2025
- 2025DAVSP: Safety Alignment for Large Vision-Language Models via Deep Aligned Visual Safety Prompt11 Jun 2025
- 2025Exploring Visual Prompting: Robustness Inheritance and Beyond7 Jun 2025
- 2025MoAPT: Mixture of Adversarial Prompt Tuning for Vision-Language Models23 May 2025
- 2025Few-Shot Adversarial Low-Rank Fine-Tuning of Vision-Language Models21 May 2025
- 2025Evolution-based Region Adversarial Prompt Learning for Robustness Enhancement in Vision-Language Models17 Mar 2025
- 2025Towards Ambiguity-Free Spatial Foundation Model: Rethinking and Decoupling Depth Ambiguity8 Mar 2025
- 2025Improving Adversarial Robustness via Phase and Amplitude-aware Prompting6 Feb 2025
21 more
- 2024Enhancing Parameter-Efficient Fine-Tuning of Vision Transformers through Frequency-Based Adaptation28 Nov 2024
- 2024Adversarial Prompt Distillation for Vision-Language Models22 Nov 2024
- 2024Encapsulating Knowledge in One Prompt16 Jul 2024
- 2024E2MPL:An Enduring and Efficient Meta Prompt Learning Framework for Few-shot Unsupervised Domain Adaptation4 Jul 2024
- 2024Learning Background Prompts to Discover Implicit Knowledge for Open Vocabulary Object Detection1 Jun 2024
- 2024Not All Prompts Are Secure: A Switchable Backdoor Attack Against Pre-trained Vision Transformers17 May 2024
- 2024ADAPT to Robustify Prompt Tuning Vision Transformers19 Mar 2024
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models4 Mar 2024
- 2024Subgraph-level Universal Prompt Tuning16 Feb 2024
- 2024Adversarial Examples are Misaligned in Diffusion Model Manifolds12 Jan 2024
- 2023Towards Robust and Accurate Visual Prompting18 Nov 2023
- 2023Adversarial Examples in the Physical World: A Survey1 Nov 2023
- 2023Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learning13 Oct 2023
- 2023AutoVP: An Automated Visual Prompting Framework and Benchmark12 Oct 2023
- 2023Prompt Backdoors in Visual Prompt Learning11 Oct 2023
- 2023Adversarial Machine Learning for Social Good: Reframing the Adversary as an Ally5 Oct 2023
- 2023Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Prompting20 Aug 2023
- 2023Exploring the Benefits of Visual Prompting in Differential Privacy22 Mar 2023
- 2023Text-Visual Prompting for Efficient 2D Temporal Video Grounding9 Mar 2023
- 2022PointCLIP V2: Prompting CLIP and GPT for Powerful 3D Open-world Learning21 Nov 2022
- 2022Understanding and Improving Visual Prompting: A Label-Mapping Perspective21 Nov 2022
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
- 2025Few-Shot Adversarial Low-Rank Fine-Tuning of Vision-Language Modelscited by 9
- 2025DAVSP: Safety Alignment for Large Vision-Language Models via Deep Aligned Visual Safety Promptcited by 7
- 2024Adversarial Prompt Distillation for Vision-Language Modelscited by 6
- 2025Evolution-based Region Adversarial Prompt Learning for Robustness Enhancement in Vision-Language Modelscited by 6
- 2025FedAPT: Federated Adversarial Prompt Tuning for Vision-Language Modelscited by 1
- 2025MoAPT: Mixture of Adversarial Prompt Tuning for Vision-Language Modelscited by 0
- 2025FedAPT: Federated Adversarial Prompt Tuning for Vision-Language Models3 Sep 2025
- 2025DAVSP: Safety Alignment for Large Vision-Language Models via Deep Aligned Visual Safety Prompt11 Jun 2025
- 2025MoAPT: Mixture of Adversarial Prompt Tuning for Vision-Language Models23 May 2025
- 2025Few-Shot Adversarial Low-Rank Fine-Tuning of Vision-Language Models21 May 2025
- 2025Evolution-based Region Adversarial Prompt Learning for Robustness Enhancement in Vision-Language Models17 Mar 2025
- 2024Adversarial Prompt Distillation for Vision-Language Models22 Nov 2024
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models4 Mar 2024
- 2022PointCLIP V2: Prompting CLIP and GPT for Powerful 3D Open-world Learningcited by 186
- 2022Understanding and Improving Visual Prompting: A Label-Mapping Perspectivecited by 86
- 2023AutoVP: An Automated Visual Prompting Framework and Benchmarkcited by 29
- 2024Learning Background Prompts to Discover Implicit Knowledge for Open Vocabulary Object Detectioncited by 24
- 2023Text-Visual Prompting for Efficient 2D Temporal Video Groundingcited by 18
- 2023Exploring the Benefits of Visual Prompting in Differential Privacycited by 17
- 2023Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Promptingcited by 12
- 2023Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learningcited by 11
- 2023Adversarial Examples in the Physical World: A Surveycited by 10
- 2024Subgraph-level Universal Prompt Tuningcited by 9
- 2023Adversarial Machine Learning for Social Good: Reframing the Adversary as an Allycited by 5
- 2023Towards Robust and Accurate Visual Promptingcited by 5
12 most cited of 23 All 23 (JSON)
- 2026One Scene, Two Depths: Probing Geometric Ambiguity in Monocular Foundation Models28 Jun 2026
- 2026Visual prompting reimagined: The power of the Activation Prompts7 Apr 2026
- 2026Rectifying Adversarial Examples Using Their Vulnerabilities1 Jan 2026
- 2025Invisible Watermarks, Visible Gains: Steering Machine Unlearning with Bi-Level Watermarking Design13 Aug 2025
- 2025Exploring Visual Prompting: Robustness Inheritance and Beyond7 Jun 2025
- 2025Towards Ambiguity-Free Spatial Foundation Model: Rethinking and Decoupling Depth Ambiguity8 Mar 2025
- 2025Improving Adversarial Robustness via Phase and Amplitude-aware Prompting6 Feb 2025
- 2024Enhancing Parameter-Efficient Fine-Tuning of Vision Transformers through Frequency-Based Adaptation28 Nov 2024
- 2024Encapsulating Knowledge in One Prompt16 Jul 2024
- 2024E2MPL:An Enduring and Efficient Meta Prompt Learning Framework for Few-shot Unsupervised Domain Adaptation4 Jul 2024
- 2024Learning Background Prompts to Discover Implicit Knowledge for Open Vocabulary Object Detection1 Jun 2024
- 2024ADAPT to Robustify Prompt Tuning Vision Transformers19 Mar 2024
12 newest of 23 All 23 (JSON)