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.
As shown in the figure above, the agent:
- Searches the codebase using the initial issue description.
- Reasons over retrieved functions to determine if they explain the bug.
- Reformulates queries based on discovered context (e.g., moving from a validator to a parser).
- 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.
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