atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models

CVPR 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Vision-language model robustness · 33 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Adversarial Prompt Tuning (APT), which learns robust soft text-prompt context vectors for frozen CLIP via adversarial training, improving adversarial robustness and accuracy with very few parameters and data.

Problem

Adversarial vulnerability of pre-trained vision-language models like CLIP, and how to adapt them for adversarial robustness parameter-efficiently without modifying model weights or images.

Approach

Shows that attack and defense strength depend on the text prompt used, then learns continuous prompt context vectors adversarially (with on-the-fly adversarial examples generated using the latest prompt) while keeping both CLIP encoders frozen.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Tune one shared soft-prompt context adversarially instead of using hand-engineered promptsCLIP ViT-B/32 · 11-dataset average, all shots, ε=4/255accuracy: +21.9 points (54.9 vs 33.0)Helped
Tune class-specific soft-prompt contexts adversarially instead of using hand-engineered promptsCLIP ViT-B/32 · 11-dataset average, all shots, ε=4/255robustness: +16.7%Helped
Use APT-UC rather than PAFTCLIP ViT-B/32 · 11-dataset average, 1 shot, ε=4/255accuracy: 19.2 -> 33.1Helped
Use APT-UC rather than AVPCLIP ViT-B/32 · 11-dataset average, 1 shot, ε=4/255robustness: 10.5 -> 11.4Helped
Use APT-UC rather than PAFTCLIP ViT-B/32 · 11-dataset average, all shots, ε=4/255robustness: 27.5 -> 24.8Hurt
Use APT-UC rather than HEPCLIP ViT-B/32 · ImageNet-Sketch OOD shift, 16 shots, ε=4/255robustness: 7.21 -> 8.04Helped
Use APT-UC rather than TeCoA + HEPCLIP ViT-B/32 · Zero-shot average across 10 target datasets, ε=4/255accuracy: 32.3 -> 32.5Helped
Transfer the ImageNet-tuned APT-UC prompt to Flowers102CLIP ViT-B/32 · Flowers102 zero-shot, ε=4/255accuracy: 31.4 -> 29.1Hurt
Use unified rather than class-specific context with limited training data (ablation)APT · 11-dataset average, 1 and 4 shotsaccuracy: 51.3 vs 39.9 (1 shot); 58.2 vs 54.3 (4 shots), ε=1/255Helped
Use class-specific rather than unified context with more training data (ablation)APT · 11-dataset average, all shotsaccuracy: 73.5 vs 70.9, ε=1/255Helped
Generate training adversarial examples on-the-fly from the latest prompt rather than using a constant attack prompt (ablation)APT · In-distribution evaluationperformanceHelped
Perturb both image and text during adversarial-example generation instead of perturbing the image only (ablation)APT · In-distribution evaluationperformanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Caltech101 OxfordPets StanfordCars Flowers102 Food101 FGVCAircraft SUN397 DTD EuroSAT UCF101 ImageNet-V2

Benchmarks: ImageNet Caltech101 OxfordPets StanfordCars Flowers102 Food101 FGVCAircraft SUN397 DTD EuroSAT UCF101 ImageNet-V2

Metrics: clean accuracy robust accuracy under PGD-100

Baselines: Hand-Engineered Prompts (HEP) Adversarial Visual Prompting (AVP) Partial Adversarial Fine-Tuning (PAFT) TeCoA

Builds on: CLIP CoOp TeCoA adversarial training (PGD) TRADES

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy