Beyond Pretrained Features: Noisy Image Modeling Provides Adversarial Defense
Not on the map. Why?
Abstract (arXiv)
Recent advancements in masked image modeling (MIM) have made it a prevailing framework for self-supervised visual representation learning. The MIM pretrained models, like most deep neural network methods, remain vulnerable to adversarial attacks, limiting their practical application, and this issue has received little research attention. In this paper, we investigate how this powerful self-supervised learning paradigm can provide adversarial robustness to downstream classifiers. During the exploration, we find that noisy image modeling (NIM), a simple variant of MIM that adopts denoising as the pre-text task, reconstructs noisy images surprisingly well despite severe corruption. Motivated by this observation, we propose an adversarial defense method, referred to as De^3, by exploiting the pretrained decoder for denoising. Through De^3, NIM is able to enhance adversarial robustness beyond providing pretrained features. Furthermore, we incorporate a simple modification, sampling the noise scale hyperparameter from random distributions, and enable the defense to achieve a better and tunable trade-off between accuracy and robustness. Experimental results demonstrate that, in terms of adversarial robustness, NIM is superior to MIM thanks to its effective denoising capability. Moreover, the defense provided by NIM achieves performance on par with adversarial training while offering the extra tunability advantage. Source code and models are available at https://github.com/youzunzhi/NIM-AdvDef.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 42 of its 46 references that are in the map. First posted on arXiv 2 Feb 2023.
Builds on
42 of 46 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2013Intriguing properties of neural networkscited by 5,155
30 more
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,517
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2021SimMIM: A Simple Framework for Masked Image Modelingcited by 1,153
- 2020Pre-Trained Image Processing Transformercited by 893
- 2018Robustness May Be at Odds with Accuracycited by 880
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 790
- 2017Evasion Attacks against Machine Learning at Test Timecited by 689
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
- 2020RobustBench: a standardized adversarial robustness benchmarkcited by 661
- 2022Diffusion Models for Adversarial Purificationcited by 476
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2022BEiT v2: Masked Image Modeling with Vector-Quantized Visual Tokenizerscited by 303
- 2021PeCo: Perceptual Codebook for BERT Pre-training of Vision Transformerscited by 204
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2020Understanding and Mitigating the Tradeoff Between Robustness and Accuracycited by 149
- 2021Adversarial purification with Score-based generative modelscited by 134
- 2021On the Adversarial Robustness of Vision Transformerscited by 106
- 2022Masked Frequency Modeling for Self-Supervised Visual Pre-Trainingcited by 71
- 2022Corrupted Image Modeling for Self-Supervised Visual Pre-Trainingcited by 68
- 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
- 2020Stochastic Security: Adversarial Defense Using Long-Run Dynamics of Energy-Based Modelscited by 58
- 2022SdAE: Self-distillated Masked Autoencodercited by 52
- 2022Understanding Masked Image Modeling via Learning Occlusion Invariant Featurecited by 50
- 2020Once-for-All Adversarial Training: In-Situ Tradeoff between Robustness and Accuracy for Freecited by 48
- 2021Online Adversarial Purification based on Self-Supervisioncited by 46
- 2022Revisiting adapters with adversarial trainingcited by 18
- 2022Beyond Masking: Demystifying Token-Based Pre-Training for Vision Transformerscited by 14
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 2; 2026: 1.
7 papers.
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustnesscited by 12
- 2025Wavelet-Driven Masked Image Modeling: A Path to Efficient Visual Representationcited by 3
- 2024AEMIM: Adversarial Examples Meet Masked Image Modelingcited by 2
- 2024Hybrid diffusion models: combining supervised and generative pretraining for label-efficient fine-tuning of segmentation modelscited by 2
- 2024Robust Learning under Hybrid Noisecited by 1
- 2025Diffusion or Non-Diffusion Adversarial Defenses: Rethinking the Relation between Classifier and Adversarial Purifiercited by 0
- 2026First-order Constrained Trilevel Optimization Over Distributed Networks for Robust Coreset Selectioncited by 0
- 2026First-order Constrained Trilevel Optimization Over Distributed Networks for Robust Coreset Selection30 Jul 2026
- 2025Wavelet-Driven Masked Image Modeling: A Path to Efficient Visual Representation2 Mar 2025
- 2025Diffusion or Non-Diffusion Adversarial Defenses: Rethinking the Relation between Classifier and Adversarial Purifier28 Jan 2025
- 2024Hybrid diffusion models: combining supervised and generative pretraining for label-efficient fine-tuning of segmentation models6 Aug 2024
- 2024AEMIM: Adversarial Examples Meet Masked Image Modeling16 Jul 2024
- 2024Robust Learning under Hybrid Noise4 Jul 2024
- 2023MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustness8 Dec 2023