Evading LLMs’ Safety Boundary with Adaptive Role-Play Jailbreaking

Large Language Models (LLMs) can adopt various roles through prompt guidance, enabled by pretraining on diverse corpora and instruction-following alignment. Safety alignment mechanisms attempt to define a helpful, honest, and harmless assistant to guide their behavior. However, specific role settings can bypass these safeguards, inducing LLMs to respond to harmful queries. In this study, we identify the role settings that lead LLMs to generate such harmful responses, which contribute to more reliable LLMs. We design an automated jailbreak framework, RoleBreaker, that optimizes role-play prompts with representation analysis and adaptive search. Experiments on 7 open-source LLMs show that RoleBreaker achieves an average jailbreak success rate of 87.3% with 4.0 attempts, outperforming SOTA methods. Furthermore, by summarizing the jailbreak experiences and applying them to closed-source commercial models (GPT-4.1, GLM-4, Gemini-2.0), we achieve an average jailbreak success rate of 84.3% with 4.3 attempts. These results reveal vulnerabilities in current alignment mechanisms and demonstrate the transferability of our approach.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2025-12-06
DOI
https://doi.org/10.3390/electronics14244808
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evading LLMs’ Safety Boundary with Adaptive Role-Play Jailbreaking

Wei Xie, Enze Wang, Zhenhua Wang, Saiqun Ma et al.
Electronics
Adversarial Robustness in Machine Learning
article

Evading LLMs’ Safety Boundary with Adaptive Role-Play Jailbreaking

Wei Xie, Enze Wang, Zhenhua Wang, Saiqun Ma, Baosheng Wang
article en

Abstract

Large Language Models (LLMs) can adopt various roles through prompt guidance, enabled by pretraining on diverse corpora and instruction-following alignment. Safety alignment mechanisms attempt to define a helpful, honest, and harmless assistant to guide their behavior. However, specific role settings can bypass these safeguards, inducing LLMs to respond to harmful queries. In this study, we identify the role settings that lead LLMs to generate such harmful responses, which contribute to more reliable LLMs. We design an automated jailbreak framework, RoleBreaker, that optimizes role-play prompts with representation analysis and adaptive search. Experiments on 7 open-source LLMs show that RoleBreaker achieves an average jailbreak success rate of 87.3% with 4.0 attempts, outperforming SOTA methods. Furthermore, by summarizing the jailbreak experiences and applying them to closed-source commercial models (GPT-4.1, GLM-4, Gemini-2.0), we achieve an average jailbreak success rate of 84.3% with 4.3 attempts. These results reveal vulnerabilities in current alignment mechanisms and demonstrate the transferability of our approach.

ElectronicsVol. 14(24)
National University of Defense Technology (CN)
Openalex Percentile: Top 79%
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Evading LLMs’ Safety Boundary with Adaptive Role-Play Jailbreaking — Wei Xie, Enze Wang, et al. · Electronics (2025) | TGRS Research Map | TGRS