Evaluation of ChatGPT Family of Models for Biomedical Reasoning and Classification

Shan Chen, Yingya Li, Sheng Lu, Hoang Van, Hugo J. W. L. Aerts, Guergana K. Savova, Danielle S. BittermanarXiv 2023 · DOI

Abstract

Recent advances in large language models (LLMs) have shown impressive ability in biomedical question-answering, but have not been adequately investigated for more specific biomedical applications. This study investigates the performance of LLMs such as the ChatGPT family of models (GPT-3.5s, GPT-4) in biomedical tasks beyond question-answering. Because no patient data can be passed to the OpenAI API public interface, we evaluated model performance with over 10,000 samples as proxies for two fundamental tasks in the clinical domain: classification and reasoning. The first task is classifying whether statements of clinical and policy recommendations in scientific literature constitute health advice. The second task is causal relation detection from the biomedical literature. We compared LLMs with simpler models, such as bag-of-words (BoW) with logistic regression, and fine-tuned BioBERT models. Despite the excitement around viral ChatGPT, we found that fine-tuning for two fundamental NLP tasks remained the best strategy. The simple BoW model performed on par with the most complex LLM prompting. Prompt engineering required significant investment.

Introduction

Large Language Models (LLMs) have demonstrated remarkable general-purpose reasoning and question-answering capabilities. However, the medical field is a high-stakes domain where generalities are insufficient. While models like GPT-4 have excelled at medical board exams (USMLE), their utility for specific, fundamental NLP tasks in clinical workflows remains less clear.

This research addresses two critical gaps. First, it moves beyond general Q&A to evaluate task specificity in classification (identifying the strength of health advice) and reasoning (detecting causal vs. correlational relationships). Second, it considers practicality and privacy. Proprietary models like GPT-4 require data transmission to external APIs, which is often prohibited for Protected Health Information (PHI). By using biomedical literature as a proxy, this study evaluates whether the "prompting" paradigm is a viable, efficient alternative to traditional "fine-tuning" for clinical applications.

Methods and Datasets

The study compared three distinct modeling approaches:

  1. Frontier LLMs: GPT-3.5 (Davinci and Turbo) and GPT-4, evaluated using zero-shot, few-shot, and Chain-of-Thought (CoT) prompting strategies.
  2. Domain-Specific Specialist: BioBERT, a version of BERT pre-trained on PubMed, fine-tuned on the task-specific datasets.
  3. Simple Baseline: A classic Bag-of-Words (BoW) model using logistic regression.

Performance was measured using Macro-F1 scores. Crucially, the researchers also tracked the human time investment required for prompt engineering versus model training.

The evaluation utilized two open-source biomedical datasets:

  • HealthAdvice: Over 10,000 sentences from medical abstracts and discussion sections, labeled by recommendation strength (No advice, Weak advice, Strong advice).
  • CausalRelation: Over 3,000 PubMed conclusion sentences labeled by reasoning type (Correlational, Conditional Causal, Direct Causal, or No Relationship).

Key Results: The Fine-Tuning Advantage

The results consistently showed that specialized, fine-tuned models outperform general-purpose LLMs in these specific biomedical tasks. BioBERT achieved the highest Macro-F1 scores across all categories, ranging from 0.800 to 0.902 for classification and 0.851 for reasoning.

Performance comparison across biomedical classification and reasoning tasks.

In contrast, GPT-4’s best performance (using few-shot CoT) reached only 0.648–0.770 for classification and 0.682 for reasoning. Notably, the simple Bag-of-Words model performed on par with the most complex GPT-3.5 prompting strategies, suggesting that for many classification tasks, simple frequency-based features remain highly robust.

The Hidden Cost of Prompting

A major finding of this study is the significant disparity in development efficiency. While LLMs are often marketed as "off-the-shelf" solutions, achieving peak performance requires extensive prompt engineering.

Macro F1 vs. development time for different modeling approaches.

The researchers spent approximately 78.4 hours developing and testing prompts for the GPT models. In comparison, training the BioBERT and BoW models required less than 5 minutes (0.078 hours) of computational time once the data was prepared. Furthermore, LLM performance proved highly fragile; small changes in "exemplars" or prompt wording led to significant variations in outcomes, characterizing prompt engineering more as a "black art" than a stable engineering discipline.

Discussion and Limitations

While GPT-4 showed significant gains when using Chain-of-Thought (CoT) prompting—nearly doubling F1 scores in some reasoning tasks—it still failed to match the accuracy of smaller, specialized models.

However, this study has limitations. The use of medical literature is a proxy for real Electronic Medical Record (EMR) data, which may be "messier." Additionally, the evaluation was limited to classification and reasoning. Future work should expand to Named Entity Recognition (NER) and relation extraction. The potential for fine-tuning "medium-sized" open-source LLMs (7B–13B parameters) also remains a promising middle ground for clinical applications where privacy and performance are both paramount.

Summary updated

BibTeX
@misc{chen2023evaluation,
  author = {Shan Chen and Yingya Li and Sheng Lu and Hoang Van and Hugo J. W. L. Aerts and Guergana K. Savova and Danielle S. Bitterman},
  title = {{Evaluation of ChatGPT Family of Models for Biomedical Reasoning and Classification}},
  year = {2023},
  eprint = {2304.02496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.02496},
}
Figure