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

Mahshad Lotfinia, Daniel Truhn, Andreas Maier, Soroosh Tayebi ArasteharXiv 2026

TL;DR

Performance disparities between demographic subgroups in medical AI are widely accepted as evidence of algorithmic bias. This paper introduces FRAME, an auditing framework demonstrating that a massive portion of these reported gaps is actually statistical noise caused by small subgroup sample sizes, and that a model's ability to detect demographics does not inherently cause the remaining disparity.

What Problem Does This Paper Address?

When an AI model for chest X-rays or dermatology performs worse on one demographic group than another, researchers typically sound the alarm on algorithmic bias. The standard remedy has been to modify the model to erase demographic information from its internal representations, operating under the assumption that "decodability" (the model's ability to predict a patient's race or age from an image) is the root cause of the performance gap.

However, this paper challenges the foundational assumptions of the medical imaging fairness literature. The authors address two major gaps:

  1. The Sampling Fallacy: Fairness metrics often use a "maximum minus minimum" subgroup performance metric. Statistically, this value is heavily inflated by small sample sizes and will rarely be zero, even in a perfectly fair model.
  2. Correlation vs. Causality in Representation: Just because a model can decode a patient's race from an image doesn't mean that encoding causes the performance disparity.

Methods

The authors propose FRAME (Fair-model Reference And Mechanism Evaluation), a two-step auditing framework designed to isolate statistical artifacts from true representational bias:

  1. Step 1: Fair-model Reference: Instead of comparing a model's subgroup difference to an unrealistic baseline of zero, FRAME simulates 2,000 "perfectly fair" models. It assigns the model's overall performance metric (like AUROC) to every subgroup and calculates the expected variation based purely on the actual, observed subgroup sample sizes. This establishes a statistically sound baseline.
  2. Step 2: Mechanism Evaluation: For performance gaps that exceed the fair-model reference (the "remainder"), FRAME injects two types of operators into the model's cached features at graded strengths:
  3. Decodability Injection: Adds demographic information without altering the disease signal (preserving within-group rankings).
  4. Entanglement Injection: Removes disease signal along a shared demographic direction (altering within-group rankings).
FRAME framework overview

Datasets

The authors evaluated FRAME on a massive, curated corpus of 702,206 images spanning three modalities and 10 clinical sites:

  • Chest Radiography (650,207 images): Pooled from MIMIC-CXR, CheXpert, NIH ChestX-ray14, PadChest, VinDr-CXR, and VinDr-PCXR.
  • Dermatology (41,999 images): Combined from ISIC 2019, Fitzpatrick17k, and Diverse Dermatology Images (DDI).
  • Retinal Funduscopy (10,000 images): From the Harvard-FairVision dataset.

Additionally, they meta-audited 89 subgroup differences reported across 9 prominent, previously published studies to see how much of the literature's "bias" holds up under statistical scrutiny.

Key Insights and Ideas

  • The "Zero Bias" Baseline is a Myth: Due to sampling variation, smaller subgroups naturally exhibit wider performance variances. When you take the maximum performance minus the minimum, the metric mathematically repels from zero. FRAME proves that much of what we call "bias" is just the reality of small-sample statistics.
  • Demographic Awareness $\neq$ Harm: A popular belief is that models take "demographic shortcuts," causing performance disparities. FRAME shows that injecting pure demographic decodability into an encoder does not change the performance remainder gap. The model can know a patient's race without that knowledge degrading its diagnostic equity.
  • Entanglement is the Real Culprit: Performance disparities only worsen when demographic features become entangled with disease features in a way that disrupts the model's ability to rank disease severity within a group.
  • Fairness Mitigations Underperform Random Seeds: Popular fairness interventions (like adversarial removal or reweighing) do not optimize within-group rankings. In fact, no tested mitigation method changed the ranking-based remainder gap more than simply changing the random seed during pretraining.

Key Results

  • Accounting for the Gap: In the authors' panel of 36 encoders, the fair-model reference accounted for a median of 41% of the reported race difference and 22% of the age difference.
  • Rewriting the Literature: When applied to the 9 published studies, the fair-model reference accounted for a median of 70% of the reported AUROC differences. In 22 of the 89 audited claims, the expected statistical variation was actually larger than the difference the study reported as a finding.
  • The Power of Image-Text Pretraining: While explicit fairness mitigations failed to meaningfully move the needle on the remainder gap, multimodal image-text pretraining (e.g., CLIP-style models) naturally raised worst-group AUROC by roughly 0.05, providing a much more robust path toward equitable performance.

Limitations and Future Work

While FRAME successfully rules out demographic decodability as a cause of performance remainders, it does not identify the exact mechanism that does cause the remaining entanglement.

Additionally, the framework currently models sampling at the image level rather than the patient level, meaning it doesn't account for within-patient correlations (e.g., multiple X-rays from the same individual). This makes the fair-model reference conservative; a patient-level model would likely account for an even higher percentage of the reported disparities. Future work will need to explore larger cohorts in non-radiology modalities to see if disease-demographic entanglement consistently originates during the pretraining phase.

Summary updated

BibTeX
@misc{lotfinia2026frame,
  author = {Mahshad Lotfinia and Daniel Truhn and Andreas Maier and Soroosh Tayebi Arasteh},
  title = {{FRAME: separating sampling variation from representational cause in medical imaging fairness}},
  year = {2026},
  eprint = {2608.25981},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.25981},
}
Figure