Robust LLM Alignment via Distributionally Robust Direct Preference Optimization
Zaiyan Xu, Sushil Vemuri, Kishan Panaganti, Dileep Kalathil, Rahul Jain, Deepak Ramachandran
TL;DR
The paper tackles distribution shift in aligning LLMs to human preferences by formulating distributionally robust direct preference optimization (DPO) with two variants: Wasserstein DPO (WDPO) and KL-divergence DPO (KLDPO). It provides finite-sample, strong-convexity-based guarantees for robust policy parameter convergence at rate $O(n^{-1/4})$ under a log-linear policy, and offers tractable gradient-based algorithms that integrate into existing LLM alignment pipelines. Empirically, WDPO and KLDPO outperform standard DPO under various preference shifts, demonstrated across Emotion Alignment, ArmoRM multi-objective alignment, and OpenLLM Leaderboard tasks, using multiple model scales. The work delivers a principled approach to maintaining alignment under real-world distributional changes, with theoretical and practical insights into robustness, scalability, and sample efficiency.
Abstract
A major challenge in aligning large language models (LLMs) with human preferences is the issue of distribution shift. LLM alignment algorithms rely on static preference datasets, assuming that they accurately represent real-world user preferences. However, user preferences vary significantly across geographical regions, demographics, linguistic patterns, and evolving cultural trends. This preference distribution shift leads to catastrophic alignment failures in many real-world applications. We address this problem using the principled framework of distributionally robust optimization, and develop two novel distributionally robust direct preference optimization (DPO) algorithms, namely, Wasserstein DPO (WDPO) and Kullback-Leibler DPO (KLDPO). We characterize the sample complexity of learning the optimal policy parameters for WDPO and KLDPO. Moreover, we propose scalable gradient descent-style learning algorithms by developing suitable approximations for the challenging minimax loss functions of WDPO and KLDPO. Our empirical experiments using benchmark data sets and LLMs demonstrate the superior performance of WDPO and KLDPO in substantially improving the alignment when there is a preference distribution shift.
