Skip to content

The Prompt Is a Confounder: A Counterfactual Audit of Demographic Bias in the Text Channel of Medical Vision-Language Models

Aug 2026 · Zenodo (CERN European Organization for Nuclear Research)

Abstract

Parts I and II of this series audited and attempted to remediate subgroup disparities in chest radiograph(CXR) classifi ers, and Part II declared an explicit limitation: multimodal systems combining imageswith clinical text were out of scope, because “text-derived features may carry demographic informationmore directly than images.” This paper closes that gap. We audit BiomedCLIP, an open-weightbiomedical vision-language model, on 25,596 radiographs from 2,797 patients in the offi cial NIHChestX-ray14 test split, and ask a question that observational subgroup audits structurally cannot: whathappens to the diagnosis when the patient’s demographics are stated in thepromptwhile the image, themodel, the label, and the decision threshold are all held fi xed?The answer is that the prompt is a diagnostic input. Naming a demographic group in the text changesthe false-negative rate by 15.5 percentage points on average and by up to 73.8 points in the worst cell,fl ips the binary call on a median 14.1% of positive cases, and degrades AUC by up to 0.137 — the last ofwhich matters because a threshold cannot change AUC, so that component is not an operating-pointartifact and no post-hoc correction can absorb it. Every one of these fi gures is reported as excess over abank of content-free qualifi ers (“a hospital patient”, “a patient referred for imaging”), which weintroduce as a necessary control: the format eff ect alone produces an apparent gap of 8.9 points,comparable to race’s 12.0, so an audit lacking this control would attribute most of a grammatical artifactto demography.We replicate on two further models spanning a domain-specifi city axis — PubMedCLIP (radiologycaptions) and OpenAI CLIP (general web) — and the replication both strengthens and corrects theaccount. The eff ect appears in all three, in 365 of 375 cells atq< 0.05, and it islargest in OpenAI CLIP,which detects no fi nding above chance: 28.9 points of excess FNR and a 30.3% fl ip rate from a modelwith no radiographic competence. Prompt-channel bias is therefore not a model applying clinicaldemographic priors; it is a property of contrastive image–text pretraining with a pair readout. Againstthat, the ordering across descriptor families doesnotgeneralise — socioeconomic descriptors areBiomedCLIP’s second-largest family and PubMedCLIP’s smallest — so we report that as BiomedCLIP-specifi c rather than as a property of medical VLMs. Age descriptors dominate in all three.Three results explain and constrain the eff ect. First, for the standard positive/negative prompt-pairreadout the perturbation isexactly rank one— verifi ed to 4.6 × 10⁻⁶ across 420 (fi nding × descriptor)cells in every one of the three models — so it is a single fi xed direction independent of the image andtherefore not indexed by the patient’s true group. This places prompt-channel biasupstreamof everydecision-rule remedy in Part II’s stage taxonomy: group-specifi c thresholds provably cannot remove it.Second, the eff ect decomposes into an image-independent component that behaves like an uncontrolledthreshold off set and an image-specifi c component that re-ranks patients; the latter is 26–43% of themean-square shift and is irreducible. Third, because the design is paired at the image level, itsminimum detectable eff ect is 3.4 points against 9.4 for an equivalent observational audit — anobservational study would need roughly 5.9× more positive cases — which dissolves, for this class ofbias, the audit-power obstacle Part II quantifi ed.A positive control validates the congruence null. Section 7 fi nds that the model responds to a stated sexbut essentially not to whether it is true, which is only meaningful if the estimator can detect evidenceuse at all. Substituting view position — recorded in the metadata and plainly visible in the radiograph— yields a diff erence-in-diff erences 16.9× larger, signifi cant in 11 of 11 fi ndings against 1 of 11 for sex, atgreater precision. The sex null is substantive, not a power failure. For mitigation we compare prompt symmetrisation, which inserts the descriptor into both prompts ofthe pair, against the orthogonal and calibrated text-side projections of Chuang et al. On BiomedCLIPsymmetrisation reduces mean absolute excess FNR from 15.5 to 5.2 points at no utility cost, while bothprojections reach only 8.4–9.5 points and cost 6–7 AUC points. We are explicit that symmetrisation isthe zero-cost degenerate limit of Chuang et al.’s calibration objective rather than a new idea. It also doesnot always work: it reduces the eff ect by about 60% on BiomedCLIP and OpenAI CLIP but is inert onPubMedCLIP. We proposed, and Section 10.4 withdraws, a text-only statistic intended to predict thatfailure in advance: it is contradicted by OpenAI CLIP within these same results, and by twohistopathology encoders out of domain. Whether symmetrisation will work must therefore bemeasured on the model in question, which is cheap but not free. We conclude that any deploymenttemplating patient metadata into a promptable diagnostic model has introduced a bias channel that itsimage-side audit cannot see and its threshold policy cannot fi x.

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Conference Open access Dec 2013

Affordable and Energy-Efficient Cloud Computing Clusters: The Bolzano Raspberry Pi Cloud Cluster Experiment

The ongoing work building a Raspberry Pi cluster consisting of 300 nodes is presented, with potential use cases being an inexpensive and green test bed for cloud computing research and a robust and mobile data center for operating in adverse environments.

P. Abrahamsson, S. Helmer, Nattakarn Phaphoom et al. · 110 citations · ⚡7
#computer vision Book Open access Mar 2017

On the Unhappiness of Software Developers

The results indicate that software developers are a slightly happy population, but the need for limiting the unhappiness of developers remains, and 219 factors representing causes of unhappiness while developing software are identified.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 84 citations · ⚡6

Related blog posts

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

Microsoft Research Blog Oct 15, 2026

Proof-based general-purpose computing with Magnetar

Zero-knowledge proofs can verify computing results without rerunning workloads or exposing sensitive data. Magnetar helps bring them into the mainstream with support for standard programming languages, major speed gains, and quantum-resistant security. The post Proof-based general-purpose computing with Magnetar appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.