Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spaces
Takamasa Okudono, Masaki Waga, Taro Sekiyama, Ichiro Hasuo
Abstract
We present a method to extract a weighted finite automaton (WFA) from a recurrent neural network (RNN). Our method is based on the WFA learning algorithm by Balle and Mohri, which is in turn an extension of Angluin's classic L * algorithm. Our technical novelty is in the use of regression methods for the so-called equivalence queries, thus exploiting the internal state space of an RNN to prioritize counterexample candidates. This way we achieve a quantitative/weighted extension of the recent work by Weiss, Goldberg and Yahav that extracts DFAs. We experimentally evaluate the accuracy, expressivity and efficiency of the extracted WFAs.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- NADA: Neural Acceptance-Driven Approximate Specification Mining cites Decision-Guided Weighted Automata Extraction from Recurrent Neural Networks
- RNNRepair: Automatic RNN Repair via Model-based Analysis cites Decision-Guided Weighted Automata Extraction from Recurrent Neural Networks
- DeepSeer: Interactive RNN Explanation and Debugging via State Abstraction cites RNNRepair: Automatic RNN Repair via Model-based Analysis
Cited by top-tier papers6
- Decision-Guided Weighted Automata Extraction from Recurrent Neural NetworksXiyue Zhang, Xiaoning Du, Xiaofei Xie, Lei Ma et al.AAAI 2021 · 25 citations
- RNNRepair: Automatic RNN Repair via Model-based AnalysisXiaofei Xie, Wenbo Guo, Lei Ma, Wei Le et al.ICML 2021 · 21 citations
- On the Tractability of SHAP Explanations under Markovian DistributionsReda Marzouk, Colin de la HigueraICML 2024 · 13 citations
- DeepSeer: Interactive RNN Explanation and Debugging via State AbstractionZhijie Wang, Yuheng Huang, Da Song, Lei Ma et al.CHI 2023 · 7 citations
- NADA: Neural Acceptance-Driven Approximate Specification MiningWeilin Luo, Tingchen Han, Junming Qiu, Hai Wan et al.ISSTA 2025 · 1 citation
Related papers
- AdaAX: Explaining Recurrent Neural Networks by Learning Automata with Adaptive StatesDat Hong, Alberto Maria Segre, Tong WangKDD 2022 · 3 citations
- Learning Useful Representations of Recurrent Neural Network Weight MatricesVincent Herrmann, Francesco Faccio, Jürgen SchmidhuberICML 2024 · 12 citations
- Active Learning of Symbolic Automata over Rational NumbersSebastián Hagedorn Gaete, Martín Muñoz, Cristian Riveros, Rodrigo Toro IcarteAAAI 2026
- Recurrent Neural Language Models as Probabilistic Finite-state AutomataAnej Svete, Ryan CotterellEMNLP 2023 · 1 citation
- SMT-Based Active Learning of Weighted AutomataTiago Ferreira, Kevin Batz, Alexandra SilvaCAV 2026
