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

Sahar Askari, Amin Golnari
11/23/2026
eess.IVcs.CVcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{askari2026demographic,
  title  = {Demographic Encoding is Not Exposure: Fairness and Privacy in Chest X-ray Foundation Models},
  author = {Sahar Askari and Amin Golnari},
  year   = {2026},
  eprint = {2611.31014},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.31014v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.31014.svg)](https://codeofpaper.com/paper/2611.31014)

Discussion