arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.05908cs.SEcs.AIcs.CLcs.IR
收藏

自然语言摘要通过LLM在微服务架构中多仓库Bug定位

Natural Language Summarization Enables Multi-Repository Bug Localization by LLMs in Microservice Architectures

Yildiz Technical University, Dept. of Computer Eng.(Yildiz技术大学,计算机工程系);Yildiz Technical University, Department of Computer Engineering(Yildiz技术大学,计算机工程系)

Amirkia Rafiei Oskooei, S. Selcan Yukcu, Mehmet Cevheri Bozoglan, Mehmet S. Aktas

AI总结:

利用自然语言摘要和LLM技术,通过多仓库微服务架构实现更高效的Bug定位,显著提升定位准确率和透明度。

摘要:

在多仓库微服务架构中进行Bug定位具有挑战性,因为自然语言Bug报告与代码之间存在语义鸿沟,LLM上下文限制以及首先需要确定正确仓库的需求。我们提出将此重新框架为自然语言推理任务,通过将代码库转换为层次化自然语言摘要,并执行自然语言到自然语言的搜索,而不是跨模态检索。我们的方法在文件、目录和仓库级别构建上下文感知的摘要,然后进行两阶段搜索:首先将Bug报告路由到相关仓库,然后在这些仓库中进行自顶向下的定位。在DNext工业系统(46个仓库,110万行代码)上评估,我们的方法实现了Pass@10为0.82和MRR为0.50,显著优于检索基线和代理RAG系统如GitHub Copilot和Cursor。这项工作表明,工程化的自然语言表示比原始源代码更有效于可扩展的Bug定位,提供了一个可解释的仓库->目录->文件搜索路径,这对于通过提供必要的透明度来建立企业AI工具的信任至关重要。

英文摘要:

Bug localization in multi-repository microservice architectures is challenging due to the semantic gap between natural language bug reports and code, LLM context limitations, and the need to first identify the correct repository. We propose reframing this as a natural language reasoning task by transforming codebases into hierarchical NL summaries and performing NL-to-NL search instead of cross-modal retrieval. Our approach builds context-aware summaries at file, directory, and repository levels, then uses a two-phase search: first routing bug reports to relevant repositories, then performing top-down localization within those repositories. Evaluated on DNext, an industrial system with 46 repositories and 1.1M lines of code, our method achieves Pass@10 of 0.82 and MRR of 0.50, significantly outperforming retrieval baselines and agentic RAG systems like GitHub Copilot and Cursor. This work demonstrates that engineered natural language representations can be more effective than raw source code for scalable bug localization, providing an interpretable repository -> directory -> file search path, which is vital for building trust in enterprise AI tools by providing essential transparency.

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

↑