arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.09246cs.PLcs.LG
收藏

低数据量环境下基于转换器的程序合成

Transformer-based Program Synthesis for Low-Data Environments

Jack Roper

摘要:

大型预训练的Transformer模型(GPT 2/3,T5)的最新进展已经在程序合成中找到了用途,以生成满足一组输入/输出示例的程序。然而,这些模型在长时间和低数据任务上表现不佳,并且通常似乎不理解它们生成的语言的语义。我们调查的方法,解决这两个问题,通过使用属性上下文无关文法的程序设计语言生成的程序,然后分析生成的程序,使他们可以注释编译和运行时属性,如类型,使有关程序的信息可以记住在长期的地平线一代。我们首先发现,合成数据集可以有效地,可以提供Transformer模型与足够的数据,以执行一些合成任务。我们还发现,让模型访问程序属性在低数据环境中特别有效,并且倾向于提高transformer生成程序的质量并减少错误。

英文摘要:

Recent advancements in large pre-trained transformer models (GPT2/3, T5) have found use in program synthesis to generate programs that satisfy a set of input/output examples. However, these models perform poorly on long-horizon and low-data tasks, and often don't seem to understand the semantics of the languages they generate. We investigate an approach that tackles both of these issues, by using attributed context-free-grammars of programming languages to generate programs, and then analyzing generated programs so that they can be annotated with compile and runtime attributes, such as types, so that information about the program can be remembered during long-horizon generation. We firstly find that synthesized datasets can be made efficiently and can provide transformer models with enough data in order to perform well on some synthesis tasks. We also find that giving models access to program attributes is especially effective in low-data environments, and tends improve the quality and reduce errors of transformer-generated programs.

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

↑