mlsanityData to 7 Oct 2026

Synthesis and Verification of Transformer Programs (Technical Report)

arXiv 2602.16473 ↗First posted 18 Feb 2026cs.LG cs.FL cs.LOcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Safety Verification of Deep Neural Networkscited by 262
  3. 2019Algorithms for Verifying Deep Neural Networkscited by 221
  4. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  5. 2021Thinking Like Transformerscited by 182
  6. 2023What Formal Languages Can Transformers Express? A Surveycited by 120
  7. 2020Model Interpretability through the Lens of Computational Complexitycited by 75
  8. 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
  9. 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 47
  10. 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 44
  11. 2024The Fifth International Verification of Neural Networks Competition (VNN-COMP 2024): Summary and Resultscited by 42
  12. 2023Learning Transformer Programscited by 40
11 more
  1. 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
  2. 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 37
  3. 2021Foundations of Symbolic Languages for Model Interpretabilitycited by 26
  4. 2019Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spacescited by 20
  5. 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
  6. 2025Knee-Deep in C-RASP: A Transformer Depth Hierarchycited by 12
  7. 2025Softmax Transformers are Turing-Completecited by 9
  8. 2025The Counting Power of Transformerscited by 7
  9. 2024Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoningcited by 5
  10. 2026Length Generalization Bounds for Transformerscited by 4
  11. 2025Extracting Robust Register Automata from Neural Networks over Data Sequencescited by 1

Built on by

Not cited yet.