- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes Co-Locator, a collaborative multi-agent code localization framework to address the task of automated code localization. Co-Locator constructs two complementary graph representations: a Code Graph built via AST parsing to model code dependencies, and a Knowledge Graph built from historical development logs and augmented with LLM-extracted triplets representing developer intent and design rationales. During localization, three specialized agents, i.e., a CG Agent, a KG Agent, and a Retriever Agent, collaborate iteratively through a tool-calling protocol. The CG Agent requests historical context from the KG Agent to align current implementations with previous bug-fix strategies, while the Retriever Agent anchors queries and ensures execution reliability. Evaluated on LocBench and SWE-Bench-Live, Co-Locator achieves state-of-the-art performance across multiple granularities, demonstrating that marrying historical design context with structural code logic significantly aids localization precision.
Strengths and weaknesses
Strength
-
Experimental results across two distinct benchmarks demonstrate that Co-Locator significantly outperforms all the state-of-the-art baselines. When using GPT-4o as a backbone, it yields an average relative accuracy gain of around 3.0% on both SWE-Bench-Live and on LocBench compared to the strongest baselines. With the Qwen2.5 backbone, it delivers gains of 3.2% and 4.6% on the respective datasets.
-
In Section 4.6, the authors demonstrate the explicit value of their system on downstream software repair tasks by pairing Co-Locator predictions with Agentless for patch generation. Co-Locator hits a 13.1% resolve rate on SWE-Bench-Livean, 18% relative boost over the top localization baseline, SWERank+ (11.1%), which remarkably narrows the performance gap close to the human Oracle upper bound (14.8%).
-
Cost analysis in Table 3 indicates that the base multi-agent variant Co-Locator- achieves superior cost-effectiveness across all levels of granularity and datasets. It outperforms competing agent frameworks while maintaining a remarkably low average API cost ($ 0.213 per instance on SWE-Bench-Live and \$ 0.170 on LocBench).
-
Per-category and per-complexity analyses demonstrate that as software bugs grow in difficulty, Co-Locator maintains a widening and dominant performance margin over competitive baselines like SWERank+, Agentless, and CoSIL.
Weakness
-
Hyperparameter sensitivity analysis (Figure 6a) reveals that increasing the allowed tool calls for the CG agent beyond 30 fails to boost accuracy. Instead, excessive exploration steps introduce redundant data or lead agents down misleading sub-paths, causing notable fluctuations and drops in accuracy. This indicates that the system's reasoning trajectory is somewhat fragile if a solution is not localized early in the loop. It would be interesting to do further analysis on this section.
-
Knowledge Graph (KG) Agent is overly ambiguous, as it does not inherently reflect that the graph models the historical maintenance traces and evolution patterns of the codebase. Rebranding this component as a "Context Graph Agent" or "Evolution Graph Agent" would better clarify its role to the reader.
-
The ablation study can be further in-depth. It would be great to see how each agent contributes to the final localization. Also, how tool choices (such as graph traversal or semantic retrieval actions) interactively affect performance.
-
The authors use Acc@5 and Acc@10 for file localization, and Acc@10 and Acc@15 for module and function localization. A concrete empirical justification for these exact thresholds (especially for Acc@15) is missing, despite the paper's downstream claims depending heavily on these metrics.
-
The legends and text elements inside Figures 3, 4, and 6 are too small, which substantially hinders the scannability and legibility of the experimental findings.
-
The paper omits fundamental system details required for knowledge engineering evaluation. The text fails to detail the explicit ontology design, what foundational schema or standard ontology design rules were followed, how the database handles query parsing templates, and how the pipeline deduplicates identical entity nodes during graph integration.
Questions
-
In Table 4, when the pipeline is fed the perfect human ground-truth locations (Oracle), the downstream patch generator still only solves 14.8% of the bugs. Could you clarify why this limit is so low? Is it primarily a limitation of the patch generator's reasoning capacity on complex production bugs? If a perfect localization module caps out at 14.8% due to code generation bottlenecks, how do you defend the claim that researchers should continue focusing heavily on localization optimization rather than pivoting directly to refining downstream code repair loops?
-
The w/o KG variant removes history completely. What happens if the CG Agent is allowed to perform standard dense semantic retrieval over a non-graph database containing the exact same raw, unstructured text content of the top-D historical issues and commits? Can you provide metrics demonstrating how much localization accuracy is gained specifically from the graph-based entity-relation linkages compared to simple, flat semantic text RAG?
-
When the tool calls budget scales from 30 up to 50 (Figure 6a), localization accuracy drops. Based on a manual inspection of these failed traces, what is the primary error behavior? Does the CG agent become trapped in loop structures, or does it follow misleading links found within old historical records? Would a structural constraint (like self-correction or loop-checking layers) resolve this behavior?
Limitations
Yes, the authors have accurately and transparently addressed their primary constraints in Section 5 and Appendix B.2. They explicitly acknowledge their current engineering restriction to Python-based repositories due to AST parser design and outline future translation scopes for Java and Rust. They also transparently report computational exploration limits and hyperparameter sensitivities within their agent architecture.
Paper formatting concerns
No
Final justification
The author's rebuttal addresses my concerns; I would raise the score.
We appreciate your effort in reviewing our paper. Below, we provide detailed answers to each of your comments.
[P3-1] Analysis on Larger Tool Budgets
To better understand the error behaviors under larger tool budgets, we manually inspect Co-Locator's reasoning traces. In our trace inspection, while historical links are generally helpful, misleading links occasionally appear regardless of the budget size. Also, some traces exhibited looping behaviors where the agent repeatedly invokes tools previously executed in earlier steps, incurring unnecessary cost overhead by continuing the loop until the full budget is exhausted without yielding new progress. Importantly, we find that the primary cause of the accuracy drop at larger budgets is the overthinking of the CG Agent, a common issue where LLM-based agents continue unnecessary exploration. An example is
python-control-1064. Under a tool budget of 50, the CG Agent reached to the ground-truth files (frdata.pyandxferfcn.py) and analyzed the target functions (FrequencyResponseData.__init__()andzpk()) within 23 tool calls. However, instead of stopping, the agent spent its remaining budget continuously exploring unrelated modules, ultimately omitting the correct locations from its final prediction.Implementing structural constraints, such as loop-checking layers or periodic overthinking detectors, could help prune these undesirable behaviors. However, as such constraints may restrict the agents' reasoning over challenging problems, careful consideration is required to balance maintaining the agents' reasoning capacity and preventing overthinking.
[P3-2] Rebranding Knowledge Graphs
We will update "Knowledge Graph" to "Codebase Knowledge Graph" to better reflect that the graph captures the maintenance traces and evolution patterns of the codebase.
[P3-3] Contributions of Agents
We analyzed agents' tool usage to investigate how each agent contributes to the final localization. The key observations are as follows:
Both the CG and KG Agents exhibit a common tool usage pattern: search → traverse → inspect. Specifically, the agent begins by executing a semantic retrieval action to find a suspicious element, then performs a graph traversal over the retrieved element, and inspects key elements within the provided graph.
[P3-4] Performance on Larger Cutoffs
We adopt the evaluation metrics used in prior works, such as LocAgent and SWERank. As noted in Lines 226–228, cutoffs are chosen considering that each instance contains at most 5 ground-truth files and 10 functions. To verify whether Co-Locator remains effective at larger cutoffs, we present localization results using File-level Acc@15 and Module/Function-level Acc@20. In Tables 3-1a and 3-1b, Co-Locator outperforms the strongest baseline, SWERank, under larger cutoffs.
Table 3-1a. Results on SWE-Bench-Live under Larger Cutoffs
Table 3-1b. Results on LocBench under Larger Cutoffs
[P3-5] Text Sizes in Figures
We will enlarge the text elements and legends to enhance the clarity.
[P3-6] Details of Knowledge Engineering
We described detailed specifications for graph construction in Appendix A. Code graphs are constructed based on the ontology used in prior approaches such as LocAgent, with additional information on variables and external libraries. For knowledge graphs, we leverage the native relationships among GitHub issues, PRs, and commits, and augment them with triplets extracted from each record. To prevent redundant entities, we provide strict entity naming rules in the extraction prompt, guiding LLMs to standardize identical entities. Regarding query parsing and execution, agents access the graphs exclusively through predefined tools. When an agent calls a tool with specific arguments, the inputs are automatically parsed and passed to the code graph or knowledge graph modules to execute the corresponding methods and retrieve the requested context. All these details can be found in our codes and scripts provided via Anonymous GitHub (link in Line 191).
[P3-7] Oracle Performance in Code Generation
To investigate the causes of low code-generation performance under the Oracle setting, we examine 193 analyzable cases from SWE-Bench-Live, excluding infrastructure failures and empty patches among the 244 total instances. Specifically, 158 (81.9%) cases failed because the generator either modified only a subset of the provided functions or made no edits to them. In contrast, only 35 (18.1%) cases are instances in which all provided functions were edited, but the repair failed due to incorrect logic.
Following standard practice in prior work (e.g., SWERank), the Oracle setting provides ground-truth locations as context, rather than strictly enforcing the generator to edit those locations. Thus, even when the ground-truth locations are provided, the generator must still determine where to make the changes and how to write the patch. As observed in our case study, most failures stem from incomplete identification of all required edit locations, indicating that localization remains a core challenge in the generation process.
In addition, without accurate localization, even a highly advanced patch generator cannot attempt a correct repair. Localization is thus a prerequisite for successful repair. Consequently, localization and generation should be understood as complementary processes rather than separate problems. Accurate localization drastically reduces the search space in large codebases, enabling the generator to fix bugs effectively.
[P3-8] Alternative Designs of KG Agent
Due to space constraints, please refer to our response "[P2-2] Alternative Designs of KG Agent" to Reviewer W3yj, where we address this point in detail.