الملخص
Large language models (LLMs) are increasingly deployed in safety-critical settings, yet their black-box nature makes it difficult to provide formal guaranties about their behavior. Existing verification approaches rely primarily on empirical probing and testing, leaving open the question of how to reason rigorously about general-purpose trans- former architectures. In this work, we establish a principled bridge between transformers and weighted automata, a classical model from formal language theory. This connection enables us to transfer verification tools from automata the- ory to the analysis of LLMs. Our contributions are twofold: First, we develop a formal correspondence between transformer architectures and weighted automata over reals, showing how distributional properties of LLMs can be captured within this framework. Second, we introduce an identity testing algorithm for weighted automata that provides a statis- tical method for distinguishing whether two stochastic models define the same distribution up to a tolerance threshold. This work provides the first formal bridge between modern neural se- quence models and classical automata theory, clarifying both the poten- tial and the computational challenges for rigorous LLM verification.
الكلمات المفتاحية
الموضوع
بيانات النشر
- المعرّف الرقمي
- 10.1007/978-3-032-25552-5_10
- المجلة
- غير متاح
- وصول مفتوح
- وصول مفتوح أخضر
اقتبس هذه المقالة
APA 7
Agarwal, S., Faizi, A. A., Singh, S., & Thakkar, A. (2026). From Transformers to Weighted Automata: Towards the Verification of Large Language Models. https://doi.org/10.1007/978-3-032-25552-5_10
MLA 9
Agarwal, Smayan, et al. "From Transformers to Weighted Automata: Towards the Verification of Large Language Models." https://doi.org/10.1007/978-3-032-25552-5_10.
شيكاغو (المؤلف–التاريخ)
Agarwal, Smayan, Aslah Ahmad Faizi, Shobhit Singh, and Aalok Thakkar. 2026. "From Transformers to Weighted Automata: Towards the Verification of Large Language Models." https://doi.org/10.1007/978-3-032-25552-5_10.
هارفارد
Agarwal, S., Faizi, A. A., Singh, S. and Thakkar, A. (2026) 'From Transformers to Weighted Automata: Towards the Verification of Large Language Models', doi:10.1007/978-3-032-25552-5_10.
فانكوفر
Agarwal S, Faizi AA, Singh S, Thakkar A. From Transformers to Weighted Automata: Towards the Verification of Large Language Models. doi:10.1007/978-3-032-25552-5_10
IEEE
S. Agarwal, A. A. Faizi, S. Singh, and A. Thakkar, "From Transformers to Weighted Automata: Towards the Verification of Large Language Models," doi: 10.1007/978-3-032-25552-5_10.