mlsanityData to 14 Oct 2026

Neural GPUs Learn Algorithms

arXiv 1511.08228 ↗First posted 25 Nov 2015cs.LG cs.NEcited by 121

Not on the map. Why?

Abstract (arXiv)

Learning an algorithm from examples is a fundamental problem that has been widely studied. Recently it has been addressed using neural networks, in particular by Neural Turing Machines (NTMs). These are fully differentiable computers that use backpropagation to learn their own programming. Despite their appeal NTMs have a weakness that is caused by their sequential nature: they are not parallel and are are hard to train due to their large depth when unfolded. We present a neural network architecture to address this problem: the Neural GPU. It is based on a type of convolutional gated recurrent unit and, like the NTM, is computationally universal. Unlike the NTM, the Neural GPU is highly parallel which makes it easier to train and efficient to run. An essential property of algorithms is their ability to handle inputs of arbitrary size. We show that the Neural GPU can be trained on short instances of an algorithmic task and successfully generalize to long instances. We verified it on a number of tasks including long addition and long multiplication of numbers represented in binary. We train the Neural GPU on numbers with upto 20 bits and observe no errors whatsoever while testing it, even on much longer numbers. To achieve these results we introduce a technique for training deep recurrent networks: parameter sharing relaxation. We also found a small amount of dropout and gradient noise to have a large positive effect on learning and generalization.

Key facts. Cited by 121 papers in the map (data through 14 Oct 2026). First posted on arXiv 25 Nov 2015.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 25; 2022: 22; 2023: 23; 2024: 16; 2025: 11; 2026: 24.

121 papers.

Sort:

By area:

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,167
  4. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
  5. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  7. 2024Diffusion for World Modeling: Visual Details Matter in Ataricited by 300
  8. 2021Combinatorial optimization and reasoning with graph neural networkscited by 268
  9. 2022Neural Networks and the Chomsky Hierarchycited by 217
  10. 2022Exploring Length Generalization in Large Language Modelscited by 206
  11. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
  12. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
38 more
  1. 2025Hierarchical Reasoning Modelcited by 177
  2. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
  3. 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 117
  4. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  5. 2022Teaching Algorithmic Reasoning via In-context Learningcited by 112
  6. 2022The CLRS Algorithmic Reasoning Benchmarkcited by 106
  7. 2021Neural Algorithmic Reasoningcited by 94
  8. 2021Gradients are Not All You Needcited by 86
  9. 2021Sparse is Enough in Scaling Transformerscited by 86
  10. 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
  11. 2023Length Generalization in Arithmetic Transformerscited by 66
  12. 2021Linear algebra with transformerscited by 63
  13. 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
  14. 2022Deep Symbolic Regression for Recurrent Sequencescited by 54
  15. 2021Inductive logic programming at 30cited by 47
  16. 2022Relational Attention: Generalizing Transformers for Graph-Structured Taskscited by 41
  17. 2024Learning Iterative Reasoning through Energy Diffusioncited by 36
  18. 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 35
  19. 2023Code Execution with Pre-trained Language Modelscited by 34
  20. 2022End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinkingcited by 33
  21. 2023Learning the greatest common divisor: explaining transformer predictionscited by 33
  22. 2022Learning Iterative Reasoning through Energy Minimizationcited by 32
  23. 2023Sparse Universal Transformercited by 32
  24. 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Taskscited by 30
  25. 2024Simulation of Graph Algorithms with Looped Transformerscited by 30
  26. 2022SALSA: Attacking Lattice Cryptography with Transformerscited by 28
  27. 2026Fixed-Point Reasoners: Stable and Adaptive Deep Looped Transformerscited by 28
  28. 2024Universal Length Generalization with Turing Programscited by 25
  29. 2021How to transfer algorithmic reasoning knowledge to learn new algorithms?cited by 22
  30. 2023Generative learning for nonlinear dynamicscited by 22
  31. 2021ProTo: Program-Guided Transformer for Program-Guided Taskscited by 21
  32. 2022HyperNCA: Growing Developmental Networks with Neural Cellular Automatacited by 18
  33. 2023Can neural networks do arithmetic? A survey on the elementary numerical skills of state-of-the-art deep learning modelscited by 18
  34. 2021Pretrained Language Models are Symbolic Mathematics Solvers too!cited by 17
  35. 2022Neural Approximation of Graph Topological Featurescited by 17
  36. 2023Neural Algorithmic Reasoning Without Intermediate Supervisioncited by 17
  37. 2023Traveling Waves Encode the Recent Past and Enhance Sequence Learningcited by 16
  38. 2021CLVSA: A Convolutional LSTM Based Variational Sequence-to-Sequence Model with Attention for Predicting Trends of Financial Marketscited by 15

50 most cited of 121 All 121 (JSON)