Neural Programmer-Interpreters
Not on the map. Why?
Abstract (arXiv)
We propose the neural programmer-interpreter (NPI): a recurrent and compositional neural network that learns to represent and execute programs. NPI has three learnable components: a task-agnostic recurrent core, a persistent key-value program memory, and domain-specific encoders that enable a single NPI to operate in multiple perceptually diverse environments with distinct affordances. By learning to compose lower-level programs to express higher-level programs, NPI reduces sample complexity and increases generalization ability compared to sequence-to-sequence LSTMs. The program memory allows efficient learning of additional tasks by building on existing programs. NPI can also harness the environment (e.g. a scratch pad with read-write pointers) to cache intermediate results of computation, lessening the long-term memory burden on recurrent hidden units. In this work we train the NPI with fully-supervised execution traces; each program has example sequences of calls to the immediate subprograms conditioned on the input. Rather than training on a huge number of relatively weak labels, NPI learns from a small number of rich examples. We demonstrate the capability of our model to learn several types of compositional programs: addition, sorting, and canonicalizing 3D models. Furthermore, a single NPI learns to execute these programs and all 21 associated subprograms.
Key facts. Cited by 101 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Nov 2015.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2019: 1; 2020: 0; 2021: 32; 2022: 13; 2023: 20; 2024: 7; 2025: 10; 2026: 18.
101 papers.
Sort:
By area:
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,167
- 2022Solving math word problems with process- and outcome-based feedbackcited by 901
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2022A Generalist Agentcited by 808
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 558
- 2021Combinatorial optimization and reasoning with graph neural networkscited by 268
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 148
- 2021Neural Algorithmic Reasoningcited by 94
38 more
- 2021Coordination Among Neural Modules Through a Shared Global Workspacecited by 85
- 2023Modular Deep Learningcited by 83
- 2021Neural Production Systems: Learning Rule-Governed Visual Dynamicscited by 75
- 2023Large Language Models can Learn Rulescited by 69
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2024Combining Induction and Transduction for Abstract Reasoningcited by 53
- 2021Evolving Reinforcement Learning Algorithmscited by 49
- 2021Inductive logic programming at 30cited by 47
- 2023Learning Transformer Programscited by 41
- 2021Discrete-Valued Neural Communicationcited by 39
- 2021Fast and Slow Learning of Recurrent Independent Mechanismscited by 36
- 2024Learning Iterative Reasoning through Energy Diffusioncited by 36
- 2023Code Execution with Pre-trained Language Modelscited by 34
- 2022Learning Iterative Reasoning through Energy Minimizationcited by 32
- 2022Chain of Thought Imitation with Procedure Cloningcited by 30
- 2024Simulation of Graph Algorithms with Looped Transformerscited by 30
- 2026DeltaEvolve: Accelerating Scientific Discovery through Momentum-Driven Evolutioncited by 26
- 2023Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Modelscited by 24
- 2021How to transfer algorithmic reasoning knowledge to learn new algorithms?cited by 22
- 2021ProTo: Program-Guided Transformer for Program-Guided Taskscited by 21
- 2023Dual Algorithmic Reasoningcited by 21
- 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programscited by 20
- 2021Transformers with Competitive Ensembles of Independent Mechanismscited by 19
- 2021Pushing the Limits of Rule Reasoning in Transformers through Natural Language Satisfiabilitycited by 18
- 2023Chain-of-Thought Predictive Controlcited by 18
- 2022Neural Approximation of Graph Topological Featurescited by 17
- 2023Neural Relational Inference with Fast Modular Meta-learningcited by 16
- 2022Multi-Step Deductive Reasoning Over Natural Language: An Empirical Study on Out-of-Distribution Generalisationcited by 15
- 2021UnweaveNet: Unweaving Activity Storiescited by 14
- 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptionscited by 11
- 2025Image Editing As Programs with Diffusion Modelscited by 10
- 2021pix2rule: End-to-end Neuro-symbolic Rule Learningcited by 9
- 2023Recursive Algorithmic Reasoningcited by 9
- 2024Discrete Neural Algorithmic Reasoningcited by 9
- 2021Recognizing and Verifying Mathematical Equations using Multiplicative Differential Neural Unitscited by 8
- 2021Transcribing Natural Languages for The Deaf via Neural Editing Programscited by 7
- 2023Hierarchical Neural Program Synthesiscited by 7
- 2026Tiny Autoregressive Recursive Modelscited by 6
50 most cited of 101 All 101 (JSON)
- 2026Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specifications4 Oct 2026
- 2026Self-Supervised Scaling of Terminal Environments for Scientific Domains2 Oct 2026
- 2026A Symbolic Neural CPU for Quantization-Simulated Writeback and Interpretable Program Execution10 Jul 2026
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learning3 Jul 2026
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functions2 Jul 2026
- 2026Is Code Better Than Language for Algorithmic Reasoning14 Jun 2026
- 2026Compile Once, Differentiate Everywhere: A Differentiable Meta-Circular Interpreter7 Jun 2026
- 2026Structure over Pixels: Learning Variable-Length Visual Programs26 May 2026
- 2026Learning to Theorize the World from Observation5 May 2026
- 2026Training Transformers as a Universal Computer28 Apr 2026
- 2026Gradient-Based Program Synthesis with Neurally Interpreted Languages20 Apr 2026
38 more
- 2026Recurrent Reasoning on Symbolic Puzzles with Sequence Models19 Apr 2026
- 2026Neural Computers7 Apr 2026
- 2026Towards a Neural Debugger for Python10 Mar 2026
- 2026Tiny Autoregressive Recursive Models9 Mar 2026
- 2026Modular Neural Computer4 Mar 2026
- 2026DeltaEvolve: Accelerating Scientific Discovery through Momentum-Driven Evolution2 Feb 2026
- 2025Schrodinger AI: A Unified Spectral-Dynamical Framework for Classification, Reasoning, and Operator-Based Generalization28 Dec 2025
- 2025Exact Learning of Arithmetic with Differentiable Agents27 Nov 2025
- 2025Compiling to recurrent neurons18 Nov 2025
- 2025Generalizable Reasoning through Compositional Energy Minimization23 Oct 2025
- 2025Image Editing As Programs with Diffusion Models4 Jun 2025
- 2025A Constructive Framework for Nondeterministic Automata via Time-Shared, Depth-Unrolled Feedforward Networks30 May 2025
- 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spaces23 May 2025
- 2025Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural Networks24 Feb 2025
- 2025Learning Model Successors31 Jan 2025
- 2025AlgoPilot: Fully Autonomous Program Synthesis Without Human-Written Programs11 Jan 2025
- 2024Combining Induction and Transduction for Abstract Reasoning4 Nov 2024
- 2024Are Large-Language Models Graph Algorithmic Reasoners?29 Oct 2024
- 2024Efficacy of Various Large Language Models in Generating Smart Contracts28 Jun 2024
- 2024Learning Iterative Reasoning through Energy Diffusion17 Jun 2024
- 2024Discrete Neural Algorithmic Reasoning18 Feb 2024
- 2024Improving Cross-Domain Low-Resource Text Generation through LLM Post-Editing: A Programmer-Interpreter Approach7 Feb 2024
- 2024Simulation of Graph Algorithms with Looped Transformers2 Feb 2024
- 2023OC-NMN: Object-centric Compositional Neural Module Network for Generative Visual Analogical Reasoning28 Oct 2023
- 2023Large Language Models can Learn Rules10 Oct 2023
- 2023Neural Relational Inference with Fast Modular Meta-learning10 Oct 2023
- 2023Optimizing Large Language Models to Expedite the Development of Smart Contracts8 Oct 2023
- 2023Discrete, compositional, and symbolic representations through attractor dynamics3 Oct 2023
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct18 Aug 2023
- 2023Recursive Algorithmic Reasoning1 Jul 2023
- 2023Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Models12 Jun 2023
- 2023A Comprehensive Review of State-of-The-Art Methods for Java Code Generation from Natural Language Text10 Jun 2023
- 2023Learning Transformer Programs1 Jun 2023
- 2023Differentiable Tree Operations Promote Compositional Generalization1 Jun 2023
- 2023Learning-Based Automatic Synthesis of Software Code and Configuration25 May 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023Code Execution with Pre-trained Language Models8 May 2023
- 2023ImageEye: Batch Image Processing Using Program Synthesis6 Apr 2023
50 newest of 101 All 101 (JSON)
- 2022Solving math word problems with process- and outcome-based feedbackcited by 901
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2024Combining Induction and Transduction for Abstract Reasoningcited by 53
- 2022Chain of Thought Imitation with Procedure Cloningcited by 30
- 2023Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Modelscited by 24
- 2023Chain-of-Thought Predictive Controlcited by 18
- 2022Multi-Step Deductive Reasoning Over Natural Language: An Empirical Study on Out-of-Distribution Generalisationcited by 15
- 2024Are Large-Language Models Graph Algorithmic Reasoners?cited by 5
- 2023OC-NMN: Object-centric Compositional Neural Module Network for Generative Visual Analogical Reasoningcited by 0
- 2026Is Code Better Than Language for Algorithmic Reasoningcited by 0
- 2026Recurrent Reasoning on Symbolic Puzzles with Sequence Modelscited by 0
- 2026Is Code Better Than Language for Algorithmic Reasoning14 Jun 2026
- 2026Recurrent Reasoning on Symbolic Puzzles with Sequence Models19 Apr 2026
- 2024Combining Induction and Transduction for Abstract Reasoning4 Nov 2024
- 2024Are Large-Language Models Graph Algorithmic Reasoners?29 Oct 2024
- 2023OC-NMN: Object-centric Compositional Neural Module Network for Generative Visual Analogical Reasoning28 Oct 2023
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct18 Aug 2023
- 2023Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Models12 Jun 2023
- 2023Chain-of-Thought Predictive Control3 Apr 2023
- 2022Solving math word problems with process- and outcome-based feedback25 Nov 2022
- 2022Multi-Step Deductive Reasoning Over Natural Language: An Empirical Study on Out-of-Distribution Generalisation28 Jul 2022
- 2022Chain of Thought Imitation with Procedure Cloning22 May 2022
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Models30 Nov 2021
- 2022A Generalist Agentcited by 808
- 2026Latent Programming Horizons in Coding Agentscited by 1
- 2026Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specificationscited by 0
- 2026Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specifications4 Oct 2026
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2022A Generalist Agent12 May 2022
- 2025Image Editing As Programs with Diffusion Modelscited by 10
- 2025Image Editing As Programs with Diffusion Models4 Jun 2025
- 2023Learning Transformer Programscited by 41
- 2023Learning Transformer Programs1 Jun 2023
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,167
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 558
- 2021Combinatorial optimization and reasoning with graph neural networkscited by 268
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 148
- 2021Neural Algorithmic Reasoningcited by 94
- 2021Coordination Among Neural Modules Through a Shared Global Workspacecited by 85
- 2023Modular Deep Learningcited by 83
- 2021Neural Production Systems: Learning Rule-Governed Visual Dynamicscited by 75
- 2023Large Language Models can Learn Rulescited by 69
12 most cited of 83 All 83 (JSON)
- 2026Self-Supervised Scaling of Terminal Environments for Scientific Domains2 Oct 2026
- 2026A Symbolic Neural CPU for Quantization-Simulated Writeback and Interpretable Program Execution10 Jul 2026
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learning3 Jul 2026
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functions2 Jul 2026
- 2026Compile Once, Differentiate Everywhere: A Differentiable Meta-Circular Interpreter7 Jun 2026
- 2026Structure over Pixels: Learning Variable-Length Visual Programs26 May 2026
- 2026Learning to Theorize the World from Observation5 May 2026
- 2026Training Transformers as a Universal Computer28 Apr 2026
- 2026Gradient-Based Program Synthesis with Neurally Interpreted Languages20 Apr 2026
- 2026Neural Computers7 Apr 2026
- 2026Towards a Neural Debugger for Python10 Mar 2026
- 2026Tiny Autoregressive Recursive Models9 Mar 2026
12 newest of 83 All 83 (JSON)