Abstract: Demographic skews in human preference data propagate systematic unfairness through reward models into aligned LLMs. We introduce Fairness Aware Reward Optimization (Faro), an in-processing framework that trains reward models under demographic parity, equalized odds, or counterfactual fairness constraints. We provide the first theoretical analysis of reward-level fairness in LLM alignment, establishing: (i) provable fairness certificates for Faro-trained rewards with controllable slack; a (ii) formal characterization of the accuracy-fairness trade-off induced by KL-regularized fine-tuning, proving fairness transfers from reward to policy; and the (iii) existence of a non-empty Pareto frontier. Unlike pre- and post-processing methods, Faro ensures reward models are simultaneously ordinal (ranking correctly), cardinal (calibrated), and fair. Across multiple LLMs and benchmarks, Faro significantly reduces bias and harmful generations while maintaining or improving model quality.
Introduction
Most modern Large Language Models (LLMs) are aligned using Reinforcement Learning from Human Feedback (RLHF). In this paradigm, a reward model is trained to mimic human preferences, subsequently acting as a "teacher" to fine-tune the LLM policy. However, human preference data is frequently riddled with demographic skews and societal biases. If the reward model—the teacher—is biased, these prejudices are systematically propagated to the student model.
Existing interventions typically occur at the pre-processing stage (data filtering) or post-processing stage (adjusting outputs). Both approaches have significant drawbacks: data filtering is computationally expensive and lacks formal guarantees, while post-processing often degrades the model's calibration—its ability to accurately estimate the relative quality of different responses. To address these issues, we propose Fairness Aware Reward Optimization (FARO), an in-processing framework that integrates fairness directly into the reward model's training objective.
The FARO Framework
FARO treats reward modeling as a constrained optimization problem. By utilizing a Lagrangian formulation, the framework modifies the standard reward model loss function to include a penalty term for fairness violations. This ensures that the resulting reward model is not only ordinal (ranking responses correctly) and cardinal (providing calibrated probabilities) but also statistically independent of protected demographic attributes.
Key technical innovations within FARO include:
- Differentiable Proxies: Standard fairness metrics are often discrete and non-differentiable. FARO employs "soft" probabilistic versions of these metrics, enabling smooth optimization via gradient descent.
- Anchoring for Scalability: To avoid the $O(p^2)$ complexity of comparing every demographic group to every other, FARO compares each group to a single "reference" group. This reduces complexity to $O(p)$, making the framework feasible for complex, intersectional identities.
- Flexible Constraints: FARO supports multiple fairness definitions, including Demographic Parity (DP), Equalized Odds (EO), and Counterfactual Fairness (CF).
Theoretical Contributions and Fairness Transfer
A primary contribution of this work is the formal proof of Fairness Transfer. We demonstrate that fairness achieved at the reward model level is mathematically guaranteed to transfer to the final LLM policy during KL-regularized fine-tuning. This establishes a theoretical foundation for using fair reward models as a reliable mechanism for producing fair generative models.
Furthermore, we characterize the Pareto frontier—the set of optimal trade-offs between model accuracy and fairness. By adjusting the hyperparameter $\beta$, developers can precisely tune the model to meet specific fairness requirements without unnecessarily sacrificing performance.
Experimental Evaluation
We evaluated FARO across several benchmarks, including PRISM (pairwise preferences), BBQ (Bias Benchmark for QA), and HolisticBias (toxicity in open-ended generation). The framework was tested on popular models such as Gemma-2-2b, Phi-3-Mini, and Qwen-2.5-1.5B.
Key Results
- Significant Bias Reduction: On the BBQ benchmark, FARO-DP reduced the "Ambiguous Bias" score of Gemma-2 from 14.73 to 6.81.
- Toxicity Mitigation: In HolisticBias tests, FARO-EO reduced the toxicity ratio of Gemma-2 generations by over 70% compared to the base model.
- Performance Retention: In many disambiguated tasks, FARO-trained models achieved higher Top-1 accuracy than original biased models, suggesting that removing bias can actually improve objective model quality.
Qualitatively, the impact is stark. When presented with ambiguous prompts involving stereotypes (e.g., regarding disability or religion), standard models often default to biased assumptions. In contrast, FARO-aligned models correctly identify that the answer "can't be determined" based solely on the provided text, as shown in the qualitative examples in Figure 2.
Conclusion and Future Work
FARO provides a robust, theoretically grounded framework for aligning LLMs with fairness constraints. While the method requires demographic labels in the training data—which may not always be available—it offers a powerful tool for developers to mitigate systemic bias. Future work will explore methods for handling missing demographic attributes and scaling the framework to even more complex intersectional identities. Ultimately, the choice of fairness metric (DP, EO, or CF) remains a societal policy decision, but FARO ensures that once a goal is chosen, it can be technically achieved and theoretically guaranteed.
Summary updated