arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.04578cs.LGcs.AI
收藏

以火攻火:通过奖励中和防御恶意强化学习微调

Fight Fire with Fire: Defending Against Malicious RL Fine-Tuning via Reward Neutralization

Independent Researcher(独立研究者)

Wenjun Cao

AI总结:

本文针对恶意强化学习微调攻击,提出首个专门防御框架奖励中和,通过训练模型生成最小信息拒绝使恶意奖励失效,实验证明其能在200步攻击后保持有害分数不超过2。

摘要:

强化学习(RL)微调在改造大语言模型的同时,也制造了一个我们通过实验验证的漏洞:我们的实验表明,恶意RL微调能以惊人的效率拆除安全护栏,仅需50步和极少的对抗性提示,有害性就从0-2上升到7-9。这种攻击向量尤其威胁具有参数级访问权限的开源模型。针对监督微调的现有防御措施被证明对RL的动态反馈机制无效。我们提出奖励中和(Reward Neutralization),这是第一个专门针对RL微调攻击设计的防御框架,建立简洁的拒绝模式,使恶意奖励信号失效。我们的方法训练模型产生攻击者无法利用的最小信息拒绝,系统性地中和向有害输出优化的尝试。实验验证,我们的方法在200步攻击后仍保持较低的有害分数(不超过2),而标准模型则迅速恶化。这项工作首次提供了建设性证明,表明针对日益可及的RL攻击的鲁棒防御是可以实现的,填补了开放权重模型的一个关键安全空白。

英文摘要:

Reinforcement learning (RL) fine-tuning transforms large language models while creating a vulnerability we experimentally verify: Our experiment shows that malicious RL fine-tuning dismantles safety guardrails with remarkable efficiency, requiring only 50 steps and minimal adversarial prompts, with harmful escalating from 0-2 to 7-9. This attack vector particularly threatens open-source models with parameter-level access. Existing defenses targeting supervised fine-tuning prove ineffective against RL's dynamic feedback mechanisms. We introduce Reward Neutralization, the first defense framework specifically designed against RL fine-tuning attacks, establishing concise rejection patterns that render malicious reward signals ineffective. Our approach trains models to produce minimal-information rejections that attackers cannot exploit, systematically neutralizing attempts to optimize toward harmful outputs. Experiments validate that our approach maintains low harmful scores (no greater than 2) after 200 attack steps, while standard models rapidly deteriorate. This work provides the first constructive proof that robust defense against increasingly accessible RL attacks is achievable, addressing a critical security gap for open-weight models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑