LoCoBench: A Benchmark for Long-Context Large Language Models in Complex Software Engineering
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Sep 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 3; 2026: 8.
11 papers.
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 40
- 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineeringcited by 16
- 2026SWE Context Bench: A Benchmark for Context Learning in Codingcited by 8
- 2025AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?cited by 4
- 2026Evolve as a Team: Collaborative Self-Evolution for LLM-based Multi-Agent Systemscited by 2
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklistscited by 2
- 2025Bridging Reasoning to Learning: Unmasking Illusions using Complexity Out of Distribution Generalizationcited by 1
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generationcited by 1
- 2026Position: Vector Prompt Interfaces Should Be Exposed to Enable Customization of Large Language Modelscited by 0
- 2026Teaching LLMs Program Semantics via Symbolic Execution Tracescited by 0
- 2026StaminaBench: Stress-Testing Coding Agents over 100 Interaction Turnscited by 0
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklists5 Aug 2026
- 2026StaminaBench: Stress-Testing Coding Agents over 100 Interaction Turns17 Jun 2026
- 2026Evolve as a Team: Collaborative Self-Evolution for LLM-based Multi-Agent Systems28 May 2026
- 2026Teaching LLMs Program Semantics via Symbolic Execution Traces7 May 2026
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation26 Mar 2026
- 2026Position: Vector Prompt Interfaces Should Be Exposed to Enable Customization of Large Language Models4 Mar 2026
- 2026SWE Context Bench: A Benchmark for Context Learning in Coding9 Feb 2026
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering17 Nov 2025
- 2025AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?9 Oct 2025
- 2025Bridging Reasoning to Learning: Unmasking Illusions using Complexity Out of Distribution Generalization6 Oct 2025