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
Compute level
Resources
What the paper used
Prerequisites
Scope
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.”
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).
- Replicate the single-round dataset pipeline using the released misraj-ai/locfix repository.
- Fine-tune the S2b fixer on trajectories paired with Round 1 S3r1-soft localizations.
- Re-run candidate generation and likelihood scoring using the updated Round 1 fixer adapter.
- 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?
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 LikelihoodKhalil 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
- Joint Vision-Language Adaptation with Auxiliary 3D Geometric Supervision for Spatial GUI AgentsTuringSpace: Grounding Spatial Intelligence in Action with Interactive CAPTCHAs🟠Medium
- Trajectory Distillation of Closed-Loop VLM 3D Part Refinement AgentsPartAgent: Agentic 3D Part Segmentation via Expert Integration and Closed-Loop Refinement🟠Medium
- Joint Vision-Language Fine-Tuning with Structured State-Transition SupervisionLost in the Hallway: Benchmarking Persistent Spatial Memory Across Revisits🟠Medium
- Layer-Adaptive Parameter Merging for Multimodal Domain AdaptationWeMM-Ecom: Advancing Multimodal Content Understanding for WeChat E-Commerce🟡Fairly easy
- Principled Stabilization of Dual-Stream Optimization Without Bounded Activation SwapsRewirable Circuits in Transformers with Loom Attention🟠Medium