Strong Generalization and Efficiency in Neural Programs
Not on the map. Why?
Abstract (arXiv)
We study the problem of learning efficient algorithms that strongly generalize in the framework of neural program induction. By carefully designing the input / output interfaces of the neural model and through imitation, we are able to learn models that produce correct results for arbitrary input sizes, achieving strong generalization. Moreover, by using reinforcement learning, we optimize for program efficiency metrics, and discover new algorithms that surpass the teacher used in imitation. With this, our approach can learn to outperform custom-written solutions for a variety of problems, as we tested it on sorting, searching in ordered lists and the NP-complete 0/1 knapsack problem, which sets a notable milestone in the field of Neural Program Induction. As highlights, our learned model can perform sorting perfectly on any input data size we tested on, with O(n log n) complexity, whilst outperforming hand-coded algorithms, including quick sort, in number of operations even for list sizes far beyond those seen during training.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 7 Jul 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 3; 2023: 2; 2024: 2; 2025: 1.
12 papers.
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
- 2021Combinatorial optimization and reasoning with graph neural networkscited by 268
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 106
- 2021Neural Algorithmic Reasoningcited by 94
- 2021Neural Production Systems: Learning Rule-Governed Visual Dynamicscited by 75
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Taskscited by 30
- 2022Neural Set Function Extensions: Learning with Discrete Functions in High Dimensionscited by 14
- 2024PUZZLES: A Benchmark for Neural Algorithmic Reasoningcited by 13
- 2023Recursive Algorithmic Reasoningcited by 9
- 2023Infusing Lattice Symmetry Priors in Attention Mechanisms for Sample-Efficient Abstract Geometric Reasoningcited by 4
- 2024Open-Book Neural Algorithmic Reasoningcited by 3
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach7 Feb 2025
- 2024Open-Book Neural Algorithmic Reasoning30 Dec 2024
- 2024PUZZLES: A Benchmark for Neural Algorithmic Reasoning29 Jun 2024
- 2023Recursive Algorithmic Reasoning1 Jul 2023
- 2023Infusing Lattice Symmetry Priors in Attention Mechanisms for Sample-Efficient Abstract Geometric Reasoning5 Jun 2023
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Tasks1 Nov 2022
- 2022Neural Set Function Extensions: Learning with Discrete Functions in High Dimensions8 Aug 2022
- 2022The CLRS Algorithmic Reasoning Benchmark31 May 2022
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policies31 Aug 2021
- 2021Neural Algorithmic Reasoning6 May 2021
- 2021Neural Production Systems: Learning Rule-Governed Visual Dynamics2 Mar 2021
- 2021Combinatorial optimization and reasoning with graph neural networks18 Feb 2021