Decision-Guided Weighted Automata Extraction from Recurrent Neural Networks
Xiyue Zhang, Xiaoning Du, Xiaofei Xie, Lei Ma, Yang Liu, Meng Sun
Abstract
Recurrent Neural Networks (RNNs) have demonstrated their effectiveness in learning and processing sequential data (e.g., speech and natural language). However, due to the black-box nature of neural networks, understanding the decision logic of RNNs is quite challenging. Some recent progress has been made to approximate the behavior of an RNN by weighted automata. They provide better interpretability, but still suffer from poor scalability. In this paper, we propose a novel approach to extracting weighted automata with the guidance of a target RNN's decision and context information. In particular, we identify the patterns of RNN's step-wise predictive decisions to instruct the formation of automata states. Further, we propose a state composition method to enhance the context-awareness of the extracted model. Our in-depth evaluations on typical RNN tasks, including language model and classification, demonstrate the effectiveness and advantage of our method over the state-of-the-arts. The evaluation results show that our method can achieve accurate approximation of an RNN even on large-scale tasks.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a7b1df9b-b7b2-4eab-aa7d-c3936b9888a6Cited by top-tier papers4
- RNNRepair: Automatic RNN Repair via Model-based AnalysisXiaofei Xie, Wenbo Guo, Lei Ma, Wei Le et al.ICML 2021 · 21 citations
- DeepMemory: Model-based Memorization Analysis of Deep Neural Language ModelsDerui Zhu, Jinfu Chen, Weiyi Shang, Xuebing Zhou et al.ASE 2021 · 9 citations
- NADA: Neural Acceptance-Driven Approximate Specification MiningWeilin Luo, Tingchen Han, Junming Qiu, Hai Wan et al.ISSTA 2025 · 1 citation
- ReGA: Model-Based Safeguard for LLMs via Representation-Guided AbstractionZeming Wei, Chengcan Wu, Meng SunFSE 2026
Builds on2
- Weighted Automata Extraction from Recurrent Neural Networks via Regression on State SpacesTakamasa Okudono, Masaki Waga, Taro Sekiyama, Ichiro HasuoAAAI 2020 · 44 citations
- Towards Interpreting Recurrent Neural Networks through Probabilistic AbstractionGuoliang Dong, Jingyi Wang, Jun Sun, Yang Zhang et al.ASE 2020 · 15 citations
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
- Recurrent Neural Language Models as Probabilistic Finite-state AutomataAnej Svete, Ryan CotterellEMNLP 2023 · 1 citation
- Learning and Generalization in RNNsAbhishek Panigrahi, Navin GoyalNeurIPS 2021 · 3 citations
- On the Representational Capacity of Recurrent Neural Language ModelsFranz Nowak, Anej Svete, Li Du, Ryan CotterellEMNLP 2023
