mlsanityData to 7 Oct 2026

On the unreasonable vulnerability of transformers for image restoration -- and an easy fix

arXiv 2307.13856 ↗First posted 25 Jul 2023cs.CV cs.LG eess.IVcited by 11

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  7. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  8. 2017Squeeze-and-Excitation Networkscited by 4,763
  9. 2022A ConvNet for the 2020scited by 3,545
  10. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  11. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  12. 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
36 more
  1. 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,618
  2. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  3. 2021Uformer: A General U-Shaped Transformer for Image Restorationcited by 864
  4. 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
  5. 2016Deep Multi-scale Convolutional Neural Network for Dynamic Scene Deblurringcited by 722
  6. 2022Simple Baselines for Image Restorationcited by 701
  7. 2016Language Modeling with Gated Convolutional Networkscited by 688
  8. 2021XCiT: Cross-Covariance Image Transformerscited by 335
  9. 2022MAXIM: Multi-Axis MLP for Image Processingcited by 301
  10. 2020Single Image Super-Resolution via a Holistic Attention Networkcited by 265
  11. 2022Vision Transformers for Single Image Dehazingcited by 255
  12. 2021Understanding Robustness of Transformers for Image Classificationcited by 250
  13. 2021TransWeather: Transformer-based Restoration of Images Degraded by Adverse Weather Conditionscited by 243
  14. 2021Vision Transformers are Robust Learnerscited by 208
  15. 2021Are Transformers More Robust Than CNNs?cited by 187
  16. 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
  17. 2022Stripformer: Strip Transformer for Fast Image Deblurringcited by 139
  18. 2020Spatially-Attentive Patch-Hierarchical Network for Adaptive Motion Deblurringcited by 119
  19. 2021On the Adversarial Robustness of Vision Transformerscited by 104
  20. 2019Adversarial Robustness vs Model Compression, or Both?cited by 98
  21. 2020Cross-Scale Internal Graph Neural Network for Image Super-Resolutioncited by 94
  22. 2020Smooth Adversarial Trainingcited by 89
  23. 2021RobustART: Benchmarking Robustness on Architecture Design and Training Techniquescited by 78
  24. 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
  25. 2022Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restorationcited by 72
  26. 2022Towards Robust Rain Removal Against Adversarial Attacks: A Comprehensive Benchmark Analysis and Beyondcited by 48
  27. 2022Can CNNs Be More Robust Than Transformers?cited by 38
  28. 2019Evaluating Robustness of Deep Image Super-Resolution against Adversarial Attackscited by 37
  29. 2022An Impartial Take to the CNN vs Transformer Robustness Contestcited by 34
  30. 2023CosPGD: an efficient white-box adversarial attack for pixel-wise prediction taskscited by 27
  31. 2022DRT: A Lightweight Single Image Deraining Recursive Transformercited by 26
  32. 2022Towards Adversarially Robust Deep Image Denoisingcited by 13
  33. 2022Robust Real-World Image Super-Resolution against Adversarial Attackscited by 11
  34. 2021Deep Image Destruction: Vulnerability of Deep Image-to-Image Models against Adversarial Attackscited by 8
  35. 2022On Adversarial Robustness of Deep Image Deblurringcited by 7
  36. 2022On the interplay of adversarial robustness and architecture components: patches, convolution and attentioncited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 4; 2025: 5; 2026: 1.

11 papers.