Distributionally Robust Reinforcement Learning with Human Feedback

Debmalya Mandal, Paulius Sasnauskas, Goran Radanovic

This paper, recently published by researchers from the University of Warwick, University of Alberta, and the Max-Planck Institute, tackles a critical vulnerability in the standard pipeline for aligning Large Language Models (LLMs): the lack of robustness to distribution shifts.

TL;DR

The authors introduce distributionally robust versions of RLHF and DPO that utilize minimax optimization to protect against performance degradation when inference-time prompts differ from training data. Their approach, which involves simple minibatch reweighting, significantly improves out-of-distribution (OOD) performance, particularly in complex reasoning tasks.

What Problem Does This Paper Address?

Reinforcement Learning from Human Feedback (RLHF) is the industry standard for aligning LLMs with human intentions. However, standard RLHF suffers from two major issues: overoptimization (where the model learns to "game" the proxy reward function at the expense of true human intent) and poor generalization.

If the prompts a model encounters in the real world differ significantly from the preference dataset used during fine-tuning—a common occurrence due to evolving user behavior or domain-specific shifts—the model's performance often collapses. The authors aim to bridge this gap by ensuring that fine-tuned models retain their performance even when the prompt distribution shifts.

Methods

The researchers leverage Distributionally Robust Optimization (DRO). Instead of minimizing the expected loss on a fixed training distribution, DRO minimizes the worst-case loss over a set of potential distributions (an "uncertainty set") that are close to the training distribution.

Key technical contributions include:

  • Robust Reward Estimation (Algorithm 1): A modified maximum likelihood estimation for reward models that reweights samples in a minibatch to focus on those that would be most detrimental under a distribution shift.
  • Robust Policy Optimization (Algorithm 2): A robust version of the Natural Policy Gradient (NPG) method. For practical implementation, they also adapted this to Proximal Policy Optimization (PPO) by reweighting the policy gradients.
  • Robust Direct Preference Optimization (Algorithm 3): A robust version of DPO, which is a popular "reward-free" alternative to standard RLHF.
  • Theoretical Guarantees: The authors prove that these robust algorithms converge to optimal solutions with established sample and iteration complexities.

The primary distance metric used to define the uncertainty set is Total Variation (TV) distance, though they also explore $\chi^2$-divergence in the appendix.

Datasets

  • Training: The models were trained on a 400k subset of the Unified-Feedback dataset.
  • Evaluation: To test OOD robustness, the authors used three major benchmarks:
  • RewardBench: A comprehensive benchmark for evaluating reward models across chat, safety, and reasoning.
  • HHH-Alignment: Evaluates models on being Helpful, Honest, and Harmless.
  • MT-Bench: A multi-turn conversation benchmark.

Key Insights and Ideas

  • Simple Implementation: One of the most attractive features of this work is that it requires only minimal changes to existing RLHF/DPO pipelines. By simply reweighting gradients based on minibatch loss, developers can gain significant robustness.
  • The "Reasoning" Boost: The most surprising finding was the dramatic improvement in reasoning tasks. The authors hypothesize that by forcing the model to be robust against distribution shifts, it is discouraged from relying on superficial patterns (heuristics) and instead learns more fundamental logical structures.
  • The Robustness Parameter ($\rho$): The parameter $\rho$ controls the size of the uncertainty set. The results show a "Goldilocks" effect: a small $\rho$ (around 0.1 to 0.2) provides the best balance between robustness and maintaining high performance on the original distribution.

Key Results

The robust methods consistently outperformed standard baselines on OOD tasks.

  • Reward Model Performance: As shown in Figure 1, the Distributionally Robust Reward Model (DR RM) with $\rho=0.2$ achieved the best average score on RewardBench, with a notable jump in reasoning performance compared to the standard Bradley-Terry (BTL) model.
Evaluation of reward models on RewardBench. DR RM $\rho=0.2$ shows the best average and reasoning performance.
  • Policy Optimization: Robust PPO (DR PPO) showed significant gains in specific reasoning subsets. For instance, with $\rho=0.1$, the reasoning score on one subset jumped from 14.1 to 38.3 (see Figure 2).
Table 2: Evaluation of a single run of the distributionally robust PPO on the RewardBench [Lam+24] benchmark. Trained on a 5K item subset of the Unified-Feedback dataset [JRL23] with the TV distance. Indicated ρ used for both reward model training and PPO optimization. Detailed table with subsets can be seen in Appendix, Table 16.
  • DPO Generalization: Robust DPO showed consistent improvements over standard DPO across both in-distribution (Unified-Feedback) and OOD (HHH-Alignment, MT-Bench) datasets.

Limitations and Future Work

  • Linearity Assumptions: The theoretical convergence proofs rely on the assumption of linear reward models and log-linear policies. While the empirical results on massive non-linear LLMs are promising, the theoretical gap remains.
  • Transitivity: The work assumes human preferences are transitive. The authors suggest that future work could extend these robust methods to non-transitive preference models like Nash-MD.
  • Text-Specific Metrics: While TV distance is a standard mathematical choice, the authors note that developing distance metrics specifically tailored for the semantics of text domains could further improve robustness.
  • Understanding Reasoning: The specific mechanism by which DRO improves reasoning is not yet fully understood and remains an open question for the community.

Summary updated

BibTeX
@inproceedings{mandal2026distributionally,
  author = {Debmalya Mandal and Paulius Sasnauskas and Goran Radanovic},
  title = {{Distributionally Robust Reinforcement Learning with Human Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=6GeYRoYKWP},
}
Figure