🤗 Upvotes: 41 | cs.AI, cs.SE Authors: Khalil Hennara, Muhammad Hreden, Zeina Aldallal, Sara Chrouf, Safwan AlModhayan Title: Let the Fixer Decide: Training a Code Localizer from the Fixer's Likelihood Arxiv: http://arxiv.org/abs/2611.12164v1 Abstract: Code localizers are usually trained to predict the files a reference patch edits, but the code a fixer needs to read is not the same as the code it changes. We propose Fixer-Guided Localization (FGL): the localizer proposes several localizations, a frozen fixer scores each by how likely it makes a verified patch, and the localizer is trained on these scores with weighted supervised fine-tuning, without running tests and without reinforcement learning. We build the full pipeline on Gemma 4 E4B for the Kaggle Gemma-4 Developer Agent competition, from 1,629 test-verified Kimi K3 trajectories. The FGL target helps the fixer find the bug as often as the teacher's localization while using 27.5% less code. On the development set, one EM round moves the agent in the expected direction compared with a matched control: more tasks reach a patch (53 vs. 46), fewer tasks get stuck reading files that do not exist (43 vs. 54), and more tasks are solved (8 vs. 6). Training also changes how the agent works: trained agents explore about three times more than the base model and write far fewer wrong patches, and the single agent solves up to 11 of 78 tasks, against 8 for the base model. An analysis of 13 evaluation runs identifies what limits a 4B agent under an 8-minute budget (time, repetition loops and edit quality) and gives practical lessons for training small coding agents. All data, code and adapters are publicly available.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Evan: Welcome to Daily Paper Cast. Evan: Today's paper is from the Hugging Face daily paper list of November 24, 2026, and has received 41 upvotes. Ashley: The title of the paper is 'Let the Fixer Decide: Training a Code Localizer from the Fixer’s Likelihood'. Evan: The authors are Khalil Hennara and Muhammad Hreden, with Safwan AlModhayan as the corresponding author, all affiliated with Misraj AI, located in Khobar, Saudi Arabia. Evan: Let's dive into the paper with the Introduction section.
Ashley: Language-model agents are becoming more proficient at resolving real GitHub issues on benchmarks like SWE-bench. Some agents explore and edit repositories freely using shell tools, while others first identify relevant code locations before writing a patch. Evan: That's interesting. How do open models trained for identifying relevant code locations differ in their approach? Ashley: Typically, when open models are trained for code localization, they learn to predict the locations in the code that are edited by a reference patch.
However, this is somewhat of a weak stand-in for what the fixer really needs. Evan: Got it. If the localization model is predicting edited locations, what’s the issue with this approach? Ashley: A fix often relies on code that isn't directly changed by the patch, such as a caller, a base class, or a test. Even if a localizer achieves about 80% file accuracy, it only leads to 38% of issues being resolved successfully. Evan: So learning from outcomes is crucial here. How does this usually work in practice?
Ashley: For many retrieval-augmented language models, the retriever is trained on data that helps the reader achieve results more efficiently. For issue resolution, this has often meant using reinforcement learning along with test execution, which is costly. Evan: I see. It sounds resource-intensive. What’s the main question being addressed by this paper then? Ashley: The paper asks whether a localizer can learn effectively from the fixer’s outcomes without the need for running tests and without employing reinforcement learning.
Essentially, they're exploring if supervised fine-tuning alone can be sufficient. Evan: Alright. The paper proposes a method for this, correct? Ashley: Exactly. The method proposed is called Fixer-Guided Localization or FGL. Here, the localization process is treated as a hidden variable. The localizer suggests various code localizations, a frozen fixer scores each based on how likely it makes a verified patch, and then the localizer is trained on these scores through weighted supervised fine-tuning.
Evan: Interesting approach. How was this method implemented? Ashley: The method was developed for the Kaggle Gemma 4 Developer Agent competition, which standardizes the model, the serving stack, and the tools used. Due to budget constraints, they trained only the smallest model, Gemma 4 E4B. Their results showed mixed outcomes. Evan: Mixed outcomes? Could you elaborate on that? Ashley: Sure. The method showed promise in offline evaluations by guiding the agent's behavior in the expected direction. However, on 78 development tasks, no trained system significantly outperformed the untrained model.
They did notice changes in agent behavior, such as increased exploration and fewer erroneous patches. Evan: Did the paper identify any practical lessons from their analysis? Ashley: Yes, they analyzed 13 evaluation runs to identify limitations faced by the 4B agent under an 8-minute budget. Key limitations were tied to time constraints, repetition loops, and the quality of edits made. Evan: That sounds like a comprehensive study. What were the main contributions of the paper? Ashley: The main contributions are four-fold: introducing the FGL method, generating and verifying teacher trajectories for training, evaluating several systems on Gemma 4 E4B through paired tests, and providing an analysis of the limitations faced by small coding agents under budget constraints.
Evan: Great. And they’ve made all their data, code, and adapters publicly available, right? Ashley: Exactly. The data, code, and adapters are all accessible, which should be quite beneficial for future research and development in this area. Evan: That wraps up the introduction section of the paper. Evan: Let's move on to the Method section of the paper. Ashley: Alright, Evan. The method proposed by the authors is called Fixer-Guided Localization, or FGL. Essentially, this method involves a localizer suggesting multiple code locations, a frozen fixer scoring these suggestions based on their likelihood of producing a verified patch, and then the localizer being trained on these scores through weighted supervised fine-tuning.
Evan: How is the localization treated as a hidden variable here? Ashley: In Fixer-Guided Localization, the localizer proposes several candidate localizations for each task. These candidates are essentially different code locations that might need to be read or edited to resolve the issue. The frozen fixer then scores each candidate based on the likelihood of it producing a verified patch. This scoring is done using a log-probability mechanism. Evan: You mentioned weighted supervised fine-tuning. How exactly does that work in this context?
Ashley: Right. The weights for fine-tuning come from the fixer's scores of the candidate localizations. Essentially, candidates that make the verified patch more likely receive higher weights. This method employs expectation-maximization (EM): every update consists of standard weighted fine-tuning, with the only 'environment' being a forward pass of the frozen fixer. No reinforcement learning or tests are conducted. Evan: How did they implement this method for the Kaggle competition? Ashley: The implementation was based on the Kaggle Gemma 4 Developer Agent competition, which fixes key elements like the model, the serving stack, and the tools used.
Due to budget constraints, the authors trained only the smallest model, Gemma 4 E4B, using the collected test-verified trajectories. Despite mixed results in terms of outperforming the base model, the method demonstrated improvements in behavior, such as increased exploration and fewer erroneous patches. Evan: It sounds like they made some significant contributions. What does the setup look like, method-wise? Ashley: The setup involves two main agents: the fixer and the localizer. The frozen base model carries two LoRA adapters, with the fixer being the primary agent.
The fixer interacts with the localizer as a tool, which explores the repository in a fresh session and provides a list of up to eight code locations. These locations include the path, symbol, line range, and whether the location is to be edited or read. The fixer reads these locations, may request additional code, makes edits, tests, and submits the patch. Evan: What about the localization as a hidden variable? Can you break that down further? Ashley: Certainly. For each task, which includes an issue, the repository and a verified patch, the localizer generates a probability distribution over potential localizations.
The fixer, on the other hand, generates a probability for the verified patch given the context provided by these localizations. The key is that we don't actually see the 'right' localizations. Instead, the method maximizes the likelihood of the verified patch across all proposed localizations. Evan: How do they handle the scoring and weighting of these candidates? Ashley: Great question, Evan. They draw K candidates from the localizer itself. For each task, scores for these candidates are calculated using the log-probability of the new lines added by the patch, minus the costs for the size of the localized code and the number of additional requests needed by the fixer.
This results in a softmax distribution over the fixer’s scores. Practical choices help balance these weights, such as focusing only on new lines added in the patch and penalizing for size and additional requests. Evan: What does the training process look like in detail? Ashley: The training process is fairly structured. They split the training tasks into two folds, A and B, and trained one localizer and one fixer on each fold. The models trained on each half are used only for proposing and scoring candidates for the other half, avoiding memorization.
For each task, the localizer of the other fold proposes eight candidates plus some simple variants. After scoring these candidates with the fixer of the other fold, the three highest-scoring candidates are kept along with the teacher's localization for stability. Evan: What are the main components of their data setup? Ashley: The data part was one of the most resource-intensive aspects. They collected about 10,000 tasks from various benchmarks and checked that patches applied at the base commit and that target tests failed before the reference fix and passed after.
3,894 of the first ranked tasks passed these checks. The teacher agent, Kimi K3, ran attempts to solve these tasks within the competition’s container environment, generating verified trajectories. Evan: Did they face any challenges in this process? Ashley: Yes, the teacher often ‘remembered’ real upstream fixes, which led to citations of pull requests, commit hashes, and sometimes fixing tasks before even reading the code. They ran a cleaning pass to eliminate these instances and ensure the student model learned to state facts it could verify independently.
Evan: Interesting. How did they transform these trajectories into usable training records? Ashley: Each trajectory was cut at the first edit. The exploration part became a localizer record, and the fixer record read the localization, requested additional code if needed, and then continued with the teacher’s edits unchanged. They made sure the synthetic reads matched the teacher’s actual reads byte-for-byte, avoiding any invented tool output. Evan: That sounds meticulous. How many training records did they end up with? Ashley: They generated a total of 9,173 records, equating to about 90 million tokens.
These records included single-agent runs, fixer records, and various localizer records capturing different facets of code interaction. Evan: Fascinating. This wraps up our discussion of the Method section of 'Let the Fixer Decide: Training a Code Localizer from the Fixer’s Likelihood'. Evan: Let's dive into the Experiment and Results section of the paper. Ashley: Alright, Evan. The authors conducted several experiments to evaluate the effectiveness of the Fixer-Guided Localization method using Gemma 4 E4B in different setups.
Let's start by discussing the offline evaluations before diving into end-to-end runs on the development set. Evan: What were the key findings from the offline evaluations? Ashley: In the offline evaluations, the researchers compared how well the fixer performed using either the teacher's localization or the highest-weight candidate proposed by the localizer. They ran tests on 1,016 training tasks and found that both inputs were equally useful in guiding the fixer's first edit to the patched location.
Evan: It sounds like the method showed promise offline. Were there any notable differences between the teacher’s localization and the localizer’s highest-weight candidate? Ashley: Yes, indeed. The highest-weight candidate proposed by the localizer was, on average, 27.5% smaller in size than the teacher's localization and led to 44% fewer context overflows. The fixer actually preferred a candidate other than the teacher’s localization on 83% of the tasks, demonstrating the localizer’s effectiveness in proposing useful localizations.
Evan: That’s quite impressive. What about the end-to-end runs on the development set? Ashley: On the development set, they conducted 13 runs using different configurations. The key takeaway was that while the Fixer-Guided Localization method moved the agent in the right direction—more tasks reached a patch and fewer tasks wasted reads—the gain in solved tasks was not statistically significant. Evan: Can you provide more details about these end-to-end runs? Ashley: Sure. They compared several systems, including the base untrained model and various adaptations of the trained model.
For example, the single agent system S1 consistently solved more tasks than the base model, confirming that training improved performance. However, no two-agent system showed a significant advantage in solving tasks over the single trained agent. Evan: Interesting. Did they identify any specific factors that limited the performance of these agents? Ashley: Yes, they pointed out four main limitations. First, trained agents tended to explore more but often ran out of time, making far fewer wrong patches but failing to finish many tasks within the budget.
Second, lower sampling temperatures led to repetition loops, consuming excessive time. Third, adjustments in temperature often traded one problem for another, such as reducing timeouts but increasing wrong patches. And finally, trained localizers sometimes assumed code layouts incorrectly, leading to non-existent paths and errors. Evan: It seems like they did a thorough analysis. Were there practical lessons for future work based on these findings? Ashley: Definitely. They suggested that the teacher’s pace should match the student’s hardware capabilities, emphasizing the need to filter or shorten trajectories based on the student’s expected time, not the teacher’s.
Additionally, they noted the importance of leaving room in the context window to avoid prompt rejections, recommending an output limit that prevents exceeding token limits. Evan: That makes sense. What were their main conclusions regarding the limitations and effectiveness of the Fixer-Guided Localization method? Ashley: The authors concluded that while the Fixer-Guided Localization method did improve certain aspects like localization size and reduced wasted reads, a better localizer alone couldn’t fix issues related to timing, repetition loops, or the quality of edits, particularly for a small model like E4B under an 8-minute budget.
They suggested that larger models, additional EM rounds, and fuller updates to the fixer agent could be explored in future work. Evan: It sounds like a comprehensive set of experiments and analyses. Is that the end of the Experiment and Results section? Ashley: Yes, that concludes the Experiment and Results section of the paper. Evan: Now, let's explore the Related Work section of the paper. Ashley: Alright, Evan. The Related Work section sets the stage for this paper by discussing several important contributions in the field of code localization and issue resolution using language models.
Evan: Sounds good. What are some of the key areas they cover? Ashley: To start with, the paper references previous benchmarks like SWE-bench, which was proposed by Jimenez and colleagues in 2024. Their benchmark has played a vital role in evaluating the ability of language models to resolve real-world GitHub issues. Evan: How do tools like SWE-bench influence the development of such models? Ashley: Tools like SWE-bench provide standardized evaluations that allow researchers to test and compare different models and methods systematically.
This helps in understanding which approaches are more effective in real-world scenarios. Evan: Got it. What other significant works do the authors mention? Ashley: The paper also mentions retrieval-augmented models, such as those discussed by Lewis et al. in 2020 and Sachan et al. in 2021. These models combine retrieval with generation processes to enhance the information available during model training and execution. Evan: How do retrieval-augmented models impact the performance of language models?
Ashley: Retrieval-augmented models improve performance by providing relevant context and information on-the-fly, allowing the language model to make more informed decisions. This is particularly useful for complex tasks where additional background knowledge can significantly influence the outcome. Evan: That makes sense. Do they discuss any specific techniques for issue resolution? Ashley: Indeed. Techniques like reinforcement learning have been applied in issue resolution, as noted by Wei et al. and Ma et al. in 2025.
Reinforcement learning allows for more dynamic adaptation by running tests and learning from these concrete outcomes, although it can be quite resource-intensive. Evan: Resource-intensive in what way? Ashley: Running tests repeatedly during the training phase consumes significant computational resources and can be time-consuming, making it less feasible for models with budgetary or time constraints. Evan: That’s quite a challenge. Are there simpler techniques suggested in previous works? Ashley: Yes, simpler techniques like supervised fine-tuning have been explored.
For instance, Xie et al. in 2025 talked about training models to learn precise localizations based on supervised labels, foregoing the need for complex test environments or reinforcement learning cycles. Evan: So, how does this paper leverage and build upon these earlier works? Ashley: This paper builds upon earlier works by proposing the Fixer-Guided Localization method, which aims to create a more efficient training process without the need for reinforcement learning. By focusing on the fixer's likelihood and employing weighted supervised fine-tuning, it provides a novel approach to improving code localizers while addressing the resource-intensive requirements seen in previous methods.
Evan: Essentially, they’re optimizing the training process to balance effectiveness and resource usage? Ashley: Precisely. This method takes into account the suggestions from retrieval-augmented models and supervised fine-tuning techniques, but focuses on what directly helps the fixer achieve a verified patch, eliminating unnecessary resource expenditure. Evan: Did the authors discuss any future directions based on this body of related work? Ashley: Yes, they suggest that future work might explore larger models, more rounds of expectation-maximization, and fuller updates to the fixer agent.
This ongoing evolution could further enhance the localization and fixing process, making it even more efficient and effective. Evan: That's exciting. It's great to see continual progress and collaboration in this field. Ashley: Evan. The connectedness between these works underlines the importance of building on existing research to forge paths toward new advancements. Evan: That concludes the Related Work section of the paper. Evan: Let's wrap up today's episode by summarizing the key contributions and takeaways from the paper.
Ashley: The paper titled 'Let the Fixer Decide: Training a Code Localizer from the Fixer’s Likelihood' brings forward several notable contributions. Evan: First, the authors introduced a new method called Fixer-Guided Localization or FGL. This method allows the localizer to suggest multiple code locations which are then scored by a frozen fixer based on their likelihood of producing a verified patch. This scoring feeds into the localizer’s training with weighted supervised fine-tuning.
Ashley: Secondly, they developed a comprehensive pipeline for generating and verifying teacher trajectories within the competition's agent loop. This pipeline enabled them to collect 1,629 verified trajectories, which were crucial for training and evaluation. Evan: Thirdly, the paper presented an evaluation of eight systems on Gemma 4 E4B, showing mixed results. While the method improved aspects like the localization size and reduced wasted reads, it didn't lead to a statistically significant gain in solved tasks compared to an untrained model.
Ashley: And lastly, their analysis identified key limitations that smaller coding agents face under strict time budgets, such as time constraints, repetition loops, and edit quality. They also provided practical lessons for training and deploying small coding agents. Evan: Moreover, they have made the collected data, code, and adapters publicly available, offering a valuable resource for further research and development in the field. Ashley: In essence, this paper moves the needle forward by focusing on effective and resource-efficient training methodologies, and lays a solid foundation for future explorations into larger models and enhanced training techniques.
Evan: That’s our summary of 'Let the Fixer Decide: Training a Code Localizer from the Fixer’s Likelihood'. We hope you found today's discussion insightful. Ashley: Thank you for joining us on this episode of Daily Paper Cast. Evan: Remember to tune in every day for more deep dives into the latest research in AI, NLP, CV, and related areas. Ashley: We look forward to catching up with you in future episodes. Have a great day!