OpenCharacter: Training Customizable Role-Playing LLMs with Large-Scale Synthetic Personas
Xiaoyang Wang, Hongming Zhang, Tao Ge, Wenhao Yu, Dian Yu, Dong Yu
TL;DR
This work introduces OpenCharacter, a data-synthesis framework to train customizable LLMs for out-of-domain character generalization in role-playing dialogue. It builds a large synthetic character library from Persona Hub, enriches profiles with fine-grained grounding, and leverages two strategies—response rewriting (OpenCharacter-R) and response generation (OpenCharacter-G)—to produce high-quality instruction-following data used for SFT on LLaMA-3-8B. The approach yields strong performance on PersonaGym benchmarks, surpassing several GPT-3.5/4o baselines and approaching GPT-4o, with public release of 20k synthetic characters and ~319k dialogue samples. The study demonstrates the viability of scalable synthetic personas for character generalization and discusses future directions including larger backbones and grounding knowledge in virtual-world contexts.
Abstract
Customizable role-playing in large language models (LLMs), also known as character generalization, is gaining increasing attention for its versatility and cost-efficiency in developing and deploying role-playing dialogue agents. This study explores a large-scale data synthesis approach to equip LLMs with character generalization capabilities. We begin by synthesizing large-scale character profiles using personas from Persona Hub and then explore two strategies: response rewriting and response generation, to create character-aligned instructional responses. To validate the effectiveness of our synthetic instruction tuning data for character generalization, we perform supervised fine-tuning (SFT) using the LLaMA-3 8B model. Our best-performing model strengthens the original LLaMA-3 8B Instruct model and achieves performance comparable to GPT-4o models on role-playing dialogue. We release our synthetic characters and instruction-tuning dialogues to support public research.
