PsyPlay: Personality-Infused Role-Playing Conversational Agents

Tao Yang, Yuhua Zhu, Xiaojun Quan, Cong Liu, Qifan Wang
2/6/2025
cs.CL

No confident code implementation found for this paper.

Abstract

The current research on Role-Playing Conversational Agents (RPCAs) with Large Language Models (LLMs) primarily focuses on imitating specific speaking styles and utilizing character backgrounds, neglecting the depiction of deeper personality traits.~In this study, we introduce personality-infused role-playing for LLM agents, which encourages agents to accurately portray their designated personality traits during dialogues. We then propose PsyPlay, a dialogue generation framework that facilitates the expression of rich personalities among multiple LLM agents. Specifically, PsyPlay enables agents to assume roles with distinct personality traits and engage in discussions centered around specific topics, consistently exhibiting their designated personality traits throughout the interactions. Validation on generated dialogue data demonstrates that PsyPlay can accurately portray the intended personality traits, achieving an overall success rate of 80.31% on GPT-3.5. Notably, we observe that LLMs aligned with positive values are more successful in portraying positive personality roles compared to negative ones. Moreover, we construct a dialogue corpus for personality-infused role-playing, called PsyPlay-Bench. The corpus, which consists of 4745 instances of correctly portrayed dialogues using PsyPlay, aims to further facilitate research in personalized role-playing and dialogue personality detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2025psyplay,
  title  = {PsyPlay: Personality-Infused Role-Playing Conversational Agents},
  author = {Tao Yang and Yuhua Zhu and Xiaojun Quan and Cong Liu and Qifan Wang},
  year   = {2025},
  eprint = {2502.03821},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.03821v1}
}

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

Discussion