The Challenge of Merging Multimodal Agents

Merging specialized multimodal large language models (MLLMs) often leads to 'catastrophic forgetting' or performance degradation, particularly in agentic tasks that require complex reasoning across diverse domains. When models are merged, the resulting weights often conflict, causing the model to lose proficiency in specific tasks where the individual source models previously excelled. AgentPatch addresses this by moving beyond simple weight averaging to a targeted, task-specific repair mechanism.

The Coarse-to-Fine Repair Strategy

AgentPatch operates on a two-stage 'coarse-to-fine' methodology to restore performance in merged models:

  1. Coarse Identification: The system first identifies 'weak tasks'—specific capabilities where the merged model underperforms compared to its parent models. This is achieved by evaluating the model across a diverse set of agentic benchmarks to pinpoint where the merging process introduced regressions.
  2. Fine-Grained Repair: Once weak tasks are identified, AgentPatch applies a surgical update to the model's parameters. Instead of retraining the entire model, it isolates the specific weights responsible for the task-specific degradation and applies a corrective patch. This ensures that the global performance of the merged model is maintained while the specific weak-task capabilities are restored to their original (or improved) levels.

Why This Matters for AI Engineering

This approach is significant for developers building agentic systems because it enables the creation of 'super-agents' by combining specialized models without the need for massive, compute-intensive retraining. By treating model merging as a modular engineering problem—where specific capabilities can be patched—AgentPatch provides a more efficient path to deploying multimodal agents that need to excel at a wide range of disparate tasks, from visual reasoning to complex tool usage.