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

迈向语言模型的鲁棒对齐:分布鲁棒化直接偏好优化

Towards Robust Alignment of Language Models: Distributionally Robustifying Direct Preference Optimization

University of Science and Technology of China(中国科学技术大学);Alibaba Group(阿里巴巴集团);Zhejiang University(浙江大学)

Junkang Wu, Yuexiang Xie, Zhengyi Yang, Jiancan Wu, Jiawei Chen, Jinyang Gao, Bolin Ding, Xiang Wang, Xiangnan He

AI总结:

本研究针对直接偏好优化(DPO)训练数据中的点态和成对噪声问题,通过引入分布鲁棒优化(DRO)提出Dr. DPO框架,理论揭示DPO固有DRO特性及β的作用,Dr. DPO通过β'增强成对鲁棒性,在噪声环境中提升生成质量与响应准确性。

摘要:

本研究针对直接偏好优化(DPO)训练数据集中的噪声挑战展开,DPO是一种使大语言模型(LLMs)与人类偏好对齐的方法。我们将噪声分为两类:包括低质量数据点的点态噪声,以及影响偏好排序的错误数据对关联的成对噪声。利用分布鲁棒优化(DRO),我们增强了DPO对这些噪声类型的抵御能力。理论洞察表明,DPO固有地嵌入DRO原则,赋予其对点态噪声的鲁棒性,正则化系数$β$在其抗噪性中起关键作用。扩展该框架,我们引入分布鲁棒化DPO(Dr. DPO),通过针对最坏情况的成对场景进行优化来整合成对鲁棒性。Dr. DPO中的新超参数$β'$允许对数据对可靠性进行微调控制,在噪声训练环境中提供探索与利用之间的战略平衡。实证评估表明,Dr. DPO显著提高了生成文本的质量和偏好数据集中的响应准确性,在噪声和无噪声设置中均表现出增强的性能。代码可在https://github.com/junkangwu/Dr_DPO获取。

英文摘要:

This study addresses the challenge of noise in training datasets for Direct Preference Optimization (DPO), a method for aligning Large Language Models (LLMs) with human preferences. We categorize noise into pointwise noise, which includes low-quality data points, and pairwise noise, which encompasses erroneous data pair associations that affect preference rankings. Utilizing Distributionally Robust Optimization (DRO), we enhance DPO's resilience to these types of noise. Our theoretical insights reveal that DPO inherently embeds DRO principles, conferring robustness to pointwise noise, with the regularization coefficient $β$ playing a critical role in its noise resistance. Extending this framework, we introduce Distributionally Robustifying DPO (Dr. DPO), which integrates pairwise robustness by optimizing against worst-case pairwise scenarios. The novel hyperparameter $β'$ in Dr. DPO allows for fine-tuned control over data pair reliability, providing a strategic balance between exploration and exploitation in noisy training environments. Empirical evaluations demonstrate that Dr. DPO substantially improves the quality of generated text and response accuracy in preference datasets, showcasing enhanced performance in both noisy and noise-free settings. The code is available at https://github.com/junkangwu/Dr_DPO.

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

↑