[Paper Review] Learning with Interpretable Structure from Gated RNN
This paper proposes learning interpretable Finite State Automata (FSA) from gated RNNs using clustering-based methods to enhance model transparency. By extracting FSA structures from MGU, GRU, and LSTM models, the authors demonstrate that the resulting FSA can mimic the RNN's performance while offering full human-simulatable decision paths, revealing semantic patterns in text classification and suggesting that fewer gates improve RNN performance.
The interpretability of deep learning models has raised extended attention these years. It will be beneficial if we can learn an interpretable structure from deep learning models. In this paper, we focus on Recurrent Neural Networks~(RNNs) especially gated RNNs whose inner mechanism is still not clearly understood. We find that Finite State Automaton~(FSA) that processes sequential data has more interpretable inner mechanism according to the definition of interpretability and can be learned from RNNs as the interpretable structure. We propose two methods to learn FSA from RNN based on two different clustering methods. With the learned FSA and via experiments on artificial and real datasets, we find that FSA is more trustable than the RNN from which it learned, which gives FSA a chance to substitute RNNs in applications involving humans' lives or dangerous facilities. Besides, we analyze how the number of gates affects the performance of RNN. Our result suggests that gate in RNN is important but the less the better, which could be a guidance to design other RNNs. Finally, we observe that the FSA learned from RNN gives semantic aggregated states and its transition graph shows us a very interesting vision of how RNNs intrinsically handle text classification tasks.
Motivation & Objective
- To improve interpretability of gated RNNs, which remain opaque despite widespread use in critical applications.
- To investigate whether Finite State Automata (FSA), known for their human-simulatable behavior, can be learned from RNN hidden states as an interpretable surrogate.
- To analyze how the number of gates in RNNs affects performance and whether simpler architectures (e.g., one-gate MGU) are more effective.
- To reveal the intrinsic semantic structure of RNNs by visualizing FSA transition graphs and state semantics.
- To explore the feasibility of using interpretable models like FSA to replace or explain complex deep learning models in safety-critical domains.
Proposed method
- Apply k-means and spectral clustering to group hidden states of gated RNNs into discrete states, forming an FSA structure.
- Construct FSA transition rules based on state transitions observed during inference on training sequences.
- Use majority voting across multiple FSA models trained from the same RNN to improve robustness and performance.
- Train and evaluate the FSA on sentiment classification tasks to compare its performance against the original RNN.
- Analyze the semantic meaning of FSA transitions by identifying words that trigger state changes, especially from State 0 to State 1.
- Compare FSA performance across different RNN types (MGU, GRU, LSTM, SRN) to assess generalization and gate impact.
Experimental results
Research questions
- RQ1Can interpretable Finite State Automata (FSA) be effectively learned from the hidden states of gated RNNs?
- RQ2How well can the learned FSA replicate the classification performance of the original RNN?
- RQ3What is the semantic interpretation of FSA states and transitions, particularly in terms of positive and negative sentiment words?
- RQ4How does the number of gates in an RNN affect its performance and the quality of the learned FSA?
- RQ5Can FSA serve as a trustworthy, human-simulatable alternative to RNNs in safety-critical applications?
Key findings
- The FSA learned from MGU achieved competitive performance, outperforming other RNN-derived FSAs, especially in LISOR-x settings.
- Ensemble methods combining multiple FSAs improved performance over single FSAs, with LISOR-x showing consistent gains across RNN types.
- Transitions from State 0 to State 1 in the FSA were found to be triggered by positive sentiment words (e.g., 'wonderful', 'spectacular') when the FSA was learned from MGU.
- Negative sentiment words (e.g., 'dullest', 'confusing') were associated with transitions to rejecting states, indicating semantic clustering in the FSA.
- Multiple FSAs revealed complementary semantic coverage, where individual FSAs captured only partial sentiment lexicons, but ensembles captured broader meaning.
- The study found that gate count in RNNs is crucial—fewer gates (e.g., MGU with one gate) led to better performance, suggesting minimal gate design is preferable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.