arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1612.00817cs.LGcs.AIcs.NE
收藏

TerpreT:一种用于程序归纳的可能的程序设计语言

Summary - TerpreT: A Probabilistic Programming Language for Program Induction

Microsoft Research(微软研究院);perceptiveIO

Alexander L. Gaunt, Marc Brockschmidt, Rishabh Singh, Nate Kushman, Pushmeet Kohli, Jonathan Taylor, Daniel Tarlow

摘要:

我们研究归纳程序合成的机器学习公式,也就是说,给定输入-输出示例,合成将输入映射到相应输出的源代码。我们的主要贡献是TerpreT,表达程序合成问题的领域特定的语言。TerpreT模型由程序表示的规范和描述程序如何将输入映射到输出的解释器组成。推理任务是观察一组输入输出示例并推断底层程序。从一个TerpreT模型中,我们使用四个不同的后端自动执行推理:梯度下降(因此每个TerpreT模型可以被视为定义一个可微解释器),线性规划(LP)松弛的图形模型,离散可满足性求解,和草图程序合成系统。TerpreT有两个主要好处。首先,它可以快速探索一系列领域,程序表示和解释器模型。其次,它将模型规范与推理算法分离,允许在不同的推理方法之间进行适当的比较。我们说明TerpreT的价值,通过开发几个解释器模型和执行各种程序模型的替代推理算法之间的广泛的实证比较。据我们所知,这是第一个工作比较基于梯度的搜索程序空间的传统搜索为基础的替代品。我们的主要经验发现是,约束求解器占主导地位的梯度下降和LP为基础的配方。这是arXiv上一篇较长报告的研讨会摘要:1608.04428

英文摘要:

We study machine learning formulations of inductive program synthesis; that is, given input-output examples, synthesize source code that maps inputs to corresponding outputs. Our key contribution is TerpreT, a domain-specific language for expressing program synthesis problems. A TerpreT model is composed of a specification of a program representation and an interpreter that describes how programs map inputs to outputs. The inference task is to observe a set of input-output examples and infer the underlying program. From a TerpreT model we automatically perform inference using four different back-ends: gradient descent (thus each TerpreT model can be seen as defining a differentiable interpreter), linear program (LP) relaxations for graphical models, discrete satisfiability solving, and the Sketch program synthesis system. TerpreT has two main benefits. First, it enables rapid exploration of a range of domains, program representations, and interpreter models. Second, it separates the model specification from the inference algorithm, allowing proper comparisons between different approaches to inference. We illustrate the value of TerpreT by developing several interpreter models and performing an extensive empirical comparison between alternative inference algorithms on a variety of program models. To our knowledge, this is the first work to compare gradient-based search over program space to traditional search-based alternatives. Our key empirical finding is that constraint solvers dominate the gradient descent and LP-based formulations. This is a workshop summary of a longer report at arXiv:1608.04428

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑