TRANSMISSION // 2611.38022v1
When Removing Age and Sex Hurts a Medical AI
Source published
A preprint proposes a matched-patient test to distinguish detectable demographic shortcuts from disease signals that overlap with age or sex. In the tested datasets, no overlap exceeded the method’s resolution after matching on both demographics.

If a medical AI performs worse after age and sex information is removed, that loss has more than one possible explanation. The model may exploit demographic patterns associated with a diagnosis—or the same image features may reflect both demographics and disease. A new preprint tests these possibilities by comparing patients matched on age and sex.
Removing age and sex information from an AI model’s image features can reduce its ability to distinguish between people with and without a diagnosis. But what does that loss mean? It could reflect a shortcut: demographic patterns happen to be associated with the diagnosis in the data. Or it could reflect shared biology. For example, aging and glaucoma can both affect the optic disc in a retinal image.
Ritvij Sharma’s preprint proposes an audit for separating detectable shortcut effects from detectable overlap in the features. The distinction matters, but the test does not reveal a model’s causal reasoning or establish whether it would be fair or safe in clinical use.
Matching patients to probe the difference
The study examines frozen image features: numerical representations produced by a model before a simple disease classifier is trained. Researchers remove feature directions associated with age and sex, retrain the classifier, and measure the change in area under the receiver operating characteristic curve (AUC). AUC measures how well a model ranks positive cases above negative ones; it is not a measure of overall accuracy or clinical performance. An AUC drop alone cannot show whether the removed information was a shortcut or overlapping disease signal.
The proposed test pairs patients with and without a diagnosis who are similar in age and have the same sex, then repeats the erasure analysis. Within these matched sets, age and sex should carry almost no information about diagnosis—not necessarily none. The researchers compare the resulting erasure cost with a control: age and sex are randomly reassigned across patients, and the mean cost of erasing those shuffled demographic directions from the same matched set is subtracted. Repeating the matching helps assess whether a result is consistent across pairings.
The experiments cover six vision models and retinal photographs and chest X-rays. They also include constructed tests with known answers. When researchers increased age confounding by selecting younger controls, the age-matched excess cost stayed near its previous level, rather than increasing with the full-data erasure cost. They planted disease-related feature changes along an age-associated direction, and the test detected these in their experiments. But it is not infallible: a strongly age-driven planted shortcut produced false overlap signals in some DINOv2 trials.
What the audit found
Erasing age and sex reduced AUC in the studied settings before matching. After matching on both demographics, no measured excess cost exceeded the test’s stated resolution of 0.005 AUC. The authors therefore interpret the observed costs as demographic shortcuts rather than detectable overlap in these particular datasets and features. That conclusion is limited by the test’s resolution and does not rule out smaller overlaps.
The age-only results varied by model. For ODIR-5K glaucoma, RETFound showed a consistent residual after age matching, Dual-IFM showed a weaker trace, and DINOv2 showed none. For cardiomegaly in chest X-rays, all three models showed residuals after age matching. Matching on sex as well brought these residuals to around zero by the study’s measure. Thus, an age-only analysis could mistake sex-related reliance for overlap, but that pattern was not equally strong across all models or settings.
In PAPILA, a retinal dataset where glaucoma cases and healthy controls differed in age, erasing age and sex cost as much as 0.09 AUC in one model. After matching 79 pairs on age, the cost was no longer detectable. PAPILA was not also matched on sex, because the small matched set was considered too small for that analysis. For pleural effusion in chest X-rays, age matching also removed the measured cost.
A separate experiment partially fine-tuned RETFound using one training recipe. On PAPILA, overall AUC ranged from 0.827 to 0.837 across three seeds, compared with 0.826 for the frozen model. Among healthy eyes, the Spearman correlation between glaucoma score and age rose from 0.259 to 0.465–0.499. This suggests that, in this model and dataset, similar overall AUC could coexist with stronger age association. The result does not show that fine-tuning generally has this effect.
What remains uncertain
“No detectable overlap” is not proof that no biological overlap exists. The test resolves excesses of about 0.005 AUC, and smaller effects may go undetected. Correlated features can also allow a classifier to reconstruct some erased information, making overlap harder to detect. The false overlap signals in some planted-shortcut trials are another reason to treat small residuals cautiously.
The evidence has limits of scope. PAPILA’s age-matched analysis used only 79 pairs. Some ODIR-5K and NIH chest X-ray diagnoses were derived from recorded text labels, matching did not control for imaging site or device, and one chest X-ray model was pretrained on a corpus that included NIH ChestX-ray14. The fine-tuning experiment used one recipe; the clinician feature review was a single-reader pilot. Neither retinal dataset recorded ethnicity, so the study does not assess reliance on that characteristic.
The work is an arXiv preprint, not a peer-reviewed clinical evaluation. Its contribution is a proposed audit method and evidence from particular models, datasets, and analyses—not a verdict on clinical fairness. It makes a case for interpreting feature-erasure results with matched comparisons, controls, and attention to what the test can and cannot detect.
- medical AI
- foundation models
- algorithmic fairness
- demographic shortcuts
- feature erasure
- retinal imaging
- chest X-rays
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
ECG Models: Heart-Failure Risk and Fairness
Supporting evidence: Both studies show why aggregate predictive performance alone can miss demographic concerns, in different settings: Sharma reports that PAPILA fine-tuning nearly doubled age-tracking in healthy eyes without changing AUC, while Patel et al. report that the supervised ResNet1D had the best mean C-index but larger racial performance disparities than the pretrained ECG model. These findings support the bounded point that aggregate scores do not by themselves characterize demographic behavior; the imaging modalities, tasks, and fairness measures differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.38022v1 — Original paper
Excerpt reference:
static/papers/2611.38022v1.md:13-83
Basis: Paper text
Source file SHA-256:fcac150635b368fa15855c1d34c1d44a64d314ef151291ceb16e2d82251801c72611.38022v1 — Original paper
Excerpt reference:
static/papers/2611.38022v1.md:84-201
Basis: Paper text
Source file SHA-256:fcac150635b368fa15855c1d34c1d44a64d314ef151291ceb16e2d82251801c72611.40104v1 — Original paper
Excerpt reference:
static/papers/2611.40104v1.md:150-277
Basis: Paper text
Source file SHA-256:ee97756755b6e2be51a003fc6bd55f9dd6e8989da71630d1ba66342d40c0499d2611.40104v1 — Original paper
Excerpt reference:
static/papers/2611.40104v1.md:278-322
Basis: Paper text
Source file SHA-256:ee97756755b6e2be51a003fc6bd55f9dd6e8989da71630d1ba66342d40c0499d
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Where medical AI fairness gaps may arise
Source published
Shared keywords: algorithmic fairness, chest x rays, medical ai
How retinal AI can connect answers to evidence
Source published
Shared keywords: medical ai, retinal imaging
Can medical AI learn from past cases without repeating their mistakes?
Source published
Shared keywords: medical ai
How Medical AI Can Learn Which Tools to Use
Source published
Shared keywords: chest x rays, medical ai
ECG Models: Heart-Failure Risk and Fairness
Source published
Shared keywords: algorithmic fairness, foundation models