Introduction
Deep learning models are notoriously prone to learning "shortcuts"—spurious correlations that happen to be present in the training data but do not reflect the underlying causal mechanisms. For instance, a medical imaging model might learn to identify a disease based on the specific X-ray machine used at a hospital rather than the clinical symptoms. This phenomenon, known as confounding bias, severely limits the generalizability of models to new environments where these correlations may shift or disappear.
This paper introduces an extension of Causal Bootstrapping (CB), a model-agnostic pre-training technique designed to "deconfound" datasets. By leveraging causal graphs to re-sample data, CB forces models to prioritize robust, invariant features over spurious shortcuts.
Methodology: Causal Bootstrapping
Unlike "in-training" debiasing methods that modify loss functions or model architectures, Causal Bootstrapping operates on the data itself before training begins. The process involves four key steps:
- Causal Graph Modeling: The data-generating process is represented using Directed Acyclic Graphs (DAGs). These graphs identify the relationships between features ($X$), labels ($Y$), confounders ($U$), and mediators ($Z$).
- Interventional Distribution: Using Pearl’s do-calculus, the authors derive the "interventional distribution" $P(x | do(y))$. This mathematical operation effectively "breaks" the causal link from the confounder to the label, simulating a randomized controlled trial.
- Weighting and Re-sampling: Specific weights are calculated for each sample in the training set based on the derived distribution. Re-sampling the data according to these weights creates a new, deconfounded dataset where spurious correlations are minimized.
- Scenario Extension: The authors extend CB to five realistic scenarios, ranging from simple observed confounding to complex cases where the confounder is unmeasured but a mediator is available.
Experimental Evaluation
The effectiveness of CB was tested across a variety of synthetic and real-world high-stakes datasets:
- Synthetic Data: Controlled multivariate Gaussian distributions.
- Semi-synthetic Imaging: CelebA (gender classification with synthetic rotation bias) and various medical imaging datasets (ChestXray8, CheXpert, MIMIC-CXR) for atelectasis classification.
- Real-World Benchmarks: Camelyon17 (tumor prediction with hospital-site confounding) and PovertyMap (satellite imagery for asset index classification with country-level confounding).
Key Results
- Robustness to Distribution Shifts: In "reverse-confounded" test sets designed to trick biased models, standard models experienced performance drops of up to 50% AUC. In contrast, CB-trained models maintained stable and high performance.
- Superiority over Simple Augmentation: While standard upsampling works when confounders are fully known, it fails in partially observed scenarios. CB outperformed standard data augmentation by over 24% in these complex cases.
- Generalization: On Camelyon17 and PovertyMap, CB-debiased models significantly outperformed both "Simple" models (ignoring bias) and "Informative Feature" models (which attempt to use the bias as a feature).
Insights and Discussion
A primary insight of this work is the utility of the mediator variable ($Z$). Even when a confounder ($U$) is unmeasured, the presence of a mediator—a variable affected by the label but not the confounder—allows for effective debiasing.
Furthermore, because CB is a pre-training step, it is entirely model-agnostic. It can be integrated with any modern architecture, such as ResNets or Transformers, without complicating the training loop. The metadata required for debiasing (confounders or mediators) is only needed during the data preparation phase; the final model can be deployed without it.
Limitations and Future Work
The primary requirement for CB is a correctly specified causal graph. If the assumed relationships between variables are incorrect, the debiasing may be ineffective or even counterproductive. Additionally, the method relies on the interventional distribution being "identifiable" via do-calculus. Future research aims to automate the discovery of these causal structures from raw data, reducing the need for expert domain knowledge.
Summary updated