arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1805.04276cs.LGstat.ML
收藏

利用文法和强化学习进行神经程序合成

Leveraging Grammar and Reinforcement Learning for Neural Program Synthesis

University of Oxford(牛津大学);Microsoft Research(微软研究院);Google(谷歌);Deepmind(深度思维)

Rudy Bunel, Matthew Hausknecht, Jacob Devlin, Rishabh Singh, Pushmeet Kohli

摘要:

程序合成是自动生成符合规范的程序的任务。近年来,已经看到了许多用于程序合成的神经方法的提议,其中许多采用类似于神经机器翻译的序列生成范例,其中序列到序列模型被训练以最大化已知参考程序的可能性。虽然取得了令人印象深刻的成果,但这一战略有两个关键的局限性。首先,它忽略了程序别名:许多不同的程序可能满足给定的规范(特别是不完整的规范,如一些输入输出示例)。通过最大化只有一个参考程序的可能性,它惩罚了许多语义正确的程序,这可能会对合成器的性能产生不利影响。其次,这种策略忽略了这样一个事实,即程序有一个严格的语法,可以有效地检查。为了解决第一个限制,我们在监督模型之上执行强化学习,其目标是显式地最大化生成语义正确程序的可能性。为了解决第二个限制,我们引入了一个训练过程,直接最大限度地提高生成语法正确的程序,满足规范的概率。我们表明,我们的贡献导致模型的精度提高,特别是在训练数据有限的情况下。

英文摘要:

Program synthesis is the task of automatically generating a program consistent with a specification. Recent years have seen proposal of a number of neural approaches for program synthesis, many of which adopt a sequence generation paradigm similar to neural machine translation, in which sequence-to-sequence models are trained to maximize the likelihood of known reference programs. While achieving impressive results, this strategy has two key limitations. First, it ignores Program Aliasing: the fact that many different programs may satisfy a given specification (especially with incomplete specifications such as a few input-output examples). By maximizing the likelihood of only a single reference program, it penalizes many semantically correct programs, which can adversely affect the synthesizer performance. Second, this strategy overlooks the fact that programs have a strict syntax that can be efficiently checked. To address the first limitation, we perform reinforcement learning on top of a supervised model with an objective that explicitly maximizes the likelihood of generating semantically correct programs. For addressing the second limitation, we introduce a training procedure that directly maximizes the probability of generating syntactically correct programs that fulfill the specification. We show that our contributions lead to improved accuracy of the models, especially in cases where the training data is limited.

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

↑