arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.12613cs.SEcs.AIcs.PL
收藏

类型驱动的神经编程实例

Type-driven Neural Programming by Example

University of Amsterdam(阿姆斯特丹大学)

Kiara Grouwstra

摘要:

在这篇论文中,我们研究了通过例子编程(PBE),这是关于找到一个程序映射给定的输入到给定的输出。传统上,PBE在形式方法与神经方法之间存在分歧,其中形式方法通常涉及演绎技术,如SAT求解器和类型,而神经方法涉及使用相应程序对样本输入-输出进行训练,通常使用基于序列的机器学习技术,如LSTM [41]。由于这种分裂,编程类型尚未用于神经程序合成技术。我们提出了一种方法,将编程类型到PBE的神经程序合成方法。我们介绍了基于这种想法的类型化神经符号程序合成(TNSPS)方法,并在函数式编程环境中对其进行测试,以经验验证类型信息可能有助于提高有限大小数据集上神经合成器的泛化能力。我们的TNSPS模型建立在现有的神经符号程序合成(NSPS),一个基于树的神经合成器结合信息的输入-输出的例子加上当前的程序,通过进一步暴露信息的类型,这些输入-输出的例子,的语法产生式规则,以及我们希望在程序中扩展的孔。我们进一步解释了如何在我们的领域内生成数据集,该领域使用Haskell的有限子集作为合成语言。最后,我们讨论几个感兴趣的话题,可能有助于进一步采取这些想法。为了可重复性,我们公开发布代码。

英文摘要:

In this thesis we look into programming by example (PBE), which is about finding a program mapping given inputs to given outputs. PBE has traditionally seen a split between formal versus neural approaches, where formal approaches typically involve deductive techniques such as SAT solvers and types, while the neural approaches involve training on sample input-outputs with their corresponding program, typically using sequence-based machine learning techniques such as LSTMs [41]. As a result of this split, programming types had yet to be used in neural program synthesis techniques. We propose a way to incorporate programming types into a neural program synthesis approach for PBE. We introduce the Typed Neuro-Symbolic Program Synthesis (TNSPS) method based on this idea, and test it in the functional programming context to empirically verify type information may help improve generalization in neural synthesizers on limited-size datasets. Our TNSPS model builds upon the existing Neuro-Symbolic Program Synthesis (NSPS), a tree-based neural synthesizer combining info from input-output examples plus the current program, by further exposing information on types of those input-output examples, of the grammar production rules, as well as of the hole that we wish to expand in the program. We further explain how we generated a dataset within our domain, which uses a limited subset of Haskell as the synthesis language. Finally we discuss several topics of interest that may help take these ideas further. For reproducibility, we release our code publicly.

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

↑