NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Normalizing Flows for Interventional Density Estimation

Valentyn Melnychuk, Dennis Frauen, Stefan Feuerriegel

TL;DR

Most causal inference tools only tell you the "average" effect of a treatment. This paper introduces Interventional Normalizing Flows (INFs) to estimate the entire probability distribution of potential outcomes. By combining deep learning with semi-parametric efficiency theory, INFs provide a scalable, "doubly robust" way to predict not just what happens on average, but the full range of risks and rewards following an intervention.

What Problem Does This Paper Address?

In causal inference, we usually ask questions like: "On average, how much does this drug reduce blood sugar?" This is known as the Average Treatment Effect (ATE). However, averages can be misleading or even dangerous. A treatment might have a positive average effect but be highly beneficial for 50% of people and actively harmful for the other 50%.

To capture this nuance, we need Interventional Density Estimation (IDE)—estimating the full probability density of an outcome after an intervention (e.g., "What is the probability that this patient’s blood sugar falls below a specific threshold?").

Density plots illustrating interventional versus observational distributions.

The core challenge is the "fundamental problem of causal inference": we only ever observe one reality. We see what happened to a patient who took the drug, but never what would have happened to that same patient if they hadn't. Existing IDE methods, like Kernel Density Estimation, often fail to scale to high-dimensional data, can produce "impossible" negative densities, or fail to integrate to 1 (making them improper probability distributions).

Methods

The authors propose Interventional Normalizing Flows (INFs), a fully-parametric deep learning approach designed to overcome these limitations.

  1. Normalizing Flows (NFs): At its core, an NF is a series of invertible transformations that turn a simple distribution (like a standard Gaussian) into a complex, multi-modal one.
  2. The Two-Flow Architecture:
    • Nuisance Flow: This model estimates "nuisance parameters"—specifically the propensity score (the probability of receiving treatment) and the conditional outcome distribution.
  3. Target Flow: This model uses the outputs of the nuisance flow to estimate the actual interventional density.
The Two-Flow Architecture comprising a Nuisance Flow and a Target Flow.
  1. One-Step Bias Correction: This is the "secret sauce" of the method. The authors derive a novel optimization objective based on semi-parametric efficiency theory. This makes the estimator doubly robust: if either your propensity model or your outcome model is correct, your density estimate remains consistent. It transforms a complex theoretical requirement into a tractable loss function that can be trained via standard backpropagation.

Datasets

The researchers evaluated INFs across a diverse range of benchmarks to test robustness and scalability:

  • Synthetic SCM: A controlled environment to test how the model handles varying levels of "covariate shift" (differences between treated and untreated groups).
  • IHDP: A standard causal inference dataset based on the Infant Health and Development Program.
  • ACIC 2016 & 2018: Large-scale benchmarks containing hundreds of different data-generating scenarios.
  • HC-MNIST: A high-dimensional semi-synthetic dataset where potential outcomes are tied to image data (MNIST digits), testing the model's ability to scale.
  • California Tobacco Case Study: A real-world application evaluating the impact of Proposition 99 on cigarette sales.

Key Insights and Ideas

  • Proper Densities by Design: Because INFs use normalizing flows as their base, the resulting density is guaranteed to be non-negative and integrate to one. This solves a major headache found in previous non-parametric methods.
  • Constant-Time Inference: Unlike kernel-based methods, where the time to predict a density grows with the size of the training set, the INF "Target Flow" has a constant inference time. This makes it highly viable for real-time decision support systems.
  • The Power of Double Robustness: By incorporating the one-step bias correction, the model is less sensitive to misspecification in the initial "nuisance" models. This provides a theoretical safety net that is rare in pure deep learning approaches.
  • Handling High Dimensions: By leveraging hypernetworks and fully connected layers, INFs can process complex inputs (like images in HC-MNIST) that would cause traditional statistical methods to crash or stall.

Key Results

  • Performance: In the ACIC benchmarks, INFs were the "best" or "second best" performers in the majority of scenarios, significantly outperforming Mixture Density Networks (MDNs) and Kernel Mean Embeddings (DKME).
  • Scalability: On the HC-MNIST dataset ($d_X = 785$), traditional semi-parametric estimators became impractical due to memory and time constraints, while INFs trained in roughly 5 minutes.
  • Qualitative Success: In the tobacco case study, INFs successfully captured the "shift" in the entire distribution of cigarette sales following the policy intervention, providing a much richer picture than a simple point estimate of the mean reduction.

Limitations and Future Work

The authors acknowledge a few hurdles for future research:

  • Outliers and Heavy Tails: Like most flow-based models, INFs can struggle with extreme outliers or distributions that have very heavy tails combined with multiple modes.
  • Hyperparameter Sensitivity: The "smoothness" of the density depends on the number of "knots" in the spline flow. Currently, this is a hyperparameter that requires manual tuning or prior knowledge.
  • Categorical Treatments: While the paper focuses on binary treatments ($A=0$ or $A=1$), extending this to continuous treatments (like drug dosage) is a logical next step that would require further theoretical work on the bias correction term.

Summary updated

BibTeX
@inproceedings{melnychuk2023normalizing,
  author = {Valentyn Melnychuk and Dennis Frauen and Stefan Feuerriegel},
  title = {{Normalizing Flows for Interventional Density Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=aa6ejr9t49},
}
Figure