Lune

AAAI2021Top-tier venue

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 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.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • NADA: Neural Acceptance-Driven Approximate Specification Mining cites Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spaces
  • RNNRepair: Automatic RNN Repair via Model-based Analysis cites Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spaces
  • ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction cites RNNRepair: Automatic RNN Repair via Model-based Analysis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. RNNRepair: Automatic RNN Repair via Model-based AnalysisXiaofei Xie, Wenbo Guo, Lei Ma, Wei Le et al.ICML 2021 · 21 citations
  2. DeepMemory: Model-based Memorization Analysis of Deep Neural Language ModelsDerui Zhu, Jinfu Chen, Weiyi Shang, Xuebing Zhou et al.ASE 2021 · 9 citations
  3. NADA: Neural Acceptance-Driven Approximate Specification MiningWeilin Luo, Tingchen Han, Junming Qiu, Hai Wan et al.ISSTA 2025 · 1 citation
  4. ReGA: Model-Based Safeguard for LLMs via Representation-Guided AbstractionZeming Wei, Chengcan Wu, Meng SunFSE 2026

Builds on2

  1. Weighted Automata Extraction from Recurrent Neural Networks via Regression on State SpacesTakamasa Okudono, Masaki Waga, Taro Sekiyama, Ichiro HasuoAAAI 2020 · 44 citations
  2. Towards Interpreting Recurrent Neural Networks through Probabilistic AbstractionGuoliang Dong, Jingyi Wang, Jun Sun, Yang Zhang et al.ASE 2020 · 15 citations

Related papers

  1. AdaAX: Explaining Recurrent Neural Networks by Learning Automata with Adaptive StatesDat Hong, Alberto Maria Segre, Tong WangKDD 2022 · 3 citations
  2. Learning Useful Representations of Recurrent Neural Network Weight MatricesVincent Herrmann, Francesco Faccio, Jürgen SchmidhuberICML 2024 · 12 citations
  3. Recurrent Neural Language Models as Probabilistic Finite-state AutomataAnej Svete, Ryan CotterellEMNLP 2023 · 1 citation
  4. On the Relationship Between RNN Hidden-State Vectors and Semantic StructuresEdi Muskardin, Martin Tappler, Ingo Pill, Bernhard K. Aichernig et al.ACL Findings 2024 · 1 citation
  5. On Efficiently Representing Regular Languages as RNNsAnej Svete, Robin Chan, Ryan CotterellACL Findings 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines