mlsanityData to 7 Oct 2026

Extracting Finite Automata from RNNs Using State Merging

arXiv 2201.12451 ↗First posted 28 Jan 2022cs.LGcited by 17

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

  1. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
  2. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  3. 2017Opening the Black Box of Deep Neural Networks via Informationcited by 494
  4. 2015Visualizing and Understanding Recurrent Networkscited by 158
  5. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  6. 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
  7. 2020A Formal Hierarchy of RNN Architecturescited by 61
  8. 2019Sequential Neural Networks as Automatacited by 54
  9. 2020Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descentcited by 40
  10. 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
  11. 2021Extracting Weighted Automata for Approximate Minimization in Language Modellingcited by 3

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 4; 2024: 7; 2025: 5.

17 papers.

Sort:

By area: