A Multi-Task Role-Playing Agent Capable of Imitating Character Linguistic Styles

Siyuan Chen, Qingyi Si, Chenxu Yang, Yunzhi Liang, Zheng Lin +2 more
11/4/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

The advent of large language models (LLMs) has significantly propelled the advancement of Role-Playing Agents (RPAs). However, current Role-Playing Agents predominantly focus on mimicking a character's fundamental attributes while neglecting the replication of linguistic style, and they are incapable of effectively replicating characters when performing tasks beyond multi-turn dialogues, which results in generated responses that lack authenticity. The reason current RPAs lack this capability is due to the nature of existing character datasets, which lack collections of character quotations and are limited to multi-turn dialogue tasks, constraining the RPA's performance across other task domains and failing to mimic a character's linguistic style. To address this gap, we developed a multi-task role-playing dataset named MRstyle, which encompasses a substantial number of real individuals along with their quotations and covers seven different tasks. On this basis, we develop StyleRPA, a Multi-Task Role-Playing Agent (MRPA) that significantly outperforms recent open-source LLMs and RPAs baselines on 7 tasks including Dialogue, Dictionary, Composition, Story Generation, Product Description, Music Commentary, and Open Question Answering. The code and data will be released.

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!

Cite this paper

@article{chen2024multitask,
  title  = {A Multi-Task Role-Playing Agent Capable of Imitating Character Linguistic Styles},
  author = {Siyuan Chen and Qingyi Si and Chenxu Yang and Yunzhi Liang and Zheng Lin and Huan Liu and Weiping Wang},
  year   = {2024},
  eprint = {2411.02457},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02457v1}
}

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

Discussion