arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.09614cs.SEcs.AI
收藏

LoCoBench:面向复杂软件工程的长上下文大语言模型基准

LoCoBench: A Benchmark for Long-Context Large Language Models in Complex Software Engineering

Salesforce AI Research(Salesforce AI研究院)
Jielin Qiu, Zuxin Liu, Zhiwei Liu, Rithesh Murthy, Jianguo Zhang, Haolin Chen, Shiyu Wang, Ming Zhu, Liangwei Yang, Juntao Tan, Zhepeng Cen, Cheng Qian, Shelby … 展开作者

Jielin Qiu, Zuxin Liu, Zhiwei Liu, Rithesh Murthy, Jianguo Zhang, Haolin Chen, Shiyu Wang, Ming Zhu, Liangwei Yang, Juntao Tan, Zhepeng Cen, Cheng Qian, Shelby Heinecke, Weiran Yao, Silvio Savarese, Caiming Xiong, Huan Wang

AI总结:

LoCoBench是一个面向复杂软件工程的长上下文LLM基准,提供8,000个跨10种语言、上下文长度达1M标记的场景,通过8个任务类别和17个指标评估,揭示长上下文模型在真实开发中的显著性能差距。

摘要:

上下文窗口扩展到数百万个标记的长上下文语言模型的出现,为复杂的代码理解和软件开发评估创造了新的机遇。我们提出了LoCoBench,一个专门设计用于在真实、复杂的软件开发场景中评估长上下文LLM的综合基准。与现有专注于单函数补全或短上下文任务的代码评估基准不同,LoCoBench解决了长上下文能力的关键评估空白,这些能力要求理解整个代码库、跨多个文件进行推理,并在大规模软件系统中保持架构一致性。我们的基准提供了8,000个评估场景,系统性地覆盖10种编程语言,上下文长度从10K到1M个标记不等,100倍的差异使得能够在真实软件开发环境中精确评估长上下文性能退化。LoCoBench引入了8个任务类别,涵盖关键的长上下文能力:架构理解、跨文件重构、多会话开发、缺陷调查、功能实现、代码理解、集成测试和安全分析。通过一个5阶段流水线,我们创建了多样化、高质量的场景,以前所未有的规模挑战LLM对复杂代码库的推理能力。我们引入了一个全面的评估框架,包含4个维度的17个指标,其中包括8个新评估指标,并组合成LoCoBench分数(LCBS)。我们对最先进的长上下文模型的评估揭示了显著的性能差距,表明复杂软件开发中的长上下文理解是一个重大且尚未解决的挑战,需要更多关注。LoCoBench发布于:https://github.com/SalesforceAIResearch/LoCoBench。

英文摘要:

The emergence of long-context language models with context windows extending to millions of tokens has created new opportunities for sophisticated code understanding and software development evaluation. We propose LoCoBench, a comprehensive benchmark specifically designed to evaluate long-context LLMs in realistic, complex software development scenarios. Unlike existing code evaluation benchmarks that focus on single-function completion or short-context tasks, LoCoBench addresses the critical evaluation gap for long-context capabilities that require understanding entire codebases, reasoning across multiple files, and maintaining architectural consistency across large-scale software systems. Our benchmark provides 8,000 evaluation scenarios systematically generated across 10 programming languages, with context lengths spanning 10K to 1M tokens, a 100x variation that enables precise assessment of long-context performance degradation in realistic software development settings. LoCoBench introduces 8 task categories that capture essential long-context capabilities: architectural understanding, cross-file refactoring, multi-session development, bug investigation, feature implementation, code comprehension, integration testing, and security analysis. Through a 5-phase pipeline, we create diverse, high-quality scenarios that challenge LLMs to reason about complex codebases at unprecedented scale. We introduce a comprehensive evaluation framework with 17 metrics across 4 dimensions, including 8 new evaluation metrics, combined in a LoCoBench Score (LCBS). Our evaluation of state-of-the-art long-context models reveals substantial performance gaps, demonstrating that long-context understanding in complex software development represents a significant unsolved challenge that demands more attention. LoCoBench is released at: https://github.com/SalesforceAIResearch/LoCoBench.

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

↑