Introduction
Reinforcement Learning (RL) has emerged as a powerful tool for dynamic resource allocation, particularly in healthcare settings such as the PowerED study for opioid misuse. However, RL agents are susceptible to inheriting and even amplifying societal biases present in historical data. A common pitfall is "fairness through unawareness"—simply removing sensitive attributes like race or gender from the dataset. Research indicates that bias often leaks through proxy variables; for instance, cultural factors might lead certain subgroups to under-report pain, causing an RL agent to unfairly withhold treatment based on those scores. In sequential settings, these biased decisions create a feedback loop, where an unfair action at one time step negatively influences future states, perpetuating disparity.
This paper addresses these challenges by introducing a framework for Counterfactually Fair Reinforcement Learning. Counterfactual Fairness (CF) asks a fundamental causal question: "Would the decision change if an individual's sensitive attribute were different, while all other factors remained constant?" By answering this, the authors ensure that sequential decisions remain consistent across demographic groups even when underlying data is biased.
Methodology
The authors model the environment as a Contextual Markov Decision Process (CMDP) and propose a three-pronged approach to achieve counterfactual fairness.
Theoretical Foundations
A significant hurdle in fair RL is the potential for fairness constraints to make optimal policies non-Markovian, requiring the entire history of an individual to make a decision. The authors provide a theoretical breakthrough by proving that the optimal counterfactually fair policy remains stationary. This allows practitioners to utilize standard, well-established RL algorithms rather than complex, history-dependent solvers.
Sequential Data Preprocessing
The core technical contribution is a novel sequential data preprocessing algorithm (Algorithm 1). Operating under an "additive noise" assumption, the algorithm estimates the exogenous variables—or "background noise"—for each individual. It then reconstructs "fair" versions of states and rewards by stripping away the direct and indirect causal influences of the sensitive attribute. This process effectively "de-biases" the historical experience tuples before they are used for training.
Policy Learning
With the data preprocessed, the authors employ Fitted Q Iteration (FQI), a standard offline RL technique. By training on the de-biased data, the agent learns a policy that is both optimal with respect to the fair rewards and counterfactually fair by design.
Experimental Evaluation
The framework was evaluated across three distinct environments:
- Synthetic Data: Used to verify the algorithm's consistency and performance under controlled linear and non-linear transition kernels.
- Semi-synthetic Data: Neural networks were used to generate realistic patient trajectories based on the dynamics of the PowerED study.
- Real-world Data (PowerED Study): This dataset involved 207 patients over 12 weeks, focusing on reducing opioid misuse risk. Sensitive attributes included age, gender, education, and ethnicity.
Key Results and Insights
The experimental results demonstrate that the proposed method effectively balances the trade-off between cumulative reward (Value) and fairness.
Fairness Gains
In the PowerED dataset, the proposed method significantly reduced unfairness compared to "Full" (all attributes included) and "Unaware" (sensitive attributes removed) models. For the "Ethnicity" attribute, the unfairness metric dropped to 0.16, compared to 0.39 for the Full model and 0.21 for the Unaware model. This confirms that "unawareness" is insufficient for preventing bias leakage in complex healthcare environments.
Maintaining Performance
Crucially, the pursuit of fairness did not come at a significant cost to patient outcomes. In the real-world data, the cumulative reward (Value) for the fair policy was 57.05, nearly identical to the 57.09 achieved by the unfair Full model. This suggests that in many clinical settings, fairness can be achieved with negligible impact on overall efficacy.
Asymptotic Consistency
Theoretical analysis and synthetic experiments further showed that as the sample size increases, the level of unfairness in the learned policy approaches zero, providing strong guarantees for the long-term deployment of these fair agents.
Limitations and Future Directions
The primary limitation of the current work is the Additivity Assumption, which posits that the influence of sensitive attributes on states and rewards is additive. While standard in many causal models, it may not fully capture complex, non-linear interactions in all real-world scenarios. Future work could explore more flexible generative models, such as Variational Autoencoders (VAEs) or adversarial training, to estimate counterfactuals. Additionally, extending the framework to handle intersectional fairness—where multiple sensitive attributes overlap—remains a critical area for future research.
Summary updated