Causal bootstrapping

Max A. Little, Reham BadawyarXiv 2019

Abstract

While modern machine learning (ML) excels at pattern recognition, it remains fundamentally "causally blind." Standard models often exploit spurious correlations—confounders—leading to high performance on biased training sets but catastrophic failure in real-world deployment. This paper introduces causal bootstrapping, a non-parametric technique that transforms observational data into an interventional-like distribution. By resampling data based on causal diagrams and do-calculus, the method allows standard ML algorithms to ignore confounding bias and focus on true cause-and-effect relationships. Experiments on synthetic, semi-synthetic (MNIST), and real-world (Parkinson’s voice) data demonstrate that causal bootstrapping significantly improves model robustness and generalization.

Introduction

Modern machine learning is incredibly good at finding patterns, but it is fundamentally "causally blind." If a model is trained on observational data where a "confounder" (a third variable) influences both the input and the target, the model will likely exploit that spurious correlation. For example, if a medical imaging dataset inadvertently uses different brightness settings for healthy vs. diseased patients, a high-performing deep learning model might learn to detect brightness rather than the actual disease. When that model is deployed in a new clinic with different settings, its accuracy collapses.

Traditional causal inference tools, such as Pearl’s do-calculus, can solve this, but they often require explicit probabilistic models that are difficult to integrate with complex, non-parametric ML algorithms. This paper bridges that gap by providing a way to transform the data so that the ML algorithm doesn't need to change at all.

Methods

The authors propose causal bootstrapping, which augments the classical bootstrap (resampling with replacement) with weights derived from causal structures.

Causal diagrams for measured and unmeasured confounding scenarios.

The algorithm calculates weights ($w_n$) based on a Directed Acyclic Graph (DAG). It uses non-parametric Kernel Density Estimation (KDE) and the "reproducing property" of Hilbert spaces to estimate the necessary probability distributions without assuming specific parametric forms. The paper details three core algorithms:

  • Back-door causal bootstrap: Used when all variables that confound the relationship are measured.
  • Front-door causal bootstrap: A technique for when some confounders are unmeasured, but a "mediator" variable exists between the cause and effect.
  • Truncated factorization: A general-purpose version for complex causal graphs.

By training on this resampled, "deconfounded" dataset, any standard ML model—from Linear Discriminant Analysis (LDA) to deep neural networks—effectively learns the interventional distribution $p(x|do(y))$ rather than the biased observational distribution $p(x|y)$.

Experimental Evaluation

The approach was evaluated across three distinct scenarios:

  1. Synthetic Gaussian Mixtures: Visualizing how decision boundaries shift after deconfounding.
  2. Background-MNIST: The authors modified the MNIST digit dataset so that image brightness was a strong confounder for the digit label, simulating "leakage" often found in real-world medical imaging.
  3. Parkinson’s Voice Data: A dataset aimed at detecting Parkinson’s Disease from voice recordings across different countries/labs, where the "lab" acts as a natural confounder.
The Background-MNIST dataset, where digit labels are confounded by background intensity.

The results demonstrate a dramatic recovery of performance. In the MNIST task, a Random Forest trained on confounded data reached 96% accuracy on a biased test set but collapsed to 58% (near chance) when the confounder was removed. The causal bootstrapped model maintained a robust 90%+ accuracy across both scenarios. In the Parkinson’s task, the deconfounded model outperformed the standard model on non-confounded test data (69% vs 57%), proving the standard model was relying on lab-specific noise.

Discussion and Conclusion

Causal bootstrapping offers a "plug-and-play" solution for data-centric causal inference. It successfully combines the mathematical rigor of Pearl’s do-calculus with the flexible, high-dimensional predictive power of modern statistical machine learning.

However, the method has limitations. It requires a pre-defined causal graph (DAG); if the graph is incorrect, the bootstrap weights will be biased. Additionally, estimating weights using KDE can become unreliable in high-dimensional spaces with sparse data. Future work includes integrating this method with structural discovery algorithms to learn causal graphs automatically from data. Ultimately, this research highlights the "spurious accuracy" trap: models trained on confounded data often show deceptively high test accuracy until they are tested in the real world.

Summary updated

BibTeX
@misc{little2019causal,
  author = {Max A. Little and Reham Badawy},
  title = {{Causal bootstrapping}},
  year = {2019},
  eprint = {1910.09648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.09648},
}
Figure