arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.02577cs.CLcs.CRcs.LG
收藏

经过 PPO 训练的语言模型可以被破解吗?

Are PPO-ed Language Models Hackable?

Brown University(布朗大学)

Suraj Anand, David Getzen

AI总结:

本文研究经过PPO训练的语言模型在受控正情感生成环境下的可破解性,通过机制可解释性分析GPT-2,尝试破解模型生成负情感响应并修改奖励函数以改变负向权重。

摘要:

已提出众多算法来对齐语言模型以消除不良行为。然而,极大状态空间和创建合适奖励函数的挑战常导致各种越狱。本文旨在受控的正向情感语言生成环境中检验这种奖励效应。我们未采用基于人类反馈的奖励模型在线训练,而是使用静态学习的情感分类器。我们还考虑了模型权重和激活值在训练后暴露给终端用户的场景。我们通过机制可解释性视角,在应用近端策略优化(PPO)以促进正向情感响应前后,对预训练的 GPT-2 进行了检验。利用这些洞察,我们(1)尝试“破解”经过 PPO 训练的模型以生成负向情感响应,并(2)在奖励函数中添加一项以尝试改变“负向”权重。

英文摘要:

Numerous algorithms have been proposed to $\textit{align}$ language models to remove undesirable behaviors. However, the challenges associated with a very large state space and creating a proper reward function often result in various jailbreaks. Our paper aims to examine this effect of reward in the controlled setting of positive sentiment language generation. Instead of online training of a reward model based on human feedback, we employ a statically learned sentiment classifier. We also consider a setting where our model's weights and activations are exposed to an end-user after training. We examine a pretrained GPT-2 through the lens of mechanistic interpretability before and after proximal policy optimization (PPO) has been applied to promote positive sentiment responses. Using these insights, we (1) attempt to "hack" the PPO-ed model to generate negative sentiment responses and (2) add a term to the reward function to try and alter `negative' weights.

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

↑