mlsanityData to 7 Oct 2026

Precise Verification of Transformers through ReLU-Catalyzed Abstraction Refinement

arXiv 2605.14294 ↗First posted 14 May 2026cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Formal verification of transformers has become increasingly important due to their widespread deployment in safety-critical applications. Compared to classic neural networks, the inferences of transformers involve highly complex computations, such as dot products in self-attention layers, rendering their verification extremely difficult. Existing approaches explored over-approximation methods by constructing convex constraints to bound the output ranges of transformers, which can achieve high efficiency. However, they may sacrifice verification precision, and consequently introduce significant approximation error that leads to frequent occurrences of false alarms. In this paper, we propose a transformer verification approach that can achieve improved precision. At the core of our approach is a novel usage of ReLU, by which we represent a precise but non-linear bound for dot products such that we can further exploit the rich body of literature for convex relaxation of ReLU to derive precise bounds. We extend two classic approaches to the context of transformers, a rule-based one and an optimization-based one, resulting in two new frameworks for efficient and precise verification. We evaluate our approaches on different model architectures and robustness properties derived from two datasets about sentiment analysis, and compare with the state-of-the-art baseline approach. Compared to the baseline, our approach can achieve significant precision improvement for most of the verification tasks with acceptable compromise of efficiency, which demonstrates the effectiveness of our approach.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 38 references that are in the map. First posted on arXiv 14 May 2026.

Builds on

28 of 38 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  4. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  5. 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 739
  6. 2018Efficient Neural Network Robustness Certification with General Activation Functionscited by 439
  7. 2018Generating Natural Language Adversarial Examplescited by 422
  8. 2018Towards Fast Computation of Certified Robustness for ReLU Networkscited by 254
  9. 2019Algorithms for Verifying Deep Neural Networkscited by 221
  10. 2020Fast and Complete: Enabling Complete Neural Network Verification with Rapid and Massively Parallel Incomplete Verifierscited by 183
  11. 2019Branch and Bound for Piecewise Linear Neural Network Verificationcited by 138
  12. 2020Robustness Verification for Transformerscited by 76
16 more
  1. 2021Generalization in NLI: Ways (Not) To Go Beyond Simple Heuristicscited by 67
  2. 2023First Three Years of the International Verification of Neural Networks Competition (VNN-COMP)cited by 58
  3. 2017Towards Crafting Text Adversarial Samplescited by 55
  4. 2024Neural Network Verification with Branch-and-Bound for General Nonlinearitiescited by 47
  5. 2024The Fifth International Verification of Neural Networks Competition (VNN-COMP 2024): Summary and Resultscited by 42
  6. 2021Verification of Image-based Neural Network Controllers Using Generative Modelscited by 27
  7. 2025The 6th International Verification of Neural Networks Competition (VNN-COMP 2025): Summary and Resultscited by 26
  8. 2023Convex Bounds on the Softmax Function with Applications to Robustness Verificationcited by 19
  9. 2022Robustness in deep learning: The good (width), the bad (depth), and the ugly (initialization)cited by 18
  10. 2024NLP Verification: Towards a General Methodology for Certifying Robustnesscited by 14
  11. 2025Tokenization is Sensitive to Language Variationcited by 12
  12. 2023Introduction to Transformers: an NLP Perspectivecited by 10
  13. 2022Provably Tightest Linear Approximation for Robustness Verification of Sigmoid-like Neural Networkscited by 8
  14. 2023ANTONIO: Towards a Systematic Method of Generating NLP Benchmarks for Verificationcited by 6
  15. 2022Are Transformers More Robust? Towards Exact Robustness Verification for Transformerscited by 5
  16. 2022Are Synonym Substitution Attacks Really Synonym Substitution Attacks?cited by 4

Built on by

Not cited yet.