AI Alignment in Medical Imaging: Unveiling Hidden Biases Through Counterfactual Analysis
Haroui Ma, Francesco Quinzan, Theresa Willem, Stefan Bauer
TL;DR
The paper tackles bias in medical-imaging ML by proposing a counterfactual-invariance (CI) based statistical test to quantify dependence on sensitive attributes, circumventing the need for counterfactual data. It develops a practical CIT-LR algorithm that leverages a disentangled latent diffusion model (CLDM) and Mutual Information Neural Estimation (MINE) to learn CI-relevant representations and test for invariance via a paired $t$-test. Across synthetic and real datasets (CheXpert, MIMIC-CXR), the method shows strong alignment with counterfactual fairness (ECA) and outperforms traditional DP/EO baselines in detecting true invariances and biases. The approach provides a robust, causal tool for evaluating generalization across demographic groups in AI-driven healthcare, while acknowledging limitations in latent-specification assumptions and diffusion variance that warrant further refinement and interdisciplinary validation.
Abstract
Machine learning (ML) systems for medical imaging have demonstrated remarkable diagnostic capabilities, but their susceptibility to biases poses significant risks, since biases may negatively impact generalization performance. In this paper, we introduce a novel statistical framework to evaluate the dependency of medical imaging ML models on sensitive attributes, such as demographics. Our method leverages the concept of counterfactual invariance, measuring the extent to which a model's predictions remain unchanged under hypothetical changes to sensitive attributes. We present a practical algorithm that combines conditional latent diffusion models with statistical hypothesis testing to identify and quantify such biases without requiring direct access to counterfactual data. Through experiments on synthetic datasets and large-scale real-world medical imaging datasets, including \textsc{cheXpert} and MIMIC-CXR, we demonstrate that our approach aligns closely with counterfactual fairness principles and outperforms standard baselines. This work provides a robust tool to ensure that ML diagnostic systems generalize well, e.g., across demographic groups, offering a critical step towards AI safety in healthcare. Code: https://github.com/Neferpitou3871/AI-Alignment-Medical-Imaging.
