arXiv Science⌕ Search

arXiv subjects

Libin Chen

Publications and source records attributed to Libin Chen.

2 recordsLinked to original sources

What File-Level Hits Hide in Bug Localization: Paths, Functions, and Repair

When a bug localizer ranks a reference-changed file first, benchmarks record a success. For a developer or repair agent, however, finding that file leaves open what evidence drove the choice, which function needs to change, and whether it leads to a working fix. Changing only displayed paths - to opaque identifiers or plausible names from unrelated repositories - while holding issue reports, candidate pools, and short code previews fixed separates naming cues from code use. Rerankers trained with and without code previews score alike on original paths yet diverge sharply once names vanish, and plausible wrong paths redirect code-visible rerankers while code stays in view. Localizers that search and open complete files also diverge under opaque paths: a path-first pipeline collapses and some tool-using systems drop sharply, whereas another holds steady. Downstream, file hits routinely miss the changed function under name-and-summary scoring even when an eligible target sits in the candidate pool, with accuracy shifting markedly across scoring interfaces and code visibility. In separate repair settings, finding that function strongly tracks passing tests when a fixer must edit only a supplied function, yet remains uncertain when it receives the whole file and chooses where to edit. File-level recall therefore conflates matching filenames with reading source code, and leaves both the function to edit and a working fix unresolved.

cs.SE↗

GREPO: A Benchmark for Graph Neural Networks on Repository-Level Bug Localization

Repository-level bug localization-the task of identifying where code must be modified to fix a bug-is a critical software engineering challenge. Standard Large Language Modles (LLMs) are often unsuitable for this task due to context window limitations that prevent them from processing entire code repositories. As a result, various retrieval methods are commonly used, including keyword matching, text similarity, and simple graph-based heuristics such as Breadth-First Search. Graph Neural Networks (GNNs) offer a promising alternative due to their ability to model complex, repository-wide dependencies; however, their application has been hindered by the lack of a dedicated benchmark. To address this gap, we introduce GREPO, the first GNN benchmark for repository-scale bug localization tasks. GREPO comprises 86 Python repositories and 47294 bug-fixing tasks, providing graph-based data structures ready for direct GNN processing. Our evaluation of various GNN architectures shows outstanding performance compared to established information retrieval baselines. This work highlights the potential of GNNs for bug localization and established GREPO as a foundation resource for future research, The code is available at https://github.com/qingpingmo/GREPO.

cs.LG↗