mlsanityData to 14 Oct 2026

From Transformers to Weighted Automata: Towards the Verification of Large Language Models

arXiv 2610.04569 ↗First posted 3 Oct 2026cs.FL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 30 references that are in the map. First posted on arXiv 3 Oct 2026.

Builds on

20 of 30 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2025The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexitycited by 302
  3. 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 147
  4. 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 138
  5. 2023What Formal Languages Can Transformers Express? A Surveycited by 124
  6. 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
  7. 2020A Formal Hierarchy of RNN Architecturescited by 62
  8. 2022Rethinking Lipschitz Neural Networks and Certified Robustness: A Boolean Function Perspectivecited by 51
  9. 2018Limitations of the Lipschitz constant as a defense against adversarial examplescited by 49
  10. 2023LipsFormer: Introducing Lipschitz Continuity to Vision Transformerscited by 34
  11. 2023Some Fundamental Aspects about Lipschitz Continuity of Neural Networkscited by 26
  12. 2022Improving Lipschitz-Constrained Neural Networks by Learning Activation Functionscited by 24
8 more
  1. 2019Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spacescited by 21
  2. 2025Training Transformers with Enforced Lipschitz Constantscited by 20
  3. 2021On the expressivity of bi-Lipschitz normalizing flowscited by 16
  4. 2021The Price of Tolerance in Distribution Testingcited by 14
  5. 2025Forget What You Know about LLMs Evaluations -- LLMs are Like a Chameleoncited by 13
  6. 2025InductionBench: LLMs Fail in the Simplest Complexity Classcited by 9
  7. 2023The Lipschitz-Variance-Margin Tradeoff for Enhanced Randomized Smoothingcited by 8
  8. 2024A One-Layer Decoder-Only Transformer is a Two-Layer RNN: With an Application to Certified Robustnesscited by 1

Built on by

Not cited yet.