Generalizing Off-Policy Learning under Sample Selection Bias

Tobias Hatt, Daniel Tschernutter, Stefan Feuerriegel

Abstract

Learning personalized decision policies that generalize to the target population is of great relevance. Since training data is often not representative of the target population, standard policy learning methods may yield policies that do not generalize to the target population. To address this challenge, we propose a novel framework for learning policies that generalize to the target population. For this, we characterize the difference between the training data and the target population as a sample selection bias using a selection variable. Over an uncertainty set around this selection variable, we optimize the minimax value of a policy to achieve the best worst-case policy value on the target population. In order to solve the minimax problem, we derive an efficient algorithm based on a convex-concave procedure and prove convergence for parametrized spaces of policies such as logistic policies. We prove that, if the uncertainty set is well-specified, our policies generalize to the target population as they can not do worse than on the training data. Using simulated data and a clinical trial, we demonstrate that, compared to standard policy learning methods, our framework improves the generalizability of policies substantially.

Introduction

In off-policy learning, the goal is to derive optimal decision-making rules from historical data. A fundamental assumption in most existing methods is that the training data and the target population share the same distribution. However, in practice, "sample selection bias" frequently violates this assumption. For instance, clinical trials for HIV/AIDS treatments have historically underrepresented women. If a policy is learned solely from that trial data and then applied to the general population, it might be ineffective or even harmful because the training sample was biased. This paper addresses the challenge of learning policies that are robust to unknown selection mechanisms, ensuring they generalize to the actual population of interest.

Methodology

The proposed framework accounts for uncertainty in the selection mechanism by employing a robust minimax approach rather than attempting to estimate the exact bias.

Characterizing Selection Bias

The authors introduce a selection variable $S \in \{0, 1\}$ to indicate whether an individual is included in the training set. The discrepancy between the training and target distributions is captured by a density ratio, which is expressed in terms of the selection probability $P(S=1|X, A, Y)$.

Uncertainty Sets and Minimax Optimization

Since the true selection probability is unknown, an uncertainty set is defined using an odds-ratio parameter $\Gamma$. This parameter allows practitioners to specify how much the selection probability is allowed to vary. The learning objective is formulated as a minimax game: find the policy that minimizes the maximum (worst-case) possible cost across all valid density ratios in the uncertainty set.

The MMCCP Algorithm

Solving this minimax problem is difficult because it is generally non-convex. The authors prove that for common policy classes (like logistic policies), the problem can be rewritten as a Difference of Convex (DC) functions program. They develop a tailored Minimax Convex-Concave Procedure (MMCCP) to solve it efficiently with guaranteed convergence.

Results

The framework was evaluated using both synthetic simulations and real-world clinical trial data from the ACTG 175 HIV study.

Simulation Performance

In controlled environments with introduced selection bias, the "Generalized" variants of standard estimators—GenDM, GenNIPW, and GenDR—consistently outperformed their baseline counterparts. As shown in the figure below, the generalized methods achieve significant reductions in policy regret as the uncertainty parameter $\Gamma$ increases, with improvements of up to 40% at the true bias level ($\Gamma=8$).

Policy regret improvement of generalized methods (GenDM, GenNIPW, GenDR) compared to standard baselines across different uncertainty levels $\Gamma$.

Clinical Trial Application

The ACTG 175 trial data is notably biased, with only 5.8% female participants. By applying the generalized framework, the model became more conservative as $\Gamma$ increased, reflecting the lower treatment effect observed in the underrepresented female group. This adjustment leads to a policy that is more likely to be reliable for the diverse, real-world HIV-positive population in the U.S.

Conclusion

This work provides a robust framework for off-policy learning under sample selection bias. By optimizing for the worst-case scenario within a calibrated uncertainty set, the proposed methods offer theoretical guarantees and empirical improvements in policy generalization. Future research may focus on extending the MMCCP algorithm to more complex, non-linear policy classes and developing automated methods for calibrating the $\Gamma$ parameter when target population data is scarce.

Summary updated

BibTeX
@inproceedings{hatt2022generalizing,
  author = {Tobias Hatt and Daniel Tschernutter and Stefan Feuerriegel},
  title = {{Generalizing Off-Policy Learning under Sample Selection Bias}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=rRlN7PIsql5},
}
Figure