Introduction
Most research on algorithmic fairness focuses on "myopic" settings, such as static classification or one-shot bandit problems, where an action taken today does not alter the environment tomorrow. However, real-world decisions are inherently sequential. For instance, a firm's hiring choices today actively shape its internal demographics and influence its future applicant pool.
This paper pioneers the study of fairness in reinforcement learning (RL), where an agent's actions dynamically shape its future environment and rewards. The authors identify a fundamental conflict between standard RL exploration strategies and fairness constraints, ultimately proposing a relaxed fairness definition and a novel algorithm, Fair-E3, that achieves provably fair learning in polynomial time relative to most environment parameters.
The Conflict: Exploration vs. Fairness
Standard RL algorithms rely heavily on the principle of "optimism in the face of uncertainty." To discover optimal policies, agents aggressively try unknown actions that might yield high rewards. However, this exploration strategy often violates fairness. It can lead an agent to favor a demonstrably lower-quality option over a higher-quality one simply to gather more data about the inferior choice.
To resolve this, the authors propose a weakly meritocratic definition of fairness: an algorithm is fair if it never chooses a worse action over a better one with a higher probability. Here, the "quality" or merit of an action is defined by its optimal long-term discounted reward ($Q^*$). By defining fairness through the $Q^*$-function, the authors link fairness directly to the structure of the environment itself—a fair agent is forced to respect the true long-term value of its options.
Defining Fairness in RL
The authors explore three distinct levels of fairness constraints:
- Exact Fairness: The agent must never favor a lower-$Q^*$ action over a higher-$Q^*$ one.
- Approximate-choice Fairness: The agent must never favor a lower-$Q^*$ action by more than a small probability margin $\alpha$.
- Approximate-action Fairness: The agent must never favor an action that is substantially worse (by more than a margin $\alpha$) than the best available action.
The Fair-E3 Algorithm
To tackle the challenge of learning while remaining fair, the authors introduce Fair-E3, an adaptation of the classic "Explicit Explore or Exploit" (E3) algorithm. Fair-E3 balances learning and performance through two key innovations:
- Fair Exploration: Instead of deterministic, optimistic exploration, Fair-E3 uses random trajectories from unknown states. This approach is inherently fair because it does not systematically favor one unknown action over another.
- Restricted Planning: In "known" states, the algorithm plans using a Restricted MDP ($M^\alpha$). This restricted model only allows the agent to choose from actions that are estimated to be within $\alpha$ of the optimal value. This ensures that even during the exploitation phase, no egregiously "unfair" (low-quality) choices are made.
Theoretical Limits and Lower Bounds
Because this is a theoretical foundation, the authors utilize constructed Markov Decision Processes (MDPs) to prove the fundamental limits of fair learning.
A key insight is that the price of exact fairness is prohibitively high. The authors prove a negative result: any algorithm satisfying exact fairness must take time exponential in the number of states ($n$) to reach an optimal policy.
As illustrated in the Lower Bound MDP (Figure 1), an agent cannot "exploit" its way to the end of a chain if it isn't yet sure which actions are better. To avoid prematurely favoring one path over another, a strictly fair agent is forced to play actions uniformly at random, leading to an exponential number of steps to discover the final reward.
Key Results
- Exponential Gap: The paper establishes a provable exponential gap in learning efficiency between exact fairness and approximate-action fairness.
- Fair-E3 Performance: Under the relaxed approximate-action fairness constraint, the Fair-E3 algorithm achieves $\epsilon$-optimality in a number of rounds that is polynomial in the number of states ($n$) and actions ($k$).
- The Horizon Hurdle: Even with relaxed fairness, learning time remains necessarily exponential in the "horizon" of the problem ($1/(1-\gamma)$). The authors provide tight lower bounds showing that this exponential dependence is unavoidable for any algorithm that remains fair at every step of the learning process.
Limitations and Future Work
While Fair-E3 is polynomial in $n$ and $k$, its exponential dependence on the horizon makes it computationally impractical for very long-horizon tasks. Furthermore, the current model requires strict fairness at every single time step. The authors suggest that relaxing this requirement to "amortized" fairness—where the algorithm is fair on average over time—might allow for more efficient learning. Finally, the theoretical proofs rely on a "unichain" MDP assumption (where any state is eventually reachable from any other); extending these fairness guarantees to more complex environment structures remains an open challenge for future research.
Summary updated