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

> This study changes paths on fixed pools to probe localization cues, then traces file hits through function choice and repair. On SWE-bench Lite, matched Qwen2.5-14B code-preview/no-code recipes scored similarly on original paths but differed by 39.33 percentage points in Recall@1 under PathSwap.

- arXiv: https://arxiv.org/abs/2611.38872
- Authors: Libin Chen, Quanyou Lao, Luyao Wang, Hongfu Liu, Jing Chen, Chuan Shi, Muhan Zhang
- Published: 2026-12-01
- Topic: Language
- Visual carousel: https://instaxiv.com/p/2611.38872
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## A file hit can't tell you which clue won

**+39.33 pp** 14B PathSwap Recall@1: code vs no-code, Lite

## What does a file hit actually measure?

![Figure 2](https://cdn.instaxiv.com/figures/2611.38872/figure2.webp)

Fractional Recall@1 credits a reference-changed top file, not why it won. Panel a fixes report, BM25 top-100 pool, 50-line preview and reranker; panel b shows both path replacements lower recall on 259 base-commit Lite issues. (Figure 2)

## Similar familiar-path scores hide a split

**Original paths:** Matched Qwen2.5-14B recipes scored 57.00% Recall@1 with 50-line code previews and 55.67% without on single-snapshot Lite (300 issues).

**PathSwap:** With PathSwap on the same fixed BM25 top-100 pool, Recall@1 was 39.67% with previews and 0.33% without, a +39.33-point difference.

Near-equal original-path scores concealed different sensitivity to names.

## Full-file access gave no single verdict

**Original paths:** On 193 SWE-bench Lite issues, Agentless (GPT-4o) had 135/193 first-file hits; gpt-6.1-sol had 188/193.

**Opaque handles:** Agentless fell to 0/193 while gpt-6.1-sol stayed at 188/193. These are system comparisons, not a tools-on/off ablation.

Opening source files did not guarantee path invariance.

## A file hit often stops before the function

![Figure 3](https://cdn.instaxiv.com/figures/2611.38872/figure3.webp)

Across four Qwen2.5 rerankers on 1,113 GREPO issues, own scorers yielded top-one changed-function hits for only 45.0% of file wins; over nine in ten misses had an eligible target in the top-10 file pool. (Figure 3)

## Function Hit@1 depends on its scorer

**Candidate name shown:** On 598 GREPO wins from the matched path-only file-ranking snapshot, an unadapted pointwise Qwen2.5-7B-Instruct scorer hit 162 changed functions (27.09%); prompts showed no bodies.

**Explicit name masked:** On the same wins, masking only the explicit candidate-name field yielded 48/598 top-one hits (8.03%); file-summary names remained visible.

Function Hit@1 depends on the scorer and its inputs.

## The study links three separate checkpoints

![Figure 1](https://cdn.instaxiv.com/figures/2611.38872/figure1.webp)

Three separate populations: fixed-pool path tests on SWE-bench Lite, GREPO function scoring from top-10 predicted files, and Lite repair with either a whole file or one supplied function. Arrows show workflow, not causality. (Figure 1)

## Editing scope changes what localization tells us

**Whole-file input:** In 184 Qwen3-14B whole-file attempts, 18/67 passed when the localized function matched the reference change versus 15/117 otherwise (+14.0 pp; issue-clustered 95% CI −1.2 to +29.7).

**Function-only input:** With Qwen3-14B restricted to its supplied function, 23/90 attempts passed with correct localization versus 1/176 otherwise (+25.0 pp; issue-clustered 95% CI +13.6 to +37.3).

Empty and untested patches count as unresolved; these separate observational cohorts do not establish a causal effect of edit scope.

## Boundaries to keep in view

- **Alias versus opaque**: On base-commit Lite, both path replacements lower Recall@1, but their relative effect remains unresolved.
- **Repair evidence**: Supplied-location repairs use archived pre-index-fix rankings; the whole-file and function-only cohorts are observational.
- **Evaluation scope**: Lite is issue-ID held out within 12 repositories, not repository-held out; 384 of 500 Verified issues overlap training.

Best used when: Pair original-path Recall@1 with path stress tests and scorer-declared function Hit@1.

## Key takeaways

- A top-ranked changed file is a useful lead, not proof that the model used code or found the edit site.
- Pair familiar-path scores with path perturbations, scorer-specific function Hit@1, and repair results under the intended edit interface.
- Open question: can path-robust localization improve passing-test rates in a controlled same-issue study with a capable fixer?

## Links

- arXiv: https://arxiv.org/abs/2611.38872
- PDF: https://arxiv.org/pdf/2611.38872

## Citation

```bibtex
@article{chen2026what,
  title   = {What File-Level Hits Hide in Bug Localization: Paths, Functions, and Repair},
  author  = {Chen, Libin and Lao, Quanyou and Wang, Luyao and Liu, Hongfu and Chen, Jing and Shi, Chuan and Zhang, Muhan},
  journal = {arXiv preprint arXiv:2611.38872},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.38872}
}
```
