SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.25930 · 2026

Controlling for Omitted Variable Bias in Deep Neural Networks

Kerstin Ritter, Manuel Pfeuffer, Roshan Rane, Sonja Greven

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
mpff/cocodeel — 1 of 4
FunctionStatusWhere it lives
Center Ran mpff/cocodeel/src/cocodeel/refit_model.py
code served (permissive licence) · get_code("1489fa211e753015")
BaseNetwork Not yet run mpff/cocodeel/src/cocodeel/refit_model.py
code served (permissive licence) · get_code("df3a6f1a9a892d2e")
RefitCovarNetwork Not yet run mpff/cocodeel/src/cocodeel/refit_model.py
code served (permissive licence) · get_code("565a15b957922a8f")
_BaseCovarNetwork Not yet run mpff/cocodeel/src/cocodeel/refit_model.py
code served (permissive licence) · get_code("ca85ad5c9ac9645a")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Control variables are widely used in statistical modelling to account for omitted variable bias of known confounders. However, they have largely been underexplored in deep learning. This is surprising, given that deep learning models encode image-inferable covariates, such as demographic variables, into their predictions when these covariates are correlated with the outcome-a form of omitted variable bias referred to as 'shortcut learning'. While many existing confoundcontrol or fairness methods try to restrict the correlation of such covariates with model predictions, we show that this fails to correct for omitted variable bias. We therefore propose a control variable approach for deep learning models, based on generalised additive modelling of the effects of model inputs and covariates. As flexible additive models can suffer from concurvity, we introduce an estimation procedure that refits the final layer of a pre-trained network to include covariate effects, using cross-fitting with ridge penalisation. We show how these effects can be orthogonalised with respect to covariates to exclude their mediated effects and that model predictions can be marginalised over the covariate distribution to control for their effect. This yields unbiased, interpretable predictions and offers flexibility to model the desired effects depending on the scientific or fairness objective. We verify our approach using simulated images, and demonstrate consistent estimation of true effects. Existing methods either require more data or fail to recover the true effects. We apply our method to real neuroimaging data with experimentally induced confounding, where it recovers prediction performance to near the level of a model trained on unconfounded data. Code is available at https://github.com/mpff/cocodeel.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.25930")
get_code_for_paper("2608.25930")
have("2608.25930")

Connect an agent — have() is free.