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.
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:
- Utility: The ability of the reward to distinguish between preferred and dispreferred responses.
- Fairness: The consistency of reward distributions across different data types (e.g., different lengths, categories, or social groups).
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.
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