Programming with a Differentiable Forth Interpreter
Not on the map. Why?
Abstract (arXiv)
Given that in practice training data is scarce for all but a small set of problems, a core question is how to incorporate prior knowledge into a model. In this paper, we consider the case of prior procedural knowledge for neural networks, such as knowing how a program should traverse a sequence, but not what local actions should be performed at each step. To this end, we present an end-to-end differentiable interpreter for the programming language Forth which enables programmers to write program sketches with slots that can be filled with behaviour trained from program input-output data. We can optimise this behaviour directly through gradient descent techniques on user-specified objectives, and also integrate the program into any larger neural computation graph. We show empirically that our interpreter is able to effectively leverage different levels of prior program structure and learn complex behaviours such as sequence sorting and addition. When connected to outputs of an LSTM and trained jointly, our interpreter achieves state-of-the-art accuracy for end-to-end reasoning about quantities expressed in natural language stories.
Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 May 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 5; 2023: 9; 2024: 3; 2025: 6; 2026: 1.
33 papers.
Sort:
By area:
- 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 60
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2021DeepStochLog: Neural Stochastic Logic Programmingcited by 58
- 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
- 2022Neuro-Symbolic Entropy Regularizationcited by 27
- 2022How to Reuse and Compose Knowledge for a Lifetime of Tasks: A Survey on Continual Learning and Functional Compositioncited by 27
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 21
- 2023Semantic Strengthening of Neuro-Symbolic Learningcited by 12
- 2023Learning Differentiable Logic Programs for Abstract Visual Reasoningcited by 12
- 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptionscited by 11
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligencecited by 10
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expressioncited by 9
21 more
- 2021A Critical Review of Inductive Logic Programming Techniques for Explainable AIcited by 7
- 2023Hierarchical Neural Program Synthesiscited by 7
- 2023Smoothing Methods for Automatic Differentiation Across Conditional Branchescited by 6
- 2021Robot Program Parameter Inference via Differentiable Shadow Program Inversioncited by 5
- 2023Differentiable Tree Operations Promote Compositional Generalizationcited by 5
- 2021Reinforcement Learning of Implicit and Explicit Control Flow in Instructionscited by 4
- 2025Modular Machine Learning: An Indispensable Path towards New-Generation Large Language Modelscited by 4
- 2023Neural Machine Translation for Code Generationcited by 3
- 2024Semantic Loss Functions for Neuro-Symbolic Structured Predictioncited by 3
- 2021Reconciling the Discrete-Continuous Divide: Towards a Mathematical Theory of Sparse Communicationcited by 1
- 2021RotLSTM: Rotating Memories in Recurrent Neural Networkscited by 1
- 2022NESTER: An Adaptive Neurosymbolic Method for Causal Effect Estimationcited by 1
- 2025Compiling to linear neuronscited by 1
- 2021Understanding in Artificial Intelligencecited by 0
- 2021Towards Neural Functional Program Evaluationcited by 0
- 2023Safety without alignmentcited by 0
- 2025Toward Neurosymbolic Program Comprehensioncited by 0
- 2025Neuro-symbolic Weak Supervision: Theory and Semanticscited by 0
- 2025CALM: Contextual Analog Logic with Multimodalitycited by 0
- 2025Compiling to recurrent neuronscited by 0
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learningcited by 0
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learning3 Jul 2026
- 2025Compiling to recurrent neurons18 Nov 2025
- 2025Compiling to linear neurons14 Nov 2025
- 2025CALM: Contextual Analog Logic with Multimodality17 Jun 2025
- 2025Modular Machine Learning: An Indispensable Path towards New-Generation Large Language Models28 Apr 2025
- 2025Neuro-symbolic Weak Supervision: Theory and Semantics24 Mar 2025
- 2025Toward Neurosymbolic Program Comprehension3 Feb 2025
- 2024Semantic Loss Functions for Neuro-Symbolic Structured Prediction12 May 2024
- 2024NExT: Teaching Large Language Models to Reason about Code Execution23 Apr 2024
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligence6 Jan 2024
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraints6 Dec 2023
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expression2 Nov 2023
21 more
- 2023Smoothing Methods for Automatic Differentiation Across Conditional Branches5 Oct 2023
- 2023Learning Differentiable Logic Programs for Abstract Visual Reasoning3 Jul 2023
- 2023Differentiable Tree Operations Promote Compositional Generalization1 Jun 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023Hierarchical Neural Program Synthesis9 Mar 2023
- 2023Semantic Strengthening of Neuro-Symbolic Learning28 Feb 2023
- 2023Safety without alignment27 Feb 2023
- 2022NESTER: An Adaptive Neurosymbolic Method for Causal Effect Estimation8 Nov 2022
- 2022How to Reuse and Compose Knowledge for a Lifetime of Tasks: A Survey on Continual Learning and Functional Composition15 Jul 2022
- 2022NeuPSL: Neural Probabilistic Soft Logic27 May 2022
- 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptions7 Mar 2022
- 2022Neuro-Symbolic Entropy Regularization25 Jan 2022
- 2021A Critical Review of Inductive Logic Programming Techniques for Explainable AI31 Dec 2021
- 2021Towards Neural Functional Program Evaluation9 Dec 2021
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policies31 Aug 2021
- 2021DeepStochLog: Neural Stochastic Logic Programming23 Jun 2021
- 2021RotLSTM: Rotating Memories in Recurrent Neural Networks1 May 2021
- 2021Reconciling the Discrete-Continuous Divide: Towards a Mathematical Theory of Sparse Communication1 Apr 2021
- 2021Robot Program Parameter Inference via Differentiable Shadow Program Inversion26 Mar 2021
- 2021Reinforcement Learning of Implicit and Explicit Control Flow in Instructions25 Feb 2021
- 2021Understanding in Artificial Intelligence17 Jan 2021
- 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 60
- 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
- 2023Learning Differentiable Logic Programs for Abstract Visual Reasoningcited by 12
- 2024NExT: Teaching Large Language Models to Reason about Code Execution23 Apr 2024
- 2023Learning Differentiable Logic Programs for Abstract Visual Reasoning3 Jul 2023
- 2022NeuPSL: Neural Probabilistic Soft Logic27 May 2022
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2021DeepStochLog: Neural Stochastic Logic Programmingcited by 58
- 2022Neuro-Symbolic Entropy Regularizationcited by 27
- 2022How to Reuse and Compose Knowledge for a Lifetime of Tasks: A Survey on Continual Learning and Functional Compositioncited by 27
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 21
- 2023Semantic Strengthening of Neuro-Symbolic Learningcited by 12
- 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptionscited by 11
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligencecited by 10
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expressioncited by 9
- 2021A Critical Review of Inductive Logic Programming Techniques for Explainable AIcited by 7
- 2023Hierarchical Neural Program Synthesiscited by 7
- 2023Smoothing Methods for Automatic Differentiation Across Conditional Branchescited by 6
12 most cited of 30 All 30 (JSON)
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learning3 Jul 2026
- 2025Compiling to recurrent neurons18 Nov 2025
- 2025Compiling to linear neurons14 Nov 2025
- 2025CALM: Contextual Analog Logic with Multimodality17 Jun 2025
- 2025Modular Machine Learning: An Indispensable Path towards New-Generation Large Language Models28 Apr 2025
- 2025Neuro-symbolic Weak Supervision: Theory and Semantics24 Mar 2025
- 2025Toward Neurosymbolic Program Comprehension3 Feb 2025
- 2024Semantic Loss Functions for Neuro-Symbolic Structured Prediction12 May 2024
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligence6 Jan 2024
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraints6 Dec 2023
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expression2 Nov 2023
- 2023Smoothing Methods for Automatic Differentiation Across Conditional Branches5 Oct 2023
12 newest of 30 All 30 (JSON)