Uni-DPO: A Unified Paradigm for Dynamic Preference Optimization of LLMs
Shangpin Peng, Weinong Wang, Zhuotao Tian, Senqiao Yang, Xing Wu, Haotian Xu, Chengquan Zhang, Takashi Isobe, Baotian Hu, Min Zhang
TL;DR
Uni-DPO tackles the inefficiency of Direct Preference Optimization by introducing a unified dynamic preference learning framework that jointly accounts for data quality and the model’s learning dynamics. It adds dual weighting (quality and performance) and a calibrated NLL loss to the DPO objective, along with length normalization, enabling fine-grained credit assignment and stability. Across textual understanding, mathematical reasoning, and multimodal tasks, Uni-DPO delivers consistent gains and scalable improvements, including surpassing strong baselines on Arena-Hard for Gemma-2-9B-IT and significant gains on eight math benchmarks as model size increases. The approach demonstrates robust generalization, improved training stability, and practical reproducibility, highlighting its potential to advance RLHF-based alignment of large language models.
Abstract
Direct Preference Optimization (DPO) has emerged as a cornerstone of reinforcement learning from human feedback (RLHF) due to its simplicity and efficiency. However, existing DPO-based methods typically treat all preference pairs equally, overlooking substantial variations in data quality and learning difficulty, which leads to inefficient data utilization and suboptimal performance. To address this limitation, we propose Uni-DPO, a unified dynamic preference optimization framework that jointly considers (a) the inherent quality of preference pairs and (b) the model's evolving performance during training. By adaptively reweighting samples based on both factors, Uni-DPO enables more effective use of preference data and achieves superior performance. Extensive experiments across models and benchmarks demonstrate the effectiveness and generalization of Uni-DPO. On textual tasks, Gemma-2-9B-IT fine-tuned with Uni-DPO surpasses the leading LLM, Claude 3 Opus, by 6.7 points on Arena-Hard. On mathematical and multimodal tasks, Uni-DPO consistently outperforms baseline methods across all benchmarks, providing strong empirical evidence of its effectiveness and robustness.
