arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.17568cs.LGcs.AIcs.SE
收藏

CodeGeeX:一种在HumanEval-X上进行多语言基准测试的代码生成预训练模型

CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-X

Tsinghua University(清华大学);Huawei(华为)

Qinkai Zheng, Xiao Xia, Xu Zou, Yuxiao Dong, Shan Wang, Yufei Xue, Zihan Wang, Lei Shen, Andi Wang, Yang Li, Teng Su, Zhilin Yang, Jie Tang

AI总结:

本文提出130亿参数的多语言代码生成预训练模型CodeGeeX,构建多语言基准HumanEval-X,实验证明其性能优于同规模模型,开发了多平台插件,提升多数用户编码效率并已开源相关资源。

摘要:

大型预训练代码生成模型(如OpenAI Codex)能够生成语法和功能正确的代码,既提升了程序员的编码效率,也让我们对通用人工智能的探索更进一步。本文介绍CodeGeeX——一款拥有130亿参数的多语言代码生成模型。截至2022年6月,CodeGeeX在涵盖23种编程语言的8500亿个token上完成预训练。大量实验表明,在HumanEval-X基准的代码生成与代码翻译任务上,CodeGeeX的表现均优于同等规模的多语言代码模型。我们在仅支持Python的HumanEval基础上,通过手动编写C++、Java、JavaScript和Go语言的解决方案,构建了用于评估多语言模型的HumanEval-X基准。此外,我们基于CodeGeeX为Visual Studio Code、JetBrains和Cloud Studio开发了插件,每周为数万名活跃用户生成47亿个token。用户研究显示,83.4%的用户认为CodeGeeX有助于提升编码效率。最后,CodeGeeX已公开可访问,2022年9月,我们在https://github.com/THUDM/CodeGeeX 开源了其代码、模型权重(850B token训练版本)、API、插件以及HumanEval-X。

英文摘要:

Large pre-trained code generation models, such as OpenAI Codex, can generate syntax- and function-correct code, making the coding of programmers more productive and our pursuit of artificial general intelligence closer. In this paper, we introduce CodeGeeX, a multilingual model with 13 billion parameters for code generation. CodeGeeX is pre-trained on 850 billion tokens of 23 programming languages as of June 2022. Our extensive experiments suggest that CodeGeeX outperforms multilingual code models of similar scale for both the tasks of code generation and translation on HumanEval-X. Building upon HumanEval (Python only), we develop the HumanEval-X benchmark for evaluating multilingual models by hand-writing the solutions in C++, Java, JavaScript, and Go. In addition, we build CodeGeeX-based extensions on Visual Studio Code, JetBrains, and Cloud Studio, generating 4.7 billion tokens for tens of thousands of active users per week. Our user study demonstrates that CodeGeeX can help to increase coding efficiency for 83.4% of its users. Finally, CodeGeeX is publicly accessible and in Sep. 2022, we open-sourced its code, model weights (the version of 850B tokens), API, extensions, and HumanEval-X at https://github.com/THUDM/CodeGeeX.

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

↑