arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.15470cs.SEcs.AIcs.PL
收藏

使用翻译基准对多语言代码语言模型进行代码生成任务的初步研究

A Preliminary Study of Multilingual Code Language Models for Code Generation Task Using Translated Benchmarks

University of British Columbia(不列颠哥伦比亚大学)

Rohit Dandamudi, Gema Rodríguez-Pérez

AI总结:

本文初步评估了多语言代码语言模型Poly-Coder在HumanEval翻译基准上的代码生成性能,发现结果与训练指标一致但存在不一致性和复现困难,呼吁开展更全面的经验研究以验证翻译基准的可靠性。

摘要:

评估代码语言模型(CLMs)在软件工程任务中的性能,尤其是在多语言和低资源编程语言环境下,面临重大挑战。这些挑战主要源于缺乏跨多种编程语言的高质量基准,以及CLMs训练语料库的不平衡性。尽管最近在常见下游任务之一——代码生成方面取得了进展,通过使用不同方法引入翻译基准显示出前景,但目前缺乏评估这些基准的经验证据。为弥补这一不足,我们进行了一项初步研究,评估Poly-Coder的性能,这是一个为代码生成而构建的开源多语言CLM的先驱。我们利用了流行的代码生成基准HumanEval的两种现有最先进翻译,这些翻译由OctoPack和MultiPL-E研究提供。我们的结果表明,在这些翻译基准中观察到的结果与训练阶段使用的评估指标(如困惑度)高度一致,从而验证了它们在估计CLMs性能方面的有效性。然而,我们发现了CLMs在翻译基准上性能的若干不一致之处,并在复现结果时遇到了挑战。这些初步见解凸显了需要进行更全面的经验研究,以充分理解翻译基准的方法论途径、局限性和可复现性。此类研究对于确保其在被广泛采用之前的可靠性至关重要。

英文摘要:

Evaluating the performance of Code Language Models (CLMs) for software engineering tasks, especially in multilingual and low-resource programming language settings, poses significant challenges. These challenges are primarily due to the lack of high-quality benchmarks across various programming languages and the imbalanced nature of the CLMs training corpus. Although recent advances in one of the common downstream tasks, code generation, have shown promise by introducing translated benchmarks using different methodologies, there is a current lack of empirical evidence assessing these benchmarks. To address this gap, we conducted a preliminary study to evaluate the performance of Poly-Coder, a pioneering open-source, multilingual CLM built for code generation. We utilized two existing state-of-the-art translations of the popular code generation benchmark, HumanEval, facilitated by the OctoPack and MultiPL-E studies. Our results suggest that the outcomes observed in these translated benchmarks align well with evaluation metrics used during the training phase, such as perplexity, thereby validating their effectiveness in estimating the performance of CLMs. However, we identified several inconsistencies in the CLMs' performance across the translated benchmarks and encountered challenges in replicating the results. These initial insights highlight the need for more comprehensive empirical studies to fully understand translated benchmarks' methodological approaches, limitations, and reproducibility. Such studies are essential to ensure their reliability before they are widely adopted.

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

↑