Identity-Driven Hierarchical Role-Playing Agents
Libo Sun, Siyuan Wang, Xuanjing Huang, Zhongyu Wei
TL;DR
This work tackles the challenge of balancing flexibility and fidelity in role-playing agents by introducing the Hierarchical Identity Role-Playing Framework (HIRPF), which constructs roles from personality traits and professions using identity isolation and explicit control. The framework leverages LoRA-based identity adapters and a structured routing mechanism to fuse multiple identities while maintaining autonomy of each identity module. A dedicated Identity Dialogue Dataset (20,685 multi-turn dialogues) and the Identity-Eval benchmark (scale tests for personality and profession, plus open-ended situational tests) support systematic evaluation of identity-level fidelity and multi-identity integration. Empirical results show improved identity-fitting performance over prompt-based baselines and competitive results against ChatGPT on several metrics, highlighting potential for social simulation and demographic-focused studies. Limitations include reliance on synthetic data generation and future work aims to augment realism with real conversations and retrieval-based personalization to advance identity-aware agents further.
Abstract
Utilizing large language models (LLMs) to achieve role-playing has gained great attention recently. The primary implementation methods include leveraging refined prompts and fine-tuning on role-specific datasets. However, these methods suffer from insufficient precision and limited flexibility respectively. To achieve a balance between flexibility and precision, we construct a Hierarchical Identity Role-Playing Framework (HIRPF) based on identity theory, constructing complex characters using multiple identity combinations. We develop an identity dialogue dataset for this framework and propose an evaluation benchmark including scale evaluation and open situation evaluation. Empirical results indicate the remarkable efficacy of our framework in modeling identity-level role simulation, and reveal its potential for application in social simulation.
