arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.04799cs.CL
收藏

Chat Vector:一种为新语言赋予LLMs指令遵循与模型对齐能力的简单方法

Chat Vector: A Simple Approach to Equip LLMs with Instruction Following and Model Alignment in New Languages

National Applied Research Laboratories(国家应用研究实验室);National Taiwan University(台湾大学);National Central University(中央大学)

Shih-Cheng Huang, Pin-Zu Li, Yu-Chi Hsu, Kuang-Ming Chen, Yu Tung Lin, Shih-Kai Hsiao, Richard Tzong-Han Tsai, Hung-yi Lee

AI总结:

本文提出Chat Vector方法,通过模型权重相减得到聊天向量并加到新语言持续预训练模型上,无需额外训练即可赋予其指令遵循、毒性缓解和多轮对话能力,实验验证了其简洁有效和广泛适用性。

摘要:

近年来,开源大语言模型(LLMs)的发展十分迅速。然而,由于数据限制,大多数开源LLMs的能力主要集中在英语上。为解决这一问题,我们引入了“chat vector”的概念,通过简单的模型算术为预训练语言模型赋予指令遵循和人类价值对齐能力。chat vector是通过从对应的聊天模型(如LLaMA2-chat)的权重中减去预训练基础模型(如LLaMA2)的权重得到的。只需将chat vector加到持续预训练模型的权重上,即可赋予模型在新语言中的聊天能力,而无需进一步训练。我们的实证研究从三个不同方面证明了chat vector的卓越效果:指令遵循、毒性缓解和多轮对话。此外,为了展示我们方法的适应性,我们将实验扩展到多种语言、基础模型和chat vector。结果凸显了chat vector的简洁性、有效性和广泛适用性,使其成为高效赋予预训练语言模型对话能力的有力解决方案。我们的代码可在https://github.com/aqweteddy/ChatVector获取。

英文摘要:

Recently, the development of open-source large language models (LLMs) has advanced rapidly. Nevertheless, due to data constraints, the capabilities of most open-source LLMs are primarily focused on English. To address this issue, we introduce the concept of $\textit{chat vector}$ to equip pre-trained language models with instruction following and human value alignment via simple model arithmetic. The chat vector is derived by subtracting the weights of a pre-trained base model (e.g. LLaMA2) from those of its corresponding chat model (e.g. LLaMA2-chat). By simply adding the chat vector to a continual pre-trained model's weights, we can endow the model with chat capabilities in new languages without the need for further training. Our empirical studies demonstrate the superior efficacy of the chat vector from three different aspects: instruction following, toxicity mitigation, and multi-turn dialogue. Moreover, to showcase the adaptability of our approach, we extend our experiments to encompass various languages, base models, and chat vectors. The results underscore the chat vector's simplicity, effectiveness, and wide applicability, making it a compelling solution for efficiently enabling conversational capabilities in pre-trained language models. Our code is available at https://github.com/aqweteddy/ChatVector.

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

↑