Robustness Verification for Transformers

Zhouxing Shi, Huan Zhang, Kai-Wei Chang, Minlie Huang, Cho-Jui Hsieh
2/16/2020
cs.LGstat.ML
transformer-attention

Official code: shizhouxing/Robustness-Verification-for-Transformers (26 stars, Python, BSD-2-Clause, last commit 2024-11-26).

Abstract

Robustness verification that aims to formally certify the prediction behavior of neural networks has become an important tool for understanding model behavior and obtaining safety guarantees. However, previous methods can usually only handle neural networks with relatively simple architectures.

Show full abstract

In this paper, we consider the robustness verification problem for Transformers. Transformers have complex self-attention layers that pose many challenges for verification, including cross-nonlinearity and cross-position dependency, which have not been discussed in previous works. We resolve these challenges and develop the first robustness verification algorithm for Transformers. The certified robustness bounds computed by our method are significantly tighter than those by naive Interval Bound Propagation. These bounds also shed light on interpreting Transformers as they consistently reflect the importance of different words in sentiment analysis.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

[ICLR 2020] Code for paper "Robustness Verification for Transformers"

263Python, ShellFeb 10, 20202 years agoBSD-2-Clause
robustness-verificationtransformers

Similar Papers

Cite this paper

@article{shi2020robustness,
  title  = {Robustness Verification for Transformers},
  author = {Zhouxing Shi and Huan Zhang and Kai-Wei Chang and Minlie Huang and Cho-Jui Hsieh},
  year   = {2020},
  eprint = {2002.06622},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.06622}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.06622.svg)](https://codeofpaper.com/paper/2002.06622)

Discussion