{"slug": "fixer-guided-localization-train-code-localizers-from-fixer-patch-likelihood", "title": "Fixer-Guided Localization: Train Code Localizers From Fixer Patch Likelihood", "summary": "A paper submitted November 9, 2026 as arXiv:2611.12164 introduces Fixer-Guided Localization (FGL), a method that trains a code localizer by scoring candidate localizations with a frozen fixer's likelihood of producing the verified patch rather than by imitating the files a reference patch touched. Built on Gemma 4 E4B with dual LoRA adapters for the localizer and fixer roles and trained on 1,629 test-verified Kimi K3 trajectories for Kaggle's Gemma-4 agent track, FGL lets the fixer find bugs as often as teacher locations while showing 27.5% less code; on the dev-set EM round, 53 versus 46 tasks reached a patch and 8 versus 6 were solved, with trained agents exploring roughly 3× more and writing fewer wrong patches. The authors report no reinforcement learning and no test-suite execution in the training loop, and released code on GitHub (misraj-ai/locfix) and adapters on Hugging Face (Hennara/locfix-e4b-runs_p).", "body_md": "**Fixer-Guided Localization (FGL)** trains a **code localizer** from **how likely a frozen fixer is to write a verified patch**, not from **which files a teacher patch touched**. The method appears in [arXiv:2611.12164](https://arxiv.org/abs/2611.12164?ref=explainx), submitted **November 9, 2026**, with **public code** on [GitHub (`misraj-ai/locfix`)](https://github.com/misraj-ai/locfix?ref=explainx) and **adapters** on [Hugging Face (`Hennara/locfix-e4b-runs_p`)](https://huggingface.co/Hennara/locfix-e4b-runs_p?ref=explainx).\n\n## TL;DR\n\n| Question | Answer | \n|---|---|\n| **Problem** | Localizers trained on **reference patch files** show code the fixer never needs | \n| **Idea** | Let the **fixer’s patch likelihood** score each candidate localization | \n| **Base model** | **Gemma 4 E4B** with**dual LoRA** (localizer + fixer) | \n| **Data** | **1,629** test-verified**Kimi K3** trajectories for Kaggle’s Gemma-4 agent track | \n| **Efficiency** | Fixer finds bugs as often as teacher locations with **27.5% less code** shown | \n| **Dev-set EM round** | **53 vs 46** tasks reach a patch;**8 vs 6** solved | \n| **Behavior** | Trained agents **explore ~3× more** and write**fewer wrong patches** | \n\n## Why file-matching localizers miss the point\n\nMost **agent harnesses** split work into **find** and **fix**. A **localizer** proposes paths and symbols; a **fixer** reads context, edits, and runs tests. Industrial stacks such as **[Cisco Antares SLMs for vulnerability localization](https://explainx.ai/blog/cisco-antares-vulnerability-localization-slm-july-2026)** treat localization as its own model skill.\n\nSupervised localizers often imitate **files touched by a reference patch**. The authors of **2611.12164** argue that set is **biased toward edits**, not **toward what the fixer must read**. A minimal read set can sit **strictly inside** a large patch diff.\n\nThat mismatch shows up in **[Greptile Trex](https://explainx.ai/blog/greptile-trex-computer-use-accessibility-tree-osworld-november-2026)**-style agents too: retrieval that **chases diff statistics** wastes context window on **irrelevant modules**, exactly the failure mode **[mobile agent testers](https://explainx.ai/blog/mobile-agent-testers-claude-code-github-actions-parallel-qa-november-2026)** hunt in CI.\n\nFGL reframes localization as a **hidden variable**. For a task issue, repository, and **verified patch**, the training objective marginalizes over localizations the fixer could have used.\n\nThe localizer proposes a localization; the fixer assigns likelihood to the verified patch given that context. Gradients push probability mass toward localizations that make the verified patch likely.\n\n## How FGL scores a localization without running tests\n\nCoding agent repository map linking issues to localized files for patch workflows\n\nThe pipeline draws **K** candidate localizations from the **current localizer**, then asks a **frozen fixer** to score each.\n\nThree design choices keep scores stable in the paper:\n\n1. **Score only new-line tokens** in the verified patch, so the fixer cannot cheat by copying unchanged context.\n2. **Penalize size and extra read requests** , because without a cost the best localization is “show the whole tree.”\n3. **Target an effective sample size** via temperature**τ** , so weights do not collapse to a single candidate every step.\n\nThe fixer never updates during this phase. The localizer receives **weighted supervised fine-tuning** on its own proposals.\n\nLoRA adapters on a shared base model for separate localizer and fixer roles in FGL training\n\nThe authors stress **no reinforcement learning** and **no test-suite execution** inside the training loop, unlike some **[agent evaluation harnesses](https://explainx.ai/blog/hugging-face-agentic-evaluation-guide-harbor-november-2026)** that bake CI into reward models.\n\nFor practitioners comparing **[AWS Strands Decider v2](https://explainx.ai/blog/aws-strands-decider-v2-gemma4-november-2026)**-style routing to full coding stacks, FGL is the opposite move: **improve context choice** before you spend tokens on **[frontier fixers](https://explainx.ai/blog/fast-anything-port-hot-functions-rust-coding-agent-verified-replay-2026)**.\n\n## Reported numbers on Gemma 4 E4B\n\nThe competition setup fixes **Gemma 4 E4B** as the shared trunk. Training consumes **1,629** trajectories where **Kimi K3** already produced **test-verified** patches.\n\n| Metric | FGL localizer + fixer | Teacher file match (paper baseline) | \n|---|---|---|\n| Fixer finds bug at same rate as teacher localization | **Yes** | Reference | \n| Code volume shown to fixer | **−27.5%** | Baseline | \n| Tasks reaching any patch after 1 EM round (dev) | **53** | **46** control | \n| Tasks stuck on nonexistent paths (dev) | **43** | **54** control | \n| Tasks fully solved after 1 EM round (dev) | **8** | **6** control | \n| Best single-agent solves (78 tasks, 8 min) | **11** | **8** base | \n\nAfter training, agents **explore about three times more** and emit **far fewer incorrect patches**, which matches the intuition that better localization **widens search** instead of **locking onto wrong files**.\n\nThe paper’s **thirteen-run** postmortem on **4B** agents under an **eight-minute** cap names **time**, **repetition loops**, and **edit quality** as ceilings. That aligns with explainx.ai’s broader warning that **[small-model agent demos](https://explainx.ai/blog/inclusionai-ling-3-2-air-open-weights-november-2026)** live or die on **harness economics**, not leaderboard trivia.\n\n## How to try the released artifacts\n\nThe authors published three touchpoints builders can clone today:\n\n1. **[`misraj-ai/locfix`](https://github.com/misraj-ai/locfix?ref=explainx)** — training and expectation-maximization code for FGL.\n2. **[`khalil-Hennara/codeagent-validate`](https://github.com/khalil-Hennara/codeagent-validate?ref=explainx)** — validation utilities referenced in the PDF.\n3. **[`Hennara/locfix-e4b-runs_p`](https://huggingface.co/Hennara/locfix-e4b-runs_p?ref=explainx)** — adapter weights for the**E4B** localizer run described in the paper.\n\nThe [arXiv abstract](https://arxiv.org/abs/2611.12164?ref=explainx) states **all data, code and adapters are publicly available**, though you should read each repo’s license before shipping in production.\n\nA practical integration pattern for teams already running **[Amazon’s Sonnet swap experiments](https://explainx.ai/blog/amazon-strands-decider-internal-ticketing-sonnet-replacement-2026)**:\n\n- Keep your **fixer** frozen while you iterate localization.\n- Log **fixer likelihood** on candidate**z** during shadow traffic before EM rounds.\n- Treat **27.5% less context** as a**latency and cost** lever, not only an accuracy chart.\n\n## What FGL does not solve\n\nFGL assumes you already have **verified teacher patches** (here from **Kimi K3**). It does not replace **sandboxed test execution** at deployment time, **[verified replay tooling](https://explainx.ai/blog/fast-anything-port-hot-functions-rust-coding-agent-verified-replay-2026)**, or **[security review](https://explainx.ai/blog/cognition-acquires-corridor-devin-security-ex-cisa-founders-stamos-agent-written-code-guardrails-2026)** before merge.\n\nThe paper also studies **one architecture family** on **one competition corpus**. Porting FGL to **[Claude Code](https://explainx.ai/blog/satya-nadella-claude-code-ide-faded-pragmatic-engineer-november-2026)**-scale repositories may need different **K** and **τ** schedules.\n\n## Kaggle Gemma-4 Developer Agent context\n\nThe authors built FGL for **Kaggle’s Gemma-4 Developer Agent competition**, where teams ship **two-role agents** on a **fixed parameter budget**. Localization quality is often the **hidden multiplier**: a fixer with frontier potential still fails when it reads **ghost paths** or **giant folders**.\n\nTheir **1,629** **Kimi K3** trajectories are valuable because every trajectory already passed **hidden tests**. That gives a **verified patch** label without leaking the test suite into training rewards. Teams reimplementing FGL on private repos should mirror that discipline: **teacher patches must be CI-green**, not merely **human-approved**.\n\nExpectation-maximization in the paper is intentionally **lightweight**: **one round** already moves **dev-set solve counts**. Full EM schedules may help, but the authors focus on proving the **fixer-likelihood target** beats **file overlap** as a training signal.\n\n## Comparison with other localization stacks\n\n| Approach | Training target | Needs test runs in training? | \n|---|---|---|\n| **Reference patch files** | Files the teacher edited | No, but misaligns read vs edit sets | \n| **FGL (this paper)** | Fixer likelihood of verified patch | No | \n| **RL with unit tests** | Reward from pass/fail | Yes, expensive | \n| **[Cisco Antares SLM](https://explainx.ai/blog/cisco-antares-vulnerability-localization-slm-july-2026)** | Security-specific file ranking | Inference-time only | \n\nIf you already run **[Harbor-style evals](https://explainx.ai/blog/hugging-face-agentic-evaluation-guide-harbor-november-2026)**, treat FGL as a **pre-training hook** that reduces **context tokens per task**, which lowers **eval cost** before you chase leaderboard points.\n\n## Rolling FGL into your agent harness\n\nA minimal integration plan:\n\n1. **Fork `misraj-ai/locfix`** and point it at your**Gemma 4** or**compatible** base with**dual LoRA** .\n2. **Collect verified patches** from an existing**teacher agent** run log (not from human diffs alone).\n3. **Run soft EM** with**effective sample size ≈ 2** unless you have compute for fuller schedules.\n4. **Shadow-deploy** the localizer: log proposed**z** and fixer scores before enabling tool calls in production.\n\nPair that rollout with **[Strands Decider v2](https://explainx.ai/blog/aws-strands-decider-v2-gemma4-november-2026)** on **routing** and a heavier **fixer** only when localization confidence is low — the same **split-brain economics** Amazon described for **ticketing**.\n\n## What to watch on Hugging Face daily papers\n\n**2611.12164** trended on **Hugging Face papers** in early November with modest upvotes, but the **release of weights** is what makes it actionable today. Watch for **follow-on adapters** on other Gemma 4 sizes and independent **replication runs** on non-Kaggle repos.\n\nIf independent teams cannot reproduce the **11-of-78** single-agent peak, the bottleneck is likely **harness timing** (the paper’s **eight-minute** cap) rather than the **FGL objective** itself — tune budgets before you discard the method.\n\n## FAQ-style checks before you trust the numbers\n\nBuilders auditing **2611.12164** should reproduce **three claims** locally:\n\n1. **Context shrink:** Does your fixer still succeed when the FGL localizer removes roughly**a quarter** of shown code versus teacher-file training?\n2. **Ghost paths:** Does the**43 vs 54** missing-file failure rate improve on**your** repo layout, especially monorepos with generated folders?\n3. **Exploration:** Do trajectories show**wider search** without a spike in**bad patches** ?\n\nLog those three metrics in **[Harbor](https://explainx.ai/blog/hugging-face-agentic-evaluation-guide-harbor-november-2026)** or your internal agent bench before you merge adapters from **`Hennara/locfix-e4b-runs_p`**. The Misraj team tied results to **competition tasks**, not your production issue tracker.\n\nFor **security-sensitive** repos, remember localization is **information disclosure**: a localizer that over-reads secrets teaches the fixer to request **credential files**. Pair FGL with **[Corridor-style guardrails](https://explainx.ai/blog/cognition-acquires-corridor-devin-security-ex-cisa-founders-stamos-agent-written-code-guardrails-2026)** the same way you would any new retrieval tool.\n\n**Bottom line:** FGL is a **public, test-free** way to align **localizers** with **fixers** on small **Gemma 4** stacks. Clone **`locfix`**, verify the **dev-set deltas** on your trajectories, then decide whether **one EM round** is enough or your harness needs deeper schedules.\n\n## Related reading\n\n- [AWS Strands Decider v2 on Gemma 4](https://explainx.ai/blog/aws-strands-decider-v2-gemma4-november-2026) — cheap routing beside heavy fixers.\n- [Hugging Face Harbor agent evaluation guide](https://explainx.ai/blog/hugging-face-agentic-evaluation-guide-harbor-november-2026) — how to score agents once localization changes.\n- [Cisco Antares vulnerability localization](https://explainx.ai/blog/cisco-antares-vulnerability-localization-slm-july-2026) — another SLM-first localization story.\n- [Mobile agent testers in GitHub Actions](https://explainx.ai/blog/mobile-agent-testers-claude-code-github-actions-parallel-qa-november-2026) — parallel QA patterns for agent regressions.\n- [Fast Anything verified replay for coding agents](https://explainx.ai/blog/fast-anything-port-hot-functions-rust-coding-agent-verified-replay-2026) — determinism after agent edits.", "url": "https://wpnews.pro/news/fixer-guided-localization-train-code-localizers-from-fixer-patch-likelihood", "canonical_source": "https://explainx.ai/blog/fixer-guided-localization-gemma-4-code-agent-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-11-24 00:00:00+00:00", "updated_at": "2026-11-24 12:42:47.455032+00:00", "lang": "en", "topics": ["ai-agents", "ai-research", "large-language-models", "developer-tools"], "entities": ["Fixer-Guided Localization", "arXiv:2611.12164", "Gemma 4 E4B", "Kimi K3", "Kaggle", "misraj-ai/locfix", "Hennara/locfix-e4b-runs_p", "Hugging Face"], "also_reported_by": [], "takeaway": "Scoring candidate localizations by a frozen fixer's likelihood of the verified patch, with size and extra-read penalties, let the fixer find bugs as often as teacher locations while showing 27.5% less code (53 vs 46 dev tasks reaching a patch, 8 vs 6 solved).", "recommendation": {"advice": "Train your code localizer on fixer patch likelihood instead of reference-patch files, and penalize localization size and extra reads so the fixer sees 27.5% less code at equal bug-finding.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/fixer-guided-localization-train-code-localizers-from-fixer-patch-likelihood", "markdown": "https://wpnews.pro/news/fixer-guided-localization-train-code-localizers-from-fixer-patch-likelihood.md", "text": "https://wpnews.pro/news/fixer-guided-localization-train-code-localizers-from-fixer-patch-likelihood.txt", "jsonld": "https://wpnews.pro/news/fixer-guided-localization-train-code-localizers-from-fixer-patch-likelihood.jsonld"}}