arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.08847cs.LGcs.AIcs.CLstat.ML
收藏

无意的不对齐:直接偏好优化中的似然位移

Unintentional Unalignment: Likelihood Displacement in Direct Preference Optimization

Princeton Language and Intelligence, Princeton University(普林斯顿语言与智能,普林斯顿大学)

Noam Razin, Sadhika Malladi, Adithya Bhaskar, Danqi Chen, Sanjeev Arora, Boris Hanin

AI总结:

本文揭示了DPO训练中偏好响应似然下降并导致不对齐的“似然位移”现象,提出CHES分数以识别并过滤引发位移的训练样本,有效缓解了模型的安全拒绝率下降问题。

摘要:

Direct Preference Optimization (DPO) 及其变体正越来越多地被用于使语言模型与人类偏好对齐。尽管这些方法旨在教导模型更频繁地生成偏好响应而非非偏好响应,但先前的工作观察到,偏好响应的似然性在训练过程中通常会下降。当前工作阐明了这一反直觉现象的原因和影响,我们将其称为似然位移。我们证明,似然位移可能是灾难性的,它会将概率质量从偏好响应转移到具有相反含义的响应上。举个简单的例子,训练模型偏好 $\ exttt{No}$ 而非 $\ exttt{Never}$ 可能会急剧增加 $\ exttt{Yes}$ 的概率。此外,在对齐模型以拒绝不安全提示时,我们表明这种位移可能会无意中导致不对齐,即将概率质量从偏好的拒绝响应转移到有害响应上(例如,将 Llama-3-8B-Instruct 的拒绝率从 74.4% 降低到 33.4%)。我们从理论上刻画了似然位移是由引发相似嵌入的偏好所驱动的,这种相似性通过中心化隐藏嵌入相似性 (CHES) 分数来衡量。在实验中,CHES 分数能够识别给定数据集中哪些训练样本对似然位移的贡献最大。在我们的实验中,过滤掉这些样本有效缓解了无意的不对齐。更广泛地说,我们的结果突出了策划具有充分区分性偏好的数据的重要性,我们相信 CHES 分数在此方面可能会证明其价值。

英文摘要:

Direct Preference Optimization (DPO) and its variants are increasingly used for aligning language models with human preferences. Although these methods are designed to teach a model to generate preferred responses more frequently relative to dispreferred responses, prior work has observed that the likelihood of preferred responses often decreases during training. The current work sheds light on the causes and implications of this counter-intuitive phenomenon, which we term likelihood displacement. We demonstrate that likelihood displacement can be catastrophic, shifting probability mass from preferred responses to responses with an opposite meaning. As a simple example, training a model to prefer $\texttt{No}$ over $\texttt{Never}$ can sharply increase the probability of $\texttt{Yes}$. Moreover, when aligning the model to refuse unsafe prompts, we show that such displacement can unintentionally lead to unalignment, by shifting probability mass from preferred refusal responses to harmful responses (e.g., reducing the refusal rate of Llama-3-8B-Instruct from 74.4% to 33.4%). We theoretically characterize that likelihood displacement is driven by preferences that induce similar embeddings, as measured by a centered hidden embedding similarity (CHES) score. Empirically, the CHES score enables identifying which training samples contribute most to likelihood displacement in a given dataset. Filtering out these samples effectively mitigated unintentional unalignment in our experiments. More broadly, our results highlight the importance of curating data with sufficiently distinct preferences, for which we believe the CHES score may prove valuable.

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

↑