atlas

Research map / Adversarial robustness and security / Certified and empirical robustness

Towards Understanding and Improving Adversarial Robustness of Vision Transformers

CVPR 2024 · Adversarial robustness and security › Certified and empirical robustness · approach: Robustness-accuracy trade-off analysis · 19 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.

Shows that softmax in ViT attention blocks causes floating-point underflow and gradient masking, and proposes the AAS attack (LPIPS-driven search over pre-softmax scaling factors) and AAS-AT adversarial training that plugs into existing AT methods.

Problem

Existing white-box attacks (PGD, CW, GAMA) are weaker on vision transformers than on CNNs, and adversarial training of ViTs is hard to stabilize; the paper asks why.

Approach

Attributes ViT gradient masking to floating-point underflow from large pre-softmax attention scores, and proposes automatically finding per-block pre-softmax scaling factors by maximizing an LPIPS-style feature distance between normal and rescaled models, then using these scaled models for attacks and periodically during adversarial training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add Adaptive Attention Scaling to GAMAGAMA on ViT-B16 · CIFAR10robust accuracy: 59.78 -> 57.61Helped
Add Adaptive Attention Scaling to GAMAGAMA on ViT-B16 · CIFAR100robust accuracy: 28.97 -> 26.08Helped
Add Adaptive Attention Scaling to GAMAGAMA on ViT-B16 · ImageNet-100robust accuracy: 28.07 -> 25.64Helped
Add Adaptive Attention Scaling to PGD-100PGD-100 on ViT-B16 · CIFAR10robust accuracy: 61.10 -> 58.01Helped
Add Adaptive Attention Scaling to PGD-100PGD-100 on ViT-B16 · CIFAR100robust accuracy: 30.01 -> 27.02Helped
Add AAS-AT to TradesTrades on ViT-B16 · ImageNet-100Auto-Attack accuracy: 26.46 -> 28.04Helped
Add AAS-AT to PGD-ATPGD-AT on ViT-B16 · CIFAR10AutoAttack accuracy: 53.14 -> 56.61Helped
Add AAS-AT to Trades + AWPTrades + AWP on ViT-B16 · CIFAR100AutoAttack accuracy: 27.03 -> 29.41Helped
Use LPIPS rather than cross-entropy to perturb scaling factors (ablation)AAS attack · CIFAR10PGD-100 robust accuracy: 60.13 -> 58.01Helped
Use LPIPS rather than cross-entropy to perturb scaling factors (ablation)AAS attack · CIFAR100PGD-100 robust accuracy: 29.11 -> 27.02Helped
Scale more attention blocks with AAS (ablation)AAS attack on ViT-B16 · CIFAR10robust accuracyHelped
Increase the number of attention blocks in the model (ablation)AAS attack · CIFAR10robust accuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 ImageNet-100 ImageNet-1K (initialization) DDPM synthetic data

Benchmarks: CIFAR-10 CIFAR-100 ImageNet-100

Metrics: clean accuracy robust accuracy

Baselines: FGSM PGD-100 CW DLR GAMA AutoAttack PGD-AT TRADES AWP ART MART XCiT-S12 adversarial training

Builds on: PGD GAMA TRADES AWP Yu and Xu scaling analysis

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