Extensions and Limitations of the Neural GPU

Eric Price, Wojciech Zaremba, Ilya Sutskever
11/2/2016
26 citations
cs.NEcs.AI

Official code: openai/neural-gpu (144 stars, Python, last commit 2018-11-22).

Abstract

The Neural GPU is a recent model that can learn algorithms such as multi-digit binary addition and binary multiplication in a way that generalizes to inputs of arbitrary length. We show that there are two simple ways of improving the performance of the Neural GPU: by carefully designing a curriculum, and by increasing model size.

Show full abstract

The latter requires a memory efficient implementation, as a naive implementation of the Neural GPU is memory intensive. We find that these techniques increase the set of algorithmic problems that can be solved by the Neural GPU: we have been able to learn to perform all the arithmetic operations (and generalize to arbitrarily long numbers) when the arguments are given in the decimal representation (which, surprisingly, has not been possible before). We have also been able to train the Neural GPU to evaluate long arithmetic expressions with multiple operands that require respecting the precedence order of the operands, although these have succeeded only in their binary representation, and not with perfect accuracy. In addition, we gain insight into the Neural GPU by investigating its failure modes. We find that Neural GPUs that correctly generalize to arbitrarily long numbers still fail to compute the correct answer on highly-symmetric, atypical inputs: for example, a Neural GPU that achieves near-perfect generalization on decimal multiplication of up to 100-digit long numbers can fail on $000000\dots002 \times 000000\dots002$ while succeeding at $2 \times 2$. These failure modes are reminiscent of adversarial examples.

View on arXivView PDF

Code Implementations(1)

openai/neural-gpuOfficial100%

Code for the Neural GPU model originally described in "Neural GPUs Learn Algorithms"

14473PythonJul 6, 20168 years ago
paper

Similar Papers

Cite this paper

@article{price2016extensions,
  title  = {Extensions and Limitations of the Neural GPU},
  author = {Eric Price and Wojciech Zaremba and Ilya Sutskever},
  year   = {2016},
  eprint = {1611.00736},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1611.00736}
}

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/1611.00736.svg)](https://codeofpaper.com/paper/1611.00736)

Discussion