Table of Contents
Fetching ...

Enabling Scalable Evaluation of Bias Patterns in Medical LLMs

Hamed Fayyaz, Raphael Poulain, Rahmatollah Beheshti

TL;DR

This work tackles the scalability gap in bias evaluation for medical LLMs by introducing an evidence-grounded vignette generation pipeline that leverages biomedical knowledge graphs and external knowledge sources. The method combines retrieval, controlled vignette generation, hallucination filtering, and outcome-independence checks to produce robust red-teaming scenarios with augmented sensitive attributes. Across obesity and other medical domains, the approach improves faithfulness, diversity, and domain specificity of vignettes, supports human-in-the-loop evaluation, and enables practical bias assessments using standard fairness metrics. The combination of knowledge-grounded generation and rigorous filtering offers a scalable path to responsible Med LLM deployment with more reliable bias detection. The work provides a public dataset, a live vignette demo, and code to promote adoption and further research in medical AI fairness.

Abstract

Large language models (LLMs) have shown impressive potential in helping with numerous medical challenges. Deploying LLMs in high-stakes applications such as medicine, however, brings in many concerns. One major area of concern relates to biased behaviors of LLMs in medical applications, leading to unfair treatment of individuals. To pave the way for the responsible and impactful deployment of Med LLMs, rigorous evaluation is a key prerequisite. Due to the huge complexity and variability of different medical scenarios, existing work in this domain has primarily relied on using manually crafted datasets for bias evaluation. In this study, we present a new method to scale up such bias evaluations by automatically generating test cases based on rigorous medical evidence. We specifically target the challenges of a) domain-specificity of bias characterization, b) hallucinating while generating the test cases, and c) various dependencies between the health outcomes and sensitive attributes. To that end, we offer new methods to address these challenges integrated with our generative pipeline, using medical knowledge graphs, medical ontologies, and customized general LLM evaluation frameworks in our method. Through a series of extensive experiments, we show that the test cases generated by our proposed method can effectively reveal bias patterns in Med LLMs at larger and more flexible scales than human-crafted datasets. We publish a large bias evaluation dataset using our pipeline, which is dedicated to a few medical case studies. A live demo of our application for vignette generation is available at https://vignette.streamlit.app. Our code is also available at https://github.com/healthylaife/autofair.

Enabling Scalable Evaluation of Bias Patterns in Medical LLMs

TL;DR

This work tackles the scalability gap in bias evaluation for medical LLMs by introducing an evidence-grounded vignette generation pipeline that leverages biomedical knowledge graphs and external knowledge sources. The method combines retrieval, controlled vignette generation, hallucination filtering, and outcome-independence checks to produce robust red-teaming scenarios with augmented sensitive attributes. Across obesity and other medical domains, the approach improves faithfulness, diversity, and domain specificity of vignettes, supports human-in-the-loop evaluation, and enables practical bias assessments using standard fairness metrics. The combination of knowledge-grounded generation and rigorous filtering offers a scalable path to responsible Med LLM deployment with more reliable bias detection. The work provides a public dataset, a live vignette demo, and code to promote adoption and further research in medical AI fairness.

Abstract

Large language models (LLMs) have shown impressive potential in helping with numerous medical challenges. Deploying LLMs in high-stakes applications such as medicine, however, brings in many concerns. One major area of concern relates to biased behaviors of LLMs in medical applications, leading to unfair treatment of individuals. To pave the way for the responsible and impactful deployment of Med LLMs, rigorous evaluation is a key prerequisite. Due to the huge complexity and variability of different medical scenarios, existing work in this domain has primarily relied on using manually crafted datasets for bias evaluation. In this study, we present a new method to scale up such bias evaluations by automatically generating test cases based on rigorous medical evidence. We specifically target the challenges of a) domain-specificity of bias characterization, b) hallucinating while generating the test cases, and c) various dependencies between the health outcomes and sensitive attributes. To that end, we offer new methods to address these challenges integrated with our generative pipeline, using medical knowledge graphs, medical ontologies, and customized general LLM evaluation frameworks in our method. Through a series of extensive experiments, we show that the test cases generated by our proposed method can effectively reveal bias patterns in Med LLMs at larger and more flexible scales than human-crafted datasets. We publish a large bias evaluation dataset using our pipeline, which is dedicated to a few medical case studies. A live demo of our application for vignette generation is available at https://vignette.streamlit.app. Our code is also available at https://github.com/healthylaife/autofair.

Paper Structure

This paper contains 22 sections, 9 equations, 2 figures, 5 tables.

Figures (2)

  • Figure 1: The proposed method's overview. Green boxes show a sample scenario related to our obesity case study.
  • Figure 2: Fraction of generated vignettes for each health outcome (rows) that are augmented with a demographic group (columns) by our pipeline.