MFTCoder: Boosting Code LLMs with Multitask Fine-Tuning
Not on the map. Why?
Abstract (arXiv)
Code LLMs have emerged as a specialized research field, with remarkable studies dedicated to enhancing model's coding capabilities through fine-tuning on pre-trained models. Previous fine-tuning approaches were typically tailored to specific downstream tasks or scenarios, which meant separate fine-tuning for each task, requiring extensive training resources and posing challenges in terms of deployment and maintenance. Furthermore, these approaches failed to leverage the inherent interconnectedness among different code-related tasks. To overcome these limitations, we present a multi-task fine-tuning framework, MFTcoder, that enables simultaneous and parallel fine-tuning on multiple tasks. By incorporating various loss functions, we effectively address common challenges in multi-task learning, such as data imbalance, varying difficulty levels, and inconsistent convergence speeds. Extensive experiments have conclusively demonstrated that our multi-task fine-tuning approach outperforms both individual fine-tuning on single tasks and fine-tuning on a mixed ensemble of tasks. Moreover, MFTcoder offers efficient training capabilities, including efficient data tokenization modes and PEFT fine-tuning, resulting in significantly improved speed compared to traditional fine-tuning methods. MFTcoder seamlessly integrates with several mainstream open-source LLMs, such as CodeLLama and Qwen. Leveraging the CodeLLama foundation, our MFTcoder fine-tuned model, textscCodeFuse-CodeLLama-34B, achieves an impressive pass@1 score of 74.4% on the HumaneEval benchmark, surpassing GPT-4 performance (67%, zero-shot). MFTCoder is open-sourced at urlhttps://github.com/codefuse-ai/MFTCOder
Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Builds on 17 of its 59 references that are in the map. First posted on arXiv 4 Nov 2023.
Builds on
17 of 59 references.
References · 17
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Qwen Technical Reportcited by 3,273
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2023StarCoder: may the source be with you!cited by 790
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2023Baichuan 2: Open Large-scale Language Modelscited by 664
- 2023Textbooks Are All You Needcited by 561
5 more
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2020Multi-Task Learning with Deep Neural Networks: A Surveycited by 374
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2019Adaptive Scheduling for Multi-Task Learningcited by 24
Built on by
Citing papers per year: 2023: 4; 2024: 17; 2025: 8; 2026: 5.
34 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024The Perfect Blend: Redefining RLHF with Mixture of Judgescited by 43
- 2024A Comprehensive Survey and Guide to Multimodal Large Language Models in Vision-Language Taskscited by 27
- 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Taskscited by 27
- 2024LLAVADI: What Matters For Multimodal Large Language Models Distillationcited by 25
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 22
- 2025M2-omni: Advancing Omni-MLLM for Comprehensive Modality Support with Competitive Performancecited by 19
- 2024Causal-Guided Active Learning for Debiasing Large Language Modelscited by 15
- 2023ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Taskscited by 14
- 2024Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Modelscited by 14
22 more
- 2023Adapting Large Language Models for Education: Foundational Capabilities, Potentials, and Challengescited by 13
- 2025Every Sample Matters: Leveraging Mixture-of-Experts and High-Quality Data for Efficient and Accurate Code LLMcited by 13
- 2026Graph is a Substrate Across Data Modalitiescited by 13
- 2024FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Designcited by 11
- 2023YUAN 2.0: A Large Language Model with Localized Filtering-based Attentioncited by 9
- 2024UniRS: Unifying Multi-temporal Remote Sensing Tasks through Vision Language Modelscited by 8
- 2026OpAgent: Operator Agent for Web Navigationcited by 8
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergycited by 7
- 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuningcited by 7
- 2024Relation Extraction with Fine-Tuned Large Language Models in Retrieval Augmented Generation Frameworkscited by 6
- 2025MoORE: SVD-based Model MoE-ization for Conflict- and Oblivion-Resistant Multi-Task Adaptationcited by 4
- 2024Parameter-Efficient Fine-Tuning of Large Language Models for Unit Test Generation: An Empirical Studycited by 3
- 2026Text2GraphQuery-Bench: A Text to Graph Query Benchmarkcited by 3
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMscited by 1
- 2024Variational Model Merging for Pareto Front Estimation in Multitask Finetuningcited by 1
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2024CodingTeachLLM: Empowering LLM's Coding Ability via AST Prior Knowledgecited by 0
- 2025A Framework for Controllable Multi-objective Learning with Annealed Stein Variational Hypernetworkscited by 0
- 2025Advancing Compositional LLM Reasoning with Structured Task Relations in Interactive Multimodal Communicationscited by 0
- 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignmentcited by 0
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysiscited by 0
- 2026OpAgent: Operator Agent for Web Navigation14 Feb 2026
- 2026Text2GraphQuery-Bench: A Text to Graph Query Benchmark12 Feb 2026
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis3 Feb 2026
- 2026Graph is a Substrate Across Data Modalities29 Jan 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment6 Oct 2025
- 2025Advancing Compositional LLM Reasoning with Structured Task Relations in Interactive Multimodal Communications28 Jul 2025
- 2025MoORE: SVD-based Model MoE-ization for Conflict- and Oblivion-Resistant Multi-Task Adaptation17 Jun 2025
- 2025A Framework for Controllable Multi-objective Learning with Annealed Stein Variational Hypernetworks7 Jun 2025
- 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Tasks22 May 2025
- 2025Every Sample Matters: Leveraging Mixture-of-Experts and High-Quality Data for Efficient and Accurate Code LLM22 Mar 2025
22 more
- 2025M2-omni: Advancing Omni-MLLM for Comprehensive Modality Support with Competitive Performance26 Feb 2025
- 2024UniRS: Unifying Multi-temporal Remote Sensing Tasks through Vision Language Models30 Dec 2024
- 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuning11 Dec 2024
- 2024Variational Model Merging for Pareto Front Estimation in Multitask Finetuning11 Dec 2024
- 2024A Comprehensive Survey and Guide to Multimodal Large Language Models in Vision-Language Tasks9 Nov 2024
- 2024Parameter-Efficient Fine-Tuning of Large Language Models for Unit Test Generation: An Empirical Study4 Nov 2024
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMs17 Oct 2024
- 2024The Perfect Blend: Redefining RLHF with Mixture of Judges30 Sep 2024
- 2024Causal-Guided Active Learning for Debiasing Large Language Models23 Aug 2024
- 2024LLAVADI: What Matters For Multimodal Large Language Models Distillation28 Jul 2024
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergy19 Jul 2024
- 2024Relation Extraction with Fine-Tuned Large Language Models in Retrieval Augmented Generation Frameworks20 Jun 2024
- 2024Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Models9 Jun 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Models4 Apr 2024
- 2024CodingTeachLLM: Empowering LLM's Coding Ability via AST Prior Knowledge13 Mar 2024
- 2024A Survey on Knowledge Distillation of Large Language Models20 Feb 2024
- 2024FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Design25 Jan 2024
- 2023Adapting Large Language Models for Education: Foundational Capabilities, Potentials, and Challenges27 Dec 2023
- 2023ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Tasks14 Dec 2023
- 2023YUAN 2.0: A Large Language Model with Localized Filtering-based Attention27 Nov 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2026OpAgent: Operator Agent for Web Navigationcited by 8
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026OpAgent: Operator Agent for Web Navigation14 Feb 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2024The Perfect Blend: Redefining RLHF with Mixture of Judgescited by 43
- 2024The Perfect Blend: Redefining RLHF with Mixture of Judges30 Sep 2024
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Taskscited by 27
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 22
- 2025M2-omni: Advancing Omni-MLLM for Comprehensive Modality Support with Competitive Performancecited by 19
- 2024Causal-Guided Active Learning for Debiasing Large Language Modelscited by 15
- 2023ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Taskscited by 14
- 2023Adapting Large Language Models for Education: Foundational Capabilities, Potentials, and Challengescited by 13
- 2026Graph is a Substrate Across Data Modalitiescited by 13
- 2024FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Designcited by 11
- 2023YUAN 2.0: A Large Language Model with Localized Filtering-based Attentioncited by 9
12 most cited of 23 All 23 (JSON)
- 2026Text2GraphQuery-Bench: A Text to Graph Query Benchmark12 Feb 2026
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis3 Feb 2026
- 2026Graph is a Substrate Across Data Modalities29 Jan 2026
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment6 Oct 2025
- 2025A Framework for Controllable Multi-objective Learning with Annealed Stein Variational Hypernetworks7 Jun 2025
- 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Tasks22 May 2025
- 2025M2-omni: Advancing Omni-MLLM for Comprehensive Modality Support with Competitive Performance26 Feb 2025
- 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuning11 Dec 2024
- 2024Variational Model Merging for Pareto Front Estimation in Multitask Finetuning11 Dec 2024
- 2024Parameter-Efficient Fine-Tuning of Large Language Models for Unit Test Generation: An Empirical Study4 Nov 2024
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMs17 Oct 2024
12 newest of 23 All 23 (JSON)