Improving Adversarial Robustness of Masked Autoencoders via Test-time Frequency-domain Prompting
Not on the map. Why?
Abstract (arXiv)
In this paper, we investigate the adversarial robustness of vision transformers that are equipped with BERT pretraining (e.g., BEiT, MAE). A surprising observation is that MAE has significantly worse adversarial robustness than other BERT pretraining methods. This observation drives us to rethink the basic differences between these BERT pretraining methods and how these differences affect the robustness against adversarial perturbations. Our empirical analysis reveals that the adversarial robustness of BERT pretraining is highly related to the reconstruction target, i.e., predicting the raw pixels of masked image patches will degrade more adversarial robustness of the model than predicting the semantic context, since it guides the model to concentrate more on medium-/high-frequency components of images. Based on our analysis, we provide a simple yet effective way to boost the adversarial robustness of MAE. The basic idea is using the dataset-extracted domain knowledge to occupy the medium-/high-frequency of images, thus narrowing the optimization space of adversarial perturbations. Specifically, we group the distribution of pretraining data and optimize a set of cluster-specific visual prompts on frequency domain. These prompts are incorporated with input images through prototype-based prompt selection during test period. Extensive evaluation shows that our method clearly boost MAE's adversarial robustness while maintaining its clean performance on ImageNet-1k classification. Our code is available at: https://github.com/shikiw/RobustMAE.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 49 of its 60 references that are in the map. First posted on arXiv 20 Aug 2023.
Builds on
49 of 60 references.
References · 49
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2017Neural Discrete Representation Learningcited by 4,650
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
37 more
- 2013Describing Textures in the Wildcited by 2,110
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2022Visual Prompt Tuningcited by 1,674
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
- 2016Adversarial Machine Learning at Scalecited by 934
- 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 891
- 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
- 2021Florence: A New Foundation Model for Computer Visioncited by 802
- 2021Masked Feature Prediction for Self-Supervised Visual Pre-Trainingcited by 573
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2019High Frequency Component Helps Explain the Generalization of Convolutional Neural Networkscited by 310
- 2022How Do Vision Transformers Work?cited by 305
- 2022Exploring Visual Prompts for Adapting Large-Scale Modelscited by 271
- 2022Visual Prompting via Image Inpaintingcited by 248
- 2021Vision Transformers are Robust Learnerscited by 208
- 2021PeCo: Perceptual Codebook for BERT Pre-training of Vision Transformerscited by 204
- 2022MaskCLIP: Masked Self-Distillation Advances Contrastive Language-Image Pretrainingcited by 187
- 2018Stochastic Activation Pruning for Robust Adversarial Defensecited by 171
- 2020Robust Pre-Training by Adversarial Contrastive Learningcited by 144
- 2022OmniVL:One Foundation Model for Image-Language and Video-Language Taskscited by 143
- 2021Towards Robust Vision Transformercited by 137
- 2021On the Adversarial Robustness of Vision Transformerscited by 104
- 2020Learnable Boundary Guided Adversarial Trainingcited by 93
- 2021Towards Transferable Adversarial Attacks on Vision Transformerscited by 80
- 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 78
- 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 75
- 2021On Improving Adversarial Transferability of Vision Transformerscited by 70
- 2023Diversity-Aware Meta Visual Promptingcited by 57
- 2020LG-GAN: Label Guided Adversarial Network for Flexible Targeted Attack of Point Cloud-based Deep Networkscited by 55
- 2023Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimizationcited by 54
- 2022Shape-invariant 3D Adversarial Point Cloudscited by 49
- 2021Understanding and Improving Robustness of Vision Transformers through Patch-based Negative Augmentationcited by 40
- 2020GreedyFool: Distortion-Aware Sparse Adversarial Attackcited by 37
- 2022Visual Prompting for Adversarial Robustnesscited by 33
- 2017Extending Defensive Distillationcited by 23
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 4; 2026: 2.
12 papers.
- 2024Beyond Model Adaptation at Test Time: A Surveycited by 55
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
- 2023SimAC: A Simple Anti-Customization Method for Protecting Face Privacy against Text-to-Image Synthesis of Diffusion Modelscited by 34
- 2024Masked Image Modeling: A Surveycited by 28
- 2024Privacy-Preserving Face Recognition Using Trainable Feature Subtractioncited by 24
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Surveycited by 21
- 2023Masked Modeling for Self-supervised Representation Learning on Vision and Beyondcited by 13
- 20253D Test-time Adaptation via Graph Spectral Driven Point Shiftcited by 1
- 2025Diffusion or Non-Diffusion Adversarial Defenses: Rethinking the Relation between Classifier and Adversarial Purifiercited by 0
- 2025Improving Adversarial Robustness via Phase and Amplitude-aware Promptingcited by 0
- 2026Expanding the Role of Diffusion Models for Robust Classifier Trainingcited by 0
- 2026Defending against Patch-Based and Texture-Based Adversarial Attacks with Spectral Decompositioncited by 0
- 2026Defending against Patch-Based and Texture-Based Adversarial Attacks with Spectral Decomposition12 Apr 2026
- 2026Expanding the Role of Diffusion Models for Robust Classifier Training23 Feb 2026
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Survey15 Oct 2025
- 20253D Test-time Adaptation via Graph Spectral Driven Point Shift24 Jul 2025
- 2025Improving Adversarial Robustness via Phase and Amplitude-aware Prompting6 Feb 2025
- 2025Diffusion or Non-Diffusion Adversarial Defenses: Rethinking the Relation between Classifier and Adversarial Purifier28 Jan 2025
- 2024Beyond Model Adaptation at Test Time: A Survey6 Nov 2024
- 2024Masked Image Modeling: A Survey13 Aug 2024
- 2024Privacy-Preserving Face Recognition Using Trainable Feature Subtraction19 Mar 2024
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models4 Mar 2024
- 2023Masked Modeling for Self-supervised Representation Learning on Vision and Beyond31 Dec 2023
- 2023SimAC: A Simple Anti-Customization Method for Protecting Face Privacy against Text-to-Image Synthesis of Diffusion Models13 Dec 2023