Large Language Models (LLMs) have revolutionized open-domain dialogue agents but encounter challenges in multi-character role-playing (MCRP) scenarios. To address the issue, we present Neeko, an innovative framework designed for efficient multiple characters imitation. Unlike existing methods, Neeko employs a dynamic low-rank adapter (LoRA) strategy, enabling it to adapt seamlessly to diverse characters. Our framework breaks down the role-playing process into agent pre-training, multiple characters playing, and character incremental learning, effectively handling both seen and unseen roles. This dynamic approach, coupled with distinct LoRA blocks for each character, enhances Neeko's adaptability to unique attributes, personalities, and speaking patterns. As a result, Neeko demonstrates superior performance in MCRP over most existing methods, offering more engaging and versatile user interaction experiences. Code and data are available at https://github.com/weiyifan1023/Neeko.
翻译:大型语言模型(LLMs)革新了开放域对话智能体,但在多角色扮演(MCRP)场景中面临挑战。为解决这一问题,我们提出Neeko——一种面向高效多角色模仿的创新框架。与现有方法不同,Neeko采用动态低秩适配器(LoRA)策略,使其能够无缝适配不同角色。该框架将角色扮演过程拆解为智能体预训练、多角色扮演及角色增量学习三个阶段,有效处理已知与未知角色。这种动态方法结合每个角色专属的LoRA模块,增强了Neeko对独特属性、个性及说话模式的适配能力。实验表明,Neeko在MCRP任务上的表现超越多数现有方法,提供了更具沉浸感与多样性的用户交互体验。代码与数据已开源至https://github.com/weiyifan1023/Neeko。