Feasibility of Automatically Detecting Practice of Race-Based Medicine by Large Language Models

Akshay Swaminathan, Sid Salvi, Philip Chung, Alison Callahan, Suhana Bedi, Alyssa Unell, Mehr Kashyap, Roxana Daneshjou, Nigam Shah, Dev DashAAAI 2024

TL;DR

This paper introduces an automated method for detecting "race-based medicine" – harmful stereotypes linking race to genetics or clinical phenotypes – in Large Language Model (LLM) outputs. They developed an LLM-based evaluator agent that can identify such content, demonstrating its feasibility for ensuring safer LLM integration into healthcare.

What Problem Does This Paper Address?

Large Language Models (LLMs) are rapidly being explored for clinical applications, but a major hurdle is ensuring their outputs are safe and appropriate. One critical concern is the perpetuation of "race-based medicine," a practice where race is incorrectly associated with biological factors or clinical predispositions. This can stem from biased training data and lead to harmful stereotypes and inequitable care. Existing methods for evaluating LLM safety often lack specific mechanisms to detect these nuanced, yet dangerous, forms of bias in medical contexts. This paper aims to bridge this gap by creating an automated system to flag race-based medical content.

Methods

The core of this research is the development of a "race-based medicine LLM evaluator agent." This agent was built by first identifying the most effective LLM-prompt combination for detecting problematic content. They used a physician-labeled dataset of 181 LLM responses and evaluated four LLMs (GPT-3.5, GPT-4, GPT-4-0125, GPT-4-1106) with three different prompt types: simple, expert reviewer, and chain-of-thought. The LLM-prompt combination achieving the highest F1 score was then selected as the optimal evaluator. This chosen evaluator was subsequently used to assess the outputs of ten different LLMs across 13 questions related to race-based medicine, with each LLM responding ten times per question.

Datasets

  • Physician-labeled dataset: A dataset of 181 LLM responses, manually labeled by physicians to identify content perpetuating race-based medicine. This dataset was sourced from Omiye et al. (2023).
  • Newly introduced benchmark: While not a new dataset in terms of raw data, the paper utilizes a set of 13 questions designed to probe for race-based medicine content. Questions 1-9 were from the original dataset, and questions 10-13 were added to broaden the scope to include Asian and Hispanic/Latino populations. This set of questions, when used with LLMs and evaluated by the developed agent, forms a benchmark for assessing LLM performance in this domain.

Key Insights and Ideas

  • LLMs can be trained to detect harmful content: The study demonstrates that LLMs themselves can be fine-tuned or prompted to act as effective detectors of specific types of bias, like race-based medicine. This opens doors for automated safety checks within LLM pipelines.
  • Prompt engineering matters significantly: The choice of prompt dramatically impacts an LLM's ability to accurately identify race-based medicine. More sophisticated prompts, like those involving chain-of-thought reasoning, showed promise, though the "simple" prompt with GPT-4-0125-preview achieved the highest F1 score in the evaluator development phase.
  • Not all LLMs are created equal (in this regard): There's a wide variance in how well different LLMs resist perpetuating race-based medicine. Some models, like Claude-2, perform relatively well, while others, like falcon-7b-instruct, show significant deficiencies.
  • Automated evaluation is feasible and scalable: The developed evaluator agent provides a scalable solution to a complex problem, allowing for the assessment of a large number of LLM responses without requiring extensive human review for every output.

Key Results

The study successfully developed an LLM-based evaluator agent. The top-performing LLM-prompt combination for this evaluator was GPT-4-0125-preview with a "simple" prompt, achieving an F1 score of 0.919 on the physician-labeled dataset.

When benchmarking ten LLMs, the percentage of responses without debunked race-based content varied significantly:

  • Claude-2: 76%
  • GPT-3.5-turbo: 75%
  • Llama2-70b: 68%
  • GPT-4-0125-preview: 65%
  • GPT-4: 62%
  • GPT-4-1106-preview: 62%
  • MedPaLM-2: 59%
  • FLAN-T5-XXL: 55%
  • Mixtral-8x7B-Instruct-v0.1: 45%
  • Falcon-7b-instruct: 22%

Limitations and Future Work

  • Limited question set: The 13 questions used for evaluation, while covering various aspects, are derived from a "red teaming" effort and may not be exhaustive. Failing these questions indicates broader model issues, but a comprehensive benchmark would require a wider array of queries.
  • Future Work: The authors suggest future research should focus on improving the accuracy of LLMs in detecting race-based content and expanding benchmark datasets to cover a broader spectrum of medical queries and demographic representations. This ongoing effort is crucial for ensuring LLMs contribute to more equitable healthcare.

Summary updated

BibTeX
@inproceedings{swaminathan2024feasibility,
  author = {Akshay Swaminathan and Sid Salvi and Philip Chung and Alison Callahan and Suhana Bedi and Alyssa Unell and Mehr Kashyap and Roxana Daneshjou and Nigam Shah and Dev Dash},
  title = {{Feasibility of Automatically Detecting Practice of Race-Based Medicine by Large Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=sm9Udj2c6u},
}
Figure