Skip to content
AI-generated research idea🟠Medium🔬Significant ResearchNo close match found

Alternating Multi-Round Expectation-Maximization for Joint Agent Fine-Tuning

Train code localizers and fixers through multiple alternating expectation-maximization rounds to enable mutual adaptation beyond single-round fine-tuning.

Time

several weeks

Compute level

Multiple GPUs

Resources

Multi-GPU training cluster (e.g., 4x A100 80GB GPUs), public training datasets (SWE-bench, SWE-Gym, R2E-Gym).

What the paper used

130 A100 80GB GPU hours reported for data preparation, candidate generation, scoring, and single-round fine-tuning.

Prerequisites

reinforcement learning, expectation-maximization, multi-agent LLM fine-tuning

Scope

new model architecture

The Gap

In Section 2.4 and Section 7, the FGL training pipeline executes only a single round of EM that updates solely the localizer adapter, keeping the fixer adapter static and preventing the two sub-agents from co-adapting across multiple optimization cycles.

“We trained one model size (E4B) and ran one EM round that updated only the localizer.”
From the paper, Section 7, page 12. Matched against the PDF text.

Limitation

Restricting FGL to one EM round with a frozen fixer prevents the fixer from adapting its patch generation strategies to the specific, smaller context structures proposed by the newly trained localizer.

Proposed Solution

Establish an alternating iterative training framework: after Round 1 updates the localizer using fixer patch likelihoods, retrain the fixer adapter on trajectories generated using Round 1 localizations. Then repeat candidate proposal and likelihood scoring in Round 2 to update the localizer again, iterating until localizer context efficiency and fixer patch accuracy converge.

The paper’s authors list this direction as future work, so they may already be pursuing it.

Why This Matters

Expected to achieve joint optimal alignment between localizer output distribution and fixer context preference, yielding higher end-to-end task completion rates.

How to Get Started

How to test it: Hypothesize that multi-round EM (3 rounds) outperforms 1-round FGL in resolved dev tasks. Compare 3-round localizer+fixer agents against S3r1-soft baseline on the 78 dev tasks using McNemar exact test (p < 0.05 target).

  1. Replicate the single-round dataset pipeline using the released misraj-ai/locfix repository.
  2. Fine-tune the S2b fixer on trajectories paired with Round 1 S3r1-soft localizations.
  3. Re-run candidate generation and likelihood scoring using the updated Round 1 fixer adapter.
  4. Train a Round 2 localizer adapter and benchmark end-to-end performance on the 78 development set tasks.

Suggested by AI. Adapt it to your setup.

Has This Been Done?

No close match in 10 results

None of the provided papers propose an alternating expectation-maximization training framework specifically for jointly fine-tuning localizer and fixer agents based on patch likelihoods and trajectory generation. While papers like Reasoning and Tool-use Compete in Agentic RL and MAT-Agent touch upon multi-agent training optimization and agentic fine-tuning, they leave this exact EM iteration scheme unaddressed.

We searched OpenAlex and arXiv for “expectation maximization code localization multi-agent co-adaptation iterative fine-tuning” and “Alternating Multi-Round Expectation-Maximization for Joint Agent Fine-Tuning” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

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

Khalil Hennara, Muhammad Hreden, Zeina Aldallal +2 more · 2026

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.

Related Ideas

Is this a good idea?

Share onXLinkedIn