arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02756cs.CL
收藏

角色提示引导的大语言模型领域适应及其通用能力保持

Role Prompting Guided Domain Adaptation with General Capability Preserve for Large Language Models

The Chinese University of Hong Kong(香港中文大学);Huawei(华为);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Rui Wang, Fei Mi, Yi Chen, Boyang Xue, Hongru Wang, Qi Zhu, Kam-Fai Wong, Ruifeng Xu

AI总结:

针对大语言模型多领域适应中的灾难性遗忘与领域混淆问题,本文提出 REGA 策略,通过自蒸馏、角色提示和角色整合提升领域性能并保持通用能力。

摘要:

大语言模型(LLM)在专业应用中日益受到关注,但这也暴露出一个重大挑战:当针对特定领域进行定制时,LLM往往会经历灾难性遗忘,损害其通用能力,并导致次优的用户体验。此外,同时为多个领域打造一个通用模型,常会因领域之间的混淆而造成整体性能下降。针对这些问题,我们提出了 RolE Prompting Guided Multi-Domain Adaptation(REGA,角色提示引导的多领域适应)策略。这一新颖方法通过三个关键组成部分有效管理多领域 LLM 适应:1)自蒸馏(Self-Distillation)构建并重放通用领域样本,以缓解灾难性遗忘。2)角色提示(Role Prompting)为通用领域分配一个中心提示,并为每个特定领域分配独特的角色提示,以减少训练期间的领域间混淆。3)角色整合(Role Integration)复用一小部分领域特定数据并将其整合到通用领域数据中,在中心提示的引导下进行训练。中心提示用于简化的推理过程,消除了为不同领域切换提示的必要性。实验结果表明,REGA 有效缓解了灾难性遗忘和领域间混淆。与标准微调模型相比,这带来了更好的领域特定性能,同时仍保持稳健的通用能力。

英文摘要:

The growing interest in Large Language Models (LLMs) for specialized applications has revealed a significant challenge: when tailored to specific domains, LLMs tend to experience catastrophic forgetting, compromising their general capabilities and leading to a suboptimal user experience. Additionally, crafting a versatile model for multiple domains simultaneously often results in a decline in overall performance due to confusion between domains. In response to these issues, we present the RolE Prompting Guided Multi-Domain Adaptation (REGA) strategy. This novel approach effectively manages multi-domain LLM adaptation through three key components: 1) Self-Distillation constructs and replays general-domain exemplars to alleviate catastrophic forgetting. 2) Role Prompting assigns a central prompt to the general domain and a unique role prompt to each specific domain to minimize inter-domain confusion during training. 3) Role Integration reuses and integrates a small portion of domain-specific data to the general-domain data, which are trained under the guidance of the central prompt. The central prompt is used for a streamlined inference process, removing the necessity to switch prompts for different domains. Empirical results demonstrate that REGA effectively alleviates catastrophic forgetting and inter-domain confusion. This leads to improved domain-specific performance compared to standard fine-tuned models, while still preserving robust general capabilities.

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

↑