使用可微分的Forth解释器编程
Programming with a Differentiable Forth Interpreter
摘要:
鉴于在实践中,除了一小部分问题外,所有问题的训练数据都是稀缺的,核心问题是如何将先验知识纳入模型。在本文中,我们考虑了神经网络的先验过程知识的情况,例如知道程序应该如何遍历序列,但不知道在每一步应该执行哪些局部动作。为此,我们提出了一个端到端的可微解释器的程序设计语言第四,使程序员编写程序草图,可以填充从程序输入输出数据训练的行为插槽。我们可以直接通过用户指定目标的梯度下降技术来优化这种行为,还可以将程序集成到任何更大的神经计算图中。我们的经验表明,我们的解释器是能够有效地利用不同层次的先前的程序结构和学习复杂的行为,如序列排序和添加。当连接到LSTM的输出并进行联合训练时,我们的解释器实现了最先进的准确性,可以对自然语言故事中表达的量进行端到端推理。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。