mlsanityData to 14 Oct 2026

Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Network

arXiv 2402.02627 ↗First posted 4 Feb 2024cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

This paper analyzes two competing rule extraction methodologies: quantization and equivalence query. We trained 3600 RNN models, extracting 18000 DFA with a quantization approach (k-means and SOM) and 3600 DFA by equivalence query(L*) methods across 10 initialization seeds. We sampled the datasets from 7 Tomita and 4 Dyck grammars and trained them on 4 RNN cells: LSTM, GRU, O2RNN, and MIRNN. The observations from our experiments establish the superior performance of O2RNN and quantization-based rule extraction over others. L*, primarily proposed for regular grammars, performs similarly to quantization methods for Tomita languages when neural networks are perfectly trained. However, for partially trained RNNs, L* shows instability in the number of states in DFA, e.g., for Tomita 5 and Tomita 6 languages, L* produced more than 100 states. In contrast, quantization methods result in rules with number of states very close to ground truth DFA. Among RNN cells, O2RNN produces stable DFA consistently compared to other cells. For Dyck Languages, we observe that although GRU outperforms other RNNs in network performance, the DFA extracted by O2RNN has higher performance and better stability. The stability is computed as the standard deviation of accuracy on test sets on networks trained across 10 seeds. On Dyck Languages, quantization methods outperformed L* with better stability in accuracy and the number of states. L* often showed instability in accuracy in the order of 16% - 22% for GRU and MIRNN while deviation for quantization methods varied in 5% - 15%. In many instances with LSTM and GRU, DFA's extracted by L* even failed to beat chance accuracy (50%), while those extracted by quantization method had standard deviation in the 7%-17% range. For O2RNN, both rule extraction methods had deviation in the 0.5% - 3% range.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 22 of its 43 references that are in the map. First posted on arXiv 4 Feb 2024.

Builds on

22 of 43 references.

References · 22

  1. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  2. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,367
  3. 2022Neural Networks and the Chomsky Hierarchycited by 217
  4. 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 108
  5. 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
  6. 2020A Formal Hierarchy of RNN Architecturescited by 62
  7. 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
  8. 2020How Can Self-Attention Networks Recognize Dyck-n Languages?cited by 51
  9. 2019On Learning Meaningful Code Changes via Neural Machine Translationcited by 50
  10. 2019LSTM Networks Can Perform Dynamic Countingcited by 45
  11. 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
  12. 2020On the Linguistic Capacity of Real-Time Counter Automatacited by 17
10 more
  1. 2018Evaluating the Ability of LSTMs to Learn Context-Free Grammarscited by 16
  2. 2016On Multiplicative Integration with Recurrent Neural Networkscited by 15
  3. 2018Connecting Weighted Automata and Recurrent Neural Networks through Spectral Learningcited by 15
  4. 2020On the Ability and Limitations of Transformers to Recognize Formal Languagescited by 13
  5. 2019State-Regularized Recurrent Neural Networkscited by 11
  6. 2019The Neural State Pushdown Automatacited by 9
  7. 2023On the Computational Complexity and Formal Hierarchy of Second Order Recurrent Neural Networkscited by 8
  8. 2020A provably stable neural network Turing Machinecited by 7
  9. 2018Neural Guided Constraint Logic Programming for Program Synthesiscited by 6
  10. 2020Recognizing Long Grammatical Sequences Using Recurrent Networks Augmented With An External Differentiable Stackcited by 5

Built on by

Cited by year

Citing papers per year: 2024: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023State space models can express n-gram languages
  2. 2024Training Neural Networks as Recognizers of Formal Languages
  3. 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling
  4. 2024Quantized Approximately Orthogonal Recurrent Neural Networks
  5. 2026Neuron-Anchored Rule Extraction for Large Language Models via Contrastive Hierarchical Ablation
  6. 2024Automata Extraction from Transformers
  7. 2022Training Integer-Only Deep Recurrent Neural Networks
  8. 2023Dynamic Analysis and an Eigen Initializer for Recurrent Neural Networks