Skip to content

Source paper

Let the Fixer Decide: Training a Code Localizer from the Fixer's Likelihood

Khalil Hennara, Muhammad Hreden, Zeina Aldallal and 2 more

Khalil Hennara, Muhammad Hreden, Zeina Aldallal, Sara Chrouf, Safwan AlModhayan

arXiv 2611.12164 · 202659 upvotes on Hugging Face

Research ideas from this paper (3)

Generated by AI. The paper’s authors did not write these.

AI summary

This paper presents Fixer-Guided Localization (FGL), an expectation-maximization framework for training a code localizer sub-agent based on the likelihood assigned to verified patches by a frozen code fixer. By using weighted supervised fine-tuning instead of expensive reinforcement learning with test execution, FGL optimizes localized context size and utility. While offline signal tests show FGL provides 27.5% smaller context windows with equal patch accuracy, end-to-end evaluations on Gemma 4 E4B demonstrate that overall agent performance is primarily bottlenecked by execution timeouts, repetition loops, and edit quality rather than localization quality alone.

How it works (AI summary)

The methodology divides a software engineering agent into two LoRA adapters on a single base model: a localizer that proposes relevant repository files/symbols and a fixer that writes the final patch. Candidate localizations sampled from cross-validation fold localizers are scored via a single forward pass of the frozen fixer using the log-probability of the verified patch's added lines, subject to size and extra request penalties. The localizer is then updated via supervised fine-tuning on softmax-weighted candidates combined with an anchor loss on teacher trajectories, avoiding reinforcement learning or runtime test execution.