Counterfactual Predictions under Runtime Confounding

Amanda Coston, Edward H. Kennedy, Alexandra Chouldechova

Abstract

Predictive models are increasingly deployed to assist in high-stakes decision-making by answering counterfactual questions: "What would be the outcome if a specific action were taken?" However, a significant challenge arises when variables that influence both the treatment and the outcome—confounders—are available during model training but unavailable at the time of prediction. This phenomenon, termed "runtime confounding," leads to biased predictions in standard models. This paper introduces a robust statistical framework, including a doubly-robust (DR) learning procedure, that leverages these "hidden" confounders during training to produce unbiased counterfactual predictions at runtime.

Introduction

In domains such as child welfare, healthcare, and finance, algorithmic tools are often used to estimate the potential effects of interventions. To ensure these estimates are valid, causal inference requires accounting for all confounding variables. While researchers often assume that all relevant data is available, real-world deployment frequently presents a discrepancy: certain confounders recorded in historical datasets cannot be used when the model is actually making predictions. This paper formalizes this challenge as "runtime confounding" and proposes a methodology to bridge the gap between training-time information and runtime constraints.

The Challenge of Runtime Confounding

Runtime confounding occurs when the full set of confounders is present in historical training data, but a subset of these features is "ineligible" for use at prediction time. The authors identify three primary reasons for this unavailability:

  1. Technical Constraints: Real-time systems may lack the infrastructure to process complex data types (e.g., audio or unstructured text) that were available during retrospective analysis.
  2. Legal and Ethical Constraints: Regulations may prohibit the use of protected attributes, such as race or gender, in active decision-making models, even if those attributes historically influenced outcomes.
  3. Interpretability and Simplicity: Organizations may prefer parsimonious models based on a limited set of features for transparency, despite knowing that more complex, unrecorded factors drive results.

Standard practice typically involves training a model using only the features available at runtime (Treatment-Conditional Regression). The authors demonstrate that this approach is fundamentally biased, as it fails to account for the selection mechanisms present in the training data, often leading to a systematic underestimation of risk.

Methodological Framework

The research evaluates three primary strategies for estimating the counterfactual target ν(v), which represents the expected outcome given only the runtime features V:

1. Treatment-Conditional Regression (TCR)

This is the conventional approach where a model is trained using only runtime features V on the subset of individuals who received a specific treatment. Because it ignores the hidden confounders Z that influenced the original treatment assignment, TCR yields biased estimates.

2. The Plug-in (PL) Approach

The PL approach utilizes a two-stage process. First, an outcome model μ is trained using the full set of features (both runtime V and hidden Z). Second, the predictions from this model are regressed onto the runtime features V. While more effective than TCR, its accuracy depends entirely on the correct specification of the initial outcome model.

3. Doubly-Robust (DR) Learning

The proposed DR method combines the outcome model with a propensity score model—which estimates the probability of treatment given all features (V, Z). By incorporating a "bias-corrected" pseudo-outcome, the DR approach provides a safeguard: the final prediction remains accurate if either the outcome model or the propensity model is correctly specified. Furthermore, the DR method is "oracle-efficient," meaning it can perform as well as a model trained with access to the true, unobserved counterfactual outcomes.

Empirical Validation

The framework was tested using both synthetic simulations and a real-world dataset from the Allegheny County child abuse hotline.

Synthetic Experiments

Using high-dimensional linear and non-linear models, the authors confirmed that the DR method consistently achieved the lowest Mean Squared Error (MSE). As the number of hidden confounders increased, the performance gap between the DR method and the standard TCR approach widened significantly, highlighting the importance of accounting for hidden selection bias.

Child Welfare Case Study

In the Allegheny County dataset, "hidden" features included race and specific call-level details, while "runtime" features were restricted to administrative records. The results showed:

  • Accuracy: Both PL and DR methods significantly outperformed TCR, reducing MSE from approximately 0.290 to 0.248.
  • Calibration: Calibration plots revealed that the TCR model significantly underestimated risk for high-risk cases. In contrast, the DR model's predictions tracked the actual outcomes much more closely, providing a more reliable basis for intervention.

Conclusion

The core insight of this work is that practitioners should not discard information simply because it is unavailable at runtime. By utilizing all available data during the training phase through a doubly-robust framework, it is possible to mitigate the bias introduced by runtime confounding. This approach ensures that predictive models remain both ethically compliant and statistically sound, ultimately leading to more accurate and equitable decisions in critical social contexts.

Summary updated

BibTeX
@inproceedings{coston2020counterfactual,
  author = {Amanda Coston and Edward H. Kennedy and Alexandra Chouldechova},
  title = {{Counterfactual Predictions under Runtime Confounding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure