mlsanityData to 7 Oct 2026

Weighted Automata Extraction and Explanation of Recurrent Neural Networks for Natural Language Tasks

arXiv 2306.14040 ↗First posted 24 Jun 2023cs.CL cs.LGcited by 7

Not on the map. Why?

Abstract (arXiv)

Recurrent Neural Networks (RNNs) have achieved tremendous success in processing sequential data, yet understanding and analyzing their behaviours remains a significant challenge. To this end, many efforts have been made to extract finite automata from RNNs, which are more amenable for analysis and explanation. However, existing approaches like exact learning and compositional approaches for model extraction have limitations in either scalability or precision. In this paper, we propose a novel framework of Weighted Finite Automata (WFA) extraction and explanation to tackle the limitations for natural language tasks. First, to address the transition sparsity and context loss problems we identified in WFA extraction for natural language tasks, we propose an empirical method to complement missing rules in the transition diagram, and adjust transition matrices to enhance the context-awareness of the WFA. We also propose two data augmentation tactics to track more dynamic behaviours of RNN, which further allows us to improve the extraction precision. Based on the extracted model, we propose an explanation method for RNNs including a word embedding method -- Transition Matrix Embeddings (TME) and TME-based task oriented explanation for the target RNN. Our evaluation demonstrates the advantage of our method in extraction precision than existing approaches, and the effectiveness of TME-based explanation method in applications to pretraining and adversarial example generation.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 11 of its 36 references that are in the map. First posted on arXiv 24 Jun 2023.

Builds on

11 of 36 references.

References · 11

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  3. 2016Recurrent Neural Networks for Multivariate Time Series with Missing Valuescited by 548
  4. 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
  5. 2019Learning Deterministic Weighted Automata with Queries and Counterexamplescited by 22
  6. 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
  7. 2019Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spacescited by 20
  8. 2018Learning with Interpretable Structure from Gated RNNcited by 13
  9. 2016Increasing the Interpretability of Recurrent Neural Networks Using Hidden Markov Modelscited by 9
  10. 2018Verification of Recurrent Neural Networks Through Rule Extractioncited by 4
  11. 2018An interpretable LSTM neural network for autoregressive exogenous modelcited by 3

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 4; 2025: 1.

7 papers.