Group Fairness in Reinforcement Learning

Harsh Satija, Alessandro Lazaric, Matteo Pirotta, Joelle Pineau

Abstract

As Reinforcement Learning (RL) transitions into high-stakes domains like credit lending and medical treatment, the risk of algorithmic bias becomes a critical concern. Traditional RL focuses on maximizing cumulative reward, often at the expense of group fairness. This paper introduces a novel framework for achieving group fairness in online RL settings. Unlike previous methods that only ensure fairness in the final policy, our approach guarantees that fairness constraints are satisfied throughout the entire learning process while maintaining theoretical bounds on performance.

Introduction: The Risk of Bias in RL

Reinforcement Learning agents are increasingly deployed in real-world systems where their decisions directly impact human lives. In scenarios such as hiring or loan approvals, an agent optimizing solely for reward may inadvertently discriminate against specific subgroups based on sensitive attributes like race or gender.

A significant gap in current "fair RL" research is the focus on the final policy. In online settings, where agents learn through real-time interaction, being unfair during the training phase is as harmful as being unfair at the end. This paper addresses this gap by treating fairness as a hard constraint that must be respected at every step of the agent's journey.

The Challenge of Online Fairness

The primary difficulty in online fair RL is the exploration-exploitation trade-off. Standard exploration strategies, such as being "optimistic" about unknown actions, encourage agents to try new policies to gather data. However, an optimistic agent might inadvertently test a highly unfair policy in its quest for information.

To solve this, the authors propose a shift in perspective: fairness should be treated as a constraint on the policy space rather than a component of the reward function. The goal is to satisfy Demographic Parity, ensuring the expected returns for different subgroups remain within a small margin ($\epsilon$) of each other.

Proposed Framework

The paper offers solutions for two primary RL environments:

1. Tabular Finite-Horizon RL

For discrete environments, the authors introduce an algorithm that balances optimism and pessimism. The agent remains optimistic about potential rewards to drive exploration but adopts a pessimistic view regarding fairness violations. By maintaining a "high-confidence set" of policies likely to be fair, the agent only explores if it is confident the new policy won't violate constraints. If uncertainty is too high, the agent reverts to a known "safe" initial fair policy ($\pi^0$).

2. Deep Reinforcement Learning

For high-dimensional tasks, the framework adapts Trust Region methods (specifically PPO) through two variants:

  • FOC-PPO (Projection-based): This variant finds an optimal update in a non-parametric space and projects it back onto the neural network parameters to ensure the update stays within the fair region.
  • Lagrangian-PPO (Penalty-based): This uses adaptive Lagrange multipliers to penalize the objective function whenever the performance gap between groups exceeds the threshold.

Experimental Evaluation and Key Results

The methods were tested across diverse simulations, including Credit Lending, RiverSwim, and continuous control tasks like Modified MuJoCo (Half-Cheetah) and Point-Navigation.

Comparison of Traditional vs. Fair RL policies in the Point-Navigation task. In the traditional setting (a), agents optimize for individual speed. In the fair setting (b), the behavior is adjusted to ensure performance parity between groups.

The results demonstrate two major breakthroughs:

  1. Zero Violations: In practice, the proposed algorithms maintained near-zero fairness violations throughout the training process, whereas standard baselines frequently breached fairness constraints while exploring.
  2. Theoretical Efficiency: The authors prove that their tabular algorithm achieves sub-linear regret. This means the agent learns the optimal fair policy as efficiently as standard algorithms learn unfair ones, without sacrificing long-term performance.

Discussion and Future Work

While the framework successfully enforces parity, it highlights a "cost of fairness." Often, achieving parity involves reducing the performance of a high-achieving group to match a lower-performing one. The authors suggest that future research should focus on inclusive environment design—modifying the environment itself to empower lower-performing groups rather than simply constraining the agent.

Other areas for extension include addressing the "cold start" problem of finding the initial fair policy ($\pi^0$) and adapting the framework for continuous sensitive attributes like age.

Summary updated

BibTeX
@article{satija2023group,
  author = {Harsh Satija and Alessandro Lazaric and Matteo Pirotta and Joelle Pineau},
  title = {{Group Fairness in Reinforcement Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure