Learning Under Adversarial and Interventional Shifts

Harvineet Singh, Shalmali Joshi, Finale Doshi-Velez, Himabindu LakkarajuarXiv 2021

Abstract

Machine learning models are often trained on data from one distribution and deployed on others. So it becomes important to design models that are robust to distribution shifts. Most of the existing work focuses on optimizing for either adversarial shifts or interventional shifts. Adversarial methods lack expressivity in representing plausible shifts as they consider shifts to joint distributions in the data. Interventional methods allow more expressivity but provide robustness to unbounded shifts, resulting in overly conservative models. In this work, we combine the complementary strengths of the two approaches and propose a new formulation, RISe, for designing robust models against a set of distribution shifts that are at the intersection of adversarial and interventional shifts. We employ the distributionally robust optimization framework to optimize the resulting objective in both supervised and reinforcement learning settings. Extensive experimentation with synthetic and real world datasets from healthcare demonstrate the efficacy of the proposed approach.

Introduction

The deployment of machine learning models in real-world settings, such as healthcare, is frequently hampered by distribution shifts. A model trained on urban hospital data may underperform in a rural clinic due to differences in demographics or equipment. Current research typically addresses this through either Adversarial Robustness, using Distributionally Robust Optimization (DRO) to prepare for worst-case noise, or Causal Invariance, which seeks features that remain stable across environments.

However, both approaches have limitations. DRO often considers "unrealistic" shifts, leading to overly pessimistic models that sacrifice utility. Conversely, causal methods often assume shifts can be infinitely large, which may cause them to ignore useful but "unstable" features. This paper introduces RISe (Robustness with Intersection Sets), a framework that targets the "missing middle": shifts that are causally plausible yet limited in magnitude.

The RISe Framework

RISe restricts the "uncertainty set" in a DRO framework to the intersection of interventional and adversarial shifts. By focusing on shifts that could realistically occur via interventions on specific variables in a causal graph, while bounding those shifts using a divergence metric (like CVaR), RISe avoids the extreme conservatism of standard joint distribution shifts.

The RISe framework: (a) shows a causal graph where interventions occur on root nodes like Age (Z), and (b) illustrates the intersection of interventional uncertainty sets with divergence-based adversarial sets.

The authors demonstrate that under the assumption of no unmeasured confounding, this intersection set can be simplified into a "Marginal DRO" problem. This theoretical bridge provides a formal causal justification for optimizing against shifts in a subset of features, allowing for efficient optimization via convex duality.

Experimental Results

The efficacy of RISe was evaluated across supervised learning, contextual bandits, and reinforcement learning (RL) tasks.

  1. Supervised Learning: In synthetic tests with model misspecification, RISe outperformed both purely causal estimators and standard "Joint DRO." As shown in the results, RISe maintains a lower Mean Squared Error (MSE) as the train-test shift increases, whereas causal methods fail when the underlying model is slightly incorrect.
Performance comparison on synthetic data: RISe (green and orange lines) maintains significantly lower error than the Causal estimator (blue) under model misspecification and is less conservative than Joint DRO (red).
  1. Healthcare Policy (Warfarin Dosing): Using the PharmGKB dataset, RISe provided more accurate policy value estimates under race distribution shifts compared to methods that either ignored the shift or were overly conservative.
  2. Sepsis Treatment (RL): In a simulated MDP environment, RISe produced value estimates that were far more realistic than standard robust RL. While Joint DRO predicted a 21x decrease in policy value under shift, RISe reported a more plausible 14x decrease, preserving better utility for decision-makers.

Conclusion

RISe offers a robust middle ground for machine learning deployment. It acts as "causal insurance," providing robustness even when causal models are imperfectly specified, while avoiding the utility-destroying pessimism of traditional adversarial methods. Future work aims to extend this framework to handle shifts in conditional distributions and scale the RL approach to continuous state spaces.

Summary updated

BibTeX
@misc{singh2021learning,
  author = {Harvineet Singh and Shalmali Joshi and Finale Doshi-Velez and Himabindu Lakkaraju},
  title = {{Learning Under Adversarial and Interventional Shifts}},
  year = {2021},
  eprint = {2103.15933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.15933},
}
Figure