arXiv:2512.20482cs.SEcs.AI2025-12被引 4

多语言代码问题定位新框架,支持多轮推理提升准确率

SweRank+: Multilingual, Multi-Turn Code Ranking for Software Issue Localization

  • 用跨语言代码嵌入与列表式重排序实现精准匹配
  • 在多语言数据集上达到当前最佳定位效果
  • 适合需要跨语言维护大型代码库的开发者

大型多语言代码库的维护依赖于精准的问题定位,即把自然语言的错误描述映射到需修改的函数。现有方法多局限于Python且仅单次检索。本文提出SweRank+,结合SweRankMulti(跨语言代码排名工具)与SweRankAgent(代理式搜索系统),实现对代码库的迭代多轮推理。SweRankMulti采用代码嵌入检索器与列表式LLM重排序器,并基于涵盖多种主流编程语言的大规模问题定位数据集训练。SweRankAgent引入带有记忆缓冲的代理搜索循环,突破单次定位限制,逐步积累相关候选。在涵盖多种语言的基准测试中,SweRankMulti达到新的最先进水平,SweRankAgent进一步优于单次排序方法。

原文摘要 · Abstract (English)

Maintaining large-scale, multilingual codebases hinges on accurately localizing issues, which requires mapping natural-language error descriptions to the relevant functions that need to be modified. However, existing ranking approaches are often Python-centric and perform a single-pass search over the codebase. This work introduces SweRank+, a framework that couples SweRankMulti, a cross-lingual code ranking tool, with SweRankAgent, an agentic search setup, for iterative, multi-turn reasoning over the code repository. SweRankMulti comprises a code embedding retriever and a listwise LLM reranker, and is trained using a carefully curated large-scale issue localization dataset spanning multiple popular programming languages. SweRankAgent adopts an agentic search loop that moves beyond single-shot localization with a memory buffer to reason and accumulate relevant localization candidates over multiple turns. Our experiments on issue localization benchmarks spanning various languages demonstrate new state-of-the-art performance with SweRankMulti, while SweRankAgent further improves localization over single-pass ranking.

代码定位多语言多轮推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。