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

Jigsaw:大语言模型满足程序合成

Jigsaw: Large Language Models meet Program Synthesis

Naman Jain, Skanda Vaidyanath, Arun Iyer, Nagarajan Natarajan, Suresh Parthasarathy, Sriram Rajamani, Rahul Sharma

摘要:

大型预训练语言模型,如GPT-3、Codex和Google语言模型,现在能够从程序员意图的自然语言规范生成代码。我们既乐观又谨慎地看待这些事态发展。从乐观的方面来看,这种大语言模型有潜力通过为世界上的每一个程序员提供一个自动化的AI配对程序员来提高生产力。在警告方面,由于这些大语言模型不理解程序语义,它们不能保证所建议代码的质量。在本文中,我们提出了一种方法来增强这些大语言模型与后处理步骤的基础上,程序分析和合成技术,理解程序的语法和语义。此外,我们表明,这种技术可以利用用户的反馈,并提高使用。我们介绍了构建和评估这样一个工具拼图的经验,该工具拼图的目标是使用多模态输入合成使用Python Pandas API的代码。我们的经验表明,随着这些大语言模型的发展,从意图合成代码,拼图在提高系统的准确性方面发挥了重要作用。

英文摘要:

Large pre-trained language models such as GPT-3, Codex, and Google's language model are now capable of generating code from natural language specifications of programmer intent. We view these developments with a mixture of optimism and caution. On the optimistic side, such large language models have the potential to improve productivity by providing an automated AI pair programmer for every programmer in the world. On the cautionary side, since these large language models do not understand program semantics, they offer no guarantees about quality of the suggested code. In this paper, we present an approach to augment these large language models with post-processing steps based on program analysis and synthesis techniques, that understand the syntax and semantics of programs. Further, we show that such techniques can make use of user feedback and improve with usage. We present our experiences from building and evaluating such a tool jigsaw, targeted at synthesizing code for using Python Pandas API using multi-modal inputs. Our experience suggests that as these large language models evolve for synthesizing code from intent, jigsaw has an important role to play in improving the accuracy of the systems.

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

↑