Skip to main content
BMJ Health & Care Informatics logoLink to BMJ Health & Care Informatics
. 2026 Sep 24;33(1):e102380. doi: 10.1136/bmjhci-2026-102380

Sex and gender bias in large language models: an old problem at a new scale

Chiara Barbati 1, Virginia Casigliani 2, Caterina Rizzo 2, Anna Odone 1,3,✉
PMCID: PMC13629956  PMID: 42785922

Abstract

Patients are increasingly turning to large language models for health information, which makes the consistency of these systems’ outputs across patient groups a public health concern. Demographic bias is harder to see than fabrication because it escapes accuracy benchmarks and shows up instead in the language the models produce. Gender bias is the form most consistently reported, with effects on clinical documentation and reasoning that often compound with ethnicity, socioeconomic status and other attributes. Drawing on evidence from gender medicine, we argue that it calls for sex- and gender-disaggregated evaluation, gender-medicine expertise in benchmark design and stratified monitoring after deployment. The methods needed for this already exist. What is still unsettled is whether gender equity will be treated as a design requirement or left until its consequences can no longer be ignored.

Keywords: Access to Information, Artificial intelligence, Large Language Models, Health Equity


The recent benchmark study published in The Lancet Digital Health on Large Language Models’ (LLMs) susceptibility to data fabrication and misinformation in healthcare contexts is a timely reminder of how little is understood about the real-world impact of these tools and which populations are most exposed to it.1 2 For some, cost barriers and entrenched distrust in traditional healthcare systems may be driving a growing share of patients to use generative artificial intelligence (AI) as their first point of contact for health-related decisions.3 4 Roughly one in three adults now reports turning to AI chatbots for health information, a proportion comparable to that reported for social media, and around one in five of these users cite difficulties in affording or accessing care as a reason.5 The populations most likely to substitute AI for clinical contact, namely people facing cost and access barriers, may be those already disadvantaged within health systems, raising the possibility that biased outputs could compound pre-existing inequities. This shift makes the quality and consistency of these systems’ outputs a public health concern.

While recent attention has largely focused on data fabrication and health misinformation,6 uneven performance across patient groups is a separate problem and a harder one to detect: fabrication can be caught by accuracy benchmarks, whereas demographic bias can pass them undetected. As with earlier machine learning models,7 8 LLMs are susceptible to multiple forms of bias, including racial and ethnic bias, age, disability, socioeconomic status and sexual orientation.9 Among these, gender bias has emerged as the most consistently identified form, being reported in 15 of 16 studies that specifically evaluated it in a recent systematic review,9 even accounting for the fact that such targeted evaluations remain a minority within the broader literature.

Several studies have begun to document the implications of LLMs’ gender bias in clinically relevant tasks. In long-term care documentation, models such as Google Gemma have been reported to apply direct and clinically complex language when describing male patients, while adopting a more euphemistic and reductive register for women, showing a pattern that systematically risks under-representing the severity of female patients’ care needs, with direct implications for service and treatment allocation.10 These differences were not observed for Llama 3 in the same evaluation, suggesting that their presence and direction vary across models.10 Similarly, OpenAI GPT-4 has been found to perpetuate demographic stereotypes in clinical reasoning tasks. For example, when presented with standardised case vignettes, the model ranked panic and anxiety disorder significantly higher on the differential diagnosis list for female patients than for male patients and was more likely to characterise White male patients as exaggerating their pain, as compared with Asian males and females.11 Similar counterfactual evaluations, in which clinical information is held constant while demographic attributes are varied, have identified differences in diagnostic ranking, treatment and referral recommendations across other model families and healthcare contexts.12

The direction of these distortions is not uniform, which suggests that gender bias is bidirectional and context-dependent rather than a disadvantage applied only to women. Nor does it operate along a single axis. The same methodological point was first made outside healthcare, where disaggregated auditing showed that strong aggregate performance can conceal severe subgroup failures, with misclassification rates for darker-skinned women far exceeding those of any other group.13 This pattern is now documented in clinical LLMs: across more than 1.7 million outputs from nine models, identical cases differing only in sociodemographic descriptors received systematically divergentmanagement recommendations, with markers of gender, ethnicity, socioeconomic status and sexual orientation compounding rather than averaging out.14 Because most evaluations interrogate one protected attribute at a time, the harms concentrated at these intersections remain largely invisible to current benchmarks, a gap that the case for feminist intersectionality in digital health had already anticipated.15

Part of why these harms stay invisible is that they are harder to measure than those of earlier systems. In conventional machine learning the output is a structured value, such as a label, a probability or a risk score, which can be compared across groups using standard fairness metrics. In a generative model, the output is free text, so bias appears in word choice, tone and level of clinical detail, as in the long-term care example above. Metrics designed for discrete outputs do not capture it, and it must be assessed in the generated language itself. Differences in models, clinical tasks and measures used across studies also make the magnitude of these disparities difficult to quantify across the current literature. The evidence also has a clear limit, as it comes almost entirely from controlled model evaluations, using standardised vignettes, synthetic cases or retrospective notes, while data from prospective studies of patients are still lacking. It therefore shows that the models produce biased outputs, but not yet whether, or how much, this changes clinical decisions or outcomes in practice.

Two conceptual issues further characterise the state of sex and gender bias in LLMs. First, current AI evaluation frameworks rarely distinguish between sex (a biological variable) and gender (a social construct).9 16 Most assessments treat gender identity as a proxy, with open questions on whether clinically relevant sex-based differences in physiology and disease presentation were ever meaningfully represented. In text-based interaction, this difficulty is compounded, since a model never observes biological sex directly but infers gender from names, pronouns or self-report, applying a social signal as a proxy for a biological variable. Second, evidence on non-binary gender identities remains exceptionally limited, although recent evaluations in psychiatric diagnosis suggest that demographic disparities also affect non-binary profiles, with lower diagnostic accuracy than for binary profiles.9 17

Neither failure is new to healthcare. The systematic under-representation of women and minority groups in clinical research is a structural problem that gender medicine has long documented18 19 as is the absence of consideration for social sex and gender differences in the design of healthcare tools and technologies.15 AI inherits this legacy at two levels: in data, where decades of unequal representation in the biomedical literature become training corpora, and in algorithms, where mathematical fairness corrections applied downstream may offer only a superficial guarantee of impartiality, leaving the structural and social roots of the inequity unaddressed.8 16 20 21

Several mitigation approaches are emerging. On the technical side, these include gender-sensitive word embeddings that weight training data according to the number of female participants represented in the underlying clinical studies,21 as well as parameter-efficient fine-tuning on curated examples and prompting strategies that explicitly incorporate fairness criteria into model instructions. Recent evaluations suggest that combining fine-tuning with fairness-oriented prompting can reduce gender- and race-related disparities across both linguistic and clinical-content measures, although results vary across datasets and measures.22 Participatory evaluation using adversarial red-teaming can further identify bias patterns that may be missed by conventional performance evaluation,20 while structured stakeholder involvement can incorporate different perspectives into the definition and evaluation of potential harms.23 In terms of reporting guidelines, both the Transparent Reporting of a multivariable prediction model for Individual Prognosis Or Diagnosis (TRIPOD)-LLM24 and the Chatbot Assessment Reporting Tool (CHART),25 developed respectively for biomedical LLM applications and conversational AI systems, emphasise the need to document dataset stratification and balance, report bias-mitigation strategies, and provide fairness-oriented interpretation of results. These approaches nevertheless have important limitations: model-level interventions remain dependent on potentially biased source data, red-teaming is shaped by the failure modes being sought, and reporting guidelines are voluntary, with little evidence as yet that reductions in measured bias translate into reduced disparities in downstream care.

Whether medical-specific LLMs offer an advantage over general-purpose models in addressing these disparities remains uncertain. Domain-specific training or fine-tuning may improve performance on selected clinical tasks and has been proposed as a potential means of reducing social bias.12 However, medical specialisation does not necessarily remove biases already present in biomedical and clinical data, and gender-related disparities have been observed in medical-specific models.22 Medical-specific LLMs may therefore provide further opportunities for targeted mitigation, but whether they are more equitable than general-purpose models remains to be established.

These are promising steps, even if they may not yet have been taken with sufficient urgency. If LLMs are to serve as a common interface for health information,3 4 their validation cannot be exhausted by statistical parity metrics without systematically considering their ability to navigate differences in symptom expression, help-seeking language and narrative style, identified by gender medicine but rarely considered in AI model design and deployment.9 15 16 Moreover, the shift from one-time evaluations to continuous monitoring23 should take into account existing disparities: populations such as women, who are under-represented in both AI development and adoption, may generate less feedback data, risking a cycle in which prior under-representation is carried forward into the monitoring phase itself.16 26

Behind these technical choices lies a question of governance. The development of LLMs is concentrated in a small number of large, predominantly private actors, and both the workforce that builds these systems and the corpora that train them under-represent women and lower-income, non-English-speaking populations.26 The WHO guidance on AI for health already lists equity among its core principles and calls on governments to establish bodies for the independent evaluation and oversight of AI in health.27 Whether such oversight becomes binding, rather than a voluntary commitment on the part of developers, will shape whose differences these systems are ultimately built to recognise.

These concerns have to be weighed against the access the same tools can provide. Generative AI is available continuously, can operate across languages and may offer a first point of contact for people effectively excluded from care.28 Proponents further argue that bias is a tractable problem, addressable through a maturing toolkit of evaluation and mitigation techniques29 and that vignette-based findings may overstate the behaviour of deployed, safety-tuned systems. These arguments have merit, but they do not dissolve the concern: in safety-aligned models, implicit biases persist and still predict discriminatory clinical decisions,30 so uncorrected bias erodes precisely the benefit for the groups expected to gain most, and the current lack of outcome-level evidence is a reason for caution.

The evidence base and the methodological tools to systematically address sex and gender bias in LLMs already exist across the development and evaluation pipeline. In practice, this would mean requiring sex- and gender-disaggregated reporting in the evaluation of clinical LLMs, embedding gender-medicine expertise in the design of benchmarks and stratifying post-deployment surveillance by sex and gender. The question is whether gender equity will be treated as a foundational requirement for the design and deployment of these systems, or, as before, addressed only once the consequences become impossible to ignore.

Footnotes

Funding: This research was supported by the National '5xMille' 2022 tax donation to Fondazione I.R.C.C.S. Policlinico San Matteo (Project code 5M-2022-23685615: PREdicting and preventing Surgical site Infections with Data-driven Intelligent Algorithms (PRESID-IA) at Fondazione I.R.C.C.S. Policlinico San Matteo).

Patient consent for publication: Not applicable.

Ethics approval: Not applicable.

Provenance and peer review: Not commissioned; externally peer reviewed.

References

  • 1.Omar M, Sorin V, Wieler LH, et al. Mapping the susceptibility of large language models to medical misinformation across clinical notes and social media: a cross-sectional benchmarking analysis. Lancet Digit Health. 2026;8:100949. doi: 10.1016/j.landig.2025.100949. [DOI] [PubMed] [Google Scholar]
  • 2.The Lancet Digital Health Large language models and misinformation. The Lancet Digital Health. 2026;8:100975. doi: 10.1016/j.landig.2025.100975. [DOI] [PubMed] [Google Scholar]
  • 3.Heumann RA, Steinhubl SR. Diverging trajectories of trust in healthcare and on-line information seeking: what’s next with LLMs. NPJ Digit Med . 2026;9:102. doi: 10.1038/s41746-026-02408-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Bean AM, Payne RE, Parsons G, et al. Reliability of LLMs as medical assistants for the general public: a randomized preregistered study. Nat Med. 2026;32:609–15. doi: 10.1038/s41591-025-04074-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.KFF Poll: 1 in 3 adults are turning to ai chatbots for health information, equaling the share who use social media for health. 2026. https://www.kff.org/health-information-trust/poll-1-in-3-adults-are-turning-to-ai-chatbots-for-health-information-equaling-the-share-who-use-social-media-for-health Available.
  • 6.De Angelis L, Baglivo F, Arzilli G, et al. ChatGPT and the rise of large language models: the new AI-driven infodemic threat in public health. Front Public Health. 2023;11:1166120. doi: 10.3389/fpubh.2023.1166120. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Cabanillas Silva P, Sun H, Rodriguez-Brazzarola P, et al. Evaluating gender bias in ML-based clinical risk prediction models: A study on multiple use cases at different hospitals. J Biomed Inform. 2024;157:104692. doi: 10.1016/j.jbi.2024.104692. [DOI] [PubMed] [Google Scholar]
  • 8.Pfohl SR, Foryciarz A, Shah NH. An empirical characterization of fair machine learning for clinical risk prediction. J Biomed Inform. 2021;113:103621. doi: 10.1016/j.jbi.2020.103621. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Omar M, Sorin V, Agbareia R, et al. Evaluating and addressing demographic disparities in medical large language models: a systematic review. Int J Equity Health. 2025;24:57. doi: 10.1186/s12939-025-02419-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Rickman S. Evaluating gender bias in large language models in long-term care. BMC Med Inform Decis Mak. 2025;25:274. doi: 10.1186/s12911-025-03118-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Zack T, Lehman E, Suzgun M, et al. Assessing the potential of GPT-4 to perpetuate racial and gender biases in health care: a model evaluation study. Lancet Digit Health. 2024;6:e12–22. doi: 10.1016/S2589-7500(23)00225-X. [DOI] [PubMed] [Google Scholar]
  • 12.Liu C, Zheng J, Liu Y, et al. Potential to perpetuate social biases in health care by Chinese large language models: a model evaluation study. Int J Equity Health. 2025;24:206. doi: 10.1186/s12939-025-02581-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Joy Buolamwini TG. Gender shades: intersectional accuracy disparities in commercial gender classification. Proceedings of the 1st Conference on Fairness, Accountability and Transparency; 2018. pp. 77–91. [Google Scholar]
  • 14.Omar M, Soffer S, Agbareia R, et al. Sociodemographic biases in medical decision making by large language models. Nat Med. 2025;31:1873–81. doi: 10.1038/s41591-025-03626-6. [DOI] [PubMed] [Google Scholar]
  • 15.Figueroa CA, Luo T, Aguilera A, et al. The need for feminist intersectionality in digital health. Lancet Digit Health. 2021;3:e526–33. doi: 10.1016/S2589-7500(21)00118-7. [DOI] [PubMed] [Google Scholar]
  • 16.Cirillo D, Catuara-Solarz S, Morey C, et al. Sex and gender differences and biases in artificial intelligence for biomedicine and healthcare. NPJ Digit Med . 2020;3:81. doi: 10.1038/s41746-020-0288-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Pendse SR, Jain M, Kumar N, et al. Implicit Gender, Racial, and Ethnic Biases in Large Language Models: An Audit Study of Automated Psychiatric Diagnoses. Mayo Clin Proc Digit Health. 2026;4:100344. doi: 10.1016/j.mcpdig.2026.100344. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Mauvais-Jarvis F, Bairey Merz N, Barnes PJ, et al. Sex and gender: modifiers of health, disease, and medicine. Lancet. 2020;396:565–82. doi: 10.1016/S0140-6736(20)31561-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Heidari S, Babor TF, De Castro P, et al. Sex and Gender Equity in Research: rationale for the SAGER guidelines and recommended use. Res Integr Peer Rev. 2016;1:2. doi: 10.1186/s41073-016-0007-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Pfohl SR, Cole-Lewis H, Sayres R, et al. A toolbox for surfacing health equity harms and biases in large language models. Nat Med. 2024;30:3590–600. doi: 10.1038/s41591-024-03258-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Agmon S, Gillis P, Horvitz E, et al. Gender-sensitive word embeddings for healthcare. J Am Med Inform Assoc. 2022;29:415–23. doi: 10.1093/jamia/ocab279. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Lu H, Lin Y, Li Z, et al. Toward fair medical advice: Addressing and mitigating bias in large language model-based healthcare applications. Artif Intell Med. 2025;168:103216. doi: 10.1016/j.artmed.2025.103216. [DOI] [PubMed] [Google Scholar]
  • 23.Templin T, Fort S, Padmanabham P, et al. Framework for bias evaluation in large language models in healthcare settings. NPJ Digit Med . 2025;8:414. doi: 10.1038/s41746-025-01786-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Gallifant J, Afshar M, Ameen S, et al. The TRIPOD-LLM reporting guideline for studies using large language models. Nat Med. 2025;31:60–9. doi: 10.1038/s41591-024-03425-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Huo B, Collins GS, Chartash D, et al. Reporting Guideline for Chatbot Health Advice Studies. JAMA Netw Open . 2025;8:e2530220. doi: 10.1001/jamanetworkopen.2025.30220. [DOI] [PubMed] [Google Scholar]
  • 26.Bolis M. The AI Gender Gap Paradox Stanford Social Innovation Review. 2025. https://ssir.org/articles/entry/ai-gender-gap-paradox Available.
  • 27.World Health Organization Ethics and governance of artificial intelligence for health: guidance on large multi-modal models. 2025 doi: 10.3760/cma.j.cn112150-20240709-00548. [DOI] [PubMed]
  • 28.Rodriguez JA, Alsentzer E, Bates DW. Leveraging large language models to foster equity in healthcare. J Am Med Inform Assoc. 2024;31:2147–50. doi: 10.1093/jamia/ocae055. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Gallegos IO, Rossi RA, Barrow J, et al. Bias and Fairness in Large Language Models: A Survey. Computational Linguistics. 2024;50:1097–179. doi: 10.1162/coli_a_00524. [DOI] [Google Scholar]
  • 30.Jia Q, Wen Y, Liu Y, et al. Implicit bias in safety-aligned large language models: A multi-faceted evaluation of clinical decision-making and health equity. PLoS One. 2026;21:e0348819. doi: 10.1371/journal.pone.0348819. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from BMJ Health & Care Informatics are provided here courtesy of BMJ Publishing Group

RESOURCES