Extracting and Learning an Unknown Grammar with Recurrent Neural Networks

Neural Information Processing Systems 

Simple secood-order recurrent netwoIts are shown to readily learn sman brown regular grammars when trained with positive and negative strings examples. We show that similar methods are appropriate for learning unknown grammars from examples of their strings. TIle training algorithm is an incremental real-time, re(cid:173) current learning (RTRL) method that computes the complete gradient and updates the weights at the end of each string. For many cases the extracted grammar outperforms the neural net from which it was extracted in correctly classifying unseen strings.