Abstract
We consider learning causal relationships under conditional moment restrictions. Unlike causal inference under unconditional moment restrictions, conditional moment restrictions pose serious challenges for causal inference, especially in high-dimensional settings. To address this issue, we propose a method that transforms conditional moment restrictions to unconditional moment restrictions through importance weighting, using a conditional density ratio estimator. Using this transformation, we successfully estimate nonparametric functions defined under conditional moment restrictions. Our proposed framework is general and can be applied to a wide range of methods, including neural networks. We analyze the estimation error, providing theoretical support for our proposed method. In experiments, we confirm the soundness of our proposed method.
Introduction
Estimating non-linear causal effects in the presence of unobserved confounders is a fundamental challenge in econometrics and machine learning. For instance, determining how airline ticket prices influence passenger demand is complicated by seasonal factors that drive both price and demand. To isolate the true causal effect, researchers employ Instrumental Variables (IVs)—variables that influence the treatment (price) but have no direct effect on the outcome (demand).
Modern applications often require Nonparametric IV (NPIV) methods to capture complex, non-linear relationships. Mathematically, NPIV involves solving "conditional moment restrictions," which ensure that the expected error of the model, given the instrument, is zero. However, solving these restrictions directly is computationally intensive and often unstable, particularly when using deep learning models that rely on adversarial minimax optimization.
Methodology: Importance Weighting for Causal Inference
This paper introduces a two-stage framework that sidesteps the instabilities of minimax optimization by leveraging importance weighting. The core idea is to transform difficult conditional moment restrictions into more manageable unconditional ones.
- Conditional Density Ratio Estimation: Instead of modeling full probability distributions, the method estimates the ratio of the conditional density to the unconditional density. This is achieved using a direct least-squares approach inspired by Least-Squares Importance Fitting (LSIF).
- Transformation via Weighting: By applying these estimated ratios as weights to training samples, the conditional moment restriction is mathematically converted into a standard unconditional restriction.
- Model Training (IW-LS): With the problem transformed, standard machine learning models, such as neural networks, can be trained. To prevent overparameterized networks from overfitting to the moment restrictions, the authors introduce Importance Weighted Least Squares (IW-LS), which adds a prediction error penalty to guide the model toward the most predictive causal function.
Experimental Evaluation
The proposed method was evaluated against several state-of-the-art baselines, including DeepIV, DeepGMM, and Kernel IV (KIV), across various synthetic and high-dimensional datasets.
Datasets
- Classic Benchmarks: Standard synthetic datasets from econometrics literature (Newey & Powell, 2003; Ai & Chen, 2003).
- Demand Design: A simulated airline sales dataset.
- High-Dimensional MNIST-IV: A novel benchmark where low-dimensional instruments are embedded into 100-dimensional feature vectors derived from MNIST images to test robustness in high dimensions.
Key Results
The importance-weighting methods (IW-LS and IW-MM) consistently matched or outperformed existing techniques. Notably, the proposed approach maintained stability and accuracy in high-dimensional settings where traditional density estimation often fails.
Theoretical analysis confirms that the projected Mean Squared Error (MSE) of the method converges at a rate of $O(1/\sqrt{n})$, providing a rigorous foundation for its empirical success. In challenging scenarios, such as those involving high-dimensional instruments, the importance-weighting approach demonstrates significantly lower error rates than adversarial methods.
Discussion and Insights
The primary advantage of this framework is the avoidance of the "minimax trap." By reframing the problem around density ratios, the method eliminates the need for unstable adversarial training loops. Furthermore, the direct estimation of ratios follows Vapnik’s principle: solve the specific problem of interest (the ratio) rather than a more general, harder problem (the full densities).
One critical observation is the "overparameterization hazard." Because deep networks can find many functions satisfying moment restrictions, the inclusion of a heuristic prediction penalty (MSE) is vital for identifying the correct causal relationship. While this introduces a hyperparameter requiring tuning, it provides a necessary inductive bias for deep NPIV.
Conclusion
The proposed importance-weighting framework offers a stable, scalable, and theoretically grounded approach to solving conditional moment restrictions in causal inference. While currently focused on NPIV, the generality of the method suggests potential applications across a broad spectrum of causal modeling tasks defined by conditional moment conditions.
Summary updated