atlas

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

TAPT: Test-Time Adversarial Prompt Tuning for Robust Inference in Vision-Language Models

CVPR 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: Vision-language model robustness · 5 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 TAPT, a test-time defense that tunes bimodal CLIP prompts per test sample using multi-view entropy minimization and adversarial-clean embedding statistic alignment to improve zero-shot adversarial robustness.

Problem

Zero-shot adversarial robustness of vision-language models like CLIP: small adversarial perturbations degrade inference, and existing adversarial prompt tuning methods require task-specific training data and often hurt generalization.

Approach

An unsupervised, per-sample test-time prompt tuning defense: augmented views are filtered by low entropy, prompts are updated for one step by minimizing multi-view entropy plus aligning the per-layer mean/variance of embeddings with pre-computed adversarial and clean statistics from ImageNet, with no downstream labels needed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply test-time visual prompt tuning instead of ImageNet-trained visual promptsCLIP ViT-B/16 · 11-dataset average, AutoAttack, ε=1/255robust accuracy: 16.3 -> 48.9 (32.6↑)Helped
Apply test-time V-L joint prompt tuning instead of ImageNet-trained V-L joint promptsCLIP ViT-B/16 · 11-dataset average, AutoAttack, ε=1/255robust accuracy: 15.6 -> 41.5 (25.9↑)Helped
Apply test-time V-L independent prompt tuning instead of ImageNet-trained V-L independent promptsCLIP ViT-B/16 · 11-dataset average, AutoAttack, ε=1/255robust accuracy: 17.2 -> 53.8 (36.6↑)Helped
Apply test-time visual prompt tuning instead of ImageNet-trained visual promptsCLIP ViT-B/32 · 11-dataset average, AutoAttack, ε=1/255robust accuracy: 10.5 -> 44.6 (34.1↑)Helped
Apply test-time V-L joint prompt tuning instead of ImageNet-trained V-L joint promptsCLIP ViT-B/32 · 11-dataset average, AutoAttack, ε=1/255robust accuracy: 11.1 -> 42.5 (31.4↑)Helped
Apply test-time V-L independent prompt tuning instead of ImageNet-trained V-L independent promptsCLIP ViT-B/32 · 11-dataset average, AutoAttack, ε=1/255robust accuracy: 11.0 -> 49.0 (38.0↑)Helped
Apply test-time visual prompt tuning instead of ImageNet-trained visual promptsCLIP ViT-B/16 · 11-dataset average clean accuracyaccuracy: 54.5 -> 64.1Helped
Apply test-time V-L joint prompt tuning instead of ImageNet-trained V-L joint promptsCLIP ViT-B/16 · 11-dataset average clean accuracyaccuracy: 51.0 -> 51.8Helped
Apply test-time V-L independent prompt tuning instead of ImageNet-trained V-L independent promptsCLIP ViT-B/16 · 11-dataset average clean accuracyaccuracy: 51.0 -> 61.4Helped
Do not reset prompts during inference rather than resetting after every sample (ablation)TAPT · ImageNetrobust accuracy: 49.92 -> 0.48Hurt
Do not reset prompts during inference rather than resetting after every sample (ablation)TAPT · 10 zero-shot datasets averagerobust accuracy: 47.85 -> 3.79Hurt
Increase the number of test-time adaptation steps from 0 to 1 (ablation)TAPT · Most datasets and prompt designs, PGD-100robust accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Caltech101 DTD EuroSAT Pets Aircraft Food101 Flowers Cars SUN397 UCF101

Benchmarks: ImageNet Caltech101 DTD EuroSAT Pets Aircraft Food101 Flowers Cars SUN397 UCF101

Metrics: robust accuracy clean accuracy

Baselines: Vanilla CLIP APT-V APT-VLJ APT-VLI

Builds on: test-time prompt tuning (TPT) adversarial prompt tuning (APT) MEMO TeCoA

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