Programming with a Differentiable Forth Interpreter
Matko Bošnjak, Tim Rocktäschel, Jason Naradowsky et al. · arXiv (Cornell University) · 2016
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.
Cited by 89 works. doi:10.48550/arxiv.1605.06640 Open-access PDF
Authors
References
- Long Short-Term Memory
- AutoResearch Lite: a reproducible paper-inspired experiment runner (Adam mechanism reproduction and convergence-speed comparison)
- Sequence to Sequence Learning with Neural Networks
- Genetic Programming: On the Programming of Computers by Means of Natural Selection
- Symbolic execution and program testing
- Toward automatic program synthesis
- Neural GPUs Learn Algorithms
- Hybrid computing using a neural network with dynamic external memory
- Neural Module Networks
- Learning to Automatically Solve Algebra Word Problems