Are Transformers More Robust? Towards Exact Robustness Verification for Transformers

Brian Hsuan Cheng Liao, Chih Hong Cheng, Hasan Esen, Alois Knoll

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

Abstract

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.

Original languageEnglish
Title of host publicationComputer Safety, Reliability, and Security - 42nd International Conference, SAFECOMP 2023, Proceedings
EditorsJérémie Guiochet, Stefano Tonetta, Friedemann Bitsch
PublisherSpringer Science and Business Media Deutschland GmbH
Pages89-103
Number of pages15
ISBN (Print)9783031409226
DOIs
StatePublished - 2023
EventProceedings of the 42nd International Conference on Computer Safety, Reliability and Security, SAFECOMP 2023 - Toulouse, France
Duration: 20 Sep 202322 Sep 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14181 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceProceedings of the 42nd International Conference on Computer Safety, Reliability and Security, SAFECOMP 2023
Country/TerritoryFrance
CityToulouse
Period20/09/2322/09/23

Keywords

  • Autonomous Driving
  • Lane Departure Warning
  • NN verification
  • Robustness
  • Transformers

Fingerprint

Dive into the research topics of 'Are Transformers More Robust? Towards Exact Robustness Verification for Transformers'. Together they form a unique fingerprint.

Cite this