Multi-task Code LLMs: Data Mix or Model Merge?
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
Recent research advocates deploying smaller, specialized code LLMs in agentic frameworks alongside frontier models, sparking interest in efficient strategies for multi-task learning that balance performance, constraints, and costs. We compare two approaches for creating small, multi-task code LLMs: data mixing versus model merging. We conduct extensive experiments across two model families (Qwen Coder and DeepSeek Coder) at two scales (2B and 7B parameters), fine-tuning them for code generation and code summarization tasks. Our evaluation on HumanEval, MBPP, and CodeXGlue benchmarks reveals that model merging achieves the best overall performance at larger scale across model families, retaining 96% of specialized model performance on code generation tasks while maintaining summarization capabilities. Notably, merged models can even surpass individually fine-tuned models, with our best configuration of Qwen Coder 2.5 7B model achieving 92.7% Pass@1 on HumanEval compared to 90.9% for its task-specific fine-tuned equivalent. At a smaller scale we find instead data mixing to be a preferred strategy. We further introduce a weight analysis technique to understand how different tasks affect model parameters and their implications for merging strategies. The results suggest that careful merging and mixing strategies can effectively combine task-specific capabilities without significant performance degradation, making them ideal for resource-constrained deployment scenarios.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 43 of its 62 references that are in the map. First posted on arXiv 28 Jan 2026.
Builds on
43 of 62 references.
Closest ancestors · 2
Same direction, newest first
- 2025Small Language Models are the Future of Agentic AI2 Jun
- 2024Small LLMs Are Weak Tool Learners: A Multi-LLM Agent14 Jan
Other references · 41
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
29 more
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
- 2024Evolutionary Optimization of Model Merging Recipescited by 204
- 2024Arcee's MergeKit: A Toolkit for Merging Large Language Modelscited by 189
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 179
- 2024CodeGemma: Open Code Models Based on Gemmacited by 145
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 115
- 2024DELLA-Merging: Reducing Interference in Model Merging through Magnitude-Based Samplingcited by 77
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024MetaGPT: Merging Large Language Models Using Model Exclusive Task Arithmeticcited by 53
- 2025Scaling Laws for Optimal Data Mixturescited by 49
- 2024Using AI-Based Coding Assistants in Practice: State of Affairs, Perceptions, and Ways Forwardcited by 44
- 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 41
- 2024A Deep Dive into Large Language Models for Automated Bug Localization and Repaircited by 39
- 2025When is Task Vector Provably Effective for Model Editing? A Generalization Analysis of Nonlinear Transformerscited by 38
- 2023MFTCoder: Boosting Code LLMs with Multitask Fine-Tuningcited by 34
- 2025MergeBench: A Benchmark for Merging Domain-Specialized LLMscited by 30
- 2023CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Modelscited by 28
- 2024Code-Switching Curriculum Learning for Multilingual Transfer in LLMscited by 26
- 2024CMR Scaling Law: Predicting Critical Mixture Ratios for Continual Pre-training of Language Modelscited by 23
- 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
- 2025MergeME: Model Merging Techniques for Homogeneous and Heterogeneous MoEscited by 13
- 2025Data Mixing Optimization for Supervised Fine-Tuning of Large Language Modelscited by 12
- 2025Scaling Laws for Code: Every Programming Language Matterscited by 8
- 2024XFT: Unlocking the Power of Code Instruction Tuning by Simply Merging Upcycled Mixture-of-Expertscited by 7
- 2025Optimizing Datasets for Code Summarization: Is Code-Comment Coherence Enough?cited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging
- 2026Rethinking Heterogeneous LLM Merging: A Weighted Model Averaging Perspective
- 2024Unconstrained Model Merging for Enhanced LLM Reasoning
- 2025Sens-Merging: Sensitivity-Guided Parameter Balancing for Merging Large Language Models
- 2025OptMerge: Unifying Multimodal LLM Capabilities and Modalities via Model Merging
- 2026Model Merging in the Era of Large Language Models: Methods, Applications, and Future Directions
- 2024Model-GLUE: Democratized LLM Scaling for A Large Model Zoo in the Wild
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research