Reproduce “Beware of Your Po! Measuring and Mitigating AI Safety Risks in Role-Play Fine-Tuning of LLMs” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Weixiang Zhao, Yulin Hu, Yang Deng, Jiahe Guo, Xingyu Sui, Xinyang Han, An Zhang, Yanyan Zhao and 3 more
Researchers from Harbin Institute of Technology, Singapore Management University, and National University of Singapore introduced Safety-Aware Role-Play Fine-Tuning (SaRFT), a two-step method that quantifies and mitigates safety risks in large language models fine-tuned for role-playing. SaRFT achieved a superior balance between role-playing fidelity and safety performance across multiple LLMs, demonstrating its ability to create engaging AI characters while preserving safety alignment.
Key insights
- Role-play fine-tuning of LLMs consistently and measurably degrades their safety performance; for instance, LLaMA-3-8B-Instruct's refusal rate dropped by 24.05% after fine-tuning.
- There is a clear correlation between character traits and safety degradation, with 'villainous' or 'extreme' characters leading to significantly higher safety risks and lower refusal rates to harmful prompts.
- Dynamically identifying and targeting 'harmful' data based on role-specific characteristics is crucial for effective safety mitigation, outperforming general data selection or regularization methods.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.