arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.01855cs.AIcs.PL
收藏

神经符号程序合成

Neuro-Symbolic Program Synthesis

Microsoft Research(微软研究院);Carnegie Mellon University(卡内基梅隆大学)

Emilio Parisotto, Abdel-rahman Mohamed, Rishabh Singh, Lihong Li, Dengyong Zhou, Pushmeet Kohli

摘要:

近年来已经看到了一些神经架构的建议,程序归纳的问题。给定一组输入-输出示例,这些架构能够学习推广到新测试输入的映射。虽然取得了令人印象深刻的结果,这些方法有一些重要的限制:(a)它们是计算昂贵的,难以训练,(b)模型必须分别为每个任务(程序)进行训练,(c)很难解释或验证学习映射的正确性(因为它是由神经网络定义的)。在本文中,我们提出了一种新的技术,神经符号程序合成,以克服上述问题。一旦训练,我们的方法可以自动构建计算机程序在特定领域的语言,是一致的一组输入输出的例子在测试时提供。我们的方法是基于两个新的神经模块。第一个模块,称为互相关I/O网络,给定一组输入-输出示例,产生一组I/O示例的连续表示。第二个模块,递归-反向-递归神经网络(R3 NN),给定的例子的连续表示,合成一个程序,逐步扩大部分程序。我们证明了我们的方法的有效性,将其应用到丰富和复杂的域的正则表达式为基础的字符串转换。实验表明,R3 NN模型不仅能够从新的输入输出示例中构造程序,而且还能够为以前在训练过程中从未观察到的任务构造新程序。

英文摘要:

Recent years have seen the proposal of a number of neural architectures for the problem of Program Induction. Given a set of input-output examples, these architectures are able to learn mappings that generalize to new test inputs. While achieving impressive results, these approaches have a number of important limitations: (a) they are computationally expensive and hard to train, (b) a model has to be trained for each task (program) separately, and (c) it is hard to interpret or verify the correctness of the learnt mapping (as it is defined by a neural network). In this paper, we propose a novel technique, Neuro-Symbolic Program Synthesis, to overcome the above-mentioned problems. Once trained, our approach can automatically construct computer programs in a domain-specific language that are consistent with a set of input-output examples provided at test time. Our method is based on two novel neural modules. The first module, called the cross correlation I/O network, given a set of input-output examples, produces a continuous representation of the set of I/O examples. The second module, the Recursive-Reverse-Recursive Neural Network (R3NN), given the continuous representation of the examples, synthesizes a program by incrementally expanding partial programs. We demonstrate the effectiveness of our approach by applying it to the rich and complex domain of regular expression based string transformations. Experiments show that the R3NN model is not only able to construct programs from new input-output examples, but it is also able to construct new programs for tasks that it had never observed before during training.

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

↑