XFT: Unlocking the Power of Code Instruction Tuning by Simply Merging Upcycled Mixture-of-Experts
On the map: Mixture-of-experts → MoE large language models
Abstract (arXiv)
We introduce XFT, a simple yet powerful training scheme, by simply merging upcycled Mixture-of-Experts (MoE) to unleash the performance limit of instruction-tuned code Large Language Models (LLMs). While vanilla sparse upcycling fails to improve instruction tuning, XFT introduces a shared expert mechanism with a novel routing weight normalization strategy into sparse upcycling, which significantly boosts instruction tuning. After fine-tuning the upcycled MoE model, XFT introduces a learnable model merging mechanism to compile the upcycled MoE model back to a dense model, achieving upcycled MoE-level performance with only dense-model compute. By applying XFT to a 1.3B model, we create a new state-of-the-art tiny code LLM (<3B) with 67.1 and 64.6 pass@1 on HumanEval and HumanEval+ respectively. With the same data and model architecture, XFT improves supervised fine-tuning (SFT) by 13% on HumanEval+, along with consistent improvements from 2% to 13% on MBPP+, MultiPL-E, and DS-1000, demonstrating its generalizability. XFT is fully orthogonal to existing techniques such as Evol-Instruct and OSS-Instruct, opening a new dimension for improving code instruction tuning. Codes are available at https://github.com/ise-uiuc/xft.
Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. Builds on 26 of its 48 references that are in the map. First posted on arXiv 23 Apr 2024.
Builds on
26 of 48 references.
Closest ancestors · 7
Same direction, newest first
- 2024OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models29 Jan
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models11 Jan
- 2024Parameter-Efficient Sparsity Crafting from Dense to Mixture-of-Experts for Instruction Tuning on General Tasks5 Jan
- 2022Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints9 Dec
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Experts13 Dec
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding30 Jun
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer23 Jan
Other references · 19
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2020Measuring Massive Multitask Language Understandingcited by 7,876
- 2020Scaling Laws for Neural Language Modelscited by 6,494
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,765
- 2021Program Synthesis with Large Language Modelscited by 3,573
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,044
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,693
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,384
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,362
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,120
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 731
7 more
- 2024TinyLlama: An Open-Source Small Language Modelcited by 611
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 447
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 135
- 2023Mixture of Cluster-conditional LoRA Experts for Vision-language Instruction Tuningcited by 106
- 2022Revisiting Parameter-Efficient Tuning: Are We Really There Yet?cited by 76
- 2022One Student Knows All Experts Know: From Sparse to Densecited by 25
- 2023Experts Weights Averaging: A New General Training Scheme for Vision Transformerscited by 12
Built on by
Citing papers per year: 2024: 3; 2025: 2; 2026: 2.
7 papers.
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
- 2024A Survey on Inference Optimization Techniques for Mixture of Experts Modelscited by 46
- 2024Layerwise Recurrent Router for Mixture-of-Expertscited by 21
- 2025DeRS: Towards Extremely Efficient Upcycled Mixture-of-Experts Modelscited by 10
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2025UMM-RM: An Upcycle-and-Merge MoE Reward Model for Mitigating Reward Hackingcited by 0
- 2026CoVFT: Context-aware Visual Fine-tuning for Multimodal Large Language Modelscited by 0
- 2026CoVFT: Context-aware Visual Fine-tuning for Multimodal Large Language Models22 Mar 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025UMM-RM: An Upcycle-and-Merge MoE Reward Model for Mitigating Reward Hacking30 Nov 2025
- 2025DeRS: Towards Extremely Efficient Upcycled Mixture-of-Experts Models3 Mar 2025
- 2024A Survey on Inference Optimization Techniques for Mixture of Experts Models18 Dec 2024
- 2024SelfCodeAlign: Self-Alignment for Code Generation31 Oct 2024
- 2024Layerwise Recurrent Router for Mixture-of-Experts13 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2024Upcycling Instruction Tuning from Dense to Mixture-of-Experts via Parameter Merging
- 2023Mixture-of-Experts Meets Instruction Tuning:A Winning Combination for Large Language Models
- 2024Let the Expert Stick to His Last: Expert-Specialized Fine-Tuning for Sparse Architectural Large Language Models
- 2024DolphCoder: Echo-Locating Code Large Language Models with Diverse and Multi-Objective Instruction Tuning
- 2026Prism: A Plug-in Reproducible Infrastructure for Scalable Multimodal Continual Instruction Tuning
- 2023Instruction Tuning with GPT-4
- 2024MAmmoTH2: Scaling Instructions from the Web
- 2025SASFT: Sparse Autoencoder-guided Supervised Finetuning to Mitigate Unexpected Code-Switching in LLMs