Saved in:
Bibliographic Details
Main Authors: Xu, Yibo, Zhou, Dawei, Liu, Decheng, Wang, Nannan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.03758
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915313428201472
author Xu, Yibo
Zhou, Dawei
Liu, Decheng
Wang, Nannan
author_facet Xu, Yibo
Zhou, Dawei
Liu, Decheng
Wang, Nannan
contents Deep neural networks are found to be vulnerable to adversarial perturbations. The prompt-based defense has been increasingly studied due to its high efficiency. However, existing prompt-based defenses mainly exploited mixed prompt patterns, where critical patterns closely related to object semantics lack sufficient focus. The phase and amplitude spectra have been proven to be highly related to specific semantic patterns and crucial for robustness. To this end, in this paper, we propose a Phase and Amplitude-aware Prompting (PAP) defense. Specifically, we construct phase-level and amplitude-level prompts for each class, and adjust weights for prompting according to the model's robust performance under these prompts during training. During testing, we select prompts for each image using its predicted label to obtain the prompted image, which is inputted to the model to get the final prediction. Experimental results demonstrate the effectiveness of our method.
format Preprint
id arxiv_https___arxiv_org_abs_2502_03758
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Improving Adversarial Robustness via Phase and Amplitude-aware Prompting
Xu, Yibo
Zhou, Dawei
Liu, Decheng
Wang, Nannan
Computer Vision and Pattern Recognition
Deep neural networks are found to be vulnerable to adversarial perturbations. The prompt-based defense has been increasingly studied due to its high efficiency. However, existing prompt-based defenses mainly exploited mixed prompt patterns, where critical patterns closely related to object semantics lack sufficient focus. The phase and amplitude spectra have been proven to be highly related to specific semantic patterns and crucial for robustness. To this end, in this paper, we propose a Phase and Amplitude-aware Prompting (PAP) defense. Specifically, we construct phase-level and amplitude-level prompts for each class, and adjust weights for prompting according to the model's robust performance under these prompts during training. During testing, we select prompts for each image using its predicted label to obtain the prompted image, which is inputted to the model to get the final prediction. Experimental results demonstrate the effectiveness of our method.
title Improving Adversarial Robustness via Phase and Amplitude-aware Prompting
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2502.03758