atlas

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

Text-Guided Attention is All You Need for Zero-Shot Robustness in Vision-Language Models

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Vision-language model robustness · 2 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 TGA-ZSR, which adversarially fine-tunes CLIP ViT-B/32 on Tiny-ImageNet with text-guided attention alignment losses to improve zero-shot adversarial robustness while preserving clean accuracy.

Problem

Zero-shot adversarial robustness of vision-language models such as CLIP: adversarial fine-tuning on one dataset degrades clean accuracy and generalization to unseen datasets, and the mechanism by which attacks change model outputs is unclear.

Approach

Observes that adversarial perturbations shift text-guided attention (image features dotted with the ground-truth text embedding), and adds two losses: an Attention Refinement loss aligning adversarial attention of the target model to clean attention of the original CLIP, and an Attention-based Model Constraint loss keeping clean attention of the target close to the original model.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add TGA-ZSR attention refinement and model constraint to CLIP fine-tuningCLIP ViT-B/32 · 16 datasets, PGD-100robust accuracy (average): 32.51 -> 42.09Helped
Use TGA-ZSR instead of FARECLIP ViT-B/32 · 16 datasets, cleanaccuracy (average): 59.85 -> 56.44Hurt
Add attention refinement loss to cross-entropy adversarial fine-tuning (ablation)CLIP ViT-B/32 · 16 datasets, PGD-100robust accuracy (average): 29.45 -> 31.71Helped
Add attention-based model constraint loss to cross-entropy plus attention refinement (ablation)CLIP ViT-B/32 · 16 datasets, PGD-100robust accuracy (average): 31.71 -> 41.96Helped
Add attention refinement loss to cross-entropy adversarial fine-tuning (ablation)CLIP ViT-B/32 · 16 datasets, cleanaccuracy (average): 44.97 -> 49.96Helped
Add attention-based model constraint loss to cross-entropy plus attention refinement (ablation)CLIP ViT-B/32 · 16 datasets, cleanaccuracy (average): 49.96 -> 56.48Helped
Replace text-guided attention with vision-based Grad-CAM attention (ablation)TGA-ZSR · 16 datasets, PGD-100robust accuracy (average): 41.96 -> 29.47Hurt
Use L2 distance instead of cosine distance in attention losses (ablation)TGA-ZSR · 16 datasets, PGD-100robust accuracy (average): 29.57 -> 41.96Helped
Use L2 distance instead of L1 distance in attention losses (ablation)TGA-ZSR · 16 datasets, PGD-100robust accuracy (average): 29.54 -> 41.96Helped
Set learning rate to 0.0001 instead of 0.001 (ablation)TGA-ZSR · 16 datasets, PGD-100robust accuracy (average): 22.94 -> 41.96Helped
Set learning rate to 0.0001 instead of 0.00001 (ablation)TGA-ZSR · 16 datasets, PGD-100robust accuracy (average): 24.36 -> 41.96Helped
Increase perturbation strengths across PGD evaluation to ε=1/255, 2/255 and 4/255 (ablation)TGA-ZSR · 16 datasets, PGD at varied εrobust accuracy (average)Mixed

Surprising findings

Limitations

Experimental setup

Datasets: Tiny-ImageNet

Benchmarks: Tiny-ImageNet CIFAR-10 CIFAR-100 STL-10 SUN397 Food101 OxfordPets Flowers102 DTD EuroSAT FGVC-Aircraft ImageNet

Metrics: zero-shot robust accuracy zero-shot clean accuracy average accuracy

Baselines: CLIP FT-Clean FT-Adv. TeCoA FARE PMG-AFT

Builds on: TeCoA PMG-AFT FARE CLIP PGD adversarial training

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