Counterfactual Learning with General Data-Generating Policies

Yusuke Narita, Kyohei Okumura, Akihiro Shimizu, Kohei Yata

Introduction

Off-Policy Evaluation (OPE) is a critical tool in data science, allowing researchers to estimate the performance of a new policy using historical data generated by a different "logging" policy. This capability is invaluable in domains like healthcare and e-commerce, where running live experiments for every potential strategy is costly or risky. However, traditional OPE methods, such as Importance Sampling, rely on the "full support" assumption—the requirement that the logging policy must have a non-zero probability of taking every possible action in every context.

In practice, many industrial systems use deterministic rules or "greedy" algorithms that violate this assumption. This paper introduces a novel approach to OPE that remains valid even when the logging policy has "deficient support."

The Approximate Propensity Score (APS)

The core innovation of this work is the Approximate Propensity Score (APS). Standard propensity scores represent the exact probability of an action given a context $x$. In deterministic systems, these scores are binary (0 or 1), making traditional weighting impossible.

Instead, the APS calculates the average probability of an action within a small neighborhood (a $\delta$-ball) around $x$. This approach effectively "softens" the decision boundaries of deterministic policies, allowing for meaningful comparisons between actions.

The APS method visualizes decision boundaries and local action probabilities to enable OPE in deterministic systems.

By focusing on individuals near these decision boundaries—where the policy was nearly indifferent between choices—the method treats the data as a quasi-experiment. The authors use a regression-adjusted estimator that incorporates the APS as a control variable to account for local context distributions.

Experimental Validation

The researchers tested the APS method against standard baselines in two synthetic environments: a mix of A/B testing with a deterministic policy, and an Upper Confidence Bound (UCB) bandit setup.

Table 1: Performance comparison of the APS method against standard baselines in synthetic experiments.

As shown in Table 1, the APS method consistently achieved lower Root Mean Squared Error (RMSE) than methods relying solely on A/B test samples. In the UCB bandit experiment, the APS method significantly outperformed the "Direct Method," which is often prone to bias due to model misspecification. Crucially, the theoretical convergence of the APS estimator is independent of the context space's dimensionality, making it robust for high-dimensional real-world data.

Real-World Impact: The Mercari Case Study

The method was applied to proprietary data from Mercari, Inc., a leading e-commerce platform. The data came from a coupon targeting campaign governed by a deterministic uplift model. The APS analysis revealed that the existing policy was overly conservative. The OPE results suggested that expanding the campaign to a broader user base would generate more revenue than the cost of the promotional points, providing a clear data-driven path for business optimization.

Conclusion and Future Directions

The APS framework provides a unified solution for OPE across stochastic, deterministic, and hybrid logging policies. While powerful, the method currently assumes that the difference in mean rewards between actions is locally constant. Future work will focus on developing data-driven methods for selecting the optimal neighborhood size ($\delta$) and reducing the computational overhead required for simulating APS in highly complex systems.

Summary updated

BibTeX
@inproceedings{narita2023counterfactual,
  author = {Yusuke Narita and Kyohei Okumura and Akihiro Shimizu and Kohei Yata},
  title = {{Counterfactual Learning with General Data-Generating Policies}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26113},
}
Figure