Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spaces
Not on the map. Why?
Abstract (arXiv)
We present a method to extract a weighted finite automaton (WFA) from a recurrent neural network (RNN). Our algorithm is based on the WFA learning algorithm by Balle and Mohri, which is in turn an extension of Angluin's classic lstar 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.
Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 4; 2024: 8; 2025: 1; 2026: 3.
21 papers.
Sort:
- 2023Formally Explaining Neural Networks within Reactive Systemscited by 24
- 2023Verifying Generalization in Deep Learningcited by 11
- 2022Extracting Weighted Finite Automata from Recurrent Neural Networks for Natural Languagescited by 10
- 2024On the Tractability of SHAP Explanations under Markovian Distributionscited by 10
- 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
- 2024Simulating Weighted Automata over Sequences and Trees with Transformerscited by 4
- 2021Extracting Weighted Automata for Approximate Minimization in Language Modellingcited by 3
- 2024Verifying the Generalization of Deep Learning to Out-of-Distribution Domainscited by 2
- 2022Extracting Rules from Neural Networks with Partial Interpretationscited by 1
- 2022When are Local Queries Useful for Robust Learning?cited by 1
- 2024Automata Extraction from Transformerscited by 1
9 more
- 2024An L^* Algorithm for Deterministic Weighted Regular Languagescited by 1
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequencescited by 1
- 2026Warm Starting State-Space Models with Automata Learningcited by 1
- 2021A Passive Online Technique for Learning Hybrid Automata from Input/Output Tracescited by 0
- 2024DeepCover: Advancing RNN Test Coverage and Online Error Prediction using State Machine Extractioncited by 0
- 2024PDFA Distillation via String Probability Queriescited by 0
- 2024Learning Weighted Finite Automata over the Max-Plus Semiring and its Terminationcited by 0
- 2026Synthesis and Verification of Transformer Programs (Technical Report)cited by 0
- 2026From Transformers to Weighted Automata: Towards the Verification of Large Language Modelscited by 0
- 2026From Transformers to Weighted Automata: Towards the Verification of Large Language Models3 Oct 2026
- 2026Warm Starting State-Space Models with Automata Learning5 Mar 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2024An L^* Algorithm for Deterministic Weighted Regular Languages9 Nov 2024
- 2024Learning Weighted Finite Automata over the Max-Plus Semiring and its Termination13 Jul 2024
- 2024PDFA Distillation via String Probability Queries26 Jun 2024
- 2024Automata Extraction from Transformers8 Jun 2024
- 2024Verifying the Generalization of Deep Learning to Out-of-Distribution Domains4 Jun 2024
- 2024On the Tractability of SHAP Explanations under Markovian Distributions5 May 2024
- 2024Simulating Weighted Automata over Sequences and Trees with Transformers12 Mar 2024
- 2024DeepCover: Advancing RNN Test Coverage and Online Error Prediction using State Machine Extraction10 Feb 2024
9 more
- 2023Formally Explaining Neural Networks within Reactive Systems31 Jul 2023
- 2023Weighted Automata Extraction and Explanation of Recurrent Neural Networks for Natural Language Tasks24 Jun 2023
- 2023DeepSeer: Interactive RNN Explanation and Debugging via State Abstraction2 Mar 2023
- 2023Verifying Generalization in Deep Learning11 Feb 2023
- 2022When are Local Queries Useful for Robust Learning?12 Oct 2022
- 2022Extracting Weighted Finite Automata from Recurrent Neural Networks for Natural Languages27 Jun 2022
- 2022Extracting Rules from Neural Networks with Partial Interpretations1 Apr 2022
- 2021Extracting Weighted Automata for Approximate Minimization in Language Modelling5 Jun 2021
- 2021A Passive Online Technique for Learning Hybrid Automata from Input/Output Traces18 Jan 2021
- 2023Formally Explaining Neural Networks within Reactive Systemscited by 24
- 2023Verifying Generalization in Deep Learningcited by 11
- 2022Extracting Weighted Finite Automata from Recurrent Neural Networks for Natural Languagescited by 10
- 2024On the Tractability of SHAP Explanations under Markovian Distributionscited by 10
- 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
- 2024Simulating Weighted Automata over Sequences and Trees with Transformerscited by 4
- 2021Extracting Weighted Automata for Approximate Minimization in Language Modellingcited by 3
- 2024Verifying the Generalization of Deep Learning to Out-of-Distribution Domainscited by 2
- 2022Extracting Rules from Neural Networks with Partial Interpretationscited by 1
- 2022When are Local Queries Useful for Robust Learning?cited by 1
- 2024Automata Extraction from Transformerscited by 1
12 most cited of 21 All 21 (JSON)
- 2026From Transformers to Weighted Automata: Towards the Verification of Large Language Models3 Oct 2026
- 2026Warm Starting State-Space Models with Automata Learning5 Mar 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2024An L^* Algorithm for Deterministic Weighted Regular Languages9 Nov 2024
- 2024Learning Weighted Finite Automata over the Max-Plus Semiring and its Termination13 Jul 2024
- 2024PDFA Distillation via String Probability Queries26 Jun 2024
- 2024Automata Extraction from Transformers8 Jun 2024
- 2024Verifying the Generalization of Deep Learning to Out-of-Distribution Domains4 Jun 2024
- 2024On the Tractability of SHAP Explanations under Markovian Distributions5 May 2024
- 2024Simulating Weighted Automata over Sequences and Trees with Transformers12 Mar 2024
- 2024DeepCover: Advancing RNN Test Coverage and Online Error Prediction using State Machine Extraction10 Feb 2024
12 newest of 21 All 21 (JSON)