CoMerge: Conflict-Driven Preference Optimization for Multi-Task Model Merging

Mingjie Zheng, Zihao Chen, Wenqing Chen, Weile Yuan, Zhixuan Chu, Jianxing Yu, Zibin ZhengarXiv 2026

TL;DR

CoMerge is a novel framework that treats multi-task model merging as a preference optimization problem. By using the failures of naive merging as "what-not-to-do" examples, it learns to resolve parameter conflicts using just a few thousand scalar coefficients, achieving performance nearly identical to full-parameter fine-tuning at a fraction of the computational cost.

What Problem Does This Paper Address?

Large Language Models (LLMs) are often fine-tuned into "experts" for specific tasks like coding, math, or safety. Model merging aims to combine these experts into a single multi-task model without the massive expense of retraining from scratch.

The standard approach, "Task Arithmetic," simply adds the parameter updates (task vectors) of different experts together. However, this often leads to parameter interference: updates for one task might conflict with another, causing the merged model to "forget" skills or lose its safety guardrails. While existing methods try to mitigate this by pruning or scaling parameters, they rarely look at the actual behavioral failures—the hallucinations and logical errors—that occur when models are merged naively.

Methods

CoMerge introduces a three-stage pipeline to bridge the gap between parameter-space merging and behavior-level alignment:

  1. Efficient Task Vector Extraction: The framework extracts updates from expert models, applies global magnitude pruning (keeping only the top 10% of updates), and uses Singular Value Decomposition (SVD) to create a low-rank, memory-efficient representation of the task vectors.
  2. Self-Supervised Preference Synthesis: This is the core innovation. Instead of requiring human-labeled data, CoMerge automatically generates preference pairs. For a given input, it treats the output of a specialized expert model as the "chosen" (positive) response and the output of a naively merged model as the "rejected" (negative) response. This creates a training signal that explicitly targets the conflicts inherent in naive merging.
  3. Parameter-Efficient Preference Optimization: Using Direct Preference Optimization (DPO), CoMerge tunes a set of tensor-wise merging coefficients. Rather than using one global scaling factor, it learns a specific scalar for every tensor in every layer for every task (e.g., 1,445 coefficients for a Llama-3.1-8B model).
Figure 2: The CoMerge framework. CoMerge extracts sparse task vectors, synthesizes self-supervised preference pairs from expert and Task Arithmetic outputs, and optimizes tensor-wise coefficients Λ for conflict-aware model merging.

Datasets

The authors evaluated CoMerge using MergeBench, a comprehensive benchmark for multi-task merging. It covers 12 datasets across five critical domains:

  • Instruction Following: IFEval
  • Mathematics: GSM8K, MATH
  • Multilingual Understanding: M-MMLU, M-ARC, M-HellaSwag
  • Coding: HumanEval+, MBPP+
  • Safety: WildGuardTest, HarmBench, DoAnythingNow, XSTest

For the preference optimization phase, they used a small calibration set of 1,000 unlabeled examples per expert task.

Key Insights and Ideas

  • Failure is a Teacher: The most powerful idea in CoMerge is treating the "defects" of naive merging as hard negative samples. By showing the optimizer exactly where the merged model fails, the system learns to steer away from those conflict-prone regions of the parameter space.
  • Granularity is Key: The authors found that "global" coefficients (one per task) aren't enough. As shown in Figure 3, different tasks require different levels of influence at different depths of the model. For example, "Instruction" tasks tend to have higher weights in shallow-to-middle layers, while "Safety" and "Coding" weights increase in later layers.
  • Structural Regularization: By only optimizing a tiny number of coefficients (scalars) rather than billions of weights, CoMerge acts as a form of structural regularization, preventing the model from deviating too far from the original expert knowledge while still resolving conflicts.
Layer-wise coefficient heatmap showing task-specific importance across model depth

Key Results

CoMerge sets a new state-of-the-art for data-driven model merging:

  • Near-Perfect Retention: It achieved an average normalized performance (NP) of 0.9968 on MergeBench, meaning it retained nearly 100% of the original experts' capabilities.
  • Outperforming Baselines: It significantly outperformed both data-free methods (like TIES-Merging) and other data-driven methods (like AdaMerging). On conflict-sensitive tasks like Instruction Following, CoMerge scored 0.9952, compared to just 0.8687 for standard Task Arithmetic.
  • Efficiency Gains: Compared to "Full-DPO" (which fine-tunes all parameters), CoMerge reached peak performance using 60.1% fewer GPU-minutes and optimized only 1,445 parameters instead of 8 billion.
Comparison of CoMerge against various merging baselines

Limitations and Future Work

While highly effective, CoMerge has a few areas for improvement:

  • Label Noise: The method assumes expert outputs are always better than merged outputs. If an expert gives a poor response, it introduces "noise" into the preference signal.
  • Fixed Hyperparameters: The pruning threshold (10%) and SVD rank (1500) were fixed across all experiments. Future work could explore dynamically optimizing these values.
  • Advanced Synthesis: The authors suggest that even more sophisticated ways of generating negative samples (beyond just naive merging) could further improve the robustness of the final model.

Summary updated

BibTeX
@misc{zheng2026comerge,
  author = {Mingjie Zheng and Zihao Chen and Wenqing Chen and Weile Yuan and Zhixuan Chu and Jianxing Yu and Zibin Zheng},
  title = {{CoMerge: Conflict-Driven Preference Optimization for Multi-Task Model Merging}},
  year = {2026},
  eprint = {2609.02273},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.02273},
}
Figure