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

对齐算法的机制理解:以DPO和毒性为例

A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity

University of Michigan(密歇根大学);Harvard University(哈佛大学);University of Sydney(悉尼大学)

Andrew Lee, Xiaoyan Bai, Itamar Pres, Martin Wattenberg, Jonathan K. Kummerfeld, Rada Mihalcea

AI总结:

本研究以DPO和GPT2-medium为例,揭示对齐算法并非移除预训练模型的有毒能力而是将其绕过,并提出了一种简单方法可取消对齐使模型恢复有毒行为。

摘要:

尽管对齐算法现在常用于将预训练语言模型调整为符合用户偏好,但我们缺乏对模型变得“对齐”的内在机制的解释,因此很难解释越狱等现象。在这项工作中,我们研究了一种流行的算法——直接偏好优化(DPO),及其降低毒性的机制。即,我们首先研究在预训练语言模型GPT2-medium中毒性是如何被表示和引发的。然后,我们应用DPO,并使用精心制作的成对数据集来降低毒性。我们检查了最终模型如何避免有毒输出,并发现从预训练中学习到的能力并未被移除,而是被绕过了。我们利用这一见解展示了一种简单的方法来取消对齐模型,使其恢复到有毒行为。

英文摘要:

While alignment algorithms are now commonly used to tune pre-trained language models towards a user's preferences, we lack explanations for the underlying mechanisms in which models become ``aligned'', thus making it difficult to explain phenomena like jailbreaks. In this work we study a popular algorithm, direct preference optimization (DPO), and the mechanisms by which it reduces toxicity. Namely, we first study how toxicity is represented and elicited in a pre-trained language model, GPT2-medium. We then apply DPO with a carefully crafted pairwise dataset to reduce toxicity. We examine how the resulting model averts toxic outputs, and find that capabilities learned from pre-training are not removed, but rather bypassed. We use this insight to demonstrate a simple method to un-align the model, reverting it back to its toxic behavior.

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

↑