Extensions and Limitations of the Neural GPU
Not on the map. Why?
Abstract (arXiv)
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. 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 000000dots002 × 000000dots002 while succeeding at 2 × 2. These failure modes are reminiscent of adversarial examples.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 2 Nov 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 1; 2025: 1.
7 papers.
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2023Counting and Algorithmic Generalization with Transformerscited by 11
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Modelscited by 10
- 2022Transformers discover an elementary calculation system exploiting local attention and grid-like problem representationcited by 7
- 2024NeuralSolver: Learning Algorithms For Consistent and Efficient Extrapolation Across General Taskscited by 1
- 2025Exact Learning of Arithmetic with Differentiable Agentscited by 1
- 2025Exact Learning of Arithmetic with Differentiable Agents27 Nov 2025
- 2024NeuralSolver: Learning Algorithms For Consistent and Efficient Extrapolation Across General Tasks23 Feb 2024
- 2023Counting and Algorithmic Generalization with Transformers12 Oct 2023
- 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Models24 Aug 2022
- 2022Transformers discover an elementary calculation system exploiting local attention and grid-like problem representation6 Jul 2022
- 2022Neural Networks and the Chomsky Hierarchy5 Jul 2022
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Tasks25 Feb 2021