AgentPatch: Coarse-to-Fine Weak-Task Repair for Merging Agentic Multimodal Large Language Models

Zibo Shao, Baochen Xiong, Chengdong Xu, Linhui Xiao, Kaichen Li, Haoran Gong, Yan Li, Yaguang Song, Xiaoshan YangarXiv 2026

TL;DR

AgentPatch is a training-free, coarse-to-fine framework designed to fix capability imbalances and critical action failures when merging specialized agentic Multimodal Large Language Models (MLLMs). By isolating weak-task-specific parameter updates and surgically patching behavior-critical neurons, it delivers a well-balanced generalist model without the need for expensive retraining or complex inference-time routing.

What Problem Does This Paper Address?

Agentic MLLMs excel at specific interactive tasks, such as web searching, operating graphical user interfaces (GUIs), or performing fine-grained visual analysis. However, deploying separate expert models for every scenario incurs massive storage and maintenance overhead.

While model merging offers a cost-effective way to combine these experts into a single generalist model without retraining, traditional merging methods struggle with two major challenges unique to agentic workflows:

  1. Asymmetric Capability Preservation (Weak-Task Degradation): Standard merging techniques dilute capabilities unevenly. Complex, multi-step interactive tasks (like GUI navigation) often suffer massive performance drops compared to simpler or more static tasks.
  2. Behavior-Critical Forgetting: Agentic success is highly sensitive to specific execution trajectories. Unlike static predictions, a single minor mistake in an agent's action sequence (e.g., performing a standard click instead of a long-press) can alter the environment state and trigger a catastrophic failure loop.
Figure 1: Two challenges of agentic MLLM merging. (a) Results on the development subsets show that merg- ing methods preserve heterogeneous capabilities unevenly, causing severe weak-task degradation. (b) Losing a behavior- critical action can change the environment state and trigger trajectory-level failure.

Methods

AgentPatch introduces a training-free, coarse-to-fine pipeline to repair these degraded capabilities:

  • Stable Backbone Selection: The framework evaluates candidate merging operators (such as Weight Averaging, Task Arithmetic, and TSVM) on a small development set to select the most stable initialization and identify the weakest-performing task.
  • Weak-Task Unique Residual Recovery: To boost the weak task without harming others, AgentPatch isolates parameter updates exclusive to the weak-task expert. By masking out coordinates where other experts are active, it injects weak-task signals while preventing negative interference.
  • Agent-Guided Behavior-Critical Patch: This fine-grained, behavior-level repair utilizes an offline Diagnoser-Guardian-Compiler (DGC) workflow. The Diagnoser compares successful expert trajectories against failed recipient trajectories to locate behavioral gaps. The Guardian identifies successful behaviors that must be protected. The Compiler maps these behaviors to specific token-level spans. AgentPatch then scores and targets specific feed-forward network (FFN) neurons, softly interpolating them toward the expert while strictly excluding protected neurons.
Figure 2: Overview of AgentPatch. Starting from search, GUI-interaction, and agentic visual processing experts derived from a shared base model, AgentPatch first selects a stable merged backbone. It then restores weak-task-exclusive updates diluted during merging through coarse parameter-level residual recovery. Finally, the Diagnoser–Guardian–Compiler (DGC) workflow contrasts recipient and expert trajectories, compiles behavior-critical repair and protection spans, maps them to behavior-critical FFN neurons, and applies a Guardian-constrained expert-directed patch.

Datasets

The authors evaluate AgentPatch across six prominent benchmarks covering three distinct agentic domains:

  • Agentic Multimodal Search: MMSearch and FactualVQA
  • GUI Interaction: AndroidWorld (mobile environment) and OSWorld (desktop environment)
  • Agentic Visual Processing: V*Bench (fine-grained visual search) and HR-Bench 8K (high-resolution image understanding)

Key Insights and Ideas

  • Uniqueness Over Full Vector Injection: Simply injecting a weak expert's entire task vector causes massive collateral damage to other capabilities. Restricting recovery strictly to coordinates unique to the weak expert provides a much safer, balanced boost.
  • Micro-Decisions Dictate Trajectory Success: In agentic workflows, errors compound. Traditional merging optimizes for global parameter compatibility, but AgentPatch demonstrates that identifying and protecting localized, behavior-critical FFN neurons is what actually prevents trajectory-level collapse.
Figure 3: Effect of weak-task residual support relative to the TSVM backbone. Weak-Task Active uses all coordinates active in the weak-task expert, whereas Weak-Task Unique retains only coordinates inactive in the other experts. Each task type averages the same two test benchmarks as in Table 2; Avg. is the mean over all six benchmarks.

Key Results

  • State-of-the-Art Merging Performance: AgentPatch achieved the highest overall average score of 56.6% across all six benchmarks, outperforming strong baselines like TSVM (54.5%) and Weight Averaging (49.3%).
  • Effective Weak-Task Rescue: It successfully rescued the weak task (GUI interaction), boosting the GUI average from 38.5% to 41.3% while simultaneously improving or maintaining performance on Search and Visual Processing tasks.
  • Robust Generalization: The method demonstrated consistent improvements when applied to different initial merged backbones (TSVM and Iso-CTS), proving it is not tied to a single backbone construction rule.
Figure 5: Qualitative examples of behavior-critical recov- ery. Both models execute the shared correct prefix, but the selected backbone omits or misgrounds a decisive action. AgentPatch recovers the action and completes the task.

Limitations and Future Work

  • Shared Base Model Dependency: AgentPatch currently requires that all expert models share the exact same base model architecture and aligned parameter structures.
  • One-Time Preprocessing Cost: Setting up the behavior-critical patch requires running offline calibration trajectories and calling an analysis agent, which introduces an upfront computational cost (though inference remains completely free and static).
  • Scalability to More Experts: The current study focuses on merging three expert models; evaluating how well this workflow scales to a larger number of heterogeneous experts remains an open area for future research.

Summary updated

BibTeX
@misc{shao2026agentpatch,
  author = {Zibo Shao and Baochen Xiong and Chengdong Xu and Linhui Xiao and Kaichen Li and Haoran Gong and Yan Li and Yaguang Song and Xiaoshan Yang},
  title = {{AgentPatch: Coarse-to-Fine Weak-Task Repair for Merging Agentic Multimodal Large Language Models}},
  year = {2026},
  eprint = {2608.06699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.06699},
}
Figure