Synthesis and Verification of Transformer Programs (Technical Report)
Not on the map. Why?
Abstract (arXiv)
C-RASP is a simple programming language that was recently shown to capture concepts expressible by transformers. In this paper, we develop new algorithmic techniques for automatically verifying C-RASPs. To this end, we establish a connection to the verification of synchronous dataflow programs in Lustre, which enables us to exploit state-of-the-art model checkers utilizing highly optimized SMT-solvers. Our second contribution addresses learning a C-RASP program in the first place. To this end, we provide a new algorithm for learning a C-RASP from examples using local search. We demonstrate efficacy of our implementation for benchmarks of C-RASPs in the literature, in particular in connection to the following applications: (1) transformer program optimization, and (2) constrained learning of transformer programs (based on a partial specification).
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 37 references that are in the map. First posted on arXiv 18 Feb 2026.
Builds on
23 of 37 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2016Safety Verification of Deep Neural Networkscited by 262
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2021Thinking Like Transformerscited by 182
- 2023What Formal Languages Can Transformers Express? A Surveycited by 120
- 2020Model Interpretability through the Lens of Computational Complexitycited by 75
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 47
- 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 44
- 2024The Fifth International Verification of Neural Networks Competition (VNN-COMP 2024): Summary and Resultscited by 42
- 2023Learning Transformer Programscited by 40
11 more
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 37
- 2021Foundations of Symbolic Languages for Model Interpretabilitycited by 26
- 2019Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spacescited by 20
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2025Knee-Deep in C-RASP: A Transformer Depth Hierarchycited by 12
- 2025Softmax Transformers are Turing-Completecited by 9
- 2025The Counting Power of Transformerscited by 7
- 2024Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoningcited by 5
- 2026Length Generalization Bounds for Transformerscited by 4
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequencescited by 1
Built on by
Not cited yet.