CAMFT: Conflict-Aware Mergeable Fine-Tuning for Large Language Models
Organizations: School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences · Institute of Automation, Chinese Academy of Sciences
Abstract
Model merging has emerged as a promising paradigm for integrating multiple task-specific capabilities into a single large language model. However, existing methods predominantly focus on post-hoc processing of independently fine-tuned models, overlooking how the training phase itself impacts cross-task compatibility. Resolving parameter conflicts after fine-tuning is inherently sub-optimal. To address this, we propose CAMFT, a Conflict-Aware Mergeable Fine-Tuning method that makes task adaptation both efficient and mergeaware. CAMFT treats mergeability as a property shaped during fine-tuning, rather than only a problem to be solved after fine-tuning. By guiding each task to update sparse coordinates with lower cross-task conflict, CAMFT produces task updates that are efficient to train and more compatible for downstream model merging. Extensive experiments demonstrate that CAMFT outperforms standard finetuning baselines in multi-task merging scenarios. Codes are available at https://github.com/gyanchow/CAMFT-LLM.
Figures & tables
| Single-task Performance | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Params | C-ST | FOMC | SciQA | NG-cm | NG-ds | MtgBk | 20Min | Avg ( ) | Merge. |
| Full FT | Full | 0.500 | 0.649 | 0.791 | 0.407 | 0.588 | 0.649 | 0.400 | 0.569 0.002 | – |
| LoRA | 45.1M | 0.451 | 0.679 | 0.848 | 0.247 | 0.619 | 0.664 | 0.399 | 0.558 0.004 | – |
| PiSSA | 45.1M | 0.431 | 0.653 | 0.835 | 0.264 | 0.603 | 0.673 | 0.382 | 0.549 0.002 | – |
| SVFT | 34.4M | 0.423 | 0.626 | 0.617 | 0.257 | 0.533 | 0.526 | 0.365 | 0.478 0.008 | – |
| OSRM † | 45.1M | 0.436 | 0.673 | 0.845 | 0.231 | 0.566 | 0.643 | 0.384 | 0.540 0.005 | – |
| Variant | Merged Avg | |
|---|---|---|
| CAMFT (Full) | 0.464 | – |
| w/o Conflict Estimation | 0.395 | 0.069 |
| w/o Gradient Probing | 0.376 | 0.088 |
| w/o SVD-space Importance | 0.427 | 0.037 |
| # Samples | 10 | 100 | 200 | 500 | 1000 |
|---|---|---|---|---|---|
| Merged Avg | 0.4057 | 0.4276 | 0.4592 | 0.4644 | 0.4497 |
| Merging Method | Full FT | MergOPT | CAMFT |
|---|---|---|---|
| Average | 0.368 | 0.378 | 0.389 |
| Task Arithmetic | 0.388 | 0.395 | 0.402 |
| DARE | 0.378 | 0.385 | 0.391 |
| TIES | 0.418 | 0.442 | 0.464 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Source | Language | Avg. Len. | Metric |
| Domain-specific | ||||
| ScienceQA | Science | English | 210 | Accuracy |
| FOMC | Finance | English | 51 | Accuracy |
| MeetingBank | Meeting | English | 2,853 | ROUGE-L |
| Multi-lingual | ||||
| C-STANCE | Social media | Chinese | 127 | Accuracy |
| Task | Epochs |
|---|---|
| C-STANCE | 5 |
| FOMC | 3 |
| ScienceQA | 7 |
| NumGLUE-cm | 5 |
| NumGLUE-ds | 5 |
| MeetingBank | 7 |
| Hyperparameter | Search Grid |
|---|---|
| Learning rate (Full FT) | |
| Learning rate (PEFT) | |
| Weight decay | |
| LoRA (LoRA/PiSSA/OSRM) | |
| Batch size | |
| Optimizer | AdamW |
| Merging Method | Hyperparameters |
|---|---|
| Average | |
| Task Arithmetic | |
| DARE | ; |
| TIES | ; |
| Hyperparameter | Search Grid |
|---|---|
| Specificity reward | |
| Conflict penalty | |
| Exclusivity ratio (%) | |
| Scaling factor |
| Hyperparameter | Llama-3.2-1B | Qwen3-4B |
|---|---|---|
| Global (shared across tasks) | ||
| 1.0 | 1.0 | |
| 2.0 | 2.0 | |
| (%) | 10 | 10 |
| Per-task scaling factor | ||
| C-STANCE | 1.0 | 1.0 |
LLM Fine-Tuning
LLM fine-tuning adapts pretrained large language models to tasks, domains, languages, and behaviors through additional training.
See all 746 papers