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

Long Code Arena:面向长上下文代码模型的一组基准测试

Long Code Arena: a Set of Benchmarks for Long-Context Code Models

JetBrains Research(JetBrains研究院);Delft University of Technology(代尔夫特理工大学)
Egor Bogomolov, Aleksandra Eliseeva, Timur Galimzyanov, Evgeniy Glukhov, Anton Shapkin, Maria Tigina, Yaroslav Golubev, Alexander Kovrigin, Arie van Deursen, Ma… 展开作者

Egor Bogomolov, Aleksandra Eliseeva, Timur Galimzyanov, Evgeniy Glukhov, Anton Shapkin, Maria Tigina, Yaroslav Golubev, Alexander Kovrigin, Arie van Deursen, Maliheh Izadi, Timofey Bryksin

AI总结:

本文提出 Long Code Arena,一套包含六项项目级代码任务的长上下文代码模型基准,并提供人工核验数据集、评估套件与 LLM 开源基线。

摘要:

如今,代码与自然语言处理领域正在快速发展。尤其是,模型在处理长上下文窗口方面变得越来越好——过去几年中,所支持的上下文大小已经增长了数个数量级。然而,超越单一文件上下文的代码处理基准仍然匮乏,而最流行的基准又局限于单一方法。通过本工作,我们旨在通过推出 Long Code Arena 来弥补这一差距,它是一套包含六个基准的套件,面向需要项目级全局上下文的代码处理任务。这些任务涵盖代码处理的不同方面:基于库的代码生成、CI 构建修复、项目级代码补全、提交信息生成、缺陷定位以及模块摘要。对于每项任务,我们都提供了经过人工核验的测试数据集、一套评估工具,以及基于流行 LLM 的开源基线解决方案,以展示数据集的用法并简化其他研究人员的采用流程。我们在 HuggingFace Spaces 上发布了基准页面,其中包含排行榜、指向 HuggingFace Hub 上所有数据集的链接,以及指向包含基线的 GitHub 仓库的链接:https://huggingface.co/spaces/JetBrains-Research/long-code-arena。

英文摘要:

Nowadays, the fields of code and natural language processing are evolving rapidly. In particular, models become better at processing long context windows - supported context sizes have increased by orders of magnitude over the last few years. However, there is a shortage of benchmarks for code processing that go beyond a single file of context, while the most popular ones are limited to a single method. With this work, we aim to close this gap by introducing Long Code Arena, a suite of six benchmarks for code processing tasks that require project-wide context. These tasks cover different aspects of code processing: library-based code generation, CI builds repair, project-level code completion, commit message generation, bug localization, and module summarization. For each task, we provide a manually verified dataset for testing, an evaluation suite, and open-source baseline solutions based on popular LLMs to showcase the usage of the dataset and to simplify adoption by other researchers. We publish the benchmark page on HuggingFace Spaces with the leaderboard, links to HuggingFace Hub for all the datasets, and link to the GitHub repository with baselines: https://huggingface.co/spaces/JetBrains-Research/long-code-arena.

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

↑