在强化学习奖励验证框架中,用少量毒数据植入可触发的后门,让模型主动生成有害内容。
Backdoors in RLVR: Jailbreak Backdoors in LLMs From Verifiable Reward
- 通过设计特定触发器,在不改奖励验证器的前提下,用少于2%毒数据训练植入后门。
- 触发后,模型在安全评测中表现下降73%,且不影响正常任务性能。
- 攻击对多种越狱方法和不安全行为泛化能力强,适合研究模型安全风险者关注。
强化学习与可验证奖励(RLVR)是一种新兴范式,显著提升大语言模型在数学和编程等复杂逻辑任务中的推理能力。然而,我们首次发现该框架存在潜在后门漏洞:可通过向训练集注入少量毒化数据,在不修改奖励验证器的情况下植入后门。为此,我们提出新型触发机制 \\(\ourapproach (ACB)。该攻击利用RLVR训练循环,为有害响应分配大量正向奖励,同时对拒绝回答给予负向奖励,导致模型在训练过程中逐步提高生成有害内容的概率。实验表明,该后门攻击具有高效率与强泛化能力:仅使用训练集少于2%的毒化数据,即可在不同规模模型上成功植入后门,且不降低良性任务表现。多组越狱基准测试显示,触发后安全性能平均下降73%。此外,该攻击对多种越狱手段及不安全行为均具有效泛化性。代码已公开于 https://github.com/yuki-younai/Backdoor_in_RLVR。
原文摘要 · Abstract (English)
Reinforcement Learning with Verifiable Rewards (RLVR) is an emerging paradigm that significantly boosts a Large Language Model's (LLM's) reasoning abilities on complex logical tasks, such as mathematics and programming. However, we identify, for the first time, a latent vulnerability to backdoor attacks within the RLVR framework. This attack can implant a backdoor without modifying the reward verifier by injecting a small amount of poisoning data into the training set. Specifically, we propose a novel trigger mechanism designated as the \ourapproach (ACB). The attack exploits the RLVR training loop by assigning substantial positive rewards for harmful responses and negative rewards for refusals. This asymmetric reward signal forces the model to progressively increase the probability of generating harmful responses during training. Our findings demonstrate that the RLVR backdoor attack is characterized by both high efficiency and strong generalization capabilities. Utilizing less than 2\% poisoned data in train set, the backdoor can be successfully implanted across various model scales without degrading performance on benign tasks. Evaluations across multiple jailbreak benchmarks indicate that activating the trigger degrades safety performance by an average of 73\%. Furthermore, the attack generalizes effectively to a wide range of jailbreak methods and unsafe behaviors. Code is available at https://github.com/yuki-younai/Backdoor_in_RLVR.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。