NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Revanth Gangi Reddy, Ye Liu, Wenting Zhao, JaeHyeok Doo, Tarun Suresh, Daniel Lee, Caiming Xiong, Yingbo Zhou, Semih Yavuz, Shafiq JotyarXiv 2025 · DOI

Introduction

Software issue localization—the process of identifying specific code segments that require modification to resolve a bug—is a fundamental bottleneck in automated software engineering. Current state-of-the-art tools frequently suffer from two primary limitations: a "Python-centric" bias that hinders performance in multilingual enterprise environments, and a "single-pass" search architecture. This linear approach often identifies the symptoms of a bug (e.g., a function mentioned in a crash report) but fails to locate the actual root cause hidden upstream in the logic.

SweRank+ addresses these challenges by introducing a high-performance multilingual retriever-reranker pair coupled with an "agentic" search loop that iteratively reasons through codebases.

Methodology

The SweRank+ framework is divided into two core components:

SweRankMulti: The Retrieval Engine

SweRankMulti is a "retrieve-and-rerank" pipeline optimized for cross-lingual performance. It employs a bi-encoder model (based on Qwen3-Embedding) to map natural language issues and code functions into a shared vector space. To refine these results, it uses a listwise LLM reranker. Unlike traditional point-wise rerankers, the listwise approach allows the model to evaluate a set of candidates simultaneously, capturing relative relevance and significantly improving precision.

SweRankAgent: The Reasoning Loop

To overcome the limitations of single-pass searching, the authors introduced SweRankAgent. This agentic layer follows a ReAct (Reason + Act) pattern, allowing the system to perform multiple search iterations.

The multi-turn reasoning loop of SweRankAgent, illustrating the iterative process of thinking, tool calling, and reranking to locate root causes.

As shown in the figure above, the agent:

  1. Searches the codebase using the initial issue description.
  2. Reasons over retrieved functions to determine if they explain the bug.
  3. Reformulates queries based on discovered context (e.g., moving from a validator to a parser).
  4. Aggregates candidates into a memory buffer for a final, comprehensive ranking.

Datasets and Evaluation

The researchers developed SweLocMulti, a massive dataset containing over 155,000 instances derived from real-world GitHub Pull Requests across 10 programming languages, including Rust, Go, PHP, and C/C++.

Evaluation was conducted across a diverse set of benchmarks:

  • Multilingual: SWE-PolyBench and SWE-Bench-Multilingual.
  • Python-specific: SWE-Bench-Lite and SWE-Bench-Verified.

Key Results and Insights

SweRank+ established new state-of-the-art (SOTA) benchmarks for multilingual localization. A key finding was that multilingual training benefits all languages; models trained on 10 languages maintained or improved their performance on Python-specific benchmarks, suggesting that "code logic" generalizes effectively across syntax boundaries.

Comparative performance of SweRank variants across languages and benchmarks, showing the cumulative benefits of multilingual training and agentic loops.

The agentic approach proved particularly effective in bridging the "semantic gap"—cases where the bug report's language does not overlap with the code's terminology. By iteratively refining its search, SweRankAgent improved Acc@10 by 6.41 points over the single-pass baseline on the SWE-Bench-Multilingual benchmark.

Conclusion

SweRank+ demonstrates that moving beyond one-shot, single-language models is essential for modern software maintenance. By treating localization as an iterative reasoning task, the framework can navigate complex codebases to find root causes that simpler tools miss. Future work involves integrating this localization precision into end-to-end automated repair pipelines to generate patches directly from localized functions.

Summary updated

BibTeX
@misc{reddy2025swerank,
  author = {Revanth Gangi Reddy and Ye Liu and Wenting Zhao and JaeHyeok Doo and Tarun Suresh and Daniel Lee and Caiming Xiong and Yingbo Zhou and Semih Yavuz and Shafiq Joty},
  title = {{SweRank+: Multilingual, Multi-Turn Code Ranking for Software Issue Localization}},
  year = {2025},
  eprint = {2512.20482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20482},
}
Figure