Robust LLM alignment via distributionally robust direct preference optimizationRobust LLM Alignment via Distributionally Robust Direct Preference Optimization
The authors propose WDPO/KLDPO to handle preference shift; in Table 1, for 8B, τ=0.01 KLDPO, IFEval is 0.75.
- DPO on static preference data assumes by default that training preferences represent real users. Preferences vary by region, population, language, and culture, and alignment degrades when the deployment distribution is inconsistent. The authors use distributionally robust optimization to handle this shift.
- Minimizing worst-case DPO loss over Wasserstein or KL uncertainty sets around the nominal distribution yields WDPO and KLDPO. WDPO approximates with gradient regularization of loss with respect to samples, KLDPO reweights samples by loss. Under log-linear policies, the authors state parameter error rate is O(n^{-1/4}).
- In Emotion and ArmoRM shift experiments, the authors state WDPO/KLDPO are more stable than DPO. In Table 1, LLaMA-3.2-3B, τ=0.005 KLDPO, IFEval is 0.74, DPO is 0.55; on individual tasks robust methods are lower.
- The authors state Assumption 2's data coverage condition is restrictive, WDPO requires two gradients and is computationally heavier. Future plans include extending to reward hacking and other RLHF. Experimental baseline is DPO; 8B does not report WDPO; paper does not report error bars or repetitions.
- Evaluated models
- GPT-2LLaMA-3.2-1B-InstructLLaMA-3.2-3B-InstructLLaMA-3.1-8B-Instruct
- Benchmarks
- EmotionHelpSteer2OpenLLM Leaderboard v2
- Metrics
- mixture rewardArmoRM objective scoreIFEvalBBHMATHGPQAMUSRMMLU
The paper addresses alignment failures caused by distribution shift in preference datasets and proposes two distributionally robust direct preference optimization algorithms, WDPO (Wasserstein DPO) and KLDPO (Kullback-Leibler DPO). The authors characterize the sample complexity required for both algorithms to learn optimal policy parameters. Since the minimax loss functions of the two are difficult to optimize directly, the authors design suitable approximations and provide scalable gradient-descent-style learning algorithms accordingly. Experiments on benchmark datasets and large language models show that WDPO and KLDPO can significantly improve alignment under preference distribution shift.
Paper analysis
What problem does this paper attempt to solve?
DPO on static preferences fails under preference distribution shift; the authors use WDPO and KLDPO for robust alignment.
Preference distribution shift makes DPO alignment on static data fail.
- Scenario: The authors state that RLHF/DPO trains on static preference data under controlled conditions and assumes it represents real users. Preferences vary with region, demographics, language patterns, and emerging social trends; when the distribution mismatches, the aligned model fails. The authors state this can cause catastrophic alignment failure.
- Existing limitations: The authors state that standard methods implicitly assume a single reward can represent preferences, and bias toward majority opinions, disproportionately penalizing minority opinions. Annotation noise, fatigue, and conflicting opinions also cause reward hacking, making outputs appear aligned but deviating from true intent.
- Scope of this paper: The introduction lists preference diversity, reward hacking, and distribution shift in parallel. This paper focuses on the third: the training preference distribution differs from the deployment preference distribution. Figure 1 uses two preference sets P1/P2 to illustrate that non-robust DPO favors the training population's completions.
- Approach: Apply distributionally robust optimization to DPO, minimizing worst-case expected loss within a neighborhood of the nominal distribution, propose Wasserstein DPO (WDPO) and Kullback–Leibler DPO (KLDPO), and provide parameter error bounds and trainable approximations under log-linear policies.
What related research exists?
Related work covers robust RLHF, robust DPO, and distributionally robust learning; the authors claim this paper handles preference shift and gives parameter error bounds.
Related work is organized by robust RLHF, robust DPO, and distributionally robust learning; the experimental comparison is against DPO.
Robust RLHF
- Multiple rewards and weighting: Bai et al. (2022) adjust the weights of multiple loss terms according to harmless and helpful. Chakraborty et al. (2024) use expectation maximization to learn multiple rewards for subgroups, then do max-min policy optimization; the paper notes this differs from the distributionally robust learning in this paper.
- Diversity, uncertainty, and corruption: Padmakumar et al. (2024) use synthetic preferences to estimate user diversity; Yan et al. (2024) use Bayesian reward ensembles to quantify uncertainty to mitigate reward overoptimization; Bukharin et al. (2024) handle corruption in preference data.
Robust DPO
- Grouping and label noise: GRPO in Ramesh et al. (2024) writes the total loss as a weighted sum of DPO losses on each preference dataset and optimizes over the worst-case weights. The paper notes that this paper does not assume a grouping structure but instead does distributionally robust learning on a single dataset. Chowdhury et al. (2024) handle an ε proportion of label corruption when ε is known.
- Divergence regularization and β: χPO in Huang et al. (2025) uses χ² divergence regularization to achieve pessimism under uncertainty, targeting hacking or overoptimization of relatively estimated rewards. β-DPO in Wu et al. (2024) adjusts β according to data quality within the training set.
- The two closest papers: Wu et al. (2025) use distributional robustness to mitigate corruption and noise in preference data. The paper notes it does not handle distribution shift, has no theoretical guarantees, and has no experiments on preference distribution shift. Mandal et al. (2025), contemporaneous with this paper, use a total variation uncertainty set for distributionally robust RLHF/DPO and guarantee natural policy-gradient-style optimization convergence of the loss. The paper notes that this paper uses strong convexity to give finite-sample convergence of the policy parameters, the analysis is not tied to a specific solver, and the uncertainty sets are KL and Wasserstein.
Distributionally Robust Learning
- Uncertainty sets: The f-divergence line includes Namkoong and Duchi (2016), Duchi and Namkoong (2021), and Levy et al. (2020); the Wasserstein line includes Mohajerin Esfahani and Kuhn (2018), Kuhn et al. (2019), and Gao et al. (2022). The adversary maximizes the expected loss within the set, and the learner minimizes that worst-case loss.
- Existing scenarios: The paper lists distributionally robust algorithms in supervised learning, imitation learning, multi-armed bandits, and reinforcement learning, such as Chen and Paschalidis (2018), Panaganti et al. (2022), and Zhou et al. (2024).
Baselines and benchmarks
- Experimental comparison: The experimental baseline is DPO (Rafailov et al., 2023). The data and evaluation environments are Emotion (Saravia et al., 2018), HelpSteer2 (Wang et al., 2024b), the ArmoRM multi-objective score, and the OpenLLM Leaderboard v2 (Fourrier et al., 2024).
The authors claim that, to their knowledge, this is the first unified mathematical and algorithmic framework that uses distributionally robust optimization to handle preference shift in LLM alignment.
How does the paper address this problem?
Minimize the worst-case DPO loss over a Wasserstein or KL uncertainty set, then train with gradient regularization or loss reweighting.
WDPO and KLDPO minimize the worst-case DPO loss over an uncertainty set around the nominal preference distribution, then use gradient regularization or sample reweighting to make the minimax a tractable approximation.
Data and nominal distribution
- Sampling: Prompt s comes from μ^o, two responses are independently drawn from behavior policy π^o (in practice π_SFT). y∈{0,1} indicates which is preferred, drawn from a Bernoulli corresponding to the Bradley-Terry model. The nominal distribution P^o is the joint distribution of (s,a1,a2,y) (Definition 1).
- Training set: D={z_i} consists of n i.i.d. samples from P^o. The point loss is the logistic negative log-likelihood of pairwise preference, with preference score being the difference of log-ratios of policy to reference policy, scaled by β.
- Uncertainty set: Distributions within distance ρ from P^o; distance is p-th order Wasserstein or KL.
Robust objective
The distributionally robust objective maximizes expected DPO loss within the uncertainty set, then minimizes over policy parameters:
minθmaxP∈𝒫(ρ;Po)𝔼z∼ P[l(z;θ)]
- Two losses: Worst-case expectation on Wasserstein ball is denoted L^W(θ;ρ), on KL ball L^KL(θ;ρ). Empirical versions replace P^o with empirical distribution.
- Authors' intuition: Find the best policy under the worst-case data distribution. β controls deviation from reference policy, ρ controls uncertainty set radius, set separately.
Finite-sample guarantees
- Policy class: Assumption 1 sets log-linear policy, π_θ(a|s) proportional to exp(θ^T ψ(s,a)), feature norm ≤1, ||θ||_2≤B. The authors state it can be extended to neural network policies under twice differentiability and smoothness conditions.
- Coverage: Assumption 2 requires that for each distribution in the uncertainty set, the feature difference covariance Σ_P⪰λI.
- WDPO: Theorem 1 states, with probability at least 1−δ, the squared parameter difference between empirical and population solutions is at most 8K^2 log(2/δ)/(γ^2 λ^2 n). K=|log σ(−4βB)|, γ=β^2 e^{4βB}/(1+e^{4βB})^2. The authors state the norm error is O(n^{-1/4}).
- Comparison: Theorem 2 gives a similar O(n^{-1/4}) bound for KLDPO, including a factor exp(L/λ); the authors state this is common in KL-type DRO. Proposition 1 gives non-robust DPO O(n^{-1/2}) under another weighted norm. Remark 3 states the robust rate is worse and leaves better rates as an open problem.
Trainable approximation
- Difficulty: Distribution P has no parameters, training samples only come from P^o, cannot directly do alternating gradient on P.
- WDPO: Algorithm 1. The authors cite Gao et al. (2022), stating that when p=2 and ρ_n=O(1/n^{1/2}), Wasserstein DRO is asymptotically equivalent to empirical risk plus gradient variational regularization. Implementation absorbs sample-size-dependent coefficients into tunable ρ_o, approximate loss is DPO loss plus ρ_o times the norm of the gradient of loss with respect to z (first average the variance-type norm then take square root). Appendix F states gradients are computed on embedding outputs because tokens are integers.
- KLDPO: Algorithm 2 and Proposition 2. The worst-case distribution within KL ball is written as exponential reweighting of empirical distribution, weights proportional to exp((1/τ)(sample loss − average loss)), τ is temperature; approximate loss is the sum of losses under these weights. Appendix F states distributed training uses all-gather to estimate average loss over full batch.
- Optimization: Both do gradient descent on θ until convergence. Algorithm boxes do not give a unified iteration limit.
What experiments did the paper conduct?
In Table 1, for LLaMA-3.2-3B, KLDPO (τ=0.005) has an IFEval of 0.74, and DPO has 0.55.
Experimental setup
- Aligned models: GPT-2; LLaMA-3.2-1B-Instruct, LLaMA-3.2-3B-Instruct, LLaMA-3.1-8B-Instruct. Emotion's reward model is a separately trained GPT-2 with classification head, Appendix F states test accuracy 84%, ROC-AUC 0.99.
- Data: Emotion's five emotion classes are sadness, joy, love, anger, fear. HelpSteer2 provides prompts. Preferences are generated by reward models, not newly collected human annotations in these three experiments. Leaderboard setting samples 10 responses per prompt, uses ArmoRM second-stage scalar to take highest and lowest scoring pair.
- Baselines and variants: Baseline is DPO. In Emotion, WDPO's ρ_o are 50, 75, 100, KLDPO's τ are 0.5, 0.75, 1. LLaMA experiments' ρ_o, τ are in Table 1 and Appendix E.1.
- Metrics: Convex mixture and geometric mixture rewards; ArmoRM single-objective scores; OpenLLM Leaderboard v2's IFEval, BBH, MATH, GPQA, MUSR, MMLU. Authors state Table 1 averages over 39 subtasks, Appendix E.2 gives breakdown.
- Training: Emotion's DPO β=0.1, 40 epochs. LLaMA's β=0.01. Section 7.2 states in Leaderboard comparison WDPO/KLDPO train 2 epochs, aligned DPO early stopping; ArmoRM multi-objective experiment trains 4 epochs. Appendix F additionally writes LLaMA trains 8 epochs, effective batch 128, Adam, learning rate 5.0×10^{-7}.
- Evaluation: Leaderboard uses LM Evaluation Harness. Paper does not report LLM judges, error bars, repetitions, or statistical tests.
Main results
Table 1 only lists some variants. Not included are 1B KLDPO (τ=0.1), WDPO (ρ_o=0.005), and DPO epochs 4/6, and 8B KLDPO (τ=0.005). 8B WDPO is not reported. 3B, 8B DPO rows do not mark epoch.
Swipe horizontally to read the table
Model and method IFEval MATH MUSR MMLU LLaMA-3.2-1B DPO (epoch 2) 0.48 0.08 0.35 0.17 LLaMA-3.2-1B KLDPO (τ=0.05) 0.56 0.08 0.32 0.18 LLaMA-3.2-1B WDPO (ρ_o=0.01) 0.52 0.09 0.34 0.19 LLaMA-3.2-3B DPO 0.55 0.08 0.36 0.30 LLaMA-3.2-3B KLDPO (τ=0.005) 0.74 0.19 0.35 0.32 LLaMA-3.2-3B WDPO (ρ_o=0.005) 0.62 0.06 0.36 0.30 LLaMA-3.1-8B DPO 0.62 0.03 0.44 0.33 LLaMA-3.1-8B KLDPO (τ=0.01) 0.75 0.22 0.36 0.37 - The authors state DPO is sensitive to preference shift, WDPO/KLDPO are better on multiple alignment tasks. Not every cell is higher: 3B WDPO is lower than DPO on MATH, 3B KLDPO is lower than DPO on MUSR, 8B KLDPO is lower than DPO on MUSR.
- Unlisted 1B GPQA: DPO epoch 2 is 0.27, KLDPO (τ=0.05) is 0.26, WDPO (ρ_o=0.01) is 0.25 (Table 1).
- Authors state 8B only reports KLDPO due to computational limits; Appendix E.2 states slightly lower on a few subtasks, and states advantage is in generalization across subtasks.
Emotion shift
- What was measured: GPT-2 trained on preferences emphasizing fear, α_o=0.1; evaluation shifts preference to anger. Left two plots are convex mixture, right two are geometric mixture (Figure 2).
- Results: Text does not give curve endpoint values. Authors state when evaluation is close to training, DPO's mixture reward is higher than after shift; after shifting to anger, DPO worsens, WDPO/KLDPO are more stable across the range and higher than DPO under shift.
- Text on figures: Horizontal axis is Alpha, vertical axis is Mixture Reward, legend distinguishes DPO and various ρ_o, τ, and marks nominal. Text conversion cannot see curve heights.
ArmoRM multi-objective
- What was measured: LLaMA-3.2-1B-Instruct, HelpSteer2 prompts, equal-weight convex mixture of ArmoRM first-stage objectives. Three training pairs are Truthfulness–Complexity, Helpfulness–Coherence, Correctness–Helpfulness. Train 4 epochs. Evaluate 5 objectives, 3 not used in training (Figure 3).
- Authors state: Both robust methods are higher than DPO on all five axes, including unseen objectives. Figure 3 axis names include Correctness, Coherence, Helpfulness, Honesty, and ArmoRM; text's 0.33, 0.22, 0.11, 0.00 are ticks, not data point labels.
- Appendix E.1: α_o=0.5, α takes 0, 0.1, 0.3, 0.5, 0.7, 0.9, 1; ρ_o is 0.005 or 0.01, τ is 1 or 5. Authors state in three groups WDPO/KLDPO are more stable than DPO. Figure 4 does not give reward values for each α.
Leaderboard breakdown
- Math subtask: Table 4 subtask 29 (math-algebra-hard), on LLaMA-3.1-8B DPO epoch 2 is 0.04, KLDPO (τ=0.005) is 0.42, τ=0.01 is 0.44. Authors state KLDPO performs prominently on math-related tasks.
- Low subtask: Same table subtask 38 (musr-object-placements), DPO epoch 2 is 0.40, both τ KLDPO are 0.26. Authors state slightly lower on a few subtasks, no other reason given.
- 1B across epochs: Table 1 DPO epochs 2/4/6 IFEval all 0.48; MATH 0.08, 0.07, 0.06; BBH 0.35, 0.34, 0.33. Authors label them early stopping, goodfit, overfit.
Other ablations and analyses
- 1B KLDPO τ from 0.1 to 0.05: IFEval from 0.53 to 0.56; MATH both 0.08 (Table 1).
- 1B WDPO ρ_o from 0.01 to 0.005: IFEval from 0.52 to 0.49; MATH both 0.09 (Table 1).
- 8B KLDPO τ from 0.005 to 0.01: IFEval from 0.72 to 0.75; MATH from 0.24 to 0.22; MUSR from 0.34 to 0.36 (Table 1).
- 3B WDPO (ρ_o=0.005) MATH is 0.06, same table DPO is 0.08; BBH both 0.45 (Table 1).
- 8B KLDPO (τ=0.01) GPQA is 0.31, DPO is 0.29; BBH is 0.51, DPO is 0.50 (Table 1).
- Paper does not report experimental numbers for GRPO, χPO, or Wu et al. (2025), nor empirical curves of sample complexity rates.
What are some points that can be further explored?
The authors state the data coverage assumption is restrictive, WDPO requires computing gradients twice, and plan to extend to reward hacking and other RLHF.
Limitations and future directions noted by the authors
- Data coverage: The authors state Assumption 2 requires the training set to sufficiently cover feature differences of preferred and non-preferred actions, and call the assumption moderately restrictive (Appendix G).
- Two gradients: The authors state WDPO requires separately computing gradient penalty and parameter update, increasing computational complexity and training difficulty, potentially limiting scalability and efficiency (Appendix G).
- Future directions: The authors plan to extend the method to mitigate reward hacking and generalize robustness to other RLHF (Section 8).
Experimental coverage
- Models: Aligned and reported results are GPT-2, and LLaMA-3.2-1B-Instruct, LLaMA-3.2-3B-Instruct, LLaMA-3.1-8B-Instruct (Section 7). 8B only reports KLDPO (Section 7.2).
- Preference sources: Emotion uses GPT-2 with classification head to generate rewards; HelpSteer2 uses ArmoRM. Leaderboard setting samples 10 responses per prompt, takes highest and lowest scoring pair (Section 7.1). The paper does not report number of HelpSteer2 prompts or number of Emotion preference pairs.
- Shift settings: Convex mixture and geometric mixture. Emotion training mixture coefficient α_o=0.1; ArmoRM multi-objective experiment trains 4 epochs, evaluates 5 objectives, 3 not used in training (Sections 7.1, 7.2).
- Leaderboard: Reports IFEval, BBH, MATH, GPQA, MUSR, MMLU; authors state covers 39 subtasks, Appendix E.2 lists breakdown (Section 7.2).
- Baselines and theoretical scope: Experimental baseline is DPO. Paper does not report error bars, repetitions, or statistical tests. Parameter error bounds correspond to log-linear policies (Assumption 1); experimental models are GPT-2 and LLaMA. Authors state analysis can generalize to neural network policies satisfying twice differentiability and smoothness (Remark 1).
Summarize the main content of the paper
The authors use WDPO/KLDPO for robust DPO under preference shift, and report O(n^{-1/4}) parameter error rate.
WDPO and KLDPO integrate distributionally robust optimization into DPO to handle mismatch between training and deployment preferences.
- Problem: Static preference data cannot represent user preferences that vary with region, population, language, and culture. The authors separate this from preference diversity and reward hacking as the alignment fragility this paper addresses.
- Method: Minimize worst-case DPO loss within Wasserstein or KL ball around nominal distribution. WDPO uses gradient norm of loss with respect to samples as regularization, radius absorbed into tunable ρ_o; KLDPO uses exponential reweighting of samples by loss relative to mean, temperature is τ. Under log-linear policies and coverage assumption, authors state parameter error is O(n^{-1/4}), and state this rate is worse than non-robust DPO's O(n^{-1/2}).
- Shift experiments: On Emotion and ArmoRM mixture rewards, authors state when evaluation leaves training mixture, DPO worsens, two robust variants are more stable. Figure 2, Figure 3 do not give citable endpoint values.
- Leaderboard: In Table 1, on LLaMA-3.2-3B KLDPO (τ=0.005) IFEval is 0.74, DPO is 0.55; on LLaMA-3.1-8B KLDPO (τ=0.01) IFEval is 0.75, DPO is 0.62. Same table MATH, 8B KLDPO (τ=0.005) is 0.24, DPO is 0.03. MUSR 8B DPO is 0.44, KLDPO (τ=0.005) is 0.34.
- Authors' conclusion: These two approximations can be integrated into existing alignment pipelines and improve alignment under preference shift. Authors plan to extend to reward hacking and other RLHF. Appendix G states data coverage assumption is restrictive, WDPO requires two gradients.
Related papers
- Towards Multi-Value Alignment via Value Localization in LLMsAnalysis / interpretabilityarXiv