学习用属性签名表示程序
Learning to Represent Programs with Property Signatures
摘要:
我们介绍的概念,属性签名,表示程序和程序规格意味着消费的机器学习算法。给定一个输入类型为$τ_{in}$,输出类型为$τ_{out}$的函数,属性是一个类型为:$(τ_{in}, τ_{out}) \rightarrow \texttt{Bool}$的函数,它(非正式地)描述了所考虑的函数的一些简单属性。例如,如果$τ_{in}$和$τ_{out}$都是相同类型的列表,则一个属性可能会询问“输入列表的长度是否与输出列表的长度相同?'.如果我们有一个这样的属性列表,我们可以为我们的函数计算所有这些属性,以获得一个输出列表,我们将称之为属性签名。至关重要的是,我们可以“猜测”一个函数的属性签名,只需要一组输入/输出对来指定该函数。我们讨论了几个潜在的应用程序的属性签名,并通过实验表明,它们可以用来改善基线合成器,使其发出的两倍多的程序在不到十分之一的时间。
英文摘要:
We introduce the notion of property signatures, a representation for programs and program specifications meant for consumption by machine learning algorithms. Given a function with input type $τ_{in}$ and output type $τ_{out}$, a property is a function of type: $(τ_{in}, τ_{out}) \rightarrow \texttt{Bool}$ that (informally) describes some simple property of the function under consideration. For instance, if $τ_{in}$ and $τ_{out}$ are both lists of the same type, one property might ask `is the input list the same length as the output list?'. If we have a list of such properties, we can evaluate them all for our function to get a list of outputs that we will call the property signature. Crucially, we can `guess' the property signature for a function given only a set of input/output pairs meant to specify that function. We discuss several potential applications of property signatures and show experimentally that they can be used to improve over a baseline synthesizer so that it emits twice as many programs in less than one-tenth of the time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。