atlas

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

Phase and Amplitude-aware Prompting for Enhancing Adversarial Robustness

ICML 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models

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 Phase and Amplitude-aware Prompting (PAP), learning per-class phase-level and amplitude-level prompts with adaptively weighted amplitude prompts and label-based prompt selection at test time to defend classifiers against adversarial attacks.

Problem

Prompt-based adversarial defenses rely on mixed pixel or frequency patterns that do not explicitly capture object-related structure and texture, and existing methods are costly at test time when they traverse all class prompts.

Approach

Decouple images into phase spectra (structure) and amplitude spectra (texture), learn one phase prompt and one amplitude prompt per class, weight the amplitude prompt by the ratio of robust accuracies under amplitude vs. phase prompting, and select prompts by predicted label at test time with a data-prompt mismatching loss.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use phase- and amplitude-level prompts with adaptive amplitude weightingPAP on CIFAR-10 (ResNet18), NAT model · CIFAR-10, AArobust accuracy: 0.00±0.00 -> 37.34±0.11Helped
Use phase- and amplitude-level prompts with adaptive amplitude weightingPAP on CIFAR-10 (ResNet18), NAT model · CIFAR-10, C&Wrobust accuracy: 0.00±0.00 -> 80.27±0.28Helped
Use phase- and amplitude-level prompts with adaptive amplitude weightingPAP on Tiny-ImageNet (WRN28-10), AT model · Tiny-ImageNet, C&Wrobust accuracy: 0.19±0.02 -> 35.76±0.34Helped
Remove Lnat (ablation)PAP on CIFAR-10 (ResNet18), NAT model · CIFAR-10average robust accuracy: 61.27 -> 41.35Hurt
Remove Lnat (ablation)PAP on CIFAR-10 (ResNet18), AT model · CIFAR-10average robust accuracy: 59.57 -> 59.77Mixed
Remove Lsim (ablation)PAP on CIFAR-10 (ResNet18), NAT model · CIFAR-10average robust accuracy: 61.27 -> 61.56No clear effect
Remove Lsim (ablation)PAP on CIFAR-10 (ResNet18), AT model · CIFAR-10average robust accuracy: 59.57 -> 54.19Hurt
Remove Lmis (ablation)PAP on CIFAR-10 (ResNet18), NAT model · CIFAR-10average robust accuracy: 61.27 -> 10.43Hurt
Remove Lmis (ablation)PAP on CIFAR-10 (ResNet18), AT model · CIFAR-10average robust accuracy: 59.57 -> 59.48No clear effect
Remove the amplitude-prompt weighting strategy (ablation)PAP · CIFAR-10average robust accuracy: 59.57 -> 57.27Hurt
Remove the amplitude-prompt weighting strategy (ablation)PAP · Tiny-ImageNetaverage robust accuracy: 31.39 -> 28.70Hurt
Use class-specific prompts instead of universal prompts (ablation)PAP on CIFAR-10, NAT model · CIFAR-10, AArobust accuracy: 31.81 -> 37.34Helped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 Tiny-ImageNet

Benchmarks: CIFAR-10 Tiny-ImageNet

Metrics: natural accuracy robust accuracy

Baselines: C-AVP Frequency Prompting NAT AT TRADES MART Universal prompts

Builds on: C-AVP Frequency Prompting PGD adversarial training TRADES MART

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