Counterfactual Marginalisation: Framework for Evaluating Robustness to Nuisance Variables

arXiv:2609.10778 · cs.LG, cs.AI · Submitted 2026-09-09 · Read on arXiv

cs.LG, cs.AI

Submitted: 2026-09-09

Updated: 2026-09-09

Comments: Accepted at UNSURE Workshop, MICCAI 2026

License: http://creativecommons.org/licenses/by/4.0/

The gist: Machine learning models can achieve strong test performance while relying on demographic or acquisition-related shortcuts.

Terminology

Abstract

Machine learning models can achieve strong test performance while relying on demographic or acquisition-related shortcuts. We propose counterfactual (CF) marginalisation as a test-time evaluation procedure for assessing robustness of classification models to such variables. Given a CF image generator, we intervene on nuisance parent variables such as age or sex, generate CF versions of each test image, and average predictions over a target intervention distribution. This produces intervention-aware predictions that marginalise demographic effects while preserving patient-specific latent information. We use these predictions to define metrics for CF risk, calibration, stability and worst-case sensitivity. We demonstrate this framework's utility for quantitative robustness evaluation.

Related papers