arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.13474cs.LGcs.CLcs.PL
收藏

CodeGen:一个用于多回合程序合成的开放式代码大语言模型

CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis

Salesforce Research(赛富时研究院)

Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong

摘要:

程序合成致力于生成一个计算机程序作为给定问题规范的解决方案,用输入-输出示例或自然语言描述来表达。大语言模型的流行促进了程序合成的发展,尽管有限的训练资源和数据阻碍了对此类模型的开放访问。为了实现这一点,我们训练并发布了一系列高达16.1 B参数的大语言模型,称为CODEGEN,基于自然语言和程序设计语言数据,并开源了训练库JAXFORMER。我们展示了训练模型的实用性,证明了它与HumanEval上的zero-shot Python代码生成上的先前最先进技术具有竞争力。我们进一步研究了程序合成的多步范式,其中一个单一的程序分解成多个指定子问题的提示。为此,我们构建了一个开放的基准,多回合编程基准(MTPB),由115个不同的问题集,分解成多回合提示。我们对MTPB的分析表明,以多回合方式提供给CODEGEN的相同意图比以单回合方式提供的意图显著改善了程序合成。我们将训练库JAXFORMER和模型检查点作为开源贡献提供:https://github.com/salesforce/CodeGen。

英文摘要:

Program synthesis strives to generate a computer program as a solution to a given problem specification, expressed with input-output examples or natural language descriptions. The prevalence of large language models advances the state-of-the-art for program synthesis, though limited training resources and data impede open access to such models. To democratize this, we train and release a family of large language models up to 16.1B parameters, called CODEGEN, on natural language and programming language data, and open source the training library JAXFORMER. We show the utility of the trained model by demonstrating that it is competitive with the previous state-of-the-art on zero-shot Python code generation on HumanEval. We further investigate the multi-step paradigm for program synthesis, where a single program is factorized into multiple prompts specifying subproblems. To this end, we construct an open benchmark, Multi-Turn Programming Benchmark (MTPB), consisting of 115 diverse problem sets that are factorized into multi-turn prompts. Our analysis on MTPB shows that the same intent provided to CODEGEN in multi-turn fashion significantly improves program synthesis over that provided as a single turn. We make the training library JAXFORMER and model checkpoints available as open source contribution: https://github.com/salesforce/CodeGen.

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

↑