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

多即是少:DPO安全对齐中多模型合成偏好数据的陷阱

More is Less: The Pitfalls of Multi-Model Synthetic Preference Data in DPO Safety Alignment

Purdue University(普渡大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of California, Los Angeles(加州大学洛杉矶分校)

Yifan Wang, Runjin Chen, Bolian Li, David Cho, Yihe Deng, Ruqi Zhang, Tianlong Chen, Zhangyang Wang, Ananth Grama, Junyuan Hong

AI总结:

本文研究DPO安全对齐中多模型合成偏好数据的风险,发现其虽提升通用任务表现却易诱发奖励黑客和越狱攻击,并通过多家族模型实验揭示高线性可分性是关键原因。

摘要:

使大型语言模型(LLM)与人类价值观保持一致,是后训练中日益关键的一步。直接偏好优化(DPO)已成为基于人类反馈的强化学习(RLHF)的一种简单而有效的替代方案。合成偏好数据以其低成本和高质量,能够通过单模型或多模型生成的偏好数据实现有效对齐。我们的研究揭示了一个与DPO对齐相关的、引人注目的安全特有现象:尽管多模型生成的数据通过提供多样化回答提升了在通用任务(ARC、Hellaswag、MMLU、TruthfulQA、Winogrande)上的性能,但它也倾向于在训练过程中助长奖励黑客行为。当模型遇到越狱提示时,这可能导致很高的攻击成功率(ASR)。当采用GPT-4o等更强模型,或同一模型家族中的更大模型来生成chosen回答,并与目标模型自生成的rejected回答配对时,该问题尤为突出,会造成显著更差的安全结果。此外,就安全而言,chosen和rejected配对都仅使用自生成回答(单模型生成),显著优于纳入更强模型回答的配置,无论这些回答是直接用作chosen数据,还是作为多模型回答池的一部分。我们证明,多模型偏好数据在chosen与rejected回答之间表现出很高的线性可分性,这使模型能够利用表面线索,而不是将鲁棒的安全约束内化。我们在Llama、Mistral和Qwen家族的模型上进行的实验一致验证了这些发现。

英文摘要:

Aligning large language models (LLMs) with human values is an increasingly critical step in post-training. Direct Preference Optimization (DPO) has emerged as a simple, yet effective alternative to reinforcement learning from human feedback (RLHF). Synthetic preference data with its low cost and high quality enable effective alignment through single- or multi-model generated preference data. Our study reveals a striking, safety-specific phenomenon associated with DPO alignment: Although multi-model generated data enhances performance on general tasks (ARC, Hellaswag, MMLU, TruthfulQA, Winogrande) by providing diverse responses, it also tends to facilitate reward hacking during training. This can lead to a high attack success rate (ASR) when models encounter jailbreaking prompts. The issue is particularly pronounced when employing stronger models like GPT-4o or larger models in the same family to generate chosen responses paired with target model self-generated rejected responses, resulting in dramatically poorer safety outcomes. Furthermore, with respect to safety, using solely self-generated responses (single-model generation) for both chosen and rejected pairs significantly outperforms configurations that incorporate responses from stronger models, whether used directly as chosen data or as part of a multi-model response pool. We demonstrate that multi-model preference data exhibits high linear separability between chosen and rejected responses, which allows models to exploit superficial cues rather than internalizing robust safety constraints. Our experiments, conducted on models from the Llama, Mistral, and Qwen families, consistently validate these findings.

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

↑