Abstract
We initiate the study of fairness in reinforcement learning, where the actions of a learning algorithm may affect its environment and future rewards. Our fairness constraint requires that an algorithm never prefers one action over another if the long-term (discounted) reward of choosing the latter action is higher. Our first result is negative: despite the fact that fairness is consistent with the optimal policy, any learning algorithm satisfying fairness must take time exponential in the number of states to achieve non-trivial approximation to the optimal policy. We then provide a provably fair polynomial time algorithm under an approximate notion of fairness, thus establishing an exponential gap between exact and approximate fairness.
Introduction
Algorithmic fairness has traditionally been studied in static, myopic settings, such as one-off loan approvals or hiring decisions based on a snapshot of data. However, real-world decisions are inherently sequential. A decision made today—like hiring a specific cohort—alters the environment for tomorrow, affecting future data and rewards. This paper extends fairness to Reinforcement Learning (RL), where an agent's actions have long-term consequences.
A significant challenge in RL is the "optimism in the face of uncertainty" principle. Standard algorithms often over-explore actions that might be good. In human-centric domains, this exploration can be unfair, as it may involve favoring a candidate from one group over a demonstrably better candidate from another simply to gather information. This work seeks to define fairness that respects long-term rewards ($Q^*$-values) and investigates whether an agent can learn efficiently while remaining fair at every step.
Defining Fairness in Reinforcement Learning
The authors propose a weakly meritocratic definition of fairness: in any given state, an algorithm should never choose a worse action with higher probability than a better action. Here, "better" is defined by the action's optimal long-term discounted reward ($Q^*$).
The study investigates three levels of this constraint:
- Exact Fairness: The algorithm must never prefer a lower-$Q^*$ action.
- Approximate-Choice Fairness: The algorithm cannot pick a worse action substantially more often than a better one.
- Approximate-Action Fairness: The algorithm cannot favor an action that is substantially lower in quality than the best available action.
Theoretical Hardness and the Cost of Fairness
A central finding of this research is that fairness, while consistent with the optimal policy, is often inconsistent with the learning process. To remain fair while uncertain, an agent is forced to act uniformly at random, leading to highly inefficient exploration.
The authors prove a "stark separation" in complexity using a constructed MDP lower bound example. In this environment, an agent must navigate a chain of states to find a hidden high-reward state.
As shown in Figure 1, the agent faces a sequence of decisions between "Left" (L) and "Right" (R) actions. One path leads to a mediocre outcome, while the other eventually reaches a high-reward state. Because a fair algorithm cannot "guess" which path is better without evidence, it must explore both equally. This results in a sample complexity that is $\Omega(k^n)$, where $k$ is the number of actions and $n$ is the number of states.
The Fair-$E^3$ Algorithm
To overcome the exponential barrier of exact fairness, the authors introduce Fair-$E^3$, an adaptation of the Explicit Explore or Exploit ($E^3$) algorithm. Fair-$E^3$ operates under the relaxed approximate-action fairness constraint.
Instead of the deterministic "optimistic" exploration used in standard $E^3$, Fair-$E^3$ employs random trajectories to gather data. It constructs "Restricted MDPs" that only permit actions within a certain quality threshold ($\alpha$) of the estimated optimal action. This ensures the agent remains approximately fair while learning. The authors prove that Fair-$E^3$ achieves $\epsilon$-optimality in polynomial time relative to the number of states and actions, though it maintains an exponential dependence on the horizon $1/(1-\gamma)$.
Discussion and Conclusion
This work highlights a fundamental "cost of fairness" in sequential decision-making. While exact fairness leads to an exponential slowdown in learning, approximate fairness allows for polynomial-time convergence. However, the exponential dependence on the discount factor $\gamma$ remains a significant hurdle for long-horizon problems.
Furthermore, the "minimal" fairness definition used here prevents active harm (favoring a worse group) but does not mandate proactive assistance for disadvantaged groups if their current $Q^*$-values are lower. Future research may explore "temporal fairness," ensuring individuals are treated fairly over their entire interaction history with a system rather than just at discrete time steps.
Summary updated