InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviews

Xintao Wang, Yunze Xiao, Jen-tse Huang, Siyu Yuan, Rui Xu +8 more
10/27/2023
262 citations
cs.CL

Official code: LC1332/Chat-Haruhi-Suzumiya (2,123 stars, Jupyter Notebook, Apache-2.0, last commit 2024-08-13). 1 more implementation below.

Abstract

Role-playing agents (RPAs), powered by large language models, have emerged as a flourishing field of applications. However, a key challenge lies in assessing whether RPAs accurately reproduce the personas of target characters, namely their character fidelity.

Show full abstract

Existing methods mainly focus on the knowledge and linguistic patterns of characters. This paper, instead, introduces a novel perspective to evaluate the personality fidelity of RPAs with psychological scales. Overcoming drawbacks of previous self-report assessments on RPAs, we propose InCharacter, namely Interviewing Character agents for personality tests. Experiments include various types of RPAs and LLMs, covering 32 distinct characters on 14 widely used psychological scales. The results validate the effectiveness of InCharacter in measuring RPA personalities. Then, with InCharacter, we show that state-of-the-art RPAs exhibit personalities highly aligned with the human-perceived personalities of the characters, achieving an accuracy up to 80.7%.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
LC1332/Chat-Haruhi-SuzumiyaOfficial2,123Jupyter NotebookApache-2.02024-08-13
Neph0s/InCharacterOfficial106PythonMIT2025-05-27
Apache-2.0

Chat凉宫春日, An open sourced Role-Playing chatbot Cheng Li, Ziang Leng, and others.

2,123176Jupyter Notebook, PythonMay 31, 20232 years agoApache-2.0
role-playingtext-generation
Neph0s/InCharacterOfficial100%
MIT

Official code for the paper: InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviews (previously: Do Role-Playing Chatbots Capture the Character Personalities? Assessing Personality Traits for Role-Playing Chatbots)

10610PythonJan 6, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2023incharacter,
  title  = {InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviews},
  author = {Xintao Wang and Yunze Xiao and Jen-tse Huang and Siyu Yuan and Rui Xu and Haoran Guo and Quan Tu and Yaying Fei and Ziang Leng and Wei Wang and Jiangjie Chen and Cheng Li and Yanghua Xiao},
  year   = {2023},
  eprint = {2310.17976},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.17976v4}
}

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/2310.17976.svg)](https://codeofpaper.com/paper/2310.17976)

Discussion