Loc2Repair: A Framework for Evaluating the Impact of File-Level Issue Localization in Repo-Level LLM Repair

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, quick

Summary

Loc2Repair is a modular evaluation framework designed for repository-grounded automated repair pipelines, specifically to analyze file-level issue localization as an upstream variable. It decouples localization and repair under a shared runtime, artifact schema, and evaluation harness, enabling researchers to combine different localization models and repair backbones. Using three repair backbones on SWE-bench Verified, the framework demonstrated that explicit localization consistently improves resolved rates. Pooled performance increased from 44.7% for baseline repair to 48.9% and 49.1% with predicted localization, and to 52.4% with gold localization. Localization also reduced mean elapsed time by 100.94 s, 52.25 s, and 154.45 s respectively, highlighting its impact on effectiveness and latency.

Key takeaway

For AI Engineers developing repository-grounded code repair systems, you should prioritize integrating explicit file-level issue localization. This approach demonstrably boosts repair success rates from 44.7% to over 48% and reduces mean repair latency by over 50 seconds, as shown by the Loc2Repair framework. Consider evaluating localization models separately to optimize your overall repair pipeline.

Key insights

File-level localization significantly enhances LLM-based code repair effectiveness and efficiency.

Principles

Method

Loc2Repair decouples localization and repair using a shared runtime, artifact schema, and evaluation harness to combine various localization models and repair backbones.

In practice

Topics

Best for: Research Scientist, AI Scientist, AI Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.