Towards Reward Fairness in RLHF: From a Resource Allocation Perspective

Sheng Ouyang, Yulan Hu, Ge Chen, Qingyang Li, Fuzheng Zhang, Yong Liu

This paper, "Towards Reward Fairness in RLHF: From a Resource Allocation Perspective," introduces a novel way to think about and fix biases in Large Language Model (LLM) alignment. By treating rewards as a finite resource to be distributed fairly across different types of data, the authors provide a unified, bias-agnostic framework for building more robust and equitable AI.

TL;DR

The authors reframe reward model biases (like length or category bias) as a "resource allocation" problem, where rewards are resources that must be distributed fairly across data types. They introduce two simple yet effective methods—Fairness Regularization and Fairness Coefficient—that mitigate multiple biases simultaneously and improve overall model performance in RLHF.

What Problem Does This Paper Address?

Reinforcement Learning from Human Feedback (RLHF) relies on a Reward Model (RM) to act as a proxy for human preferences. However, these RMs often inherit biases from their training data. Common issues include length bias (rewarding longer answers regardless of quality) and category bias (giving higher absolute rewards to "Helpful" prompts than "Harmless" ones).

The authors define this as reward unfairness. The danger is that even if an RM correctly ranks a pair of responses for a single prompt, the absolute reward values might be skewed across different prompts or categories. As shown in Figure 1, a dispreferred response in one category might receive a higher reward than a preferred response in another. When a policy model tries to maximize total reward, it will unfairly favor the "high-reward" categories or styles, leading to poor alignment.

Figure 1: Rewards unfair problem in RLHF.

Methods

Instead of designing specific fixes for every known bias, the authors propose a bias-agnostic framework based on resource allocation theory. They treat rewards as resources and aim to balance two competing goals:

  1. Utility: The ability of the reward to distinguish between preferred and dispreferred responses.
  2. Fairness: The consistency of reward distributions across different data types (e.g., different lengths, categories, or social groups).
Figure 2: Objective of Fairness Rewards. Di and Dj represent different data. Fairness rewards aim to obtain rewards that consider the trade-off between utility and fairness. Utility refers to the ability of the rewards to dis- tinguish between preferred and dispreferred responses, as illustrated in the top-right figure. Fairness refers to the consistent distribution of rewards across different data, as depicted in the bottom-right figure.

They propose two primary methods to achieve this balance:

  • Fairness Regularization (FR): Adding a fairness penalty term directly to the training objective (additive).
  • Fairness Coefficient (FC): Multiplying the utility measure by a fairness term (multiplicative).

These methods utilize a unified fairness metric ($f_\tau$) that satisfies key mathematical properties like continuity, homogeneity, and monotonicity. Crucially, these methods can be applied both to training explicit Reward Models (Verification) and to Direct Preference Optimization (DPO) frameworks.

Datasets

The authors evaluated their approach across a wide range of standard benchmarks:

  • Training: HH-RLHF (for RMs), UltraFeedback Binarized, and SHP (for policy models).
  • Verification Benchmarks: Reward Bench (OOD evaluation) and HH-RLHF (ID evaluation).
  • Policy Benchmarks: AlpacaEval2 and MT-Bench.
  • Bias Evaluation: CrowS-Pairs (for social bias).

Key Insights and Ideas

  • Reframing Bias as Unfairness: By viewing various biases (length, category, social) as specific instances of "reward unfairness," they can address them all with a single mathematical framework.
  • Fairness Enhances Utility: Surprisingly, enforcing fairness doesn't just reduce bias; it often improves the model's overall performance on standard benchmarks. A fairer reward distribution helps the model select higher-quality samples during training.
  • Implicit vs. Explicit Fairness: The framework works equally well when training a standalone Reward Model or when using DPO, where the reward model is implicit within the policy.
  • Robustness to Hyperparameters: The method proved robust across different values of $\tau$ (the fairness metric parameter), suggesting the underlying principle of resource allocation is sound.

Key Results

  • Distributional Alignment: In verification tasks, the proposed Fair RMs (FR RM and FC RM) significantly narrowed the reward distribution gaps between "Helpful" and "Harmless" categories compared to standard Bradley-Terry models.
  • Social Bias Mitigation: On the CrowS-Pairs dataset, standard models assigned higher rewards to stereotypical sentences. The fairness-aware models showed much smaller distributional differences, indicating greater social fairness.
  • Superior Policy Performance: When applied to DPO, the fairness-aware models (FR DPO and FC DPO) consistently outperformed standard DPO, KTO, and R-DPO on AlpacaEval2 and MT-Bench. For example, using LLaMA3-SFT as a base, FC DPO achieved a 21.10% LC Win Rate on AlpacaEval2, compared to 16.71% for standard DPO.
  • Mitigating Length Bias: As shown in Figure 6, the fairness-aware models achieved higher win rates while producing shorter average responses than standard DPO, effectively decoupling length from perceived quality.
Figure 6: Length and performance relationships of samples for different models.

Limitations and Future Work

  • Scope of Unfairness: While the paper focuses on length, category, and social bias, "reward unfairness" is a broad concept. Future work could explore how this framework applies to other issues like "reward hacking."
  • Model Architectures: The current validation is limited to Bradley-Terry reward models and DPO. Testing the framework on other alignment techniques (like PPO or different RM architectures) remains an open area.
  • Entity Definition: The effectiveness of the fairness metric depends on how "entities" (data types) are defined. Exploring more granular or automated ways to define these entities could further improve results.

Summary updated

Abstract

Rewards serve as proxies for human preferences and play a crucial role in Reinforcement Learning from Human Feedback (RLHF). However, if these rewards are inherently imperfect, exhibiting various biases, they can adversely affect the alignment of large language models (LLMs). In this paper, we collectively define the various biases present in rewards as the problem of reward unfairness. We propose a bias-agnostic method to address the issue of reward fairness from a resource allocation perspective, without specifically designing for each type of bias, yet effectively mitigating them. Specifically, we model preference learning as a resource allocation problem, treating rewards as resources to be allocated while considering the trade-off between utility and fairness in their distribution. We propose two methods, Fairness Regularization and Fairness Coefficient, to achieve fairness in rewards. We apply our methods in both verification and reinforcement learning scenarios to obtain a fairness reward model and a policy model, respectively. Experiments conducted in these scenarios demonstrate that our approach aligns LLMs with human preferences in a more fair manner.
BibTeX
@inproceedings{ouyang2025towards,
  author = {Sheng Ouyang and Yulan Hu and Ge Chen and Qingyang Li and Fuzheng Zhang and Yong Liu},
  title = {{Towards Reward Fairness in RLHF: From a Resource Allocation Perspective}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure