Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subreg_deeplearning

Subregular Complexity and Deep Learning

The aim of this project is to show that the judicial use of formal language theory and grammatical inference are invaluable tools in understanding how deep neural networks can and cannot represent and learn long-term dependencies in temporal sequences. We conducted learning experiments with two types of Recurrent Neural Networks (RNNs) on six formal languages drawn from the Strictly Local (SL) and Strictly Piecewise (SP) classes. The networks were Simple RNNs (s-RNNs) and Long Short-Term Memory RNNs (LSTMs) of varying sizes. The SL and SP classes are among the simplest in a mathematically well-understood hierarchy of subregular classes. They encode local and long-term dependencies, respectively. The grammatical inference algorithm Regular Positive and Negative Inference (RPNI) provided a baseline. According to earlier research, the LSTM architecture should be capable of learning long-term dependencies and should outperform s-RNNs. The results of these experiments challenge this narrative. First, the LSTMs’ performance was generally worse in the SP experiments than in the SL ones. Second, the s-RNNs out-performed the LSTMs on the most complex SP experiment and performed comparably to them on the others.

The research paper, ”Subregular Complexity and Deep Learning”, authored by Enes Avcu (Department of Linguistics and Cognitive Science, University of Delaware, enesavc@udel.edu), Chihiro Shibata (School of Computer Science, Tokyo University of Technology, shibatachh@stf.teu.ac.jp) and Jeffrey Heinz (Department of Linguistics, Institute of Advanced Computational Science, Stony Brook University, jeffrey.heinz@stonybrook.edu), will be published online, with an ISSN, on the Centre for Linguistic Theory and Studies in Probability (CLASP) website. The current version of the paper can also be found on ArXiv (https://arxiv.org/abs/1705.05940).

Here, on this Github page, we want to share our datasets and the RNNs codes so that anyone interested in this kind of research can replicate and go beyond our research. Following this aim, we try to explain how we generated our train and test datasets, what kinds of softwares and tool kits we have used, and what are the results of this research.

Generating the Train and Test Datasets

In this study, six formal target languages (three from the SL class and three from the SP class) were defined in order for training and testing purposes. These formal languages are drawn from well-understood subclasses of the regular languages which form a complexity hierarchy. For each language, three training sets were prepared, and for each training set two test sets were prepared, for a total of 36 test sets. These target languages were implemented as finite-state machines using foma (https://code.google.com/archive/p/foma/), a publicy available, open-source platform (Hulden, 2009). In the Experimental Data folder, the code for generating training and test data can be found. We also shared the actual training and test datasets we had generated, in the same folder.

Neural Network Architectures and the RPNI

For the LSTMs and s-RNNs, we constructed simple networks to test the capability of the networks themselves. We implemented the RNNs with Chainer (http://chainer.org), and the RPNI was implemented using Matlab and the gi-toolbox https://code.google.com/archive/p/gitoolbox/ (Akram et al., 2010). In the Learning Algorithms folder, the code for LSTM, sRNN with ADAM, sRNN with SGD, and the codes we used to run RPNI can be found.

Results

Result folder contains some partial results, for more information about the results please refer to the research paper. The tables in the result html files shows the mean accuracy results on each test set, along with the standard deviation.

Citation

If you use the information on this page, you can use the following citation for attribution.

Avcu, E., Shibata, C. & Heinz, J. 2017. Subregular Complexity and Deep Learning. In Proceedings of the Conference on Logic and Machine Learning in Natural Language (LaML).

@inproceedings{subregdeep17, title={Subregular Complexity and Deep Learning}, author={Enes Avcu and Chihiro Shibata and Jeffrey Heinz}, booktitle={Proceedings of the Conference on Logic and Machine Learning in Natural Language (LaML)}, year={2017}, }

About

Subregular Complexity and Deep Learning

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages