- The paper demonstrates that iterative many-shot merging consistently lowers multi-task loss across Task Arithmetic, DARE, TIES, and ConsensusTA, with Task Arithmetic improving normalized performance from 0.706 to 0.857.
- METIS combines loss-gap-aware task weighting with consensus masking to reduce information erasure, achieving the best normalized performance across four backbones and improving worst-task performance to 0.872 on Llama-3.2-3B.
- The results show that METIS scales to eleven tasks, preserves pre-trained knowledge nearly as well as the original models, and adds only moderate runtime overhead, although its worst-case theoretical guarantee depends on unverified assumptions.
Motivation and problem statement
Model merging has become a practical post-training strategy for constructing a single multi-task LLM from independently fine-tuned task-specialized models. The dominant paradigm, however, is post-hoc merging: task models are trained to convergence and merged exactly once. This one-shot aggregation induces abrupt cross-task interference, which the authors attribute to model driftโtask-specific updates push parameters toward disparate task-optimal regions, so naive aggregation overwrites task-specific knowledge ("information erasure"). The paper's central claim is that the merging process itself, not merely the merging operator, is a first-order factor: replacing post-hoc aggregation with an iterative many-shot protocolโrepeated local updates interleaved with incremental mergesโconsistently improves multi-task performance across representative merging operators.
Many-shot merging framework and theoretical support
The framework considers T tasks sharing a pre-trained initialization ฮ0. At each round r, each task model performs a local gradient update from the previous merged model, computes its task vector vฯrโ=ฮธฯrโโฮ0, and a merging operator M aggregates them into ฮr. After R rounds all models share ฮR. Post-hoc merging is recovered as the special case R=1 with matched total local updates.
The authors provide a theoretical guarantee (Theorem 1): under L-smoothness of each task loss and learning rate ฮ00, many-shot merging achieves lower multi-task loss than post-hoc merging whenever
ฮ01
where ฮ02 captures the difference in average task losses and ฮ03 the difference in within-round dispersion of task models around their merge point. The proof follows from applying the smoothness inequality to both merge points and averaging; the linear terms cancel because the merged model is the mean of the task models. Notably, the condition is not vacuous but also not restrictiveโthe appendix reports that it holds empirically for Task Arithmetic, DARE, TIES, and ConsensusTA on Llama-3.2-3B, with the loss term dominating (ฮ04 between ฮ05 and ฮ06) while the dispersion term is negligible.
Empirically, simply switching from post-hoc to many-shot merging reduces multi-task loss for every baseline; e.g., ConsensusTA drops from 1.83 to 1.49 and Task Arithmetic from 2.97 to 2.00, with normalized performance rising correspondingly (Task Arithmetic 0.706 โ 0.857). This establishes the paper's first contribution: iterative integration alone accounts for a substantial share of achievable gains, independent of any new merging operator.
METIS: loss-gap weighting and consensus masking
Many-shot merging constrains drift but does not control how heterogeneous updates are weighted during aggregation. METIS addresses this with two mechanisms.
Loss-gap-aware weighting. The task-wise loss gap ฮ07 measures how much worse the current merged model fits task ฮ08 than its locally adapted counterpartโa direct proxy for information erasure incurred in the last round. Merging weights are computed via softmax over scaled loss gaps,
ฮ09
so underrepresented tasks contribute more strongly in the next round. This signal is only available in the many-shot setting, since it requires access to the previously merged model. Theorem 2 shows that, assuming r0-smoothness of the worst-task loss plus bounded-interference and magnitude-control conditions, loss-gap-aware aggregation yields no higher expected worst-task loss than uniform averaging. The proof applies the descent lemma to the two aggregated directions; the key step relies on reweighting aligning the update direction better with the worst task's gradient. These auxiliary assumptions are stated but only informally justified, so the guarantee should be read as conditional rather than unconditional.
Consensus-based masking. Building on ConsensusTA, METIS retains coordinate r1 in a task-specific mask when that task's weighted contribution is not dominated by conflicting contributions (r2), then activates a coordinate in the consensus mask only if at least r3 tasks agree. The final update is r4.
Experimental results
Experiments follow the MergeBench protocol on four backbones (Gemma-2-2B, Llama-3.2-3B, Llama-3.1-8B, Qwen-3-4B), four task categories (instruction-following via IFEval, math via GSM8K, multilingual understanding via M-MMLU/M-ARC/M-HellaSwag, safety via XSTest), with 1,000 training instances per task, LoRA rank 16, and r5 rounds under matched total update budgets.
| Backbone |
Best post-hoc baseline |
Best many-shot baseline |
METIS |
| Gemma-2-2B |
0.752 (ConsensusTA) |
0.791 (ConsensusTA) |
0.800 |
| Llama-3.2-3B |
0.942 (ConsensusTA) |
0.945 (ConsensusTA) |
1.015 |
| Llama-3.1-8B |
0.852 (TIES) |
0.902 (TIES) |
0.935 |
| Qwen-3-4B |
1.108 (TIES) |
1.154 (DARE) |
1.180 |
METIS attains the highest average normalized performance on every backbone, and an extended comparison shows it also exceeds recent subspace-based methods (Iso-C, Iso-CTS, TSV-M, Subspace Boosting), federated/iterative baselines (FedMerge, q-FedAvg, ColD Fusion), and data mixing (TULU 3) on Llama-3.2-3B.
The most distinctive result concerns worst-case robustness. On Llama-3.2-3B, METIS's worst-task score is 0.872 versus 0.825 for the next best method, with an average-to-worst gap of only โ0.14 compared to gaps of โ0.27 to โ0.51 for baselines. On Gemma-2-2B the gap is โ0.28 versus โ0.29 to โ0.45. Since information erasure manifests precisely as collapse on individual tasks, this directly supports the claim that loss-gap rebalancing mitigates erasure rather than merely raising averages.
On pre-trained knowledge retention, evaluated out-of-domain on CoQA and PubMedQA, METIS stays closest to the un-fine-tuned backboneโfor example, 0.698 vs. 0.697 CoQA on Llama-3.1-8B, and 0.684 vs. 0.683 on Qwen-3-4Bโwhereas several baselines lose 10โ20 points. Scaling to 7, 8, and 11 tasks, METIS remains highest at every task count (e.g., 1.036 at 11 tasks vs. 0.812โ1.021 for baselines). Ablations confirm all three components contribute, with removing many-shot merging causing the largest degradation. Sensitivity analyses show graceful behavior across masking thresholds r6, scaling factors r7, and model sizes from 0.6B to 14B. Runtime overhead is moderate: 918 s versus 875โ905 s for standard many-shot baselines and far below TSV-M (3219 s).
Limitations and open questions
The paper concedes that many-shot merging incurs additional training-phase computational overhead from repeated merging steps, though it argues this is modest at r8 and could be reduced within LoRA parameter spaces. More substantively, Theorem 2 depends on bounded-interference and magnitude-control assumptions that are asserted rather than verified empirically, unlike the condition of Theorem 1; the worst-case guarantee therefore rests on unvalidated premises. The evaluation uses small per-task datasets (1,000 instances) and a fixed round count, leaving open whether loss-gap weighting remains beneficial at larger data scales or different round schedules, and whether the approach extends beyond LoRA-based adaptation to full fine-tuning.
Conclusion
This paper reframes model merging as an iterative optimization process rather than a one-shot aggregation step. It demonstrates theoretically and empirically that many-shot merging alone lowers multi-task loss across standard merging operators, and introduces METIS, which further exploits the iterative structure through loss-gap-based task reweighting and consensus masking. The consistent gains in average performance, worst-task robustness, and pre-trained knowledge retention across four backbones and up to eleven tasks indicate that controlling the merging scheduleโand explicitly compensating for per-round information erasureโis a productive axis for building reliable multi-task LLMs.