首个面向长上下文软件工程的LLM代理交互评估基准,真实模拟开发流程。
LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering
- 构建交互式环境,支持多轮对话与工具调用,还原真实编码场景。
- 覆盖10K至100万词元上下文,8种专业工具,9项指标综合评测。
- 揭示模型在理解与效率间的权衡,指导高阶代理设计。
随着大语言模型演进为能执行复杂软件开发任务的自主代理,评估其实际能力变得至关重要。现有基准如LoCoBench虽可评估长上下文代码理解,但仅限单轮评估,无法捕捉真实编码代理所需的多轮交互、工具使用模式与自适应推理。本文提出LoCoBench-Agent,一个专为长上下文软件工程工作流设计的综合性评估框架。该框架将原LoCoBench的8,000个场景扩展为交互式代理环境,系统评估多轮对话、工具使用效率、错误恢复及架构一致性。我们引入涵盖理解与效率维度的9项评估指标,为代理提供8种专用工具(文件操作、搜索、代码分析等),并在10K至100万词元的上下文长度下进行测试。对主流模型的系统评估揭示:(1) 代理表现出显著的长上下文鲁棒性;(2) 理解与效率间存在负相关权衡,深入探索提升理解但降低效率;(3) 模型间对话效率差异巨大,战略性的工具使用是高性能代理的关键。作为首个面向软件工程的长上下文LLM代理基准,LoCoBench-Agent为衡量代理能力、识别性能差距、推动规模化自主开发奠定了严谨基础。
原文摘要 · Abstract (English)
As large language models (LLMs) evolve into sophisticated autonomous agents capable of complex software development tasks, evaluating their real-world capabilities becomes critical. While existing benchmarks like LoCoBench~\cite{qiu2025locobench} assess long-context code understanding, they focus on single-turn evaluation and cannot capture the multi-turn interactive nature, tool usage patterns, and adaptive reasoning required by real-world coding agents. We introduce \textbf{LoCoBench-Agent}, a comprehensive evaluation framework specifically designed to assess LLM agents in realistic, long-context software engineering workflows. Our framework extends LoCoBench's 8,000 scenarios into interactive agent environments, enabling systematic evaluation of multi-turn conversations, tool usage efficiency, error recovery, and architectural consistency across extended development sessions. We also introduce an evaluation methodology with 9 metrics across comprehension and efficiency dimensions. Our framework provides agents with 8 specialized tools (file operations, search, code analysis) and evaluates them across context lengths ranging from 10K to 1M tokens, enabling precise assessment of long-context performance. Through systematic evaluation of state-of-the-art models, we reveal several key findings: (1) agents exhibit remarkable long-context robustness; (2) comprehension-efficiency trade-off exists with negative correlation, where thorough exploration increases comprehension but reduces efficiency; and (3) conversation efficiency varies dramatically across models, with strategic tool usage patterns differentiating high-performing agents. As the first long-context LLM agent benchmark for software engineering, LoCoBench-Agent establishes a rigorous foundation for measuring agent capabilities, identifying performance gaps, and advancing autonomous software development at scale.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。