arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.07175cs.LGcs.AIcs.PLcs.SE
收藏

学习组合逐示例解用于神经程序合成

Learning to Combine Per-Example Solutions for Neural Program Synthesis

Mila(米拉研究所);Université de Montréal(蒙特利尔大学);Google Research(谷歌研究院);McGill University(麦吉尔大学)

Disha Shrivastava, Hugo Larochelle, Daniel Tarlow

AI总结:

提出两阶段神经程序合成方法,先求解单示例再通过多头注意力交叉聚合器组合逐示例解,在相同时间预算下显著提升成功率。

摘要:

从示例进行程序合成的目标是找到一个与给定输入-输出示例集一致的计算机程序。大多数基于学习的方法试图一次性找到满足所有示例的程序。相比之下,我们的工作考虑了一种将问题分为两个阶段的方法:(a) 找到仅满足一个示例的程序,以及 (b) 利用这些逐示例解来生成满足所有示例的程序。我们引入了基于多头注意力机制的交叉聚合器神经网络模块,该模块学习组合这些逐示例解中存在的线索以合成全局解。在不同长度的程序以及两种不同实验设置下的评估表明,在给定相同时间预算时,我们的技术显著提高了相对于PCCoder [Zohar et al. 2018]和其他消融基线的成功率。我们工作的代码、数据和训练模型可在 https://github.com/shrivastavadisha/N-PEPS 找到。

英文摘要:

The goal of program synthesis from examples is to find a computer program that is consistent with a given set of input-output examples. Most learning-based approaches try to find a program that satisfies all examples at once. Our work, by contrast, considers an approach that breaks the problem into two stages: (a) find programs that satisfy only one example, and (b) leverage these per-example solutions to yield a program that satisfies all examples. We introduce the Cross Aggregator neural network module based on a multi-head attention mechanism that learns to combine the cues present in these per-example solutions to synthesize a global solution. Evaluation across programs of different lengths and under two different experimental settings reveal that when given the same time budget, our technique significantly improves the success rate over PCCoder [Zohar et. al 2018] and other ablation baselines. The code, data and trained models for our work can be found at https://github.com/shrivastavadisha/N-PEPS.

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

↑