Most causal inference methods focus on estimating the Average Treatment Effect (ATE)—the expected difference in outcomes if a group receives a treatment versus if they do not. However, means rarely tell the whole story. A treatment might not change the average outcome but could drastically increase the variance, or it might create a multimodal distribution indicating distinct subgroups with entirely different responses.
To capture the full picture of causal effects, researchers need to estimate the entire counterfactual probability density function (PDF). This paper introduces a novel method to estimate these complete counterfactual distributions using flexible, unnormalized models, overcoming significant computational and missing-data hurdles.
The Challenge of Unnormalized Models in Causality
A popular way to model complex PDFs is through parametric families like Energy-Based Models (EBMs) or Markov Random Fields. The major hurdle with these models is that they are usually "unnormalized." They are known only up to an intractable normalizing constant, making standard maximum likelihood estimation impossible.
Furthermore, causal inference is inherently plagued by missing data: we only observe the factual outcome, never the counterfactual. Previous methods for counterfactual density estimation simply could not handle models with unknown normalizing constants, forcing researchers to rely on simpler, less expressive distributions.
Introducing DR-MKSD
To solve this, the authors propose a novel estimator called DR-MKSD (Doubly Robust Minimum Kernel Stein Discrepancy). It merges two powerful statistical concepts to bypass the normalizing constant and handle missing data simultaneously:
- Kernel Stein Discrepancies (KSD): KSD is a metric used to compare distributions. Its primary advantage is that it only requires the score function (the gradient of the log density) of the model. Because the derivative of a constant is zero, the intractable normalizing constant drops out entirely, allowing for the use of highly flexible EBMs.
- Doubly Robust Estimation: To handle the missing counterfactual data (selection bias), the authors adapt KSD into a causal framework. They create a proxy statistic using two "nuisance" models: a propensity score model (predicting treatment assignment) and an outcome regression model (predicting the outcome given covariates).
The algorithm splits the data to train the nuisance models via cross-fitting, constructs the doubly robust KSD objective, and then minimizes this objective to find the optimal parameters for the counterfactual distribution.
Key Insights and Advantages
- Unnormalized Models in Causality: This is the first work to enable the use of highly flexible, unnormalized probability distributions for counterfactual density estimation.
- Double Robustness: The DR-MKSD estimator is "doubly robust." The final distribution estimate will be statistically consistent as long as either the propensity score model or the outcome regression model is correct. You do not need both to be perfectly specified.
- Fast Convergence from Slow Models: The estimation error rate is the product of the error rates of the two nuisance models. This allows practitioners to use slower-converging, complex machine learning models (like Random Forests or Neural Networks) for the nuisance estimators while still achieving fast, reliable estimates for the target distribution.
- Computational Efficiency: Unlike prior counterfactual density methods that require refitting nuisance models for every candidate parameter during optimization, DR-MKSD only requires fitting the nuisance estimators once. This makes it highly scalable.
Empirical Results and Double Robustness
Because this is the first estimator of its kind, the authors evaluated their method on a variety of synthetic and semi-synthetic datasets, including 1D Normal Distributions, an intractable 5D model, Restricted Boltzmann Machines (RBMs), and a semi-synthetic MNIST denoising task.
In simulations, the authors provided rigorous empirical proof of the double robustness property.
As shown in the convergence plots above, the Mean Squared Error (MSE) of the DR-MKSD estimated parameters reliably converges to zero as long as at least one of the nuisance models—either inverse probability weighting (IPW) or plug-in regression (PI)—is correctly specified. Even when one baseline approach fails entirely, DR-MKSD remains stable and accurate.
Additionally, on the MNIST dataset, the method successfully modeled the unnormalized density of counterfactual digits. By evaluating the estimated density, the authors could successfully identify "outliers" (highly distorted images) that had the lowest probability under the learned counterfactual model.
Limitations and Future Work
While powerful, the proposed method is not without limitations. The objective function that DR-MKSD minimizes is generally non-convex, especially when the underlying energy function is a neural network.
This complex parameter landscape means the optimization process can occasionally get stuck in local minima, a standard trade-off when using highly flexible models.
Looking forward, the authors suggest several exciting next steps. Once the unnormalized counterfactual distribution is learned, it could be used to generate synthetic counterfactual data using sampling techniques like Hamiltonian Monte Carlo. They also propose extending the framework to handle instrumental variables, time-varying treatments, and off-policy evaluation in reinforcement learning, opening new doors for generative causal AI.
Summary updated