Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamples
Not on the map. Why?
Abstract (arXiv)
We present a novel algorithm that uses exact learning and abstraction to extract a deterministic finite automaton describing the state dynamics of a given trained RNN. We do this using Angluin's L* algorithm as a learner and the trained RNN as an oracle. Our technique efficiently extracts accurate automata from trained RNNs, even when the state vectors are large and require fine differentiation.
Key facts. Cited by 66 papers in the map (data through 14 Oct 2026). First posted on arXiv 27 Nov 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 16; 2023: 10; 2024: 15; 2025: 6; 2026: 10.
66 papers.
Sort:
By area:
- 2021Thinking Like Transformerscited by 184
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2023Learning Transformer Programscited by 41
- 2022Square One Bias in NLP: Towards a Multi-Dimensional Exploration of the Research Manifoldcited by 29
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 25
- 2021Minimum Description Length Recurrent Neural Networkscited by 24
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 24
- 2022SoK: Explainable Machine Learning for Computer Security Applicationscited by 20
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2021BDD4BNN: A BDD-based Quantitative Analysis Framework for Binarized Neural Networkscited by 17
- 2022Extracting Finite Automata from RNNs Using State Mergingcited by 17
- 2023Latent State Models of Training Dynamicscited by 16
38 more
- 2024Learning Useful Representations of Recurrent Neural Network Weight Matricescited by 15
- 2021Inferring Probabilistic Reward Machines from Non-Markovian Reward Processes for Reinforcement Learningcited by 13
- 2021Learning Description Logic Ontologies. Five Approaches. Where Do They Stand?cited by 12
- 2022Learning Interpretable Temporal Properties from Positive Examples Onlycited by 12
- 2022Extracting Weighted Finite Automata from Recurrent Neural Networks for Natural Languagescited by 10
- 2023On the Computational Complexity and Formal Hierarchy of Second Order Recurrent Neural Networkscited by 8
- 2024DeepDFA: Automata Learning through Neural Probabilistic Relaxationscited by 8
- 2022Linguistically inspired roadmap for building biologically reliable protein language modelscited by 7
- 2023MLRegTest: A Benchmark for the Machine Learning of Regular Languagescited by 7
- 2023Weighted Automata Extraction and Explanation of Recurrent Neural Networks for Natural Language Taskscited by 7
- 2023DeepSeer: Interactive RNN Explanation and Debugging via State Abstractioncited by 6
- 2022ReX: A Framework for Incorporating Temporal Information in Model-Agnostic Local Explanation Techniquescited by 5
- 2024Detecting Hidden Triggers: Mapping Non-Markov Reward Functions to Markovcited by 5
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2024Simulating Weighted Automata over Sequences and Trees with Transformerscited by 4
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approachcited by 4
- 2021Extracting Weighted Automata for Approximate Minimization in Language Modellingcited by 3
- 2022Understanding Robust Generalization in Learning Regular Languagescited by 3
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Networkcited by 3
- 2021Synthesizing Context-free Grammars from Recurrent Neural Networks (Extended Version)cited by 2
- 2022FlexFringe: Modeling Software Behavior by Learning Probabilistic Automatacited by 2
- 2022ImmunoLingo: Linguistics-based formalization of the antibody languagecited by 2
- 2022Verifying And Interpreting Neural Networks using Finite Automatacited by 2
- 2022State-Regularized Recurrent Neural Networks to Extract Automata and Explain Predictionscited by 2
- 2024L^*LM: Learning Automata from Examples using Natural Language Oraclescited by 2
- 2024Extracting Moore Machines from Transformers using Queries and Counterexamplescited by 2
- 2024Causal Abstraction in Model Interpretability: A Compact Surveycited by 2
- 2025A Constructive Framework for Nondeterministic Automata via Time-Shared, Depth-Unrolled Feedforward Networkscited by 2
- 2021On the Complexity of Learning Description Logic Ontologiescited by 1
- 2022Extracting Rules from Neural Networks with Partial Interpretationscited by 1
- 2022When are Local Queries Useful for Robust Learning?cited by 1
- 2023Learning Deterministic Finite Automata from Confidence Oraclescited by 1
- 2024Automata Extraction from Transformerscited by 1
- 2024Analyzing constrained LLM through PDFA-learningcited by 1
- 2024An L^* Algorithm for Deterministic Weighted Regular Languagescited by 1
- 2025RNN Generalization to Omega-Regular Languagescited by 1
- 2025Symbolic Feedforward Networks for Probabilistic Finite Automata: Exact Simulation and Learnabilitycited by 1
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequencescited by 1
50 most cited of 66 All 66 (JSON)
- 2026Probabilistic Model Checking of Autoregressive Neural Sequence Models1 Sep 2026
- 2026Learning Canonical Register Automata over Ordered Data Domains19 Aug 2026
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcripts31 Jul 2026
- 2026Can LLM Agents Infer World Models? Evidence from Agentic Automata Learning15 Jun 2026
- 2026Counterexample Guided Learning in the Large using Reasoning Agents9 Jun 2026
- 2026PrefixGuard: From LLM-Agent Traces to Online Failure-Warning Monitors7 May 2026
- 2026On the Emergence of Syntax by Means of Local Interaction20 Apr 2026
- 2026Logic-Gated Time-Shared Feedforward Networks for Alternating Finite Automata: Exact Simulation and Learnability20 Mar 2026
- 2026Finite-State Controllers for (Hidden-Model) POMDPs using Deep Reinforcement Learning9 Feb 2026
- 2026Neural Induction of Finite-State Transducers16 Jan 2026
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approach5 Oct 2025
38 more
- 2025Symbolic Feedforward Networks for Probabilistic Finite Automata: Exact Simulation and Learnability12 Sep 2025
- 2025RNN Generalization to Omega-Regular Languages2 Sep 2025
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Task14 Jul 2025
- 2025A Constructive Framework for Nondeterministic Automata via Time-Shared, Depth-Unrolled Feedforward Networks30 May 2025
- 2024Training Neural Networks as Recognizers of Formal Languages11 Nov 2024
- 2024An L^* Algorithm for Deterministic Weighted Regular Languages9 Nov 2024
- 2024Causal Abstraction in Model Interpretability: A Compact Survey26 Oct 2024
- 2024Extracting Moore Machines from Transformers using Queries and Counterexamples8 Oct 2024
- 2024Precision, Stability, and Generalization: A Comprehensive Assessment of RNNs learnability capability for Classifying Counter and Dyck Languages4 Oct 2024
- 2024DeepDFA: Automata Learning through Neural Probabilistic Relaxations16 Aug 2024
- 2024Learning Weighted Finite Automata over the Max-Plus Semiring and its Termination13 Jul 2024
- 2024Analyzing constrained LLM through PDFA-learning12 Jun 2024
- 2024Automata Extraction from Transformers8 Jun 2024
- 2024Learning Useful Representations of Recurrent Neural Network Weight Matrices18 Mar 2024
- 2024Simulating Weighted Automata over Sequences and Trees with Transformers12 Mar 2024
- 2024L^*LM: Learning Automata from Examples using Natural Language Oracles10 Feb 2024
- 2024DeepCover: Advancing RNN Test Coverage and Online Error Prediction using State Machine Extraction10 Feb 2024
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Network4 Feb 2024
- 2024Detecting Hidden Triggers: Mapping Non-Markov Reward Functions to Markov20 Jan 2024
- 2023Interpretability Illusions in the Generalization of Simplified Models6 Dec 2023
- 2023Learning Deterministic Finite Automata from Confidence Oracles18 Nov 2023
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions24 Oct 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023On the Computational Complexity and Formal Hierarchy of Second Order Recurrent Neural Networks26 Sep 2023
- 2023Latent State Models of Training Dynamics18 Aug 2023
- 2023Weighted Automata Extraction and Explanation of Recurrent Neural Networks for Natural Language Tasks24 Jun 2023
- 2023Learning Transformer Programs1 Jun 2023
- 2023MLRegTest: A Benchmark for the Machine Learning of Regular Languages16 Apr 2023
- 2023DeepSeer: Interactive RNN Explanation and Debugging via State Abstraction2 Mar 2023
- 2022State-Regularized Recurrent Neural Networks to Extract Automata and Explain Predictions10 Dec 2022
- 2022Verifying And Interpreting Neural Networks using Finite Automata2 Nov 2022
- 2022When are Local Queries Useful for Robust Learning?12 Oct 2022
- 2022ImmunoLingo: Linguistics-based formalization of the antibody language26 Sep 2022
- 2022Analyzing Robustness of Angluin's L* Algorithm in Presence of Noise21 Sep 2022
- 2022ReX: A Framework for Incorporating Temporal Information in Model-Agnostic Local Explanation Techniques8 Sep 2022
- 2022Learning Interpretable Temporal Properties from Positive Examples Only6 Sep 2022
- 2022SoK: Explainable Machine Learning for Computer Security Applications22 Aug 2022
- 2022Linguistically inspired roadmap for building biologically reliable protein language models3 Jul 2022
50 newest of 66 All 66 (JSON)
- 2023Learning Transformer Programscited by 41
- 2023Learning Transformer Programs1 Jun 2023
- 2021Thinking Like Transformerscited by 184
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2022Square One Bias in NLP: Towards a Multi-Dimensional Exploration of the Research Manifoldcited by 29
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 25
- 2021Minimum Description Length Recurrent Neural Networkscited by 24
- 2022SoK: Explainable Machine Learning for Computer Security Applicationscited by 20
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2021BDD4BNN: A BDD-based Quantitative Analysis Framework for Binarized Neural Networkscited by 17
- 2022Extracting Finite Automata from RNNs Using State Mergingcited by 17
- 2023Latent State Models of Training Dynamicscited by 16
- 2024Learning Useful Representations of Recurrent Neural Network Weight Matricescited by 15
- 2021Inferring Probabilistic Reward Machines from Non-Markovian Reward Processes for Reinforcement Learningcited by 13
12 most cited of 59 All 59 (JSON)
- 2026Probabilistic Model Checking of Autoregressive Neural Sequence Models1 Sep 2026
- 2026Learning Canonical Register Automata over Ordered Data Domains19 Aug 2026
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcripts31 Jul 2026
- 2026On the Emergence of Syntax by Means of Local Interaction20 Apr 2026
- 2026Logic-Gated Time-Shared Feedforward Networks for Alternating Finite Automata: Exact Simulation and Learnability20 Mar 2026
- 2026Neural Induction of Finite-State Transducers16 Jan 2026
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approach5 Oct 2025
- 2025Symbolic Feedforward Networks for Probabilistic Finite Automata: Exact Simulation and Learnability12 Sep 2025
- 2025RNN Generalization to Omega-Regular Languages2 Sep 2025
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Task14 Jul 2025
- 2025A Constructive Framework for Nondeterministic Automata via Time-Shared, Depth-Unrolled Feedforward Networks30 May 2025
12 newest of 59 All 59 (JSON)