Exposing and Mitigating Calibration Biases and Demographic Unfairness in MLLM Few-Shot In-Context Learning for Medical Image Classification

Xing Shen, Justin Szeto, Mingyang Li, Hengguan Huang, Tal Arbel
6/29/2025
eess.IVcs.AIcs.CV

Official code: xingbpshen/medical-calibration-fairness-mllm (5 stars, MIT, PyTorch, last commit 2025-12-11).

Abstract

Multimodal large language models (MLLMs) have enormous potential to perform few-shot in-context learning in the context of medical image analysis. However, safe deployment of these models into real-world clinical practice requires an in-depth analysis of the accuracies of their predictions, and their associated calibration errors, particularly across different demographic subgroups. In this work, we present the first investigation into the calibration biases and demographic unfairness of MLLMs' predictions and confidence scores in few-shot in-context learning for medical image classification. We introduce CALIN, an inference-time calibration method designed to mitigate the associated biases. Specifically, CALIN estimates the amount of calibration needed, represented by calibration matrices, using a bi-level procedure: progressing from the population level to the subgroup level prior to inference. It then applies this estimation to calibrate the predicted confidence scores during inference. Experimental results on three medical imaging datasets: PAPILA for fundus image classification, HAM10000 for skin cancer classification, and MIMIC-CXR for chest X-ray classification demonstrate CALIN's effectiveness at ensuring fair confidence calibration in its prediction, while improving its overall prediction accuracies and exhibiting minimum fairness-utility trade-off. Our codebase can be found at https://github.com/xingbpshen/medical-calibration-fairness-mllm.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

[MICCAI 2025] The official implementation of the paper "Exposing and Mitigating Calibration Biases and Demographic Unfairness in MLLM Few-Shot In-Context Learning for Medical Image Classification".

50TeX, PythonJun 25, 202510 months agoMIT
confidence-calibrationfairness-mllarge-language-modelsmachine-learningmedical-imaging+5 more

Similar Papers

Cite this paper

@article{shen2025exposing,
  title  = {Exposing and Mitigating Calibration Biases and Demographic Unfairness in MLLM Few-Shot In-Context Learning for Medical Image Classification},
  author = {Xing Shen and Justin Szeto and Mingyang Li and Hengguan Huang and Tal Arbel},
  year   = {2025},
  eprint = {2506.23298},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.23298v3}
}

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/2506.23298.svg)](https://codeofpaper.com/paper/2506.23298)

Discussion