mlsanityData to 7 Oct 2026

Are Transformers More Robust? Towards Exact Robustness Verification for Transformers

arXiv 2202.03932 ↗First posted 8 Feb 2022cs.LG cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

As an emerging type of Neural Networks (NNs), Transformers are used in many domains ranging from Natural Language Processing to Autonomous Driving. In this paper, we study the robustness problem of Transformers, a key characteristic as low robustness may cause safety concerns. Specifically, we focus on Sparsemax-based Transformers and reduce the finding of their maximum robustness to a Mixed Integer Quadratically Constrained Programming (MIQCP) problem. We also design two pre-processing heuristics that can be embedded in the MIQCP encoding and substantially accelerate its solving. We then conduct experiments using the application of Land Departure Warning to compare the robustness of Sparsemax-based Transformers against that of the more conventional Multi-Layer-Perceptron (MLP) NNs. To our surprise, Transformers are not necessarily more robust, leading to profound considerations in selecting appropriate NN architectures for safety-critical domain applications.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 18 of its 36 references that are in the map. First posted on arXiv 8 Feb 2022.

Builds on

18 of 36 references.

References · 18

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2016End to End Learning for Self-Driving Carscited by 1,000
  6. 2020On Layer Normalization in the Transformer Architecturecited by 906
  7. 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 739
  8. 2017One pixel attack for fooling deep neural networkscited by 579
  9. 2017Provable defenses against adversarial examples via the convex outer adversarial polytopecited by 564
  10. 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 337
  11. 2018The highD Dataset: A Drone Dataset of Naturalistic Vehicle Trajectories on German Highways for Validation of Highly Automated Driving Systemscited by 276
  12. 2016Safety Verification of Deep Neural Networkscited by 262
6 more
  1. 2021Understanding Robustness of Transformers for Image Classificationcited by 250
  2. 2017Formal Verification of Piece-Wise Linear Feed-Forward Neural Networkscited by 241
  3. 2017An approach to reachability analysis for feed-forward ReLU neural networkscited by 126
  4. 2021On the Adversarial Robustness of Vision Transformerscited by 104
  5. 2017Maximum Resilience of Artificial Neural Networkscited by 97
  6. 2020Robustness Verification for Transformerscited by 76

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 2.

5 papers.