Extracting Weighted Finite Automata from Recurrent Neural Networks for Natural Languages
Not on the map. Why?
Abstract (arXiv)
Recurrent Neural Networks (RNNs) have achieved tremendous success in sequential data processing. However, it is quite challenging to interpret and verify RNNs' behaviors directly. To this end, many efforts have been made to extract finite automata from RNNs. Existing approaches such as exact learning are effective in extracting finite-state models to characterize the state dynamics of RNNs for formal languages, but are limited in the scalability to process natural languages. Compositional approaches that are scablable to natural languages fall short in extraction precision. In this paper, we identify the transition sparsity problem that heavily impacts the extraction precision. To address this problem, we propose a transition rule extraction approach, which is scalable to natural language processing models and effective in improving extraction precision. Specifically, we propose an empirical method to complement the missing rules in the transition diagram. In addition, we further adjust the transition matrices to enhance the context-aware ability of the extracted weighted finite automaton (WFA). Finally, we propose two data augmentation tactics to track more dynamic behaviors of the target RNN. Experiments on two popular natural language datasets show that our method can extract WFA from RNN for natural language processing with better precision than existing approaches. Our code is available at https://github.com/weizeming/Extract_WFA_from_RNN_for_NL.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 9 of its 34 references that are in the map. First posted on arXiv 27 Jun 2022.
Builds on
9 of 34 references.
References · 9
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2016Recurrent Neural Networks for Multivariate Time Series with Missing Valuescited by 548
- 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 262
- 2017Deep Learning for Medical Image Processing: Overview, Challenges and Futurecited by 104
- 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
- 2019Learning Deterministic Weighted Automata with Queries and Counterexamplescited by 22
- 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
- 2019Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spacescited by 20
- 2018Verification of Recurrent Neural Networks Through Rule Extractioncited by 4
Built on by
Citing papers per year: 2023: 4; 2024: 2; 2025: 3; 2026: 1.
10 papers.
- 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscapecited by 18
- 2023Using Z3 for Formal Modeling and Verification of FNN Global Robustnesscited by 5
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2023Enhancing Adversarial Attacks: The Similar Target Methodcited by 1
- 2024Automata Extraction from Transformerscited by 1
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstractioncited 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
- 2026Warm Starting State-Space Models with Automata Learningcited by 1
- 2024DeepCover: Advancing RNN Test Coverage and Online Error Prediction using State Machine Extractioncited by 0
- 2026Warm Starting State-Space Models with Automata Learning5 Mar 2026
- 2025Extracting Robust Register Automata from Neural Networks over Data Sequences24 Nov 2025
- 2025Symbolic Feedforward Networks for Probabilistic Finite Automata: Exact Simulation and Learnability12 Sep 2025
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2024Automata Extraction from Transformers8 Jun 2024
- 2024DeepCover: Advancing RNN Test Coverage and Online Error Prediction using State Machine Extraction10 Feb 2024
- 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscape18 Dec 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Enhancing Adversarial Attacks: The Similar Target Method21 Aug 2023
- 2023Using Z3 for Formal Modeling and Verification of FNN Global Robustness20 Apr 2023