Mastering Text, Code and Math Simultaneously via Fusing Highly Specialized Language Models
Not on the map. Why?
Abstract (arXiv)
Underlying data distributions of natural language, programming code, and mathematical symbols vary vastly, presenting a complex challenge for large language models (LLMs) that strive to achieve high performance across all three domains simultaneously. Achieving a very high level of proficiency for an LLM within a specific domain often requires extensive training with relevant corpora, which is typically accompanied by a sacrifice in performance in other domains. In this paper, we propose to fuse models that are already highly-specialized directly. The proposed fusing framework, UltraFuser, consists of three distinct specialists that are already sufficiently trained on language, coding, and mathematics. A token-level gating mechanism is introduced to blend the specialists' outputs. A two-stage training strategy accompanied by balanced sampling is designed to ensure stability. To effectively train the fused model, we further construct a high-quality supervised instruction tuning dataset, UltraChat 2, which includes text, code, and mathematical content. This dataset comprises approximately 300,000 instructions and covers a wide range of topics in each domain. Experiments show that our model could simultaneously achieve mastery of the three crucial domains.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 58 of its 69 references that are in the map. First posted on arXiv 13 Mar 2024.
Builds on
58 of 69 references.
References · 58
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
38 more
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024Mixtral of Expertscited by 1,785
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 834
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
- 2023StarCoder: may the source be with you!cited by 790
- 2021Scaling Vision with Sparse Mixture of Expertscited by 740
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 701
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 618
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
- 2023Textbooks Are All You Needcited by 561
- 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 550
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 391
- 2022Unified Scaling Laws for Routed Language Modelscited by 249
- 2022Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpointscited by 207
- 2022Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Expertscited by 202
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
- 2021Taming Sparsely Activated Transformer with Stochastic Expertscited by 112
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
- 2024Knowledge Fusion of Large Language Modelscited by 110
- 2021Beyond Distillation: Task-level Mixture-of-Experts for Efficient Inferencecited by 96
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2024: 4; 2025: 3.
7 papers.
- 2024A Survey on Self-Evolution of Large Language Modelscited by 86
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemblecited by 86
- 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMscited by 58
- 2024Pack of LLMs: Model Fusion at Test-Time via Perplexity Optimizationcited by 56
- 2024FuseChat: Knowledge Fusion of Chat Modelscited by 53
- 2024Towards Building Specialized Generalist AI with System 1 and System 2 Fusioncited by 8
- 2025FuseRL: Dense Preference Optimization for Heterogeneous Model Fusioncited by 1
- 2025FuseRL: Dense Preference Optimization for Heterogeneous Model Fusion9 Apr 2025
- 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMs8 Mar 2025
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemble25 Feb 2025
- 2024FuseChat: Knowledge Fusion of Chat Models15 Aug 2024
- 2024Towards Building Specialized Generalist AI with System 1 and System 2 Fusion11 Jul 2024
- 2024A Survey on Self-Evolution of Large Language Models22 Apr 2024
- 2024Pack of LLMs: Model Fusion at Test-Time via Perplexity Optimization17 Apr 2024