Thinking Before Speaking: A Role-playing Model with Mindset

Baohua Zhang, Yongyi Huang, Wenyao Cui, Huaping Zhang
9/14/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Role-playing is an easy task for Large Language Models (LLMs), as they are skilled at simulating human behaviors. Many current studies have enabled LLMs to generate responses in the tone of a specific role by fine-tuning the models or using specialized prompts. However, it is typically easy to recognize when a role is being played by LLMs. These models tend to perform poorly when confronted with knowledge that the assumed role does not possess, or a question that requires the specific experience or logic of the role to answer. To address this problem and make LLMs act more like real roles, we propose a Thinking Before Speaking (TBS) model in this paper. Unlike other studies, we first extend the data based on the character's real-life scenarios and the historical dialogue, supplementing each pair of dialogue with the character's mindset. Then we add few data points that include elements beyond the role's knowledge, and fine-tune the LLMs. This approach can help LLMs adopt the role's thought process and logic, avoiding responses that fall outside the role's knowledge base. We have also prepared a dataset and evaluation metrics to test these capabilities. Experimental results show that our TBS model can better emulate a role in terms of tone, knowledge, and mindset.

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{zhang2024thinking,
  title  = {Thinking Before Speaking: A Role-playing Model with Mindset},
  author = {Baohua Zhang and Yongyi Huang and Wenyao Cui and Huaping Zhang},
  year   = {2024},
  eprint = {2409.13752},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.13752v1}
}

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

Discussion