Abstract
Reinforcement learning (RL) algorithms usually require a substantial amount of interaction data and perform well only for specific tasks in a fixed environment. In some scenarios such as healthcare, however, usually only few records are available for each patient, and patients may show different responses to the same treatment, impeding the application of current RL algorithms to learn optimal policies. To address the issues of mechanism heterogeneity and related data scarcity, we propose a data-efficient RL algorithm that exploits structural causal models (SCMs) to model the state dynamics, which are estimated by leveraging both commonalities and differences across subjects. The learned SCM enables us to counterfactually reason what would have happened had another treatment been taken. It helps avoid real (possibly risky) exploration and mitigates the issue that limited experiences lead to biased policies. We propose counterfactual RL algorithms to learn both population-level and individual-level policies. We show that counterfactual outcomes are identifiable under mild conditions and that Q- learning on the counterfactual-based augmented data set converges to the optimal value function. Experimental results on synthetic and real-world data demonstrate the efficacy of the proposed approach.
Introduction
Standard Reinforcement Learning (RL) is notoriously "data-hungry," often requiring millions of interactions to learn a policy. In high-stakes domains like healthcare, this requirement is a significant barrier. Clinical data is often scarce, ethical constraints prevent random exploration, and "mechanism heterogeneity"—the fact that different patients respond differently to the same treatment—complicates the learning process. While model-based RL attempts to simulate environments, standard simulators often model average outcomes, failing to capture the unique hidden factors (noise) that define individual patient responses. This paper introduces a novel framework that leverages Structural Causal Models (SCMs) to perform counterfactual data augmentation, addressing both data scarcity and individual variability.
Methodology
The authors propose two primary algorithms: CTRLg for general, population-level policies and CTRLp for personalized, individual-level policies. The core of the approach lies in modeling the environment using SCMs, which relate the next state ($S_{t+1}$) to the current state ($S_t$), action ($A_t$), and an unobserved noise term ($U_{t+1}$).
BiCoGAN Framework
To learn these causal mechanisms without rigid distributional assumptions, the researchers employ a Bidirectional Conditional GAN (BiCoGAN). As shown in Figure 3(a), the framework consists of an Encoder ($E$) that learns to infer hidden noise from observed data and a Generator ($G$) that acts as the causal mechanism to predict outcomes.
Counterfactual Data Augmentation and Personalization
Once the SCM is trained, it can perform counterfactual reasoning: "What would have happened to this specific patient if they had received Treatment B instead of Treatment A?" These synthetic "what-if" transitions are added to the training set, effectively filling gaps in the state-action space and reducing off-policy bias. For personalization (CTRLp), an LSTM extracts a latent variable ($\theta_C$) from a patient's history, as illustrated in Figure 3(b), allowing the model to tailor counterfactual scenarios to specific patient characteristics.
Experimental Evaluation
The approach was tested on two distinct environments:
- Modified CartPole: A synthetic environment with added noise and varying gravity settings to simulate heterogeneity.
- MIMIC-III Dataset: A real-world dataset of 15,656 ICU patients with Sepsis-3. The goal was to optimize IV fluid and vasopressor dosages based on 46 clinical variables.
Results and Discussion
The proposed methods demonstrated significant improvements in sample efficiency and policy quality. In the CartPole environment, CTRLg outperformed state-of-the-art methods like STEVE and PETS, particularly at low sample sizes. In heterogeneous settings, CTRLp achieved higher cumulative rewards by adapting to different gravity parameters.
On the MIMIC-III dataset, policies trained with counterfactual data (CTRLg and CTRLp) estimated higher survival values (Q-values) than the historical physician policies. Notably, CTRLp recommended a more diverse range of treatments, suggesting successful adaptation to individual patient needs.
Conclusion
By integrating Structural Causal Models with GAN-based learning, this work provides a robust framework for counterfactual data augmentation in RL. The ability to reason about "what-if" scenarios mathematically—under the assumption of monotonicity—allows for the creation of sample-efficient and personalized policies in data-scarce, heterogeneous domains like healthcare. Future work will focus on extending theoretical convergence proofs to fully continuous, high-dimensional spaces.
Summary updated