A Neural Framework for Generalized Causal Sensitivity Analysis

Dennis Frauen, Fergus Imrie, Alicia Curth, Valentyn Melnychuk, Stefan Feuerriegel, Mihaela van der Schaar

The Challenge of Unobserved Confounding

In an ideal scenario, causal inference from observational data assumes we have measured every variable that influences both the treatment and the outcome—a condition known as the "no unobserved confounding" assumption. In reality, this is rarely true. For instance, in an observational study on smoking and lung cancer, unmeasured genetic factors might influence both the urge to smoke and the risk of cancer. Failing to account for these unobserved variables leads to biased causal estimates.

Causal Sensitivity Analysis is the standard mathematical remedy for this problem. Instead of providing a single, potentially biased point estimate, it calculates a range—or partial identification bounds—of possible causal effects. It essentially asks: "If unobserved confounding exists up to a certain strength, what is the range of possible causal effects?"

However, existing sensitivity analysis tools are highly fragmented. Some are restricted to binary treatments, others only apply to specific mathematical models of confounding (like Rosenbaum’s or the Marginal Sensitivity Model), and almost none can handle multiple outcomes simultaneously.

To bridge this gap, researchers have introduced NeuralCSA, a unified neural framework that calculates bounds on causal effects under unobserved confounding. By modeling latent distribution shifts, it provides a versatile solution that works across various sensitivity models, continuous treatments, and complex multi-outcome scenarios.

Methods: A Latent Shift Perspective

NeuralCSA achieves its generality through two main innovations: Generalized Treatment Sensitivity Models (GTSMs) and a two-stage normalizing flow architecture.

1. Generalized Treatment Sensitivity Models (GTSMs)

The core insight of NeuralCSA is viewing sensitivity analysis not as a search for a specific hidden variable, but as an optimization problem over a distribution shift in a latent space. The authors define a broad class of models (GTSMs) that characterize unobserved confounding as this latent distribution shift. They prove mathematically that most popular sensitivity models—including the Marginal Sensitivity Model (MSM), $f$-sensitivity models, and Rosenbaum's model—are actually special cases of this overarching GTSM framework.

2. Two-Stage Normalizing Flows

To operationalize this theory, NeuralCSA employs a deep learning architecture based on Conditional Normalizing Flows (CNFs). Because CNFs are invertible, the model can analytically invert the mapping between latent noise and outcomes, making optimization highly tractable.

Architecture of the NeuralCSA framework showing the two-stage Conditional Normalizing Flow (CNF) setup.
  • Stage 1 (Observational Distribution): The model uses a CNF to learn the observational data distribution. It learns a mapping from a simple latent noise distribution to the observed outcomes, conditioned on the treatment and observed features.
  • Stage 2 (Latent Distribution Shift): A second CNF learns the "worst-case" shift in that latent distribution. This shift is optimized to either maximize or minimize the causal query (e.g., the treatment effect) while strictly staying within the "strength" limits defined by the chosen sensitivity model.

To ensure the learned shift doesn't violate these sensitivity constraints (i.e., ensuring the simulated confounding isn't "too strong"), the framework utilizes the Augmented Lagrangian method during training.

Key Results and Datasets

The framework was rigorously evaluated on a mix of synthetic and real-world data, including standard causal inference benchmarks (IHDP) and electronic health records from ICU patients (MIMIC-III).

  • Optimality: On synthetic datasets where closed-form mathematical solutions exist, NeuralCSA's neural bounds almost perfectly overlapped with the theoretical optimum (the "Oracle" bounds).
  • Generality: Because the framework is based on density estimation rather than discrete binning, it naturally handles continuous treatments (like drug dosages)—a major limitation of earlier methods.
  • Coverage: In semi-synthetic tests using MIMIC-III, the bounds successfully "covered" the true causal effect at the expected rates across a wide variety of sensitivity models, including KL-divergence, Total Variation, and MSM.
Estimated bounds using NeuralCSA across various sensitivity models, closely matching the theoretical Oracle bounds.

Furthermore, NeuralCSA demonstrated practical utility in multi-outcome scenarios. The authors showcased a case study bounding the joint probability of a patient's heart rate and blood pressure entering a "danger zone" after treatment, illustrating how clinicians could use these bounds to assess treatment risks under hidden comorbidities.

Limitations and Future Work

While highly versatile, NeuralCSA is a deep learning framework and comes with inherent computational costs. If a simple closed-form solution already exists for a specific, narrow problem (e.g., binary treatment under MSM), the authors note that the closed-form version is likely more efficient.

Additionally, the current theoretical guarantees hold in the limit of infinite data. Developing formal statistical confidence intervals for these neural bounds in finite-sample settings remains an open challenge. Future work may also explore Bayesian approaches to better quantify the model's own epistemic uncertainty about the bounds it produces.

Summary updated

BibTeX
@inproceedings{frauen2024neural,
  author = {Dennis Frauen and Fergus Imrie and Alicia Curth and Valentyn Melnychuk and Stefan Feuerriegel and Mihaela van der Schaar},
  title = {{A Neural Framework for Generalized Causal Sensitivity Analysis}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=ikX6D1oM1c},
}
Figure