mlsanityData to 7 Oct 2026

Programming with a Differentiable Forth Interpreter

arXiv 1605.06640 ↗First posted 21 May 2016cs.NE cs.AI cs.LGcited by 33

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 9; 2022: 5; 2023: 9; 2024: 3; 2025: 6; 2026: 1.

33 papers.

Sort:

By area:

  1. 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 60
  2. 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
  3. 2021DeepStochLog: Neural Stochastic Logic Programmingcited by 58
  4. 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
  5. 2022Neuro-Symbolic Entropy Regularizationcited by 27
  6. 2022How to Reuse and Compose Knowledge for a Lifetime of Tasks: A Survey on Continual Learning and Functional Compositioncited by 27
  7. 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 21
  8. 2023Semantic Strengthening of Neuro-Symbolic Learningcited by 12
  9. 2023Learning Differentiable Logic Programs for Abstract Visual Reasoningcited by 12
  10. 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptionscited by 11
  11. 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligencecited by 10
  12. 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expressioncited by 9
21 more
  1. 2021A Critical Review of Inductive Logic Programming Techniques for Explainable AIcited by 7
  2. 2023Hierarchical Neural Program Synthesiscited by 7
  3. 2023Smoothing Methods for Automatic Differentiation Across Conditional Branchescited by 6
  4. 2021Robot Program Parameter Inference via Differentiable Shadow Program Inversioncited by 5
  5. 2023Differentiable Tree Operations Promote Compositional Generalizationcited by 5
  6. 2021Reinforcement Learning of Implicit and Explicit Control Flow in Instructionscited by 4
  7. 2025Modular Machine Learning: An Indispensable Path towards New-Generation Large Language Modelscited by 4
  8. 2023Neural Machine Translation for Code Generationcited by 3
  9. 2024Semantic Loss Functions for Neuro-Symbolic Structured Predictioncited by 3
  10. 2021Reconciling the Discrete-Continuous Divide: Towards a Mathematical Theory of Sparse Communicationcited by 1
  11. 2021RotLSTM: Rotating Memories in Recurrent Neural Networkscited by 1
  12. 2022NESTER: An Adaptive Neurosymbolic Method for Causal Effect Estimationcited by 1
  13. 2025Compiling to linear neuronscited by 1
  14. 2021Understanding in Artificial Intelligencecited by 0
  15. 2021Towards Neural Functional Program Evaluationcited by 0
  16. 2023Safety without alignmentcited by 0
  17. 2025Toward Neurosymbolic Program Comprehensioncited by 0
  18. 2025Neuro-symbolic Weak Supervision: Theory and Semanticscited by 0
  19. 2025CALM: Contextual Analog Logic with Multimodalitycited by 0
  20. 2025Compiling to recurrent neuronscited by 0
  21. 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learningcited by 0