跳到正文
论文阅读馆THE RESEARCH LIBRARY 查找论文
← 论文库AI 研究与应用 / 角色与社会模拟导出 ↗

PAPER / 2024

不仅捕捉言语,更要捕捉心理:利用人格指示数据增强角色扮演语言模型

Capturing Minds, Not Just Words: Enhancing Role-Playing Language Models with Personality-Indicative Data

Yiting Ran · Xintao Wang · Rui Xu · Xinfeng Yuan · Jiaqing Liang · Deqing Yang · Yanghua Xiao

EMNLP · 2024

30 秒读懂

先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。

ROLEPERSONALITY想补足角色训练数据中过于偏重知识和说话风格的问题:模型还需要表现出人物的动机与性格倾向。作者把心理量表改写为访谈问题,通过强角色代理生成更能体现性格的对话,再训练较小的角色模型。

先说结论

ROLEPERSONALITY用经过筛选的性格访谈数据训练角色模型。数据确实改善部分角色指标,但多轮版本并不是所有维度的最佳选择。 (原文:PDF p.2, Section 3;PDF p.2, Section 3.1;PDF p.3, experimental setup;PDF p.3, Table 2;PDF p.4, Table 3; Section 4.4.1;PDF p.5, Limitations)

论文为什么要做这件事

ROLEPERSONALITY想补足角色训练数据中过于偏重知识和说话风格的问题:模型还需要表现出人物的动机与性格倾向。作者把心理量表改写为访谈问题,通过强角色代理生成更能体现性格的对话,再训练较小的角色模型。 (原文:PDF p.2, Section 3)

核心方法到底怎么运转

先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。 (原文:PDF p.2, Section 3.1)

实验怎样检验这个方法

实验用相同微调设置比较不同角色数据集,保持训练样本数量大致相同。测试角色的相关训练数据被排除;评价分人格一致性、动机识别和一般角色扮演,不能把其中一项当成全部能力。 (原文:PDF p.3, experimental setup)

结果说明了什么

动机识别MR中,Part+Multi为40.04,高于RoleBench的33.28;但Full+Single达到44.54。因此不能把“更复杂的多轮数据”当成所有指标的最佳方案。实验比较的是同一基础模型上不同训练数据的效果,数据范围与对话形式都可能影响结果。 (原文:PDF p.3, Table 2)

胜率的共同对手不能漏掉

Part+Multi的Win Rate为43.89,GPT-3.5为48.02;两者分别以GPT-4为共同对手,并不是彼此直接对战。该版本Rouge-L为0.207,RoleBench为0.238。较低的文本重合度不能单独证明减少了死记硬背,也可能反映回答与参考文本的差异。 (原文:PDF p.4, Table 3; Section 4.4.1)

这篇论文哪里最强,哪里最危险

论文承认训练数据依赖语言模型,性能评估主要靠自动指标和模型判断,缺少对细腻人物表现的人类评价。应保留这个限制,同时不能把它误写成整个研究完全没有人工标注;用于性格对齐的参照标签确实有人参与。 (原文:PDF p.5, Limitations)

读完后记住这三件事

生成有性格信息的访谈。筛掉不适合人物的问题与回答。训练效果逐指标看,别把偏好率当通用能力。 (原文:PDF p.2, Section 3;PDF p.2, Section 3.1;PDF p.3, experimental setup;PDF p.3, Table 2;PDF p.4, Table 3; Section 4.4.1;PDF p.5, Limitations)

代码从哪里读

原始来源入口。已打开与论文对应的作者仓库或项目页。先对照原文的方法模块与README使用说明;仓库后续更新不自动等于论文实验版本。本轮没有安装依赖、调用模型或复现论文结果。

原文证据

将主张放回条件与原文定位中理解。

定义

训练数据要体现人物怎样思考

原文摘录
and general RPA evaluations, validating the construct an RPA by pairing the RPLM with de- effectiveness of ROLE P ERSONALITY. scriptions and the memory base of the target char- acter (Li et al., 2023). RPAs are then engaged with 2 Related Work open-ended questions derived from established psy- chological scales. These questions are designed to 2.1 Role-Playing Language Models elicit the character’s mindset and behaviors in var- The key for developing RPLMs is building a role- ious scenarios. The questions were adapted from playing dataset. The collection methods can be well-known psychological scales such as the Big roughly divided into the following two categories. Five Inventory (BFI) and 16Personalities. For more details, refer to Sec. B. We start by rewriting psy- Experience Extraction This method refers to chological scale questions and implementing a se- extracting dialogues and other information from lection process to refine the data. original works such as novels, TV shows, and other media (Li et al., 2023; Yuan et al., 2024). Filtering Mechanism After generating the re- sponses, we implement a filtering process based Dialogue Synthesis This method utilizes LLMs on the results of the personality assessment. This for generating conversations or human annota- involves assessing the generated responses to en- tions to build and augment datasets. The top- sure that they align with the intended character’s ics come from the corresponding literature (Shao personality traits. The ground truth comes from hu- et al., 2023), general task instructions (Wang et al., man annotations. Responses inconsistent with the 2024b), and special scenarios such as personality character’s personality were discarded to maintain tests (Wang et al., 2024a). the quality and consistency of the dataset. 2.2 Construction of Role-Playing Agents Subset #Questions #Turns #Samples Based on character role-playing datasets, RPAs can Full+Single 1092 1 32089 be constructed in two ways: training or prompting. Part+Single 646 1 22489 Part+Multi 646 5 32767 Parametric Learning This approach fine-tunes a base model using existing or custom role-playing Table 1: We develop three sub-datasets to evaluate the datasets. Shao et al. (2023); Yu et al. (2024) impact of the screening scale and the addition of multi- enhance foundation models with improved role- round data on the performance of the RPLMs. playing abilities using datasets featuring a variety of characters and scenarios. Zhou et al. (2023); Wang et al. (2024b) tailor LLMs to role-play spe- Scale Selection Our scales are sourced from psy- cific characters. chological scales (Bem, 1981; Barrick and Mount, 1991), utilizing the questions rewritten by InChar- Non-Parametric Learning For more in-depth acter (Wang et al., 2024a). However, not all scales role-playing of a specific character, many efforts are closely related to character personalities. We have focused on character-level engineering (Zhou carefully selected a subset of these scales that best et al., 2023; Wang et al., 2024b). They collect reflect character personality traits, forming the sub- and process character-related data from the corre- set Part. The entire set of selected scales constitutes sponding sources, including collecting profile from the subset Full. Wikipedia (Shao et al., 2023). Typically, they add long-term memory to retrieve knowledge about the Question Selection Not all questions are suitable character based on similarity with the user’s query for all characters. A question that violates the char- (Li et al., 2023). acter’s background may induce hallucinations. As a result, we judge whether the question is suitable 3 Method for the character by llm. Then we exclude questions 3.1 Dataset Construction that do not fit the character’s background. To simulate the deep thoughts underlying the char- Multi-Turn Dialogue We incorporate multi-turn acters, we generate persona-indicative data by uti- dialogues to maintain conversation consistency and lizing psychological scale questions, inspired by enhance the model’s contextual understanding. We InCharacter (Wang et al., 2024a). In practice, we select questions from different dimensions within 14567

条件:仅限本地原始PDF的 Section 3;不同表格与实验不合并

指标:ROLEPERSONALITY想补足角色训练数据中过于偏重知识和说话风格的问题:模型还需要表现出人物的动机与性格倾向。作者把心理量表改写为访谈问题,通过强角色代理生成更能体现性格的对话,再训练较小的角色模型。

原文第 2 页 ↗PDF p.2, Section 3

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

问题筛选和回答筛选承担不同工作

原文摘录
and general RPA evaluations, validating the construct an RPA by pairing the RPLM with de- effectiveness of ROLE P ERSONALITY. scriptions and the memory base of the target char- acter (Li et al., 2023). RPAs are then engaged with 2 Related Work open-ended questions derived from established psy- chological scales. These questions are designed to 2.1 Role-Playing Language Models elicit the character’s mindset and behaviors in var- The key for developing RPLMs is building a role- ious scenarios. The questions were adapted from playing dataset. The collection methods can be well-known psychological scales such as the Big roughly divided into the following two categories. Five Inventory (BFI) and 16Personalities. For more details, refer to Sec. B. We start by rewriting psy- Experience Extraction This method refers to chological scale questions and implementing a se- extracting dialogues and other information from lection process to refine the data. original works such as novels, TV shows, and other media (Li et al., 2023; Yuan et al., 2024). Filtering Mechanism After generating the re- sponses, we implement a filtering process based Dialogue Synthesis This method utilizes LLMs on the results of the personality assessment. This for generating conversations or human annota- involves assessing the generated responses to en- tions to build and augment datasets. The top- sure that they align with the intended character’s ics come from the corresponding literature (Shao personality traits. The ground truth comes from hu- et al., 2023), general task instructions (Wang et al., man annotations. Responses inconsistent with the 2024b), and special scenarios such as personality character’s personality were discarded to maintain tests (Wang et al., 2024a). the quality and consistency of the dataset. 2.2 Construction of Role-Playing Agents Subset #Questions #Turns #Samples Based on character role-playing datasets, RPAs can Full+Single 1092 1 32089 be constructed in two ways: training or prompting. Part+Single 646 1 22489 Part+Multi 646 5 32767 Parametric Learning This approach fine-tunes a base model using existing or custom role-playing Table 1: We develop three sub-datasets to evaluate the datasets. Shao et al. (2023); Yu et al. (2024) impact of the screening scale and the addition of multi- enhance foundation models with improved role- round data on the performance of the RPLMs. playing abilities using datasets featuring a variety of characters and scenarios. Zhou et al. (2023); Wang et al. (2024b) tailor LLMs to role-play spe- Scale Selection Our scales are sourced from psy- cific characters. chological scales (Bem, 1981; Barrick and Mount, 1991), utilizing the questions rewritten by InChar- Non-Parametric Learning For more in-depth acter (Wang et al., 2024a). However, not all scales role-playing of a specific character, many efforts are closely related to character personalities. We have focused on character-level engineering (Zhou carefully selected a subset of these scales that best et al., 2023; Wang et al., 2024b). They collect reflect character personality traits, forming the sub- and process character-related data from the corre- set Part. The entire set of selected scales constitutes sponding sources, including collecting profile from the subset Full. Wikipedia (Shao et al., 2023). Typically, they add long-term memory to retrieve knowledge about the Question Selection Not all questions are suitable character based on similarity with the user’s query for all characters. A question that violates the char- (Li et al., 2023). acter’s background may induce hallucinations. As a result, we judge whether the question is suitable 3 Method for the character by llm. Then we exclude questions 3.1 Dataset Construction that do not fit the character’s background. To simulate the deep thoughts underlying the char- Multi-Turn Dialogue We incorporate multi-turn acters, we generate persona-indicative data by uti- dialogues to maintain conversation consistency and lizing psychological scale questions, inspired by enhance the model’s contextual understanding. We InCharacter (Wang et al., 2024a). In practice, we select questions from different dimensions within 14567

条件:仅限本地原始PDF的 Section 3.1;不同表格与实验不合并

指标:先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。

原文第 2 页 ↗PDF p.2, Section 3.1

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

实验怎样检验这个方法

原文摘录
Profile Hermione Granger is a brilliant and dil-igent How can I witch known for her intelligence... imitate her …… Dialogue Database way of thi- James Bond nking? Hermione:「Not Hal 9000: exactly on top of things, Mr. Hermione Bagman, is he?」 RPLM Hermione Poole: Interviewer: Do you regularly make new Ron:「He was a great Beater, though...」 friends? Hermione: Well, I believe in the imp- Role- Interviewer: Do you ortance of forming meaningful conn- Interview Question: 1. Do you regularly make new friends? Playing regularly make new ections with others, ... BFI 2. Do you spend a lot of your free time Expert friends? exploring various random topics that Hermione: Well, I Training pique your interest? believe in the imp- 3. Does seeing other people cry easily ortance of forming make you feel like you want to cry too? She will answer I can understand Psychological …… these questions meaningful conn- how they think! Scales like... ections with others, ... RPLM Figure 1: The framework of building and utilizing ROLE P ERSONALITY. First, we obtain ROLE P ERSONALITY by distilling advanced RPAs using scale questions. Then, we train RPLMs on ROLE P ERSONALITY to enhance their ability to capture characters’ minds. the same scale. These multi-turn data form subset Recognition (MR) We test the model’s ability to Multi. The subset consisting of only single-turn learn and represent the character’s motivations; 3) data is classified as subset Single. General Ability We apply three metrics adopted by previous researches (Wang et al., 2024b; Shao 3.2 Dataset Statistics et al., 2023) to comprehensively evaluate RPLM’s Based on this idea, we construct ROLE P ERSON - role-playing ability, such as character conformity. ALITY consisting of three subsets using interviews All evaluations involving LLMs are conducted by conducted by the gpt-3.5-turbo. Our dataset in- gpt-3.5-turbo-0301 with temperature set to 0. cludes 16 characters from ChatHaruhi and 30 En- glish characters from RoleLLM. The details of our PF MR Dataset dataset are provided in Table 1. Single Acc. Full Acc. Acc. gpt-3.5-turbo 4 Experiment - 70.27 48.35 64.52 4.1 Settings mistral-7B - 70.01 46.85 34.62 Fine-tuning We employ LoRA tuning (Hu et al., RoleBench 67.58 45.47 33.28 2021) for supervised fine-tuning the Mistral-7B- CharacterLLM 64.45 39.65 33.54 v0.2-Chat (Jiang et al., 2023). The model is fine- RolePersonality tuned for 3 epochs with LoRA rank set to 8. Ful+Sin 72.10 49.15 44.54 Par+Sin 70.97 49.08 40.02 Baseline To compare the effectiveness of dif- Par+Mul 71.36 48.42 40.04 ferent datasets, we fine-tune the model with the Table 2: The accuracy of Personality Fidelity (%) and same settings in three subsets of ROLE P ERSONAL - Motivation Recognition (%). Single Acc. refers to the ITY (Full+Single, Part+Single, Part+Multi), the average accuracy for individual dimensions. Full Acc. dataset introduced by CharacterLLM(Shao et al., refers to the overall accuracy across the entire scale. 2023) and RoleBench(Wang et al., 2024b). For each dataset, we select approximately 20,000 sam- ples for fine-tuning, keeping the data size about 4.2 Personality Fidelity (PF) the same. These models, along with the original We use LLMs to judge the character’s personal- mistral-7B and gpt-3.5-turbo-0301, are subse- ity based on the model’s responses to personality quently evaluated to assess their performance. scale questions and compare the judgments with Evaluation Protocols After fine-tuning, we con- the ground truth, which was determined by human duct experiments on three benchmarks to compre- annotators. We selected eight test characters from hensively assess their performance: 1) Personality the dataset proposed by InCharacter (Wang et al., Fidelity We evaluate whether the model accurately 2024a). All data related to these test characters are reflects the character’s personality; 2) Motivation excluded from the training set to ensure unbiased 14568

条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并

指标:实验用相同微调设置比较不同角色数据集,保持训练样本数量大致相同。测试角色的相关训练数据被排除;评价分人格一致性、动机识别和一般角色扮演,不能把其中一项当成全部能力。

原文第 3 页 ↗PDF p.3, experimental setup

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

结果

多轮版本不是每项指标最强

原文摘录
Profile Hermione Granger is a brilliant and dil-igent How can I witch known for her intelligence... imitate her …… Dialogue Database way of thi- James Bond nking? Hermione:「Not Hal 9000: exactly on top of things, Mr. Hermione Bagman, is he?」 RPLM Hermione Poole: Interviewer: Do you regularly make new Ron:「He was a great Beater, though...」 friends? Hermione: Well, I believe in the imp- Role- Interviewer: Do you ortance of forming meaningful conn- Interview Question: 1. Do you regularly make new friends? Playing regularly make new ections with others, ... BFI 2. Do you spend a lot of your free time Expert friends? exploring various random topics that Hermione: Well, I Training pique your interest? believe in the imp- 3. Does seeing other people cry easily ortance of forming make you feel like you want to cry too? She will answer I can understand Psychological …… these questions meaningful conn- how they think! Scales like... ections with others, ... RPLM Figure 1: The framework of building and utilizing ROLE P ERSONALITY. First, we obtain ROLE P ERSONALITY by distilling advanced RPAs using scale questions. Then, we train RPLMs on ROLE P ERSONALITY to enhance their ability to capture characters’ minds. the same scale. These multi-turn data form subset Recognition (MR) We test the model’s ability to Multi. The subset consisting of only single-turn learn and represent the character’s motivations; 3) data is classified as subset Single. General Ability We apply three metrics adopted by previous researches (Wang et al., 2024b; Shao 3.2 Dataset Statistics et al., 2023) to comprehensively evaluate RPLM’s Based on this idea, we construct ROLE P ERSON - role-playing ability, such as character conformity. ALITY consisting of three subsets using interviews All evaluations involving LLMs are conducted by conducted by the gpt-3.5-turbo. Our dataset in- gpt-3.5-turbo-0301 with temperature set to 0. cludes 16 characters from ChatHaruhi and 30 En- glish characters from RoleLLM. The details of our PF MR Dataset dataset are provided in Table 1. Single Acc. Full Acc. Acc. gpt-3.5-turbo 4 Experiment - 70.27 48.35 64.52 4.1 Settings mistral-7B - 70.01 46.85 34.62 Fine-tuning We employ LoRA tuning (Hu et al., RoleBench 67.58 45.47 33.28 2021) for supervised fine-tuning the Mistral-7B- CharacterLLM 64.45 39.65 33.54 v0.2-Chat (Jiang et al., 2023). The model is fine- RolePersonality tuned for 3 epochs with LoRA rank set to 8. Ful+Sin 72.10 49.15 44.54 Par+Sin 70.97 49.08 40.02 Baseline To compare the effectiveness of dif- Par+Mul 71.36 48.42 40.04 ferent datasets, we fine-tune the model with the Table 2: The accuracy of Personality Fidelity (%) and same settings in three subsets of ROLE P ERSONAL - Motivation Recognition (%). Single Acc. refers to the ITY (Full+Single, Part+Single, Part+Multi), the average accuracy for individual dimensions. Full Acc. dataset introduced by CharacterLLM(Shao et al., refers to the overall accuracy across the entire scale. 2023) and RoleBench(Wang et al., 2024b). For each dataset, we select approximately 20,000 sam- ples for fine-tuning, keeping the data size about 4.2 Personality Fidelity (PF) the same. These models, along with the original We use LLMs to judge the character’s personal- mistral-7B and gpt-3.5-turbo-0301, are subse- ity based on the model’s responses to personality quently evaluated to assess their performance. scale questions and compare the judgments with Evaluation Protocols After fine-tuning, we con- the ground truth, which was determined by human duct experiments on three benchmarks to compre- annotators. We selected eight test characters from hensively assess their performance: 1) Personality the dataset proposed by InCharacter (Wang et al., Fidelity We evaluate whether the model accurately 2024a). All data related to these test characters are reflects the character’s personality; 2) Motivation excluded from the training set to ensure unbiased 14568

条件:仅限本地原始PDF的 Table 2;不同表格与实验不合并

指标:动机识别MR中,Part+Multi为40.04,高于RoleBench的33.28;但Full+Single达到44.54。因此不能把“更复杂的多轮数据”当成所有指标的最佳方案。实验比较的是同一基础模型上不同训练数据的效果,数据范围与对话形式都可能影响结果。

原文第 3 页 ↗PDF p.3, Table 2

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

结果

胜率的共同对手不能漏掉

原文摘录
Direct Scoring Dimensional Scoring Dataset Rouge-L Win Rate Memorization Personality Values Stability Hallucination gpt-3.5-turbo - 0.202 48.02 6.098 6.769 6.645 6.160 6.803 mistral-7B - 0.183 30.50 6.161 6.642 6.500 6.081 6.858 RoleBench 0.238 14.10 6.136 6.640 6.626 6.081 6.844 CharacterLLM 0.235 26.92 6.149 6.646 6.586 6.069 6.767 RolePersonality Ful+Sin 0.216 36.56 6.290 6.767 6.719 6.175 6.886 Par+Sin 0.208 38.75 6.243 6.754 6.693 6.154 6.805 Par+Mul 0.207 43.89 6.185 6.728 6.675 6.122 6.842 Table 3: Performance of RPLMs on General Role-Playing Benchmarks, including Rouge-L and Win-rate for direct scoring, and five-dimensional scoring to assess role-playing proficiency. evaluation. This metric provides a comprehensive 4.4.1 Direct Scoring assessment of the model’s ability to accurately re- flect the holistic personality traits of a character. We use Rouge-L and Win-rate (Wang et al., 2024b) to evaluate the overall role-playing ability of The results are shown in Table 7. The overall RPLMs. The Rouge-L score (Lin, 2004) refers to personality fidelity of the trained model has im- the relevance between model response and ground proved. Moreover, models fine-tuned with the other truth in RoleBench. It provides a robust metric to two datasets performed worse compared to the un- assess the knowledge about the specific character trained Mistral model. This may be because these involved in the model’s output. The win-rate is the datasets focus on character knowledge rather than frequency with which a model’s response is judged adequately reflecting character personality traits. better than the response of gpt-4. It provides a comparative measure of the model’s effectiveness 4.3 Motivation Recognition (MR) in generating high-quality answers relative to a strong baseline. CRoSS (Yuan et al., 2024) introduced a subset of The result can be checked in Table 3. The models 445 multiple-choice questions generated by gpt-4 fine-tuned on our datasets show lower Rouge-L to assess the model’s ability to capture character scores. For win-rate, Our models’ win rate is below motivation. Each question presents a character’s only gpt-3.5-turbo, with the model trained on the decision within a scenario. The accuracy measures Part+Single dataset performing the best. the model’s capability to understand and simulate character motivations and personality traits. 4.4.2 Dimensional Scoring The results are shown in Table 7. Models fine- tuned with our datasets significantly outperform The models’ responses are rated across five dimen- others, exhibiting a stronger ability to recognize sions on a scale from 0 to 7 to assess their role- the motivation of characters. playing proficiency (Shao et al., 2023). These di- mensions are: (1) Memorization: The model’s ability to recall relevant information about the char- 4.4 General Role-Playing Benchmarks acter being portrayed, (2) Personality: Ability We select the same 8 test characters used in to the speaking style or the tones. (3) Values: the personality fidelity evaluation for consistency. Whether the model can reflect the objectives and The tested model generates responses to role- values of the target character. (4) Stability: Consis- specific questions from the RoleBench (Wang et al., tency of a model over a relatively long conversation. 2024b) dataset. To assess the RPLMs’ perfor- (5) Hallucination: Ability to discard knowledge mance, we adopt evaluation metrics proposed by and skills that the character would not have. RoleLLM (Wang et al., 2024b) for direct scoring The results are shown in Table 3. Our models and CharacterLLM (Shao et al., 2023) for dimen- lead in most dimensions, with the only exception sional scoring. being the personality dimension. 14569

条件:仅限本地原始PDF的 Table 3; Section 4.4.1;不同表格与实验不合并

指标:Part+Multi的Win Rate为43.89,GPT-3.5为48.02;两者分别以GPT-4为共同对手,并不是彼此直接对战。该版本Rouge-L为0.207,RoleBench为0.238。较低的文本重合度不能单独证明减少了死记硬背,也可能反映回答与参考文本的差异。

原文第 4 页 ↗PDF p.4, Table 3; Section 4.4.1

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

限制

标注有人参与,不代表最终评价充分人工验证

原文摘录
5 Conclusion and appropriate representation. Additionally, over- fitting to specific traits in the selected scales may This paper demonstrates that personality-indicative limit the generalizability of models trained on dif- data helps capture complex character mindsets, ferent role-playing datasets. Addressing these risks thus significantly enhancing the performance of requires diversifying data sources and incorporat- role-playing agents. By constructing ROLE P ER - ing robust evaluation methods, including human SONALITY that captures character personalities, assessments. we address the limitations of traditional datasets that focus primarily on character knowledge and Acknowledgements linguistic habits. Models fine-tuned on our compre- hensive dataset show substantial improvements in This work was supported by the Chinese NSF Ma- role-playing capabilities. This advancement paves jor Research Plan(No.92270121). This work origi- the way for constructing role-playing models that nates from InCharacter introduced by Xintao Wang. can effectively simulate complex character behav- The role-playing agents are constructed based on iors, leading to more immersive user experiences. Chat-Haruhi-Suzumiya proposed by Cheng Li. We owe thanks to the early contributors. The compu- Limitations tations in this research were performed using the CFff platform of Fudan University. Despite the promising results, our study has several limitations. First, the dataset used for fine-tuning is entirely constructed by LLMs, which may intro- References duce biases or inaccuracies inherent to the model’s Murray R Barrick and Michael K Mount. 1991. The big training data, potentially affecting the quality and five personality dimensions and job performance: a authenticity of the dataset. Second, the interview- meta-analysis. Personnel psychology, 44(1):1–26. based data collection lacks mechanisms to ensure Sandra L Bem. 1981. Bem sex role inventory. Journal compliance and adherence to expected norms and of personality and social psychology. standards, leading to inconsistencies or deviations that may impact the model’s performance. Third, Jiangjie Chen, Xintao Wang, Rui Xu, Siyu Yuan, Yikai Zhang, Wei Shi, Jian Xie, Shuang Li, Ruihan Yang, the evaluation of the model’s performance primar- Tinghui Zhu, Aili Chen, Nianqi Li, Lida Chen, Caiyu ily relies on automated metrics and LLM-based Hu, Siye Wu, Scott Ren, Ziquan Fu, and Yanghua assessments, with the absence of human evaluation, Xiao. 2024. From persona to personalization: A subtleties and nuances in character portrayal might survey on role-playing language agents. not be fully captured or assessed. Addressing these Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan limitations in future work could further enhance the Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and robustness and reliability of the developed RPLMs. Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. Ethics Statement Albert Q Jiang, Alexandre Sablayrolles, Arthur Men- sch, Chris Bamford, Devendra Singh Chaplot, Diego We hereby acknowledge that all authors of this de las Casas, Florian Bressand, Gianna Lengyel, Guil- work are aware of the provided ACL Code of Ethics laume Lample, Lucile Saulnier, et al. 2023. Mistral and honor the code of conduct. 7b. ArXiv preprint, abs/2310.06825. Cheng Li, Ziang Leng, Chenxi Yan, Junyi Shen, Hao Risk Our approach to developing Role-Playing Wang, Weishi MI, Yaying Fei, Xiaoyang Feng, Song Language Models (RPLMs) presents several risks. Yan, HaoSheng Wang, Linkang Zhan, Yaokai Jia, First, reliance on LLM-generated datasets may per- Pingyu Wu, and Haozhen Sun. 2023. Chatharuhi: petuate inherent biases and inaccuracies, leading to Reviving anime character in reality via large language unintended behaviors. Second, the lack of compli- model. ance mechanisms in interview data can result in in- Chin-Yew Lin. 2004. Rouge: A package for automatic consistencies, undermining authenticity. Third, the evaluation of summaries. In Text summarization absence of human evaluation means subtle nuances branches out, pages 74–81. in character portrayal may be missed by automated Yunfan Shao, Linyang Li, Junqi Dai, and Xipeng Qiu. metrics. Ethical concerns also arise from using 2023. Character-llm: A trainable agent for role- psychological scales, especially regarding privacy playing. 14570

条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并

指标:论文承认训练数据依赖语言模型,性能评估主要靠自动指标和模型判断,缺少对细腻人物表现的人类评价。应保留这个限制,同时不能把它误写成整个研究完全没有人工标注;用于性格对齐的参照标签确实有人参与。

原文第 5 页 ↗PDF p.5, Limitations

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

读完,试着回答

论文研究什么问题?

ROLEPERSONALITY想补足角色训练数据中过于偏重知识和说话风格的问题:模型还需要表现出人物的动机与性格倾向。作者把心理量表改写为访谈问题,通过强角色代理生成更能体现性格的对话,再训练较小的角色模型。

已有方法缺口在哪里?

把长文本生成或评价当成单步任务,会掩盖中间机制及其失效条件。

输入是什么?

角色描述与对话资料、性格量表问题,以及用于筛选的人工性格标签

机制是什么?

先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。

输出是什么?

动机识别MR中,Part+Multi为40.04,高于RoleBench的33.28;但Full+Single达到44.54。因此不能把“更复杂的多轮数据”当成所有指标的最佳方案。实验比较的是同一基础模型上不同训练数据的效果,数据范围与对话形式都可能影响结果。

适用边界是什么?

论文承认训练数据依赖语言模型,性能评估主要靠自动指标和模型判断,缺少对细腻人物表现的人类评价。应保留这个限制,同时不能把它误写成整个研究完全没有人工标注;用于性格对齐的参照标签确实有人参与。

还有什么未解决?

更换模型、文本分布或评价者后,主要观察是否仍能成立?

技术附录

问题与已有方法

问题设定

ROLEPERSONALITY想补足角色训练数据中过于偏重知识和说话风格的问题:模型还需要表现出人物的动机与性格倾向。作者把心理量表改写为访谈问题,通过强角色代理生成更能体现性格的对话,再训练较小的角色模型。 把长文本生成或评价当成单步任务,会掩盖中间机制及其失效条件。

方法与组成

核心思路

先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。

主要发现

  • 标题

    多轮版本不是每项指标最强

    证据

    动机识别MR中,Part+Multi为40.04,高于RoleBench的33.28;但Full+Single达到44.54。因此不能把“更复杂的多轮数据”当成所有指标的最佳方案。实验比较的是同一基础模型上不同训练数据的效果,数据范围与对话形式都可能影响结果。

    限制

    以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

    原文定位

    PDF p.3, Table 2

  • 标题

    胜率的共同对手不能漏掉

    证据

    Part+Multi的Win Rate为43.89,GPT-3.5为48.02;两者分别以GPT-4为共同对手,并不是彼此直接对战。该版本Rouge-L为0.207,RoleBench为0.238。较低的文本重合度不能单独证明减少了死记硬背,也可能反映回答与参考文本的差异。

    限制

    以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

    原文定位

    PDF p.4, Table 3; Section 4.4.1

概念定位

是什么

先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。

为什么重要

ROLEPERSONALITY想补足角色训练数据中过于偏重知识和说话风格的问题:模型还需要表现出人物的动机与性格倾向。作者把心理量表改写为访谈问题,通过强角色代理生成更能体现性格的对话,再训练较小的角色模型。

图表导读

  • PDF 页

    3

    标题

    PDF p.3, Table 2

    解释

    动机识别MR中,Part+Multi为40.04,高于RoleBench的33.28;但Full+Single达到44.54。因此不能把“更复杂的多轮数据”当成所有指标的最佳方案。实验比较的是同一基础模型上不同训练数据的效果,数据范围与对话形式都可能影响结果。

  • PDF 页

    4

    标题

    PDF p.4, Table 3; Section 4.4.1

    解释

    Part+Multi的Win Rate为43.89,GPT-3.5为48.02;两者分别以GPT-4为共同对手,并不是彼此直接对战。该版本Rouge-L为0.207,RoleBench为0.238。较低的文本重合度不能单独证明减少了死记硬背,也可能反映回答与参考文本的差异。

核心概念

  • 名称

    问题筛选和回答筛选承担不同工作

    解释

    先检查问题是否适合人物背景,减少让古代人物回答现代生活常识之类的错位;再依据人物性格标注筛掉不相符的回答。训练集区分量表范围较全或较窄、单轮或多轮的组合。参照性格来自人工标注,但训练对话主要由模型生成,这两个证据来源应分开。

    原文定位

    PDF p.2, Section 3.1

    证据来源

    paper_supported

  • 名称

    实验怎样检验这个方法

    解释

    实验用相同微调设置比较不同角色数据集,保持训练样本数量大致相同。测试角色的相关训练数据被排除;评价分人格一致性、动机识别和一般角色扮演,不能把其中一项当成全部能力。

    原文定位

    PDF p.3, experimental setup

    证据来源

    paper_supported

章节阅读

  • 页码

    2

    作用

    problem

    关键问题

    训练数据要体现人物怎样思考

    状态

    read

  • 页码

    2

    作用

    method

    关键问题

    问题筛选和回答筛选承担不同工作

    状态

    read

  • 页码

    3

    作用

    method

    关键问题

    实验怎样检验这个方法

    状态

    read

  • 页码

    3

    作用

    result

    关键问题

    多轮版本不是每项指标最强

    状态

    read

  • 页码

    4

    作用

    result

    关键问题

    胜率的共同对手不能漏掉

    状态

    read

  • 页码

    5

    作用

    limitation

    关键问题

    标注有人参与,不代表最终评价充分人工验证

    状态

    read

批判性阅读

最低充分结论

论文承认训练数据依赖语言模型,性能评估主要靠自动指标和模型判断,缺少对细腻人物表现的人类评价。应保留这个限制,同时不能把它误写成整个研究完全没有人工标注;用于性格对齐的参照标签确实有人参与。

继续阅读

相关论文

共享概念

同一研究空间