arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.40091cs.CLcs.AI
收藏

将语言模型升级改造以适配多个专业领域

Upcycling Language Models for Multiple Specialized Domains

School of Computer Science, University of Sheffield(谢菲尔德大学计算机科学学院)

Mingzi Cao, Xi Wang, Nikolaos Aletras

AI总结:

针对现有多领域适配方法的缺陷,提出DS-Upcycling方法,通过领域感知监督和仅更新对应专家与路由模块的微调策略,在多领域适配中实现了更高的平均性能和路由准确率。

摘要:

大型语言模型的有效多领域适配需要优先保留相关领域知识,同时最小化无关领域的干扰。现有方法通常使用低秩适配(LoRA)为每个领域训练单独的适配器,并在一个模型中组合这些适配器,但它们要么对所有适配器赋予相同权重而不考虑输入领域,要么动态加权适配器但仍激活所有适配器(包括无关领域的)。此外,尽管效率较高,其低秩结构限制了性能。相比之下,升级改造(Upcycling)是一种模型扩展方法,它在稠密Transformer层中添加专家和路由模块,提供比LoRA方法更大的容量。本文中,我们提出用于多领域适配的领域专用升级改造(DS-Upcycling),引入新的领域感知监督,使路由模块能够通过选择合适的专家有效学习区分领域。在每个新领域的微调过程中,我们仅更新对应的专家和路由模块,同时冻结所有其他参数。实验表明,与基线方法相比,我们的方法在适配领域中实现了最高的平均性能,同时保留了通用性能。在每个领域仅使用256个示例进行路由模块监督的情况下,DS-Upcycling在适配后实现了90-98%的路由准确率,而未使用我们方法训练的路由模块的准确率为43-70%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑