potentialpaper

Ask KG Agent: A Multi-Agent Framework for Code Localization Using Code and Knowledge Graphs

Chanyoung Chung, Jeemin Kim, Joyce Jiyoung Whang

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose Co-Locator, a collaborative multi-agent code localization framework that employs graph-guided agents to navigate code graphs reflecting syntax-level relationships of the codebase and knowledge graphs extracted from codebase history.

Abstract. Mapping software issue descriptions to relevant code segments, a task known as code localization, is a primary bottleneck in automated software engineering. While recent attempts have automated it using code graphs that capture syntax-level dependencies among code elements, including functions and modules, their code-centric approaches often overlook the design rationales and prior fix patterns present in a codebase's development history, such as pull requests and commits. We propose Co-Locator, a collaborative multi-agent code localization framework that integrates code graphs reflecting functional dependencies and codebase knowledge graphs constructed by extracting triplets that capture design rationales and past code modifications scattered across the development history. During localization, a Code Graph (CG) agent explores functional hierarchies and consults a Knowledge Graph (KG) agent to gather insights into developer intents and prior bug fixes. Combined with a Retriever agent that assists CG and KG agents, Co-Locator leverages a holistic view of the code's functional and historical context, considering what the code implements and how it was changed, to identify locations to fix. Experiments show that Co-Locator outperforms 12 state-of-the-art baseline methods.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
23 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Co-Locator is a multi-agent code localization framework combining a Code Graph agent, a Knowledge Graph agent, and a Retriever agent, evaluated on SWE-Bench-Live and LocBench against 12 baselines. The paper has broad empirical scope (2 datasets, 2 backbones, 12 baselines) and good contamination control. In rebuttal, the authors added multi-seed statistical testing - t-tests against both the w/o-KG variant and the strongest baseline, significant at p < 0.05 across all six metrics and both datasets - directly answering the original concern that single-seed, no-variance results could not establish real differences. They also added a fine-grained ablation comparing full Co-Locator against three partial-KG designs (dense retrieval, historical-links-only, triplets-only); full Co-Locator outperforms all three on every metric, directly answering whether the KG's graph structure specifically matters rather than just added retrieval. I reviewed this evidence myself and find it a sound, direct response to the core concern raised in the original reviews. Reviewer TvQe, who raised a related question independently, reviewed the same evidence in detail and confirmed it resolved their concern, raising their score to 5 (Accept).

Two limitations remain and are worth noting for the authors. The demonstrated improvements, while statistically significant, are moderate in absolute size. Cross-language generalizability beyond Python/AST-based repositories was addressed only qualitatively in rebuttal, without new experiments; this is a disclosed scope limitation rather than a hidden gap, and I do not treat it as blocking.

Reviewers v6EC and W3yj did not update their ratings or comment following the rebuttal, despite a direct, targeted invitation during the discussion period. Their original ratings (3 and 4) therefore do not reflect this new evidence. I am disclosing this explicitly: my recommendation is based on my own evaluation of the rebuttal's substance, corroborated by Reviewer TvQe's independent, itemized confirmation, rather than on updated input from v6EC or W3yj.

I recommend Accept (poster): the rebuttal directly and credibly resolved the core evidentiary gap identified pre-rebuttal, and I consider this a solid, well-evaluated contribution. I encourage the authors to incorporate the new experiments (multi-seed statistics, the KG-design ablation) into the camera-ready, and to pursue empirical validation beyond Python repositories in future work.

Final justification

See meta review above. In brief: the rebuttal's new multi-seed statistical evidence and fine-grained ablation directly resolved the core pre-rebuttal concern, corroborated by Reviewer TvQe's independent confirmation. Reviewers v6EC and W3yj did not respond to confirm or dispute this, so the recommendation rests on my own evaluation of the evidence. Recommending Accept (poster).

Area Chair AJqX · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Co-Locator is a multi-agent code localization framework combining a Code Graph agent, a Knowledge Graph agent, and a Retriever agent, evaluated on SWE-Bench-Live and LocBench against 12 baselines. The paper has broad empirical scope (2 datasets, 2 backbones, 12 baselines) and good contamination control. In rebuttal, the authors added multi-seed statistical testing - t-tests against both the w/o-KG variant and the strongest baseline, significant at p < 0.05 across all six metrics and both datasets - directly answering the original concern that single-seed, no-variance results could not establish real differences. They also added a fine-grained ablation comparing full Co-Locator against three partial-KG designs (dense retrieval, historical-links-only, triplets-only); full Co-Locator outperforms all three on every metric, directly answering whether the KG's graph structure specifically matters rather than just added retrieval. I reviewed this evidence myself and find it a sound, direct response to the core concern raised in the original reviews. Reviewer TvQe, who raised a related question independently, reviewed the same evidence in detail and confirmed it resolved their concern, raising their score to 5 (Accept).

Two limitations remain and are worth noting for the authors. The demonstrated improvements, while statistically significant, are moderate in absolute size. Cross-language generalizability beyond Python/AST-based repositories was addressed only qualitatively in rebuttal, without new experiments; this is a disclosed scope limitation rather than a hidden gap, and I do not treat it as blocking.

Reviewers v6EC and W3yj did not update their ratings or comment following the rebuttal, despite a direct, targeted invitation during the discussion period. Their original ratings (3 and 4) therefore do not reflect this new evidence. I am disclosing this explicitly: my recommendation is based on my own evaluation of the rebuttal's substance, corroborated by Reviewer TvQe's independent, itemized confirmation, rather than on updated input from v6EC or W3yj.

I recommend Accept (poster): the rebuttal directly and credibly resolved the core evidentiary gap identified pre-rebuttal, and I consider this a solid, well-evaluated contribution. I encourage the authors to incorporate the new experiments (multi-seed statistics, the KG-design ablation) into the camera-ready, and to pursue empirical validation beyond Python repositories in future work.

Final justification

See meta review above. In brief: the rebuttal's new multi-seed statistical evidence and fine-grained ablation directly resolved the core pre-rebuttal concern, corroborated by Reviewer TvQe's independent confirmation. Reviewers v6EC and W3yj did not respond to confirm or dispute this, so the recommendation rests on my own evaluation of the evidence. Recommending Accept (poster).

Reviewer TvQeOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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

  1. 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.

  2. 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%).

  3. 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).

  4. 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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
  1. 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?

  2. 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?

  3. 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.

Final justification

The author's rebuttal addresses my concerns; I would raise the score.

Formatting concerns

No

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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

[W1] Hyperparameter sensitivity analysis reveals that increasing the allowed tool calls for the CG agent beyond 30 fails to boost accuracy. It would be interesting to do further analysis on this section.

[Q3] When the tool calls budget scales from 30 up to 50, localization accuracy drops. Based on a manual inspection, 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 resolve this behavior?

[Meta] Secondary but useful: a clearer answer on the tool-budget failure mode (looping vs. misleading historical links) from the existing trace inspection.

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.py and xferfcn.py) and analyzed the target functions (FrequencyResponseData.__init__() and zpk()) 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

[W2] Knowledge Graph Agent is overly ambiguous.

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

[W3] It would be great to see how each agent contributes to the final localization. Also, how tool choices interactively affect performance.

We analyzed agents' tool usage to investigate how each agent contributes to the final localization. The key observations are as follows:

  • Function-level inspection is the most frequently executed tool by the CG Agent, with an average of 4.8 calls per instance using Qwen2.5 and 3.0 using GPT-4o.
  • The CG Agent invokes the KG Agent in 53.7% and 90.9% of instances under Qwen2.5 and GPT-4o backbones, respectively.
  • Under Qwen2.5, the KG Agent inspects issues, PRs, and commits at similar rates, whereas under GPT-4o, it shows a clear preference for inspecting issues and PRs over commits.
  • For each instance, the Retriever Agent handles approximately one search query for each of the CG and KG Agents.

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

[W4] 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.

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

File@15 Module@20 Function@20
SWERank$^-$ 0.881 0.795 0.590
Co-Locator$^-$ (Qwen2.5) 0.877 0.803 0.615
Co-Locator$^-$ (GPT-4o) 0.881 0.803 0.631
SWERank$^+$ 0.902 0.803 0.643
Co-Locator$^+$ (Qwen2.5) 0.902 0.832 0.660
Co-Locator$^+$ (GPT-4o) 0.906 0.828 0.664

Table 3-1b. Results on LocBench under Larger Cutoffs

File@15 Module@20 Function@20
SWERank$^-$ 0.859 0.732 0.600
Co-Locator$^-$ (Qwen2.5) 0.877 0.764 0.652
Co-Locator$^-$ (GPT-4o) 0.889 0.780 0.668
SWERank$^+$ 0.879 0.779 0.671
Co-Locator$^+$ (Qwen2.5) 0.895 0.802 0.702
Co-Locator$^+$ (GPT-4o) 0.900 0.801 0.704

[P3-5] Text Sizes in Figures

[W5] The legends and text elements inside Figures 3, 4, and 6 are too small.

We will enlarge the text elements and legends to enhance the clarity.


[P3-6] Details of Knowledge Engineering

[W6] 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.

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

[Q1] When the pipeline is fed the ground-truth locations (Oracle), the 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? 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?

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

[Q2] 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?

[Meta] Relatedly, a response to whether the KG's benefit is attributable to its graph structure specifically (versus flat semantic retrieval over the same historical text), and/or a more fine-grained decomposition of KG components, would further strengthen the case.

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.

Reviewer TvQe · CommentOpenReview ↗

I thank the authors for their detailed and thorough rebuttal, which addresses each of my concerns. W1: The trace inspection is helpful, which clarifies that the issue is more about knowing when to stop than about looping or misleading links. I'd encourage the authors to include this analysis and example in the camera-ready. W2: Good. W3: The added tool-usage statistics are useful. This should be included in the paper. W4: Good. W5: Good. W6: The clarification on ontology reuse, entity deduplication via prompt-level naming rules, and tool-mediated query parsing is helpful. I would encourage the author to put them into the appendix. Q1: Good. Q2: Good.

Authors · CommentOpenReview ↗

We are glad to hear that our explanations helped address your concerns. We sincerely appreciate your time in reading our response and for increasing your rating to 5. We will make sure to reflect our discussion in the camera-ready version. Thank you very much for your constructive comments!

Reviewer W3yjOpenReview ↗
Rating
4/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Co-Locator, a multi-agent framework for code localization that combines code graphs with knowledge graphs built from issue, PR, and commit history. A code-graph agent, knowledge-graph agent, and retriever agent collaborate to identify likely files, modules, and functions to modify. The paper evaluates the method on SWE-Bench-Live and LocBench against retrieval-based, LLM-based, and agent-based baselines, and includes experiments on downstream patch generation.

Strengths and weaknesses

Strengths

  1. The paper focuses on code localization from software issue descriptions, which is part of automated debugging and program repair. The motivation for combining current code structure with development history is natural and well aligned with real maintenance workflows.
  2. The paper reports experiments on two benchmarks and compares with retrieval-based, LLM-based, and agent-based baselines. It also includes ablations, cost analysis, category/complexity breakdowns, and a downstream patch generation experiment. Weaknesses As stated in the questions below
Questions
  1. The current implementation constructs code graphs using Python-specific parsing, and the experiments are conducted on Python repositories. It is therefore unclear whether the method would remain effective in other single-language repositories, such as Java, Rust, JavaScript, or C/C++, or in mixed-language repositories where relevant logic may span multiple languages.
  2. The paper includes a w/o KG ablation, but this setting removes the entire knowledge graph and KG Agent at once. More fine-grained experiments could separately investigate the effects of historical relationships and contextual triplets, rather than evaluating the knowledge graph only as a single combined component.
  3. The paper reports monetary cost for agent-based approaches, but gives limited analysis of runtime cost. It would make the practical cost of the framework easier to assess.
Limitations

Yes

Final justification

Thank you for the rebuttal. The authors have addressed my main concerns. I'll keep my positive score.

Formatting concerns

No

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate your effort in reviewing our paper. Below, we provide detailed answers to each of your comments.


[P2-1] Cross-Language Generalizability

[Q1] The current implementation constructs code graphs using Python-specific parsing, and the experiments are conducted on Python repositories. It is therefore unclear whether the method would remain effective in other single-language repositories, such as Java, Rust, JavaScript, or C/C++, or in mixed-language repositories where relevant logic may span multiple languages.

[Meta] I do not consider the cross-language generalizability limitation blocking for this submission, since it is disclosed as a scope limitation in Section 5 rather than a hidden gap.

As pointed out, our current implementation and evaluation focus on Python, as described in the Limitations section (Lines 360-363). However, we believe that Co-Locator is not inherently limited to Python. Since code graphs capture syntactic relationships among code elements, extracting code graphs from codes written in other languages can be achieved by employing an appropriate AST parser for each target language. In addition, knowledge graph construction operates independently of programming languages, as it extracts high-level design rationales and prior modification patterns from historical records. Because the KG Agent provides these high-level intents to the CG Agent, we expect the benefits of leveraging knowledge graphs to generalize across programming languages.


[P2-2] Alternative Designs of KG Agent

[Q2] The paper includes a w/o KG ablation, but this setting removes the entire knowledge graph and KG Agent at once. More fine-grained experiments could separately investigate the effects of historical relationships and contextual triplets, rather than evaluating the knowledge graph only as a single combined component.

[Meta] Relatedly, a response to whether the KG's benefit is attributable to its graph structure specifically (versus flat semantic retrieval over the same historical text), and/or a more fine-grained decomposition of KG components, would further strengthen the case.

While the w/o KG variant serves as our main reference point for evaluating the overall impact of the knowledge graph, we also conduct a fine-grained analysis to explore alternative design choices for the KG Agent. Specifically, we evaluate the following three alternatives that represent different strategies for integrating historical knowledge into code localization:

  • Under Dense Retrieval over Records, the KG Agent performs standard dense semantic retrieval over issues, PRs, and commits.
  • Under Historical Relationships Only, the knowledge graph includes only structural links among historical records and omits contextual triplets extracted via an LLM. In this setting, the KG Agent still has access to the contents of issues, PRs, and commits.
  • Under Contextual Triplets Only, the knowledge graph consists solely of contextual triplets extracted from historical records via an LLM.

To ensure a fair comparison, all methods, including Co-Locator$^+,thethreealternatives,andthew/oKGvariant,areevaluatedonSWE−Bench−LiveusingQwen2.5asthebackboneLLM.Table2−1showstheaveragelocalizationresultsacrossthreeindependentruns,wheretheperformanceofallthreealternativesliesbetweenthatofthew/oKGvariantandCo−Locator, the three alternatives, and the w/o KG variant, are evaluated on SWE-Bench-Live using Qwen2.5 as the backbone LLM. Table 2-1 shows the average localization results across three independent runs, where the performance of all three alternatives lies between that of the w/o KG variant and Co-Locator^+.Interestingly,theperformanceofHistoricalRelationshipsOnlyiscomparabletothatofDenseRetrievaloverRecords.Thisoccursbecausethetextualcontentofhistoricalrecordsoftencontainsimplicitreferencestorelatedrecords,enablingtextretrievaltocapturecontextsimilartothatofstructurallinks.Meanwhile,theresultsofContextualTripletsOnlyshowthatfine−grainedsemanticrelationscanprovideeffectivelocalizationclues.Ultimately,∗∗Co−Locator. Interestingly, the performance of Historical Relationships Only is comparable to that of Dense Retrieval over Records. This occurs because the textual content of historical records often contains implicit references to related records, enabling text retrieval to capture context similar to that of structural links. Meanwhile, the results of Contextual Triplets Only show that fine-grained semantic relations can provide effective localization clues. Ultimately, **Co-Locator^+$ achieves the highest accuracy across all evaluation metrics, demonstrating that integrating historical relationships with fine-grained contextual triplets is beneficial**.

Table 2-1. Results of Co-Locator, w/o KG Variant, and Alternative Design Choices

File@5 File@10 Module@10 Module@15 Function@10 Function@15
w/o KG 0.798 0.841 0.749 0.798 0.591 0.614
Dense Retrieval over Records 0.809 0.850 0.765 0.800 0.592 0.627
Historical Relationships Only 0.802 0.852 0.758 0.799 0.594 0.623
Contextual Triplets Only 0.803 0.848 0.755 0.801 0.593 0.627
Co-Locator$^+$ 0.813 0.864 0.779 0.808 0.610 0.642

[P2-3] Runtime Comparisons with Agent-based Approaches

[Q3] The paper reports monetary cost for agent-based approaches, but gives limited analysis of runtime cost. It would make the practical cost of the framework easier to assess.

The runtime cost analysis of Co-Locator is provided in Appendix B.3. To demonstrate the efficiency of Co-Locator, we compare the runtime cost of Co-Locator against the other agent-based approaches. In both Tables 2-2a and 2-2b, Co-Locator reduces runtime overhead while achieving superior localization performance.

Table 2-2a. Runtime Cost Analysis of Agent-based Approaches with Qwen2.5

File@10 (SWE-Bench-Live) File@10 (LocBench) Runtime per instance (minute)
OrcaLoca 0.303 0.429 4.351
LocAgent 0.480 0.613 1.363
CoSIL 0.689 0.775 1.086
Co-Locator$^-$ 0.844 0.866 0.383
Co-Locator$^+$ 0.865 0.880 0.980

Table 2-2b. Runtime Cost Analysis of Agent-based Approaches with GPT-4o

File@10 (SWE-Bench-Live) File@10 (LocBench) Runtime per instance (minute)
OrcaLoca 0.332 0.521 2.665
LocAgent 0.557 0.707 0.172
CoSIL 0.697 0.811 0.559
Co-Locator$^-$ 0.832 0.848 0.055
Co-Locator$^+$ 0.857 0.871 0.106
Reviewer v6ECOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper targets code localization (mapping an issue description to the code to change). It argues prior code-graph agents reason only over the static code snapshot and treat development history as isolated snippets. It proposes Co-Locator, three collaborating agents — a Code Graph agent over an AST code graph, a Knowledge Graph agent over a per-issue graph built from issues/PRs/commits plus LLM-extracted contextual triplets, and a Retriever agent. Evaluated on SWE-Bench-Live and LocBench vs 12 baselines with GPT-4o and Qwen 2.5.

Strengths and weaknesses

Strengths

  • Well-motivated and clean design: structuring history into a typed knowledge graph (issue-centric backbone + contextual triplets) is more principled than prompt-stuffing raw history; schemas and prompts are fully specified.
  • Broad comparison: 12 baselines, 2 datasets, 2 backbones) and analysis beyond the headline table (per-category, per-complexity, cost-efficiency, resolve-rate, tool-budget/reranking sensitivity.
  • Good contamination/leakage control: post-cutoff issues, retrained baselines on vanilla Qwen2.5, KG built only from pre-issue traces.

Weaknesses

  • The ablation undercuts the core claim. w/o KG drops only ~1-3 points (Table 2), comparable to removing a retrieval bolt-on — so the evidence does not show that historical reasoning, the paper's thesis, is what drives results. It's also only on one dataset and one backbone, with no variance.
  • No statistical significance, small margins. Gains are 3-4.6% relative; Co-Locator⁻ is often within 1-2 absolute points of SWERank. Single-seed greedy runs with no error bars make it impossible to confirm the differences are real.
Questions

Why is the w/o-KG drop so small?

Limitations

yes

Formatting concerns

N/A

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate your effort in reviewing our paper. Below, we provide detailed answers to each of your comments.


[P1-1] Comparisons with w/o KG Variant

[W1] The ablation undercuts the core claim. w/o KG drops only ~1-3 points (Table 2), comparable to removing a retrieval bolt-on — so the evidence does not show that historical reasoning, the paper's thesis, is what drives results. It's also only on one dataset and one backbone, with no variance.

[Q1] Why is the w/o-KG drop so small?

[Meta] The single highest-priority item is the ablation concern in (c): a convincing, specific explanation - ideally with additional evidence - for why the small w/o-KG gap is still consistent with the paper's claim that structured historical reasoning (not generic retrieval) drives the results would substantially raise my assessment.

We perform repeated experiments with different random seeds, statistical significance tests, and qualitative analyses to demonstrate the advantages of leveraging knowledge graphs. For statistical significance, we evaluate both Co-Locator and its w/o KG variant across three independent runs and perform a t-test. Tables 1-1a and 1-1b show that Co-Locator consistently outperforms its w/o KG variant, and the results are statistically significant with p<0.05p<0.05 across all datasets and metrics.

Table 1-1a. Comparisons between Co-Locator and its w/o KG variant on SWE-Bench-Live

File@5 File@10 Module@10 Module@15 Function@10 Function@15
w/o KG 0.798 0.841 0.749 0.798 0.591 0.614
Co-Locator$^+$ 0.813 0.864 0.779 0.808 0.610 0.642
p-value 0.024 0.022 0.012 0.029 0.003 0.009

Table 1-1b. Comparisons between Co-Locator and its w/o KG variant on LocBench

File@5 File@10 Module@10 Module@15 Function@10 Function@15
w/o KG 0.833 0.876 0.742 0.773 0.627 0.663
Co-Locator$^+$ 0.841 0.882 0.751 0.787 0.648 0.685
p-value 0.010 0.038 0.029 0.017 0.002 0.006

In addition, reasoning traces show that the CG Agent invoked the KG Agent in all cases where the w/o KG variant failed but Co-Locator succeeded. Inspecting the actual traces, we find that the KG Agent summarizes the intent of modifications, identifies recent fix locations, and provides historical context for similar issues to the CG Agent. Furthermore, in certain cases where both Co-Locator and its w/o KG variant succeed, the KG Agent helps reduce redundant tool interactions by guiding the CG Agent more directly. For example, in bridgecrewio__checkov-6826, the KG Agent provides relevant historical fixes that guide the CG Agent directly to the target location, reducing tool calls from 30 to 6.


[P1-2] Statistical Significance of Performance Gains

[W2] No statistical significance, small margins. Gains are 3-4.6% relative; Co-Locator⁻ is often within 1-2 absolute points of SWERank. Single-seed greedy runs with no error bars make it impossible to confirm the differences are real.

[Meta] A clear account of why the reported margins should be trusted despite single-seed evaluation and small absolute gaps would also help.

To verify the statistical significance of Co-Locator's improvements over baseline methods, we conduct repeated evaluations against SWERank, the strongest baseline. Specifically, we run each model three times and perform a t-test. As SWERank uses Qwen2.5 as its backbone LLM, we evaluate Co-Locator under the same backbone LLM to ensure a fair comparison. As detailed in Tables 1-2a and 1-2b, Co-Locator$^+$ and Co-Locator$^-$ consistently outperform their corresponding baselines, SWERank$^+$ and SWERank$^-$, respectively. Furthermore, the performance gaps are statistically significant with p<0.05p<0.05 across all datasets and metrics.

Table 1-2a. Comparisons between Co-Locator and SWERank on SWE-Bench-Live

File@5 File@10 Module@10 Module@15 Function@10 Function@15
SWERank$^-$ 0.754 0.824 0.709 0.746 0.541 0.574
Co-Locator$^-$ 0.765 0.840 0.751 0.795 0.566 0.607
p-value 0.029 0.029 0.009 0.008 0.005 0.000
SWERank$^+$ 0.787 0.840 0.754 0.791 0.586 0.623
Co-Locator$^+$ 0.813 0.864 0.779 0.808 0.610 0.642
p-value 0.007 0.002 0.004 0.003 0.002 0.003

Table 1-2b. Comparisons between Co-Locator and SWERank on LocBench

File@5 File@10 Module@10 Module@15 Function@10 Function@15
SWERank$^-$ 0.752 0.823 0.675 0.711 0.507 0.557
Co-Locator$^-$ 0.813 0.865 0.725 0.758 0.600 0.639
p-value 0.005 0.005 0.001 0.001 0.001 0.002
SWERank$^+$ 0.811 0.855 0.729 0.759 0.616 0.646
Co-Locator$^+$ 0.841 0.882 0.751 0.787 0.648 0.685
p-value 0.012 0.003 0.010 0.000 0.007 0.005

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

Reminder on the Author Responses

Thank you again for your time and effort in reviewing our paper! We would like to gently remind you that we have posted our point-by-point reply to your comments. As the Author + Reviewer + AC Discussion Period ends on August 3rd (AoE), we would greatly appreciate it if you could check our response and let us know if your concerns have been addressed.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…