arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.16727cs.CL
收藏

RoleBreak:角色扮演系统中的角色幻觉作为一种越狱攻击

RoleBreak: Character Hallucination as a Jailbreak Attack in Role-Playing Systems

School of New Media and Communication, Tianjin University(天津大学新媒体与传播学院);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);AI Lab, China Mobile Communication Group Tianjin Co., Ltd.(中国移动通信集团天津有限公司AI实验室)

Yihong Tang, Bo Wang, Xu Wang, Dongming Zhao, Jing Liu, Jijun Zhang, Ruifang He, Yuexian Hou

AI总结:

本文从攻击视角系统分析了角色扮演系统中的角色幻觉问题,提出RoleBreak框架揭示查询稀疏与角色-查询冲突两大机制,并构建RoleBreakEval数据集评估现有防御,最后提出Narrator Mode防御策略显著优于传统拒绝策略。

摘要:

由大语言模型(LLMs)驱动的角色扮演系统在情感交流应用中的影响力日益增强。然而,这些系统容易产生角色幻觉,即模型偏离预设的角色设定,生成与预期角色形象不一致的回复。本文首次从攻击视角对角色幻觉进行了系统分析,并提出了RoleBreak框架。该框架识别出两个核心机制——查询稀疏性与角色-查询冲突——作为驱动角色幻觉的关键因素。基于这些见解,我们构建了一个新颖的数据集RoleBreakEval,用于评估现有的幻觉缓解技术。我们的实验表明,即使是经过训练以最小化幻觉的增强模型,在面对攻击时依然脆弱。为了解决这些漏洞,我们提出了一种新颖的防御策略——Narrator Mode(旁白模式),它通过生成补充上下文的旁白来缓解角色-查询冲突并提升查询泛化能力。实验结果表明,Narrator Mode在减少幻觉、增强对角色设定和查询的忠实度以及提升整体叙事连贯性方面,显著优于传统的基于拒绝的策略。

英文摘要:

Role-playing systems powered by large language models (LLMs) have become increasingly influential in emotional communication applications. However, these systems are susceptible to character hallucinations, where the model deviates from predefined character roles and generates responses that are inconsistent with the intended persona. This paper presents the first systematic analysis of character hallucination from an attack perspective, introducing the RoleBreak framework. Our framework identifies two core mechanisms-query sparsity and role-query conflict-as key factors driving character hallucination. Leveraging these insights, we construct a novel dataset, RoleBreakEval, to evaluate existing hallucination mitigation techniques. Our experiments reveal that even enhanced models trained to minimize hallucination remain vulnerable to attacks. To address these vulnerabilities, we propose a novel defence strategy, the Narrator Mode, which generates supplemental context through narration to mitigate role-query conflicts and improve query generalization. Experimental results demonstrate that Narrator Mode significantly outperforms traditional refusal-based strategies by reducing hallucinations, enhancing fidelity to character roles and queries, and improving overall narrative coherence.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑