arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23932cs.CL
收藏

SwingArena: 用于长上下文GitHub问题解决的竞争性编程竞技场

SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solving

The University of Hong Kong(香港大学);University of California Los Angeles(加州大学洛杉矶分校);Tsinghua University(清华大学);University of Michigan Ann Arbor(密歇根大学安娜堡分校);The Ohio State University(俄亥俄州立大学);University of Edinburgh(爱丁堡大学);The Chinese University of Hong Kong(香港中文大学);The Hong Kong Polytechnic University(香港理工大学);Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));LMSYS Org(LMSYS组织)
Wendong Xu, Jing Xiong, Chenyang Zhao, Qiujiang Chen, Haoran Wang, Hui Shen, Zhongwei Wan, Jianbo Dai, Taiqiang Wu, He Xiao, Chaofan Tao, Z. Morley Mao, Ying Sh… 展开作者

Wendong Xu, Jing Xiong, Chenyang Zhao, Qiujiang Chen, Haoran Wang, Hui Shen, Zhongwei Wan, Jianbo Dai, Taiqiang Wu, He Xiao, Chaofan Tao, Z. Morley Mao, Ying Sheng, Zhijiang Guo, Hongxia Yang, Bei Yu, Lingpeng Kong, Quanquan Gu, Ngai Wong

AI总结:

SwingArena是一个用于评估LLM在真实CI驱动软件开发环境中性能的竞争性编程竞技场,通过模拟软件迭代过程,结合检索增强型代码生成模块,实现对长上下文问题的高效处理。

摘要:

我们提出了SwingArena,这是一个用于大型语言模型(LLM)的竞争性评估框架,紧密模拟了现实中的软件开发工作流程。与传统的静态基准测试不同,SwingArena通过将LLM作为提交者和评审者来建模软件迭代的协作过程:提交者生成补丁,评审者创建测试用例并通过持续集成(CI)管道验证补丁。为了支持这些交互式评估,我们引入了一个检索增强型代码生成(RACG)模块,通过从大规模代码库中提供语法和语义相关的代码片段,高效地处理长上下文挑战,支持多种编程语言(C++、Python、Rust和Go)。这使框架能够跨多样化的任务和上下文扩展,同时尊重token限制。我们的实验使用了来自2300个问题池中选出的超过400个高质量真实世界GitHub问题,显示像GPT-4o在激进的补丁生成方面表现突出,而DeepSeek和Gemini则在CI验证中优先考虑正确性。SwingArena提供了一种可扩展和可扩展的方法,用于在现实的CI驱动软件开发环境中评估LLM。更多细节请访问我们的项目页面:swing-bench.github.io

英文摘要:

We present SwingArena, a competitive evaluation framework for Large Language Models (LLMs) that closely mirrors real-world software development workflows. Unlike traditional static benchmarks, SwingArena models the collaborative process of software iteration by pairing LLMs as submitters, who generate patches, and reviewers, who create test cases and verify the patches through continuous integration (CI) pipelines. To support these interactive evaluations, we introduce a retrieval-augmented code generation (RACG) module that efficiently handles long-context challenges by providing syntactically and semantically relevant code snippets from large codebases, supporting multiple programming languages (C++, Python, Rust, and Go). This enables the framework to scale across diverse tasks and contexts while respecting token limitations. Our experiments, using over 400 high-quality real-world GitHub issues selected from a pool of 2,300 issues, show that models like GPT-4o excel at aggressive patch generation, whereas DeepSeek and Gemini prioritize correctness in CI validation. SwingArena presents a scalable and extensible methodology for evaluating LLMs in realistic, CI-driven software development settings. More details are available on our project page: swing-bench.github.io

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

↑