TL;DR
When deep neural networks take "shortcuts"—like using a patient's age inferred from an MRI scan to predict disease instead of looking for actual pathology—they are actually suffering from a classic statistical problem: omitted variable bias. Instead of trying to scrub these confounding signals out of the network's representations (which often fails and destroys real signal), the authors bring classical control variables into deep learning by refitting the final layer of a pre-trained network. The result is an interpretable, mathematically grounded way to isolate true input effects and get unbiased predictions, even on small datasets.
What Problem Does This Paper Address?
Imagine training a neural network to predict alcohol misuse from brain MRIs. Because men statistically have higher rates of misuse due to social factors, a clever network might just learn to detect biological sex from the brain scan and assign higher probabilities to male-looking brains—even when zero disorder-related brain changes exist.
In deep learning, we call this shortcut learning. In classical statistics and econometrics, it has a much older name: omitted variable bias (OVB). When an outside factor $Z$ (like sex, age, or scanner type) correlates with both the input $X$ (the image) and the outcome $Y$, leaving $Z$ out of the model forces $X$ to absorb $Z$'s direct effect.
Standard deep learning fixes—like adversarial training or post-hoc feature scrubbing—try to force the model's predictions to have zero correlation with $Z$. The authors prove this is a trap: decorrelation not only fails to remove OVB in many cases, it also strips away genuine mediated effects (e.g., actual biological changes in the brain driven by age that legitimately affect disease risk). On the flip side, if you just throw $Z$ into a neural network alongside $X$ and train them jointly, the network is so flexible it can memorize and tangle the two effects together—a non-linear version of multicollinearity called concurvity.
Methods
Because the final layer of a deep neural network is just a linear combination of learned features, you can view it through the lens of a Generalised Additive Model (GAM): $\mathbb{E}[Y \mid X, Z] = \beta_0 + f_X(X) + f_Z(Z)$.
Instead of training an additive network from scratch (where concurvity ruins identifiability on finite samples), the authors propose a clever two-stage last-layer refitting procedure:
- Freeze and Refit: Take a pre-trained DNN backbone and treat its last-layer features as a fixed representation. Refit only the final layer as a partial linear model that explicitly and additively includes the control variables $Z$ (modeled linearly or with splines), stabilized with a ridge penalty ($\ell_2$ regularization). For classification tasks, they generalize this using iteratively reweighted least squares (IRLS).
- Cross-Fitting: If you train the DNN backbone and refit the last layer on the exact same data, the learned features aren't exogenous, introducing bias. Borrowing from double/debiased machine learning, the authors use $K$-fold cross-fitting—training the backbone on $K-1$ folds and refitting the last layer on the held-out fold, then ensembling the models.
- Optional Orthogonalisation & Marginalisation: Once you have an unbiased estimate of the direct image effect $f_X$, you can optionally regress $Z$ out of it to isolate the pure residual effect (useful in fairness contexts). To make confounder-free predictions on new data, you simply average (marginalise) the model's predictions over the distribution of $Z$—mirroring Judea Pearl's causal
do-calculus.
Datasets
- Simulated Stripe/Blob Images: Synthetic $20 \times 60$ pixel images with three regions encoding pure spurious correlation with $Z$, a $Z$-mediated effect, and a pure residual effect on $Y$, allowing exact ground-truth testing against continuous and multivariate confounders.
- UK Biobank Neuroimaging: Real 3D T1-weighted brain MRIs ($n_{\text{train}} = 14,617$, $n_{\text{test}} = 4,505$) used to predict high alcohol consumption (
highalc). The authors induce synthetic confounding by resampling the training set soagestrongly confounds the outcome, while evaluating on an age-balanced test set.
Key Insights and Ideas
- Shortcut learning is Omitted Variable Bias: Framing shortcut learning as OVB inside an additive last-layer structure demystifies why networks latch onto spurious cues and gives us decades of statistical tools to fix it.
- Why decorrelation fails: Forcing predictions to be uncorrelated with $Z$ changes the estimation target from the direct effect of $X$ to the residual effect of $X$. Worse, post-hoc residualisation leaves leftover OVB, while adversarial training only works properly if the mediated effect can be perfectly inferred from $X$ alone.
- Beating concurvity with inductive bias: Jointly trained deep additive models (like Neural Additive Models) struggle to separate $X$ and $Z$ without massive datasets because the network interpolates covariate effects. Constraining the additive fit to a ridge-penalised final layer restores identifiability at much smaller sample sizes.
- Free domain adaptation for covariate shifts: Because $f_X$ and $f_Z$ are cleanly separated, if your deployment hospital has a much older patient demographic than your training set, you can swap in the target population's $p^{\text{test}}(z)$ during marginalisation without retraining.
Key Results
- Exact Attribution & Consistency: On simulated images, baseline DNNs remain permanently biased as training data grows; Integrated Gradients shows a baseline DNN attributes 37% of its prediction variance to a purely spurious image region. With the authors' control variable refit, spurious attribution drops to 1%, and estimation error converges consistently toward zero regardless of confounder strength.
- Sample Efficiency: Across sample sizes from $N=200$ to $51,200$, the cross-fitted last-layer refit converges faster in mean squared prediction error than end-to-end SGD with controls, Neural Additive Models (with or without concurvity regularisation), and Semi-Structured Networks.
- Recovering Lost MRI Performance: On UK Biobank MRIs (using a 3D ResNet-50), training on age-confounded data causes a standard DNN's test AUC to drop from ~0.70 (the unconfounded benchmark) down to ~0.62. Refitting the last layer with
agecontrol under cross-fitting ($K=2$ or $3$) recovers nearly the entire gap, outperforming Joint DNNs, LEACE, PHO + Refit, and Deep Feature Reweighting (without needing to discretise continuous confounders like age). Without sample splitting, however, the refit fails to recover the drop—proving cross-fitting is essential in practice.
Limitations and Future Work
- Observed confounders & noise: You can only control for variables you actually recorded. Furthermore, if $Z$ is measured with noise, its estimated effect is attenuated, leaving a partial, persistent bias on the image effect.
- Backbone bottleneck & perfect concurvity: The method relies on the pre-trained backbone learning a rich enough feature span. Also, if a confounder is 100% deterministically encoded in the image (e.g., a literal ruler or text burned into an X-ray, making maximal correlation $\rho = 1$), $f_X$ and $f_Z$ are fundamentally unidentifiable in the population—though the orthogonalised residual effect $f^{\text{re}}_X$ still converges cleanly.
- Future directions: Extending this framework to multimodal learning (isolating the additive contribution of one modality while controlling for others in small samples) and relaxing additivity to allow interaction effects between $X$ and $Z$.
Summary updated