arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.16694cs.CLcs.PLcs.SE
收藏

HumanEval-XL:一个用于跨语言自然语言泛化的多语言代码生成基准

HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalization

University of Copenhagen(哥本哈根大学);Baidu Inc.(百度公司)

Qiwei Peng, Yekun Chai, Xuhong Li

AI总结:

本文提出了HumanEval-XL,一个连接23种自然语言和12种编程语言的大规模多语言代码生成基准,包含22,080个提示,填补了多语言LLMs评估的空白。

摘要:

大型语言模型(LLMs)在从文本提示生成代码方面取得了显著进展。然而,现有的基准主要集中在将英文提示翻译为多语言代码,或者被限制在非常有限的自然语言(NLs)上。这些基准忽略了大规模多语言NL到多语言代码的广阔领域,在多语言LLMs的评估中留下了关键空白。为此,我们引入了HumanEval-XL,一个专门为解决这一缺陷而设计的大规模多语言代码生成基准。HumanEval-XL在23种NL和12种编程语言(PLs)之间建立了联系,包含22,080个提示,平均每个提示有8.33个测试用例。通过确保多种NL和PL之间的平行数据,HumanEval-XL为多语言LLMs提供了一个全面的评估平台,允许评估对不同NL的理解能力。我们的工作作为填补多语言代码生成领域中NL泛化评估空白的开创性一步。我们在\url{https://github.com/FloatAI/humaneval-xl}上公开了我们的评估代码和数据。

英文摘要:

Large language models (LLMs) have made significant progress in generating codes from textual prompts. However, existing benchmarks have mainly concentrated on translating English prompts to multilingual codes or have been constrained to very limited natural languages (NLs). These benchmarks have overlooked the vast landscape of massively multilingual NL to multilingual code, leaving a critical gap in the evaluation of multilingual LLMs. In response, we introduce HumanEval-XL, a massively multilingual code generation benchmark specifically crafted to address this deficiency. HumanEval-XL establishes connections between 23 NLs and 12 programming languages (PLs), and comprises of a collection of 22,080 prompts with an average of 8.33 test cases. By ensuring parallel data across multiple NLs and PLs, HumanEval-XL offers a comprehensive evaluation platform for multilingual LLMs, allowing the assessment of the understanding of different NLs. Our work serves as a pioneering step towards filling the void in evaluating NL generalization in the area of multilingual code generation. We make our evaluation code and data publicly available at \url{https://github.com/FloatAI/humaneval-xl}.

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

↑