Skip to content (access key 's')
Logo of Technion
Logo of CS Department
Logo of CS4People
Events

The Taub Faculty of Computer Science Events and Talks

Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamples
event speaker icon
Gail Weiss (M.Sc. Thesis Seminar)
event date icon
Thursday, 04.01.2018, 12:30
event location icon
Taub 601
event speaker icon
Advisor: Prof. E. Yahav
We address the problem of extracting an automaton from a trained recurrent neural network (RNN). We present a novel algorithm that uses exact learning and abstract interpretation to perform efficient extraction of a minimal automaton describing the state dynamics of a given RNN. We use Angluin's L* algorithm as a learner and the given RNN as an oracle, employing abstract interpretation of the RNN for answering equivalence queries. Our technique allows automaton-extraction from the RNN while avoiding state explosion, even when the state vectors are large and fine differentiation is required between RNN states. We experiment with automaton extraction from multi-layer GRU and LSTM based RNNs, with state-vector dimensions and underlying automata and alphabet sizes which are significantly larger than in previous automaton-extraction work. In some cases, the underlying target language can be described with a succinct automaton, yet the extracted automaton is large and complex. These are cases in which the RNN has failed to learn the intended generalization, and our extraction procedure highlights words which are misclassified by the seemingly "perfect" RNN.