eess.IVNov 23, 2026

Demographic Encoding is Not Exposure: Fairness and Privacy in Chest X-ray Foundation Models

Authors: Sahar Askari, Amin Golnari

Organizations: Department of Computer Science and Engineering, Shiraz University, Shiraz, Iran. · College of Engineering & Computer Science, VinUniversity, Hanoi, Vietnam.

Abstract

Medical foundation models encode patient demographics and can reveal whether a patient was in the training set, and these properties are often treated as one problem. We tested whether they are aligned by measuring demographic encoding, diagnostic fairness gaps and membership-inference vulnerability on the same models. We trained 200 linear or multilayer-perceptron (MLP) heads on frozen BiomedCLIP, DINOv2 and RAD-DINO embeddings, with three seeds, and audited them on CheXpert and NIH ChestX-ray14. Demographic encoding explained almost no variance in patient vulnerability, and all 72 CheXpert associations were statistically equivalent to zero. Erasing linearly decodable demographics left leakage unchanged but reduced age-related underdiagnosis gaps. Leakage depended instead on head capacity and training length. On RAD-DINO, a linear head reached a membership-inference area under the curve (AUC) of 0.694, compared with 0.907 for a 30-epoch MLP, at similar test performance. Fairness and privacy should therefore be audited separately, and linear heads or shorter training reduce leakage with little or no loss of utility. The code is available on GitHub for public use.

Figures & tables

Explore similar work

CardsList
  1. Subgroup performance analysis of adaptation strategies for chest X-ray foundation models

    Aug 19, 2026Dhruv Gupta, Emma A. M. Stanley, Fabio De Sousa Ribeiro +2Chest X-Ray ClassificationMedical Imaging Foundation Models

  2. Representation Disentanglement for Fair Chest X-Ray Diagnosis

    Oct 5, 2026Yujie Sun, Ruizhe Li, Xiaowu SunChest X-Ray ClassificationRepresentation Disentanglement

  3. Race and gender differences in medical imaging models arise at the shared decision threshold

    Aug 26, 2026Mahshad Lotfinia, Daniel Truhn, Andreas Maier +1Fairness in Medical Image ClassificationAlgorithmic Fairness