Salvato in:
Dettagli Bibliografici
Autori principali: Tang, Yihong, Wang, Bo, Wang, Xu, Zhao, Dongming, Liu, Jing, Zhang, Jijun, He, Ruifang, Hou, Yuexian
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2409.16727
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910619399094272
author Tang, Yihong
Wang, Bo
Wang, Xu
Zhao, Dongming
Liu, Jing
Zhang, Jijun
He, Ruifang
Hou, Yuexian
author_facet Tang, Yihong
Wang, Bo
Wang, Xu
Zhao, Dongming
Liu, Jing
Zhang, Jijun
He, Ruifang
Hou, Yuexian
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_16727
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle RoleBreak: Character Hallucination as a Jailbreak Attack in Role-Playing Systems
Tang, Yihong
Wang, Bo
Wang, Xu
Zhao, Dongming
Liu, Jing
Zhang, Jijun
He, Ruifang
Hou, Yuexian
Computation and Language
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.
title RoleBreak: Character Hallucination as a Jailbreak Attack in Role-Playing Systems
topic Computation and Language
url https://arxiv.org/abs/2409.16727