From Fragments to Paths: Task-Level Context Recovery for Large Industrial Codebases

📅 2026-06-22
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the limitation of existing methods that retrieve only local code fragments and struggle to recover the global context required for complex software engineering tasks in large industrial codebases. The authors propose DeepDiscovery, the first approach to enable task-level code understanding without offline preprocessing. It employs a two-stage localization–reasoning framework to identify high-confidence task anchors under budget constraints within a multi-relational codebase structure and subsequently reconstructs relevant contextual information. DeepDiscovery substantially enhances large language models’ context recovery capabilities on industrial-scale tasks, achieving a 78.6% resolution rate on SWE-bench Verified—an 8.2 percentage point improvement over the baseline—and yields up to 9.2 and 7.4 percentage point gains in full-recall performance on large and medium internal industrial subprojects, respectively.
📝 Abstract
Large language models have shown strong performance on software engineering (SE) tasks, yet understanding large industrial repositories remains challenging. Existing methods often retrieve only local fragments and fail to recover the broader task-relevant context needed for complex repository-level tasks. We present DeepDiscovery, a task-level repository-understanding method for large industrial codebases. DeepDiscovery uses a two-stage \textit{Location--Inference} framework to localize high-confidence task anchors and recover broader task-relevant context over multi-relational repository structure under budget constraints. Across controlled method-level evaluation, organization-internal industrial repository-understanding scenarios, and end-to-end evaluation on SWE-bench Verified, DeepDiscovery consistently improves task-relevant file recovery and downstream SE performance. On 27 medium-scale tasks, DeepDiscovery achieves the best file recovery quality among five representative baselines without offline preprocessing. On organization-internal industrial tasks from a production-scale integrated codebase ecosystem, including 27 medium-scale tasks and 40 large-scale tasks, DeepDiscovery improves Full Recall Rate across multiple AI coding systems, with absolute gains ranging from 1.6 to 9.2 percentage points on large subprojects and from 2.5 to 7.4 percentage points on medium-scale subprojects. In a controlled end-to-end evaluation on SWE-bench Verified, a system equipped with DeepDiscovery achieves a 78.6\% Solve Rate, outperforming the corresponding baseline by 8.2 percentage points. These results suggest that stronger task-level repository understanding can improve coding-agent performance on complex SE tasks.
Problem

Research questions and friction points this paper is trying to address.

repository understanding
task-level context
large codebases
context recovery
software engineering
Innovation

Methods, ideas, or system contributions that make the work stand out.

task-level context recovery
repository understanding
Location–Inference framework
multi-relational code structure
large language models for SE
🔎 Similar Papers
No similar papers found.