arXiv:2610.40091cs.CLOct 2026

Manuscript Offprint

arXiv:2610.40091

Upcycling Language Models for Multiple Specialized Domains

Mingzi Cao, Xi Wang, Nikolaos Aletras

Abstract

Effective multi-domain adaptation of large language models requires prioritizing relevant domain knowledge while minimizing interference from irrelevant domains. Existing approaches commonly use Low-Rank Adaptation (LoRA) to train a separate adapter for each domain and combine these adapters within one model. However, they either weight adapters equally regardless of the input domain or dynamically weight adapters while still activating all of them including irrelevant ones. Additionally, while efficient, their low-rank structure limits performance. In contrast, upcycling is a model expansion method that adds experts and a router to a dense Transformer layer offering larger capacity than LoRA approaches. In this paper, we propose Domain-Specialized Upcycling (DS-UPCYCLING) for multi-domain adaptation. We introduce a new domain-aware supervision that allows the router to effectively learn to distinguish domains by selecting the appropriate experts. During fine-tuning on each new domain, we update only the corresponding expert and router while freezing all other parameters. Experiments show that our method achieves the highest average performance across the adapted domains compared to baselines while retaining general performance. With just 256 examples per domain for router supervision, DS-Upcycling achieves 90–98% routing accuracy after adaptation compared with 43–70% for routers trained without our approach.

1 Introduction

Large language models (LLMs) have demonstrated strong capabilities across a wide range of general tasks (Grattafori et al., 2024; Yang et al., 2025a). However, domains involving consequential decisions such as biomedicine (Luo et al., 2022; Singhal et al., 2023) and law (Niklaus et al., 2024, 2025) require specialized knowledge beyond general capabilities that is induced via fine-tuning on domain

Figure

Figure 1: Illustration of Upcycling. Upcycling converts a pre-trained dense transformer layer into a sparse Mixture-of-Experts (MoE) layer.

specific data. Multi-domain adaptation extends this specialization to multiple domains, aiming to integrate their specialized knowledge within a single model (Chen et al., 2023; Sukhbaatar et al., 2024).

Multi-domain adaptation methods suffer from catastrophic forgetting of general-domain capabilities (Li et al., 2024; Luo et al., 2025) and cross-domain interference (Chen et al., 2023; Sukhbaatar et al., 2024). Low-Rank Adaptation (LoRA) has been applied to address these challenges by freezing pre-trained weights and learning parameter updates through pairs of low-rank matrices (Hu et al., 2022). Additionally, separate adapters are trained for each domain and then combined within one model for adaptation. However, these approaches either weight adapters equally regardless of the input domain (Chitale et al., 2023; Wang et al., 2023; Asadi et al., 2024) or dynamically weight adapters while still activating all of them including irrelevant ones (Dou et al., 2024). Beyond these limitations, LoRA's adaptation performance is further constrained by its low-rank structure (Biderman et al., 2024; Pletenev et al., 2025).

Upcycling is a model expansion method that adds full multi-layer perceptron (MLP) experts and a router to a dense Transformer layer resulting in sparse Mixture-of-Experts (MoE) architecture (Figure 1). The new experts learn domain-specific knowledge without low-rank constraints. The router activates a subset of experts for each input and assigns weights to the selected experts. This offers a natural way to prioritize relevant domain knowledge and exclude irrelevant domain knowledge through selective expert activation (Fedus et al., 2022; Komatsuzaki et al., 2023). Despite these advantages, upcycling for multiple domain adaptation remains largely underexplored. A few recent studies have explored multilingual adaptation (Zhou et al., 2025; Zhang et al., 2025), but they rely on language-specific signals for router guidance that are not transferable to domains within a specific language (e.g., law or biomedical).

In this work, we propose Domain-Specialized Upcycling (DS-Upcycling) for multi-domain adaptation (Figure 2). We first train the router with a domain-aware objective using only a small number of examples from each domain. This encourages general inputs to use the original MLP and discourages specialized inputs from using irrelevant experts. During adaptation to each domain, we update only its corresponding expert and the router while freezing all other parameters. These domain-specific expert updates promote specialization by concentrating learning within the corresponding expert and limiting cross-domain interference. Our main contributions are as follows:

• We propose DS-Upcycling for multi-domain adaptation. It outperforms existing baselines across specialized and general domains in two different model families.

• Our domain-aware router supervision uses just 256 examples per domain, requiring to only instantiating the routers.

• Our ablation study validates the contribution of each DS-Upcycling component. DS-Upcycling achieves 90–98% routing accuracy on specialized domains compared with 43–70% for routers trained without it.