Counterfactually Fair Reinforcement Learning via Sequential Data Preprocessing

Jitao Wang, Chengchun Shi, John Piette, Joshua Loftus, Donglin Zeng, Zhenke Wu (2026). Journal of American Statistical Association

Abstract

When applied in healthcare, reinforcement learning (RL) seeks to adaptively assign interventions to subjects to maximize population benefit. However, the learned policy may disproportionately allocate efficacious actions to one subpopulation, creating or exacerbating disparities in other socioeconomically disadvantaged subgroups. Such biases tend to occur in multi-stage decision making and can be self-perpetuating, which if unaccounted for could cause serious unintended consequences that limit access to care or treatment benefit. Counterfactual fairness provides a promising approach grounded in causal infrastructure to conceptualizing and studying fairness. In this paper, we propose a general framework for fair sequential decision making. We theoretically characterize the optimal counterfactually fair policy and prove its stationarity within a broad class of history-dependent policies, which greatly simplifies the search for optimal counterfactually fair policies by leveraging existing RL algorithms. The theory also motivates a sequential data preprocessing algorithm to achieve counterfactually fair decision making under an additive noise assumption. We establish theoretical guarantees for the proposed learning procedure and evaluate its empirical performance through simulations. Analysis of a digital health dataset designed to reduce opioid misuse shows that the proposed method yields lower counterfactual unfairness while maintaining comparable policy value.

Keywords: Counterfactual Fairness, Digital Health, Opioid Misuse, Reinforcement Learning, Sequential Data Preprocessing.