Extracting Finite Automata from RNNs Using State Merging
Not on the map. Why?
Abstract (arXiv)
One way to interpret the behavior of a blackbox recurrent neural network (RNN) is to extract from it a more interpretable discrete computational model, like a finite state machine, that captures its behavior. In this work, we propose a new method for extracting finite automata from RNNs inspired by the state merging paradigm from grammatical inference. We demonstrate the effectiveness of our method on the Tomita languages benchmark, where we find that it is able to extract faithful automata from RNNs trained on all languages in the benchmark. We find that extraction performance is aided by the number of data provided during the extraction process, as well as, curiously, whether the RNN model is trained for additional epochs after perfectly learning its target language. We use our method to analyze this phenomenon, finding that training beyond convergence is useful because it leads to compression of the internal state space of the RNN. This finding demonstrates how our method can be used for interpretability and analysis of trained RNN models.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 11 of its 27 references that are in the map. First posted on arXiv 28 Jan 2022.
Builds on
11 of 27 references.
References · 11
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2017Opening the Black Box of Deep Neural Networks via Informationcited by 494
- 2015Visualizing and Understanding Recurrent Networkscited by 158
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
- 2020A Formal Hierarchy of RNN Architecturescited by 61
- 2019Sequential Neural Networks as Automatacited by 54
- 2020Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descentcited by 40
- 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
- 2021Extracting Weighted Automata for Approximate Minimization in Language Modellingcited by 3
Built on by
Citing papers per year: 2022: 1; 2023: 4; 2024: 7; 2025: 5.
17 papers.
Sort:
By area:
- 2024Transformers Can Represent n-gram Language Modelscited by 31
- 2022Grokking phase transitions in learning local rules with gradient descentcited by 28
- 2024On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoningcited by 26
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 24
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languagescited by 20
- 2024DeepDFA: Automata Learning through Neural Probabilistic Relaxationscited by 8
- 2023Recurrent Neural Language Models as Probabilistic Finite-state Automatacited by 6
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2024Simulating Weighted Automata over Sequences and Trees with Transformerscited by 4
- 2024Lower Bounds on the Expressivity of Recurrent Neural Language Modelscited by 4
- 2025Critical Thinking: Which Kinds of Complexity Govern Optimal Reasoning Length?cited by 4
- 2024On Efficiently Representing Regular Languages as RNNscited by 1
5 more
- 2025RNN Generalization to Omega-Regular Languagescited by 1
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequencescited by 1
- 2023On the Relationship Between RNN Hidden State Vectors and Semantic Ground Truthcited by 0
- 2025Learning Model Successorscited by 0
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Taskcited by 0
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2025RNN Generalization to Omega-Regular Languages2 Sep 2025
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Task14 Jul 2025
- 2025Critical Thinking: Which Kinds of Complexity Govern Optimal Reasoning Length?2 Apr 2025
- 2025Learning Model Successors31 Jan 2025
- 2024DeepDFA: Automata Learning through Neural Probabilistic Relaxations16 Aug 2024
- 2024On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoning20 Jun 2024
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languages6 Jun 2024
- 2024Lower Bounds on the Expressivity of Recurrent Neural Language Models29 May 2024
- 2024Transformers Can Represent n-gram Language Models23 Apr 2024
- 2024Simulating Weighted Automata over Sequences and Trees with Transformers12 Mar 2024
- 2024On Efficiently Representing Regular Languages as RNNs24 Feb 2024
5 more
- 2023Interpretability Illusions in the Generalization of Simplified Models6 Dec 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Recurrent Neural Language Models as Probabilistic Finite-state Automata8 Oct 2023
- 2023On the Relationship Between RNN Hidden State Vectors and Semantic Ground Truth29 Jun 2023
- 2022Grokking phase transitions in learning local rules with gradient descent26 Oct 2022
- 2024Transformers Can Represent n-gram Language Modelscited by 31
- 2022Grokking phase transitions in learning local rules with gradient descentcited by 28
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 24
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languagescited by 20
- 2024DeepDFA: Automata Learning through Neural Probabilistic Relaxationscited by 8
- 2023Recurrent Neural Language Models as Probabilistic Finite-state Automatacited by 6
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2024Simulating Weighted Automata over Sequences and Trees with Transformerscited by 4
- 2024Lower Bounds on the Expressivity of Recurrent Neural Language Modelscited by 4
- 2024On Efficiently Representing Regular Languages as RNNscited by 1
- 2025RNN Generalization to Omega-Regular Languagescited by 1
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequencescited by 1
12 most cited of 15 All 15 (JSON)
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2025RNN Generalization to Omega-Regular Languages2 Sep 2025
- 2025Algorithm Development in Neural Networks: Insights from the Streaming Parity Task14 Jul 2025
- 2025Learning Model Successors31 Jan 2025
- 2024DeepDFA: Automata Learning through Neural Probabilistic Relaxations16 Aug 2024
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languages6 Jun 2024
- 2024Lower Bounds on the Expressivity of Recurrent Neural Language Models29 May 2024
- 2024Transformers Can Represent n-gram Language Models23 Apr 2024
- 2024Simulating Weighted Automata over Sequences and Trees with Transformers12 Mar 2024
- 2024On Efficiently Representing Regular Languages as RNNs24 Feb 2024
- 2023Interpretability Illusions in the Generalization of Simplified Models6 Dec 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
12 newest of 15 All 15 (JSON)