arXiv 2508.09087 · 2025

Addressing Bias in VLMs for Glaucoma Detection Without Protected Attribute Supervision

Fairer vision–language glaucoma screening, with no race, gender or ethnicity labels at training time.

Ahsan Habib Akash1Greg Murray1Annahita Amireskandari1Joel Palko1Carol Laxson1Binod Bhattarai2Prashnna Gyawali1
1West Virginia University, Morgantown, WV, USA2University of Aberdeen, UK
Framework diagram. Top branch: clinical notes and fundus images pass through text and vision encoders into contrastive text-image matching, giving per-sample CLIP losses and a top-k CLIP loss gradient. Bottom branch: augmented image pairs pass through the vision encoder into contrastive image-image matching, giving per-sample contrastive losses and their gradients. The dot product of the two gradients gives weights that scale the contrastive loss.
Debiased VLM. A pretrained VLM aligns fundus images with clinical notes through the symmetric CLIP loss. The gradient of a top-k CLIP loss, which focuses on the hardest image–text pairs, is compared with each image pair’s contrastive-loss gradient. The alignment becomes a per-sample weight on the contrastive loss, so the visual encoder puts more effort into hard examples while keeping multimodal alignment.
Overview

Fairness when the protected attributes are hidden

Glaucoma is a leading cause of irreversible blindness and hits underserved populations hardest. Vision–language models can read fundus images alongside clinical notes, but pretraining data are imbalanced, and these models can perform worse for some demographic groups. Most debiasing methods, FairCLIP among them, need the protected attribute during training. That is often impossible for legal, ethical or regulatory reasons, and such methods usually handle one attribute at a time.

This work debiases a CLIP-style model without any protected-attribute labels. It follows the worst-case (Rawlsian) view of fairness: rather than equalizing known groups, it reduces the loss on the hardest examples, wherever they come from.

17.10 → 3.50EOD for ethnicity (lower is fairer)
58.2 → 70.2AUC for Spanish-speaking patients, 1.7% of the cohort
57.9 → 63.1AUC for Hispanic patients, 4.0% of the cohort
0protected-attribute labels used in training

Abstract

Vision–Language Models (VLMs) have achieved remarkable success on multimodal tasks such as image–text retrieval and zero-shot classification, yet they can demonstrate demographic biases even when explicit protected attributes are absent during training. In this work, we focus on automated glaucoma screening from retinal fundus images, a critical application given that glaucoma is a leading cause of irreversible blindness and disproportionately affects underserved populations. Building on a reweighting-based contrastive learning framework, we introduce an attribute-agnostic debiasing method that (i) infers proxy subgroups via unsupervised clustering of image–image embeddings, (ii) computes gradient-similarity weights between the CLIP-style multimodal loss and a SimCLR-style image-pair contrastive loss, and (iii) applies these weights in a joint, top-k weighted objective to upweight underperforming clusters. This label-free approach adaptively targets the hardest examples, thereby reducing subgroup disparities. We evaluate our method on the Harvard–FairVLMed glaucoma subset, reporting Equalized-Odds Distance (EOD), Equalized Subgroup AUC (ES-AUC), and Groupwise AUC to demonstrate equitable performance across inferred demographic subgroups.

Method

Surrogate weighting from gradient alignment

  1. Focus on the hardest pairs. Instead of averaging the CLIP loss over the batch, take the mean of the top-k per-sample losses. This is a smooth surrogate for minimizing the worst latent group’s loss.

    ℓtopk-clip = ½ Σm [ LCLIP(x̃m, tm) − λclip ]+ / k + λclip

    where λclip is the k-th largest loss.
  2. Score each image pair. Two augmentations of every image give a SimCLR-style contrastive loss ℓctr. For each view m, the weight is the alignment between its gradient and the top-k CLIP gradient, clipped at zero:

    wm = max{ (∇θI ℓtopk-clip)⊤ ∇θI ℓctr(x̃m), 0 }

  3. Reweight. The weights are normalized into a distribution and applied to the contrastive loss, so the image pairs whose updates most reduce the hardest CLIP losses get the most emphasis.
MethodSupervision requiredObjective
CLIPNoneLCLIP
FairCLIPProtected attributeLCLIP + λ · adversarial term on attribute a
Debiased CLIP (ours)NoneΣi wi L(Ii, Ti), with wi from gradient alignment
One model covers every attribute. FairCLIP trains a separate model per protected attribute and needs that attribute’s labels.
Data and protocol

Harvard–FairVLMed

10,000 de-identified records from 10,000 patients, each with a fundus image, a clinical note (11–332 words, mean 147) and a glaucoma label. The original split is used: 7,000 train, 1,000 validation and 2,000 test. Demographics are used only for evaluation: 7,690 White, 1,491 Black and 819 Asian patients; 56.3% female; 4.0% Hispanic; 92.5% English-speaking and 1.7% Spanish-speaking.

CLIP ViT-L is fine-tuned on image–note pairs and then evaluated zero-shot with the prompts “This image contains glaucoma” and “This image does not contain glaucoma”. Metrics, all in percent:

Results

CLIP vs. Debiased CLIP across six attributes

Debiased CLIP lowers EOD on four of six attributes (ethnicity, language, age, marital status) and raises ES-AUC on five (all but gender). Small minority groups often gain the most. Race and gender get worse on EOD, and gender also loses ES-AUC.

EOD ↓
ES-AUC ↑
CLIP ViT-LDebiased CLIP ViT-L

Full table

Zero-shot transfer on Harvard–FairVLMed. All values in percent.

Citation

BibTeX

@article{akash2025debiasedvlm,
  title   = {Addressing Bias in VLMs for Glaucoma Detection Without
             Protected Attribute Supervision},
  author  = {Akash, Ahsan Habib and Murray, Greg and Amireskandari, Annahita and
             Palko, Joel and Laxson, Carol and Bhattarai, Binod and Gyawali, Prashnna},
  journal = {arXiv preprint arXiv:2508.09087},
  year    = {2025}
}
Acknowledgment

Supported by the Defense Advanced Research Projects Agency under Grant AI-CRAFT AWD16069, and by the National Institutes of Health under Grant P20 GM144230 from the National Institute of General Medical Sciences (NIGMS).