[2602.16473] Synthesis and Verification of Transformer Programs

[2602.16473] Synthesis and Verification of Transformer Programs

arXiv - Machine Learning 3 min read Article

Summary

This paper presents C-RASP, a programming language for transformers, and introduces new algorithms for its synthesis and verification, enhancing transformer program optimization and constrained learning.

Why It Matters

The development of C-RASP and its verification techniques is significant for advancing the reliability and efficiency of transformer models in machine learning. As transformers become increasingly integral to AI applications, ensuring their correctness through formal verification can lead to more robust AI systems.

Key Takeaways

  • C-RASP captures concepts expressible by transformers, facilitating their synthesis and verification.
  • New algorithms developed improve the automatic verification of C-RASP programs.
  • The connection to synchronous dataflow programs allows the use of advanced model checkers.
  • The paper presents a local search algorithm for learning C-RASP programs from examples.
  • Applications include transformer program optimization and constrained learning based on partial specifications.

Computer Science > Machine Learning arXiv:2602.16473 (cs) [Submitted on 18 Feb 2026] Title:Synthesis and Verification of Transformer Programs Authors:Hongjian Jiang, Matthew Hague, Philipp Rümmer, Anthony Widjaja Lin View a PDF of the paper titled Synthesis and Verification of Transformer Programs, by Hongjian Jiang and 3 other authors View PDF HTML (experimental) Abstract: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). Subjects: Machine Learning (cs.LG); Formal Languages and Automata Theory (cs.FL); Logic in Computer Science (cs.LO) Cite as: arXiv:2602.16473 [cs.LG]   (or arXiv:2602.16473v1 [cs.LG] for this version)   https://doi.org/10.48550/arXiv.2602.16473 Focus to learn mo...

Related Articles

Machine Learning

[HIRING] Machine Learning Evaluation Specialist | Remote | $50/hr

​ We are onboarding domain experts with strong machine learning knowledge to design advanced evaluation tasks for AI systems. About the R...

Reddit - ML Jobs · 1 min ·
Machine Learning

Japan is adopting robotics and physical AI, with a model where startups innovate and corporations provide scale

Physical AI is emerging as one of the next major industrial battlegrounds, with Japan’s push driven more by necessity than anything else....

Reddit - Artificial Intelligence · 1 min ·
Machine Learning

mining hardware doing AI training - is the output actually useful

there's this network that launched recently routing crypto mining hardware toward AI training workloads. miners seem happy with the econo...

Reddit - Artificial Intelligence · 1 min ·
AI is changing how small online sellers decide what to make | MIT Technology Review
Machine Learning

AI is changing how small online sellers decide what to make | MIT Technology Review

Entrepreneurs based in the US are using tools like Alibaba’s Accio to compress weeks of product research and supplier hunting into a sing...

MIT Technology Review · 8 min ·
More in Machine Learning: This Week Guide Trending

No comments

No comments yet. Be the first to comment!

Stay updated with AI News

Get the latest news, tools, and insights delivered to your inbox.

Daily or weekly digest • Unsubscribe anytime