Learning to Execute

Wojciech Zaremba, Ilya Sutskever
10/17/2014
601 citations
cs.NEcs.AIcs.LG

Official code: wojciechz/learning_to_execute (481 stars, Lua, Apache-2.0, last commit 2016-04-09).

Abstract

Recurrent Neural Networks (RNNs) with Long Short-Term Memory units (LSTM) are widely used because they are expressive and are easy to train. Our interest lies in empirically evaluating the expressiveness and the learnability of LSTMs in the sequence-to-sequence regime by training them to evaluate short computer programs, a domain that has traditionally been seen as too complex for neural networks.

Show full abstract

We consider a simple class of programs that can be evaluated with a single left-to-right pass using constant memory. Our main result is that LSTMs can learn to map the character-level representations of such programs to their correct outputs. Notably, it was necessary to use curriculum learning, and while conventional curriculum learning proved ineffective, we developed a new variant of curriculum learning that improved our networks' performance in all experimental conditions. The improved curriculum had a dramatic impact on an addition problem, making it possible to train an LSTM to add two 9-digit numbers with 99% accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Learning to Execute

481112LuaNov 19, 201410 years agoApache-2.0

Similar Papers

Cite this paper

@article{zaremba2014learning,
  title  = {Learning to Execute},
  author = {Wojciech Zaremba and Ilya Sutskever},
  year   = {2014},
  eprint = {1410.4615},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1410.4615}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1410.4615.svg)](https://codeofpaper.com/paper/1410.4615)

Discussion