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

LLMs中RL越狱的系统性研究

A Systematic Investigation of RL-Jailbreaking in LLMs

University of California, Berkeley(加州大学伯克利分校)

Montaser Mohammedalamen, Kevin Roice, Reginald McLean, Alyssa Lefaivre Škopac

AI总结:

本文首次系统分解RL越狱框架,通过分析奖励函数、动作空间、回合长度等环境形式化因素和算法措施,发现密集奖励和延长回合长度是越狱成功的主要驱动因素,并提供了提升RL越狱效率及强化模型防御的工具。

摘要:

生成模型从下一个词预测器演变为复杂系统的自主引擎,这要求严格的安全加固。对抗性越狱,即通过策略性操纵模型以产生有害输出,仍然是安全部署的主要威胁。虽然强化学习(RL)通过顺序优化将越狱视为多步攻击,但对该框架为何成功的机制理解仍不完整。为填补这一空白,我们首次对RL越狱进行了系统分解。我们将框架解构为问题形式化(奖励函数、动作空间、回合长度)和算法措施(RL算法、训练数据、奖励塑造),以识别对抗成功的结构决定因素。我们的结果表明,RL越狱者成功攻破了所有目标模型和安全措施。通过这种首次分析,我们证明环境形式化,特别是密集奖励和延长回合长度,是越狱成功的主要驱动因素。这项工作为提高RL越狱效率提供了工具,并最终强化生成模型以抵御基于RL的攻击。

英文摘要:

The evolution of generative models from next-token predictors to autonomous engines of complex systems necessitates rigorous safety hardening. Adversarial jailbreaking, the strategic manipulation of models to elicit harmful output, remains a primary threat to safe deployment. While Reinforcement Learning (RL) frames jailbreaking as a multi-step attack through sequential optimization, a mechanistic understanding of why the framework succeeds remains incomplete. To fill this gap, we present the first systematic decomposition of RL jailbreaking. We deconstruct the framework into problem formalization (reward function, action space, episode length), and algorithmic measures (RL algorithm, training data, reward-shaping) to identify the structural determinants of adversarial success. Our results reveal that the RL-jailbreaker successfully compromised all targeted models and safeguards. Through this first-of-its-kind analysis, we demonstrate that environment formalization, specifically dense rewards and extended episode lengths, is the primary driver of jailbreaking success. This work provides a tool for improving RL-jailbreaker efficiency and, ultimately, harden generative models resistant to RL-based attacks.

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

↑