Off-Policy Confidence Interval Estimation with Confounded Markov Decision Process

Chengchun Shi, Jin Zhu, Ye Shen, Shaochuan Luo, Hongtu Zhu, Rui Song

Abstract

Off-policy evaluation (OPE) is critical for assessing new policies using historical data. However, real-world datasets often suffer from unmeasured confounding, where hidden factors influence both actions and rewards, violating the standard sequential ignorability assumption. This paper introduces the Confounded Markov Decision Process with Mediators (CMDPWM), a framework that utilizes mediator variables to identify policy values via front-door adjustment. We propose the COPE (Confounded Off-Policy Evaluation) estimator, a doubly robust method for infinite-horizon settings that provides consistent value estimates and reliable Wald-type confidence intervals. Empirical results on synthetic and real-world ride-hailing data demonstrate the effectiveness of COPE in reducing bias and providing statistically sound evaluations.

Introduction

Off-Policy Evaluation (OPE) aims to estimate the performance of a target policy using data generated by a different behavior policy. Most existing OPE methods rely on the assumption of sequential ignorability—that all variables affecting both actions and rewards are observed. In practice, this is rarely true. For instance, in ride-hailing, unobserved weather conditions can simultaneously influence platform pricing (action) and passenger demand (reward). Failing to account for such confounders leads to biased evaluations. While confounding has been studied in one-shot decision-making, addressing it in infinite-horizon sequential settings remains a significant challenge.

Methods: The CMDPWM Framework

The authors propose the Confounded Markov Decision Process with Mediators (CMDPWM) to handle unmeasured confounding. The core innovation is the identification of a mediator ($M_t$)—an intermediate variable through which the action influences the reward and the next state.

Causal structures of Standard MDP, Confounded MDP, and CMDPWM.

As shown in Figure 1, the CMDPWM (c) introduces mediators $M_t$ that sit between actions $A_t$ and outcomes ($R_t, S_{t+1}$). The framework relies on two primary assumptions:

  1. The Mediator Assumption: The action affects the reward and the next state only through the mediator.
  2. Independence: Given the action and current state, the mediator is independent of unmeasured confounders ($U_t$).

By applying front-door adjustment logic to this sequential setting, the authors derive the COPE estimator. COPE is a doubly robust estimator that integrates a direct Q-function learner with an importance sampling (IS) approach using marginal density ratios. This combination ensures consistency even under partial model misspecification and avoids the variance explosion typical of cumulative importance weights in infinite horizons. Furthermore, the authors utilize semiparametric theory to construct valid Wald-type confidence intervals.

Experiments and Results

The COPE estimator was evaluated using synthetic simulations and a ride-hailing simulator based on real-world data from Didi Chuxing.

Synthetic Evaluation

In controlled environments with Bernoulli-distributed states and actions, standard OPE methods like Doubly Robust Learning (DRL) and Marginalized Importance Sampling (MIS) exhibited significant bias due to unmeasured confounding. In contrast, COPE's bias and Mean Squared Error (MSE) consistently decreased as the sample size increased, demonstrating its robustness against confounding and model misspecification.

Ride-Hailing Case Study

Using real-world data, the authors simulated a scenario where the "action" is a coupon offer and the "mediator" is the actual discount applied. Standard unconfounded estimators incorrectly suggested that a random coupon policy outperformed a targeted one. COPE correctly identified that the targeted policy was superior, yielding a value difference of 0.63 with a 95% confidence interval of [0.03, 1.23], matching the company's actual business observations.

Discussion and Conclusion

The CMDPWM framework provides a rigorous approach to OPE under confounding by generalizing front-door adjustment to reinforcement learning. The use of mediators allows for the recovery of true causal effects even when confounders are hidden. While the current model assumes memoryless confounding and requires the existence of a valid mediator, it represents a significant step forward in providing statistically reliable policy evaluations for high-stakes applications. Future work may explore relaxations of the memoryless assumption and extensions to high-dimensional continuous mediator spaces.

Summary updated

Abstract

<b>This article is concerned with constructing a confidence interval for a target policy’s value offline based on a pre-collected observational data in infinite horizon settings. Most of the existing works assume no unmeasured variables exist that confound the observed actions. This assumption, however, is likely to be violated in real applications such as healthcare and technological industries. In this article, we show that with some auxiliary variables that mediate the effect of actions on the system dynamics, the target policy’s value is identifiable in a confounded Markov decision process. Based on this result, we develop an efficient off-policy value estimator that is robust to potential model misspecification and provide rigorous uncertainty quantification. Our method is justified by theoretical results, simulated and real datasets obtained from ridesharing companies. A Python implementation of the proposed procedure is available at</b>https://github.com/Mamba413/cope.
BibTeX
@article{shi2022off,
  author = {Chengchun Shi and Jin Zhu and Ye Shen and Shaochuan Luo and Hongtu Zhu and Rui Song},
  title = {{Off-Policy Confidence Interval Estimation with Confounded Markov Decision Process}},
  journal = {Journal of the American Statistical Association},
  year = {2022},
  doi = {10.1080/01621459.2022.2110878},
}
Figure