Abstract
This paper introduces a novel mathematical framework to quantify causal bias in predictive models that use continuous treatments. By deriving a closed-form, differentiable expression for causal bias within Structural Causal Models (SCMs), the authors provide a practical way to estimate this bias using automatic differentiation and standard probabilistic inference. This allows practitioners to make informed trade-offs between predictive accuracy and causal alignment in real-world scenarios where perfect identifiability is often unattainable.
Introduction
In machine learning, predictive models excel at capturing correlations but often fail under intervention or when applied to new populations. To predict the consequences of an intervention—such as changing a medical dosage—causal inference is required. However, traditional causal inference often assumes all confounders are observed, leading to zero bias. In practice, unobserved confounders, mediators, or colliders are common, forcing a choice between different types of biases (e.g., confounding vs. overcontrol).
While binary treatments are well-studied, continuous treatments lack robust frameworks for quantifying deviations from true causal models. This work addresses this gap by defining and estimating "causal bias" for continuous treatments, bridging the gap between abstract causal theory and practical machine learning implementation.
Methodology
The authors operate within the framework of Structural Causal Models (SCMs). A key contribution is the definition of the Causal Exogenous Set ($U^C$), a minimal set of latent variables characterizing an outcome's randomness. Causal bias is shown to be zero if and only if the treatment is independent of this set given observed covariates.
The framework derives an exact, analytical expression for causal bias. By removing the treatment variable from the probability normalization constant, the equation remains computationally tractable. Because it depends on the gradients of the SCM's structural equations, it can be computed using standard automatic differentiation. The expected bias is then estimated using probabilistic inference techniques—like Laplace approximation or Importance Sampling—to sample from the posterior distribution of latent variables.
Experimental Evaluation
The methodology was validated using several simulated datasets where ground-truth bias is known:
- Simple Linear SCMs: Toy models designed to isolate specific biases like confounding, overcontrol, and endogenous selection bias.
- Non-linear SCM with Missing Data: A synthetic dataset used to test "lesser of two evils" scenarios, such as choosing between confounding and overcontrol bias.
- Simulated Medical Study: A complex simulation modeling continuous statin dosage and ASCVD risk, incorporating non-linear relationships and multiple covariates like age and frailty.
Key Insights and Results
A primary insight is that bias is computable even when effects are not identifiable. This allows for deep sensitivity analysis in observational datasets. In linear models, the algorithm's estimates perfectly matched theoretical calculations. In non-linear experiments, the framework successfully quantified bias across treatment ranges, revealing that optimal variable selection (e.g., whether to include a mediator) depends heavily on specific treatment values and model parameters.
In the complex medical simulation, the framework accurately identified zero bias when all confounders were observed. When confounders were hidden, it quantified a massive confounding bias ($+0.417$), and it identified a significant selection bias ($+0.100$) when adjusting for post-treatment variables.
Conclusion and Future Work
The current approach requires known and differentiable structural equations and strictly positive probability densities. Future work aims to use this differentiable bias characterization as a "causal regularizer" during the training of deep learning models. This would enable neural networks to penalize causal bias during gradient descent, automatically balancing predictive power with causal validity.
Summary updated