mlsanityData to 14 Oct 2026

Extracting Moore Machines from Transformers using Queries and Counterexamples

arXiv 2410.06045 ↗First posted 8 Oct 2024cs.LG cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Fuelled by the popularity of the transformer architecture in deep learning, several works have investigated what formal languages a transformer can learn from data. Nonetheless, existing results remain hard to compare due to methodological differences. To address this, we construct finite state automata as high-level abstractions of transformers trained on regular languages using queries and counterexamples. Concretely, we extract Moore machines, as many training tasks used in literature can be mapped onto them. We demonstrate the usefulness of this approach by studying positive-only learning and the sequence accuracy measure in detail.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 16 of its 29 references that are in the map. First posted on arXiv 8 Oct 2024.

Builds on

16 of 29 references.

References · 16

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  3. 2022Transformers Learn Shortcuts to Automatacited by 268
  4. 2022Neural Networks and the Chomsky Hierarchycited by 217
  5. 2022Exploring Length Generalization in Large Language Modelscited by 206
  6. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  7. 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
  8. 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
  9. 2024Why are Sensitive Functions Hard for Transformers?cited by 74
  10. 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
  11. 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
  12. 2019Learning Deterministic Weighted Automata with Queries and Counterexamplescited by 22
4 more
  1. 2018On Evaluating the Generalization of LSTM Models in Formal Languagescited by 17
  2. 2020A Survey of Neural Networks and Formal Languagescited by 17
  3. 2021Formal Language Theory Meets Modern NLPcited by 9
  4. 2017Learning Product Automatacited by 3

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.