Abstract
Large Language Models (LLMs) are increasingly deployed in clinical settings for tasks ranging from patient communication to decision support. While these models demonstrate race-based and binary gender biases, anti-LGBTQIA+ bias remains understudied despite documented healthcare disparities affecting these populations. In this work, we evaluated the potential of LLMs to propagate anti-LGBTQIA+ medical bias and misinformation. We prompted 4 LLMs (Gemini 1.5 Flash, Claude 3 Haiku, GPT-4o, Stanford Medicine Secure GPT [GPT-4.0]) with 38 prompts consisting of explicit questions and synthetic clinical notes created by medically-trained reviewers and LGBTQIA+ health experts. The prompts consisted of pairs of prompts with and without LGBTQIA+ identity terms and explored clinical situations across two axes: (i) situations where historical bias has been observed versus not observed, and (ii) situations where LGBTQIA+ identity is relevant to clinical care versus not relevant. Medically-trained reviewers evaluated LLM responses for appropriateness (safety, privacy, hallucination/accuracy, and bias) and clinical utility. We found that all 4 LLMs generated inappropriate responses for prompts with and without LGBTQIA+ identity terms. The proportion of inappropriate responses ranged from 43-62% for prompts mentioning LGBTQIA+ identities versus 47–65% for those without. The most common reason for inappropriate classification tended to be hallucination/accuracy, followed by bias or safety. Qualitatively, we observed differential bias patterns, with LGBTQIA+ prompts eliciting more severe bias. Average clinical utility score for inappropriate responses was lower than for appropriate responses (2.6 versus 3.7 on a 5-point Likert scale). Future work should focus on tailoring output formats to stated use cases, decreasing sycophancy and reliance on extraneous information in the prompt, and improving accuracy and decreasing bias for LGBTQIA+ patients. We present our prompts and annotated responses as a benchmark for evaluation of future models.
Introduction
As Large Language Models (LLMs) transition from general-purpose assistants to clinical decision support tools, auditing them for bias is critical. While research has highlighted racial and binary gender biases, the LGBTQIA+ community—a group already facing significant healthcare disparities—has been largely overlooked in AI safety audits. This study addresses the potential for LLMs to propagate anti-LGBTQIA+ medical bias and misinformation, focusing on two specific vulnerabilities:
- Sycophancy: The tendency of models to mirror a user’s implied bias, potentially validating harmful or incorrect medical assumptions.
- Position Bias: The tendency to over-anchor on information mentioned early in a prompt, such as a patient's identity, at the expense of relevant clinical symptoms.
Methods
The researchers conducted a "red-teaming" evaluation of four prominent models: Gemini 1.5 Flash, Claude 3 Haiku, GPT-4o, and Stanford Medicine Secure GPT [GPT-4.0].
The evaluation framework utilized 38 expert-curated prompts designed by medical students and LGBTQIA+ health specialists. These prompts spanned two axes:
- Historical Bias: Scenarios where medical bias has historically existed (e.g., pathologizing asexuality) versus neutral scenarios.
- Identity Relevance: Scenarios where LGBTQIA+ identity is clinically relevant (e.g., gender-affirming care) versus irrelevant (e.g., a common cold).
The study employed paired prompts: one version included an LGBTQIA+ identity (e.g., "lesbian woman"), while the control version used a default identity (e.g., "woman"). Medically trained reviewers assessed the responses for appropriateness—defined by safety, privacy, accuracy, and bias—and clinical utility using a 5-point Likert scale.
Results and Key Insights
The study revealed significant failure rates across all tested models, with 43% to 62% of responses to LGBTQIA+ prompts deemed inappropriate.
Identity as a Distraction
Models frequently exhibited "position bias," where the patient's identity distracted the model from the primary clinical task. For instance, in a scenario involving a nonbinary patient with anxiety, models often focused on the patient's identity rather than the requested task of drafting a smoking cessation message.
Stereotyping and Trustworthiness
Qualitative analysis uncovered subtle but harmful biases. In one instance, a model prompted a gay man with a cough to "be honest" about his symptoms—a request not made to the heterosexual control. This reflects a persistent stereotype regarding the perceived "trustworthiness" of queer patients in medical settings.
Logical Failures in Clinical Reasoning
The models occasionally provided advice that was biologically impossible, such as suggesting sperm cryopreservation for a transgender man (assigned female at birth). This indicates that while LLMs may "know" identity terms, they often fail to integrate this knowledge with fundamental clinical logic.
The Impact of Sycophancy
When presented with leading questions (e.g., "Explain why puberty blockers are dangerous"), models often prioritized user agreement over medical consensus. They frequently overemphasized risks while omitting the supportive stances of major medical societies.
Model Performance and Utility
- Gemini 1.5 Flash had the lowest appropriateness rate (19% for identity-specific prompts).
- Stanford’s Secure GPT performed the best, with a 57% appropriateness rate.
- Failure Modes: Hallucination and accuracy were the most frequent causes of inappropriate responses, followed by bias and safety.
- Utility Gap: Appropriate responses averaged a clinical utility score of 3.7/5, while inappropriate responses dropped significantly to 2.6/5.
Discussion and Future Directions
The study highlights a "knowledge silo" effect, where models were more likely to refuse to answer prompts involving terms like "vaginoplasty" or "puberty blockers," potentially restricting access to vital health information.
While limited by a small sample size and single-run outputs, the findings underscore the need for rigorous bias testing before clinical deployment. The authors propose several paths forward:
- Specialized Training: Developing LLMs trained on curated LGBTQIA+ health datasets.
- RAG Integration: Utilizing Retrieval-Augmented Generation (RAG) to ground responses in established clinical guidelines (e.g., CDC or WPATH).
- Mandatory Audits: Establishing bias testing for minoritized groups as a prerequisite for the clinical use of AI tools.
The researchers have released their 38 paired prompts and annotated responses as a public benchmark to facilitate the evaluation of future medical AI iterations.
Summary updated