用对比学习让大模型扮演角色更一致,无需标注数据。
Enhancing Persona Consistency for LLMs' Role-Playing using Persona-Aware Contrastive Learning
- 通过角色自问机制引导模型自我校正性格表现。
- 在黑盒与白盒模型上均显著提升角色一致性得分。
- 适合需要长期角色扮演的对话系统开发者使用。
近年来,大语言模型在对话生成任务中取得突破性进展,但其缺乏情感和细粒度角色意识,限制了个性化与多样化交互能力。现有方法在角色扮演场景中需高成本标注数据,传统人类对齐方式因模型行为多样性难以部署。受强化学习人类反馈(RLHF)启发,本文从人格对齐视角重新审视角色扮演行为,提出无需标注的对比学习框架PCL,以增强模型在角色扮演中的行为一致性。具体地,设计角色链方法促使模型基于角色特征与对话上下文进行自我提问,以调整性格一致性;进一步通过迭代对比学习,比较使用与不使用角色特征时的表现差异,优化角色策略。在黑盒与白盒大模型上的实验表明,配备PCL的模型在自动评估(CharEval & GPT-4)及人工专家评估中均显著优于基线模型。
原文摘要 · Abstract (English)
In recent years, large language models (LLMs) have achieved breakthrough progress in many dialogue generation tasks. However, their lack of emotion and fine-grained role awareness limits the model's ability to provide personalized and diverse interactions further. Current methods face high costs in collecting high-quality annotated data for scenarios such as role-playing, and traditional human alignment methods are difficult to deploy due to the inherent diversity of model behavior in role-playing scenarios. Inspired by the alignment of models for safety behaviors through RLHF (Reinforcement Learning from Human Feedback), in this paper, we revisit model role-playing behavior from the perspective of persona alignment and propose a novel annotation-free framework named \textbf{\underline{P}}ersona-Aware \textbf{\underline{C}}ontrastive \textbf{\underline{L}}earning (PCL) to align LLMs' behavior during role-playing, enhancing the model's role consistency. Specifically, we first design a role chain method to encourage the model to self-question based on the role characteristics and dialogue context to adjust personality consistency. Then, we further enhance the model's role-playing strategy through iterative contrastive learning between the use of role characteristics and not. Experiments on both black-box and white-box LLMs show that LLMs equipped with PCL significantly outperform vanilla LLMs under automatic evaluation methods (CharEval \& GPT-4) and human expert evaluation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。