Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agent

Xiaoyan Yu, Tongxu Luo, Yifan Wei, Fangyu Lei, Yiming Huang +2 more
2/21/2024
cs.CL

Official code: weiyifan1023/Neeko (139 stars, Apache-2.0, last commit 2025-07-23).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

weiyifan1023/NeekoOfficial100%
Apache-2.0

Code and Data for EMNLP 2024 Paper "Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agent"

1395Shell, PythonJan 20, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{yu2024neeko,
  title  = {Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agent},
  author = {Xiaoyan Yu and Tongxu Luo and Yifan Wei and Fangyu Lei and Yiming Huang and Hao Peng and Liehuang Zhu},
  year   = {2024},
  eprint = {2402.13717},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.13717v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.13717.svg)](https://codeofpaper.com/paper/2402.13717)

Discussion