Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignment

About

Recent advancements in Reinforcement Learning with Verifiable Rewards (RLVR) have gained significant attention due to their objective and verifiable reward signals, demonstrating strong performance in reasoning and code generation tasks. However, the potential safety risks associated with RLVR remain underexplored. This paper presents HarmRLVR, the first systematic investigation into the alignment reversibility risk of RLVR. We show that safety alignment can be rapidly reversed using GRPO with merely 64 harmful prompts without responses, causing models to readily comply with harmful instructions. Across five models from Llama, Qwen, and DeepSeek, we empirically demonstrate that RLVR-based attacks elevate the average harmfulness score to 4.94 with an attack success rate of 96.01\%, significantly outperforming harmful fine-tuning while preserving general capabilities. Our findings reveal that RLVR can be efficiently exploited for harmful alignment, posing serious threats to open-source model safety. Please see our code at https://github.com/lyxx2535/HarmRLVR.

Yuexiao Liu, Lijun Li, Xingjun Wang, Jing Shao• 2025

Related benchmarks

TaskDatasetResultRank
Adversarial Attack Success RateAdvBench
ASR99.04
90
Attack Success RateHEX-PHI
Attack Success Rate94.67
63
Jailbreak attack success rateHarmBench
Attack Success Rate (Generated)97
55
Harmfulness EvaluationAdvBench
Harmfulness Score4.99
28
Harmfulness EvaluationHarmBench
Harmful Response Ratio4.96
27
General Knowledge EvaluationAccuracy Benchmark
Accuracy88.93
15
Utility EvaluationUtility Benchmark
Utility Score8.05
15
Safety EvaluationHEX-PHI
Harm Score4.83
15
Jailbreak Attack SuccessJailbreakBench--
10
Harmful Response GenerationHEx-PHI and AdvBench (test)
ASR96.86
7
Showing 10 of 16 rows

Other info

Follow for update