Knowing-but-Doing: Diagnosing and Defending Role-Play-Driven LLMs Jailbreaks via Moral Disengagement

Read full text
Authors: Haiming Qin, Jianxun Lian, Qimin Zhong, Mingyang Zhou, Hao Liao, Naipeng Chao
Cited by: 1

Abstract

Large Language Models (LLMs) are increasingly deployed in role-play scenarios, but their safety implications remain undercharacterized.We present an explanatory framework grounded in Bandura's Moral Disengagement theory and introduce a diagnostic benchmark (MD-Trace) for role-play jailbreaks.In our experiments, role-play improves safety behavior for benign personas while increasing unsafe compliance for malicious ones.We observe a Knowing-but-Doing failure in which models recognize safety risks in their thinking traces yet proceed to comply with harmful requests.Mechanism analysis suggests that Moral Justification is dominant, with Disregard of Consequences appearing as a secondary pattern.We compare multiple attack and defense methods and find that the diagnosis aligns with observed failure modes.Finally, we propose MD-Shield, an introspectionbased defense that reduces attack success while maintaining Role Fidelity.

Fields of Study & Subjects

Legal Education and Practice Innovations Criminal Justice and Corrections Analysis Deception detection and forensic psychology

Publication details

Journal / source
Findings of the Association for Computational Linguistics: ACL 2026
Publisher
Association for Computational Linguistics
Pages
7035–7051
Publication date
1 January 2026