On the unreasonable vulnerability of transformers for image restoration -- and an easy fix
Not on the map. Why?
Abstract (arXiv)
Following their success in visual recognition tasks, Vision Transformers(ViTs) are being increasingly employed for image restoration. As a few recent works claim that ViTs for image classification also have better robustness properties, we investigate whether the improved adversarial robustness of ViTs extends to image restoration. We consider the recently proposed Restormer model, as well as NAFNet and the "Baseline network" which are both simplified versions of a Restormer. We use Projected Gradient Descent (PGD) and CosPGD, a recently proposed adversarial attack tailored to pixel-wise prediction tasks for our robustness evaluation. Our experiments are performed on real-world images from the GoPro dataset for image deblurring. Our analysis indicates that contrary to as advocated by ViTs in image classification works, these models are highly susceptible to adversarial attacks. We attempt to improve their robustness through adversarial training. While this yields a significant increase in robustness for Restormer, results on other networks are less promising. Interestingly, the design choices in NAFNet and Baselines, which were based on iid performance, and not on robust generalization, seem to be at odds with the model robustness. Thus, we investigate this further and find a fix.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 48 of its 64 references that are in the map. First posted on arXiv 25 Jul 2023.
Builds on
48 of 64 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2022A ConvNet for the 2020scited by 3,545
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
36 more
- 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,618
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2021Uformer: A General U-Shaped Transformer for Image Restorationcited by 864
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
- 2016Deep Multi-scale Convolutional Neural Network for Dynamic Scene Deblurringcited by 722
- 2022Simple Baselines for Image Restorationcited by 701
- 2016Language Modeling with Gated Convolutional Networkscited by 688
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2022MAXIM: Multi-Axis MLP for Image Processingcited by 301
- 2020Single Image Super-Resolution via a Holistic Attention Networkcited by 265
- 2022Vision Transformers for Single Image Dehazingcited by 255
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2021TransWeather: Transformer-based Restoration of Images Degraded by Adverse Weather Conditionscited by 243
- 2021Vision Transformers are Robust Learnerscited by 208
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2022Stripformer: Strip Transformer for Fast Image Deblurringcited by 139
- 2020Spatially-Attentive Patch-Hierarchical Network for Adaptive Motion Deblurringcited by 119
- 2021On the Adversarial Robustness of Vision Transformerscited by 104
- 2019Adversarial Robustness vs Model Compression, or Both?cited by 98
- 2020Cross-Scale Internal Graph Neural Network for Image Super-Resolutioncited by 94
- 2020Smooth Adversarial Trainingcited by 89
- 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 78
- 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
- 2022Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restorationcited by 72
- 2022Towards Robust Rain Removal Against Adversarial Attacks: A Comprehensive Benchmark Analysis and Beyondcited by 48
- 2022Can CNNs Be More Robust Than Transformers?cited by 38
- 2019Evaluating Robustness of Deep Image Super-Resolution against Adversarial Attackscited by 37
- 2022An Impartial Take to the CNN vs Transformer Robustness Contestcited by 34
- 2023CosPGD: an efficient white-box adversarial attack for pixel-wise prediction taskscited by 27
- 2022DRT: A Lightweight Single Image Deraining Recursive Transformercited by 26
- 2022Towards Adversarially Robust Deep Image Denoisingcited by 13
- 2022Robust Real-World Image Super-Resolution against Adversarial Attackscited by 11
- 2021Deep Image Destruction: Vulnerability of Deep Image-to-Image Models against Adversarial Attackscited by 8
- 2022On Adversarial Robustness of Deep Image Deblurringcited by 7
- 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 5; 2026: 1.
11 papers.
- 2023Improving Feature Stability during Upsampling -- Spectral Artifacts and the Importance of Spatial Contextcited by 8
- 2025RobustSpring: Benchmarking Robustness to Image Corruptions for Optical Flow, Scene Flow and Stereocited by 7
- 2024Beware of Aliases -- Signal Preservation is Crucial for Robust Image Restorationcited by 6
- 2024FAIR-TAT: Improving Model Fairness Using Targeted Adversarial Trainingcited by 5
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?cited by 5
- 2024How Do Training Methods Influence the Utilization of Vision Models?cited by 3
- 2024Robustness and Exploration of Variational and Machine Learning Approaches to Inverse Problems: An Overviewcited by 1
- 2025Quaternion-Hadamard Network: A Novel Defense Against Adversarial Attacks with a New Datasetcited by 1
- 2025DispBench: Benchmarking Disparity Estimation to Synthetic Corruptionscited by 0
- 2025TRIX- Trading Adversarial Fairness via Mixed Adversarial Trainingcited by 0
- 2026Failure or Drift? Evaluating Monocular SLAM under Synthetic and Real-World Corruptionscited by 0
- 2026Failure or Drift? Evaluating Monocular SLAM under Synthetic and Real-World Corruptions31 Aug 2026
- 2025TRIX- Trading Adversarial Fairness via Mixed Adversarial Training10 Jul 2025
- 2025RobustSpring: Benchmarking Robustness to Image Corruptions for Optical Flow, Scene Flow and Stereo14 May 2025
- 2025DispBench: Benchmarking Disparity Estimation to Synthetic Corruptions8 May 2025
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?7 May 2025
- 2025Quaternion-Hadamard Network: A Novel Defense Against Adversarial Attacks with a New Dataset12 Feb 2025
- 2024FAIR-TAT: Improving Model Fairness Using Targeted Adversarial Training30 Oct 2024
- 2024How Do Training Methods Influence the Utilization of Vision Models?18 Oct 2024
- 2024Beware of Aliases -- Signal Preservation is Crucial for Robust Image Restoration11 Jun 2024
- 2024Robustness and Exploration of Variational and Machine Learning Approaches to Inverse Problems: An Overview19 Feb 2024
- 2023Improving Feature Stability during Upsampling -- Spectral Artifacts and the Importance of Spatial Context29 Nov 2023