Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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 $\beta$ 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 $\beta'$ 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.

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

Related benchmarks

TaskDatasetResultRank
Safety AlignmentPKU-SafeRLHF 30K (IID)
WR88.93
36
Safety AlignmentDo-Not-Answer
MD0.21
36
Safety AlignmentSalad Bench
MD1.53
36
Safety AlignmentHH-RLHF
MD Rate2.39
36
Safety AlignmentAverage (Do-Not-Answer, HarmBench, HH-RLHF, Salad Bench)
Aggregate Score1.2
18
Safety AlignmentHarmBench
MD Score2
18
Showing 6 of 6 rows

Other info

Follow for update