arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.22906cs.SEcs.AI
收藏

从片段到路径:大型工业代码库的任务级上下文恢复

DeepDiscovery: A Location-Inference Framework for Task-Level Repository Understanding

AMAP, Alibaba Group(阿里集团AMAP);Nanyang Technological University(南洋理工大学);Nanjing University(南京大学);University of Cambridge(剑桥大学)

Jiawei He, Weisong Sun, Mengyu Shi, Jie Jia, Tong Bian, Xikai Yang, Dong Sun

AI总结:

提出DeepDiscovery方法,通过两阶段定位-推理框架在预算约束下恢复任务级上下文,显著提升大型工业代码库的文件检索和下游软件工程任务性能。

摘要:

大型语言模型在软件工程任务上表现出色,但理解大型工业代码库仍然具有挑战性。现有方法通常只检索局部片段,无法恢复复杂仓库级任务所需的更广泛任务相关上下文。我们提出了DeepDiscovery,一种用于大型工业代码库的任务级仓库理解方法。DeepDiscovery使用两阶段\textit{定位-推理}框架,在预算约束下定位高置信度任务锚点,并恢复多关系仓库结构中的更广泛任务相关上下文。在受控的方法级评估、组织内部工业仓库理解场景以及SWE-bench Verified的端到端评估中,DeepDiscovery持续改进了任务相关文件恢复和下游软件工程性能。在27个中等规模任务上,DeepDiscovery在五种代表性基线中实现了最佳文件恢复质量,无需离线预处理。在来自生产规模集成代码库生态系统的组织内部工业任务中,包括27个中等规模任务和40个大规模任务,DeepDiscovery提高了多个AI编码系统的全召回率,在大型子项目上绝对提升1.6到9.2个百分点,在中等规模子项目上提升2.5到7.4个百分点。在SWE-bench Verified的受控端到端评估中,配备DeepDiscovery的系统实现了78.6%的解决率,比相应基线高出8.2个百分点。这些结果表明,更强的任务级仓库理解可以改善编码代理在复杂软件工程任务上的性能。

英文摘要:

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.

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

↑