arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.08597cs.CLcs.AIcs.LG
收藏

少即是多:长指令摘要更适合程序合成

Less is More: Summary of Long Instructions is Better for Program Synthesis

Arizona State University(亚利桑那州立大学)

Kirby Kuznia, Swaroop Mishra, Mihir Parmar, Chitta Baral

摘要:

尽管像Codex这样的大型预训练语言模型(LM)取得了成功,但它们在更大和更复杂的编程相关问题上表现出低于标准的性能。我们表明,LM受益于复杂问题的总结版本。我们的研究结果表明,多余的信息往往存在于问题描述中,如人物,背景故事和名称(包括帮助人类理解任务),并没有帮助模型理解任务。为此,我们从常用的APPS数据集和新创建的CodeContests数据集创建一个元数据集,用于程序合成任务。我们的元数据集由人类和复杂的编程问题的综合摘要组成。在Codex上的实验结果表明,该方法在APPS数据集上的严格准确率平均比基线高8.13%,在CodeContests数据集上平均高11.88%。我们的分析表明,摘要显着提高性能的介绍(9.86%)和面试(11.48%)编程问题。然而,它显示了一个小幅度(~ 2%)的竞争性编程问题的改善,这意味着在这个方向上的未来研究的范围。

英文摘要:

Despite the success of large pre-trained language models (LMs) such as Codex, they show below-par performance on the larger and more complicated programming related questions. We show that LMs benefit from the summarized version of complicated questions. Our findings show that superfluous information often present in problem description such as human characters, background stories, and names (which are included to help humans in understanding a task) does not help models in understanding a task. To this extent, we create a meta-dataset from the frequently used APPS dataset and the newly created CodeContests dataset for the program synthesis task. Our meta-dataset consists of human and synthesized summaries of the long and complicated programming questions. Experimental results on Codex show that our proposed approach outperforms baseline by 8.13% on the APPS dataset and 11.88% on the CodeContests dataset on average in terms of strict accuracy. Our analysis shows that summaries significantly improve performance for introductory (9.86%) and interview (11.48%) programming questions. However, it shows improvement by a small margin (~ 2%) for competitive programming questions, implying scope for future research in this direction.

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

↑