arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.07857cs.LGcs.AI
收藏

带查询的神经程序合成

Neural Program Synthesis with Query

Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Cambricon Technologies(寒武纪科技);University of Science and Technology of China(中国科学技术大学)

Di Huang, Rui Zhang, Xing Hu, Xishan Zhang, Pengwei Jin, Nan Li, Zidong Du, Qi Guo, Yunji Chen

摘要:

程序合成是机器学习领域中的一个研究热点,其目标是在给定的输入输出示例中找到一个满足用户意图的程序。尽管现有的方法有很好的性能,但它们的成功大多来自于精心设计的输入-输出示例的特权信息。然而,提供这样的输入-输出示例是不现实的,因为它要求用户有能力在训练分布下用几个输入-输出示例来描述底层程序。在这项工作中,我们提出了一个基于查询的框架,训练查询神经网络自动和交互式地从一个大的查询空间生成信息的输入输出的例子。查询的质量取决于查询与相应程序之间的互信息的多少,可以指导查询框架的优化。为了更准确地估计互信息,我们引入了函数空间(F-空间),它以可微的方式模拟输入输出示例与程序之间的相关性。我们评估的有效性和推广的建议基于查询的框架上的卡雷尔任务和列表处理任务。实验结果表明,基于查询的框架可以生成信息输入输出的例子,达到甚至优于设计良好的输入输出的例子。

英文摘要:

Aiming to find a program satisfying the user intent given input-output examples, program synthesis has attracted increasing interest in the area of machine learning. Despite the promising performance of existing methods, most of their success comes from the privileged information of well-designed input-output examples. However, providing such input-output examples is unrealistic because it requires the users to have the ability to describe the underlying program with a few input-output examples under the training distribution. In this work, we propose a query-based framework that trains a query neural network to generate informative input-output examples automatically and interactively from a large query space. The quality of the query depends on the amount of the mutual information between the query and the corresponding program, which can guide the optimization of the query framework. To estimate the mutual information more accurately, we introduce the functional space (F-space) which models the relevance between the input-output examples and the programs in a differentiable way. We evaluate the effectiveness and generalization of the proposed query-based framework on the Karel task and the list processing task. Experimental results show that the query-based framework can generate informative input-output examples which achieve and even outperform well-designed input-output examples.

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

↑