TRANSMISSION // 2611.38872v1

A File Match Is Only the First Step in Finding a Bug

Source published

A bug-localization system can name the right file without showing that it understood the code—or identifying the function to change. An abstract-only study tests how much file-hit scores reveal about repair.

AI-generated conceptual illustration for A File Match Is Only the First Step in Finding a Bug
AI-generated conceptual illustration; not documentary evidence.

When a software tool points to the file changed in a known fix, a benchmark may count that as success. But a developer still needs to know whether the tool used meaningful code evidence, which function is faulty and whether a repair will work. A preprint explores those gaps by changing file names and comparing file-level results with later localization and repair tasks.

Finding the right file is useful, but it does not necessarily mean a bug-localization system has understood the bug. A file can contain many functions, and identifying the code that needs editing is different from producing a change that passes tests. The study What File-Level Hits Hide in Bug Localization: Paths, Functions, and Repair examines what benchmark scores based on file matches can—and cannot—tell us.

Testing whether names do the work

The researchers describe experiments that alter displayed file paths while keeping issue reports, candidate files and short code previews fixed. In one condition, paths are replaced with opaque identifiers; in another, they are replaced with plausible names drawn from unrelated repositories. These changes are intended to test whether a system’s ranking depends on informative-looking filenames rather than on the code itself.

The abstract also describes comparisons between rerankers trained with and without code previews, and between systems that search for and open complete files. The researchers then look beyond file ranking: they assess whether the changed function can be identified, and examine repair in separate settings where a fixer is either restricted to a supplied function or can choose where to edit in a whole file.

The abstract does not provide the dataset, system names, sample sizes, exact metrics or detailed experimental protocol. So the methods can be described only at this high level; a close assessment of how the comparisons were run would require the full paper.

File hits can depend on path clues

On the original paths, rerankers trained with and without code previews score alike, according to the abstract. When path names are hidden, their performance diverges sharply. The abstract does not say which reranker performs better or give numerical results, but reports that the change reveals sensitivity to naming cues.

Plausible but incorrect paths also redirect rerankers that can see code. In other words, code visibility alone does not guarantee that the system’s decision is grounded in the code rather than influenced by the path.

Systems that search for and open full files also respond differently to opaque paths. A path-first pipeline collapses, and some tool-using systems drop sharply, while another remains steady. The abstract does not identify that system or quantify the drops, so it is not possible to say how large or broadly representative these differences are.

A file match does not settle the repair

The study reports that file-level hits often fail to identify the changed function, even when the target function is among the candidates. Results shift markedly depending on the scoring interface and whether code is visible. This makes the benchmark measure more than a single, stable ability: the answer can depend on how function-level choices are presented and scored.

In separate repair settings, correctly finding the function strongly tracks passing tests when the fixer is required to edit only that supplied function. But the relationship is uncertain when the fixer receives the whole file and chooses where to make changes. This distinction matters: locating a target can be informative when the repair task is constrained, but it does not by itself establish that an unconstrained fixer will make a successful change.

The authors’ central point is that file-level recall combines different signals and stages. A high score may reflect matching a filename, reading source code, or some mixture. It also leaves open whether the system found the right function and whether the eventual patch works. The abstract does not establish that filename cues explain every system’s performance, or that removing them will improve real-world repairs.

What the evidence can—and cannot—show

These findings argue for treating a file hit as an intermediate result, not a complete account of bug localization or repair. Evaluations that distinguish path sensitivity, code use, function identification and test-passing repair could reveal where a system succeeds or fails. That is an implication of the reported results, not a tested recommendation in the abstract.

This account is based on the paper’s abstract alone. It supplies no numerical findings, benchmark details, uncertainty estimates or discussion of limitations beyond the distinctions summarized here. The cited work is an arXiv preprint; the evidence provided does not establish whether it has undergone peer review. The results should therefore be read as a reported investigation, not as a settled verdict on bug-localization systems.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A staged training recipe for AI software repair

    Supporting evidence: Both papers treat localization as a distinct stage rather than treating an end result as proof that localization succeeded. The file-hit study finds that file-level success can miss the changed function, while SWE-Ladder reports improved repair outcomes from stage-specific localization, reproduction, and patch supervision. These results support the bounded point that localization merits separate attention, but they use different benchmarks and evaluation designs; they do not establish that SWE-Ladder resolves the file-to-function gap identified by the other study.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.38872v1 — Original paper

      Excerpt reference: static/papers/2611.38872v1.md:546-609
      Basis: Paper text
      Source file SHA-256: 73610008b9e1f344c9f11e656279683b8f6ba7f98c7c049d9f84a45b0b87b0eb

    • 2610.33667v2 — Original paper

      Excerpt reference: static/papers/2610.33667v2.md:87-199
      Basis: Paper text
      Source file SHA-256: 2c66a6ded8d034078a90831a85355b8001f7c3ae7c24d928c5b8c50e83950818

  • For Code-Finding Agents, Exploration Beat Extra Structure

    Supporting evidence: Both studies show that file-localization performance depends on what the system can inspect and how it searches: the file-hit study reports that opaque paths sharply harm some repository-navigation systems but not another, while the multi-file study finds large gains from multi-turn repository exploration over issue-only input. This is compatible evidence that localization results depend on access and search conditions, not a direct comparison: the papers use different tasks, models, and protocols, and the latter does not test path perturbations.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.38872v1 — Original paper

      Excerpt reference: static/papers/2611.38872v1.md:67-123
      Basis: Paper text
      Source file SHA-256: 73610008b9e1f344c9f11e656279683b8f6ba7f98c7c049d9f84a45b0b87b0eb

    • 2606.11976v2 — Original paper

      Excerpt reference: static/papers/2606.11976v2.md:18-59
      Basis: Paper text
      Source file SHA-256: dc50709732475472614691037468a21e484319e1bf53bc0381c91bda1e835358

  • DynaFix gives AI code repairs a closer look at execution

    Supporting evidence: The file-hit study cautions that identifying a target function does not establish a working repair, and DynaFix evaluates repair through repeated execution feedback and patch validation. Together they support the limited distinction between locating code and verifying a repair. DynaFix studies Java single-function bugs, whereas the file-hit study’s repair cohorts use SWE-bench Lite; the excerpts do not show that DynaFix addresses the localization methods or outcomes examined there.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.38872v1 — Original paper

      Excerpt reference: static/papers/2611.38872v1.md:184-320
      Basis: Paper text
      Source file SHA-256: 73610008b9e1f344c9f11e656279683b8f6ba7f98c7c049d9f84a45b0b87b0eb

    • 2512.24635v3 — Original paper

      Excerpt reference: static/papers/2512.24635v3.md:13-73
      Basis: Paper text
      Source file SHA-256: c566d03842225891930a3d2621d033282b04b11cb39a71a2c3763aa4e3d50cad

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.