Manuscript Offprint

arXiv:2608.25981

FRAME: separating sampling variation from representational cause in medical imaging fairness

Mahshad Lotfinia, Daniel Truhn, Andreas Maier, Soroosh Tayebi Arasteh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mahshad Lotfinia 1^{1}, Daniel Truhn 2,3^{2,3}, Andreas Maier 1^{1}, and Soroosh Tayebi Arasteh 2,3∗^{2,3*}

1^{1} Pattern Recognition Lab, Friedrich-Alexander-Universität Erlangen-Nürnberg, Erlangen, Germany

2^{2} Lab for AI in Medicine, RWTH Aachen University, Aachen, Germany

3^{3} Department of Diagnostic and Interventional Radiology, University Hospital RWTH Aachen, Aachen, Germany

*Correspondence to: Soroosh Tayebi Arasteh (soroosh.arasteh@rwth-aachen.de)

Abstract. Subgroup performance differences are the standard evidence for fairness bias in medical imaging, and the usual response removes the demographic information that a model encodes. Here we introduce Fair-model Reference And Mechanism Evaluation (FRAME), a two-step framework for auditing such a claim. The first step derives a fair-model reference, the distribution of the difference under exact fairness at the observed subgroup sizes. In the second step, we test the remainder with two operators in representation space. One operator cannot change a within-group ranking by construction. Across 702,206 images and 36 encoders, the reference accounts for a median 41% of the reported race difference and 22% of the age difference. Injecting demographic decodability leaves the remainder unchanged, while entangling the group with the disease direction raises the race difference from 0.077 to 0.118. No intervention we tested changes the remainder more than a change of random seed does. Those interventions reduce a difference at the operating point and leave the within-group ranking difference at a median of 0.000. Applied to 89 differences in 9 published studies across 6 medical imaging modalities, the reference accounts for a median 25% of a rate difference and 70% of a difference in the area under the receiver operating characteristic curve. Image-text pretraining instead raises worst-group performance by about 0.05. Applying FRAME before choosing an intervention could distinguish differences that need a mechanistic explanation from differences compatible with sampling variation at the current cohort sizes.

Introduction

Artificial intelligence systems for medical imaging perform differently for different groups of patients. Chest radiograph classifiers underdiagnose Black patients, women, and patients on Medicaid, and most severely patients in more than one of those groups [1]. Training on a sex-imbalanced corpus lowers performance for the underrepresented sex [2]. Dermatology classifiers lose accuracy on dark skin [3]. Computational pathology models separate White from Black patients by 3 to 16 percentage points of the area under the receiver operating characteristic curve (AUROC) across three diagnostic tasks [4]. These findings have motivated fairness interventions that modify the model [5].

That response depends on a chain of four beliefs. (i) Models show demographic performance differences [1], measured almost everywhere as the maximum minus the minimum subgroup value of a performance measure [6]. (ii) A model can recover a patient's self-reported race from the image alone, at high accuracy and from images degraded far past what a radiologist can read [7]. The features of disease classifiers also encode these characteristics [8]. (iii) The difference therefore arises because the model encodes demographics. A model can use race where no radiologist would detect it [7]. Correcting a demographic shortcut also removes the difference inside the training distribution [9]. (iv) Removing that encoding will therefore equalize performance. The mitigation literature is built on belief (iv), from a per-group threshold to a constrained loss [10], a worst-group objective [11], an adversarial classifier, and a concept-erasure step [12,13].

Beliefs (iii) and (iv) have not been tested by intervention, and (i) has been questioned on grounds that were not quantified. Two commentaries on the underdiagnosis report argued that dataset bias and unmeasured confounders complicate any reported difference [14,15]. Differences in task difficulty can also produce unequal subgroup performance where the model itself is not the source [16]. A causal account showed that current mitigation addresses a narrow set of the mechanisms involved [17]. A multi-site study found that correcting a demographic shortcut is optimal only inside the distribution that it was corrected on [9]. Aggregate metrics hide the risk borne by individual patients and by the smallest groups [18]. Outside medicine, the statistic itself has been shown to be inflated at small samples, since a maximum minus a minimum cannot fall below zero and rises with sampling variation alone [19,20,21]. A subgroup AUROC is a within-group rank statistic, so its value changes only if the ordering of disease scores within that group changes. In medical imaging, we are not aware of a study that has quantified the difference expected under exact fairness at the reported subgroup sizes, or injected a demographic effect into a representation to test whether the subgroup difference changes.

Here we introduce Fair-model Reference And Mechanism Evaluation (FRAME), a framework that audits a reported subgroup difference in two steps (Fig. 1). In the first step, we assign every subgroup the model's own overall AUROC and simulate the statistic at the observed per-subgroup counts. Those simulations define the fair-model reference, which then replaces zero as the comparison value for a reported difference. In the second step, we inject each candidate cause into the cached features of a released encoder at graded strengths and record whether the remainder changes. One of the two operators cannot change a within-group ranking by construction. We then use FRAME to test beliefs (iii) and (iv). We also train 22 encoders under a matrix that varies only the objective, the backbone, the pretraining data composition, and the seed at a fixed budget, since the objective and the pretraining domain are otherwise confounded [22]. Because its first step needs only a reported difference and the counts behind it, we also apply it to 89 subgroup differences in 9 published studies across 6 imaging modalities. The evidence base is 702,206 images from 3 modalities and 10 sites, 36 encoders, 9 mitigation methods, and 4 levels of unfreezing. Every model is open-weight and run locally.

The fair-model reference accounts for a median 41% of the reported race difference and 22% of the age difference, and 51 of 130 combinations of encoder and finding do not exceed it for race. In the published record, it accounts for a median 25% of a rate difference and 70% of an AUROC difference. Across encoders, demographic decodability spans 0.659 to 0.872 while the differences themselves span 0.069 to 0.088. Injecting decodability raises decodability to 0.942 while the difference stays at 0.077. Entangling the group with the disease direction raises the difference to 0.118. The median change in the remainder under mitigation is 0.005 for race and 0.008 for age, against 0.012 under a change of pretraining seed. Beliefs (iii) and (iv) concern only the remainder, the part of a reported difference that exceeds the fair-model reference. Injecting demographic decodability does not change the remainder. Image-text pretraining raises worst-group AUROC by about 0.05. No fairness intervention we tested produces a comparable gain. Separating a reported difference from what exact fairness produces at those sizes could change which findings in this field need explaining, and which need only a larger cohort.

References (72)