A Comprehensive Evaluation of Large Language Models on Benchmark Biomedical Text Processing Tasks

Israt Jahan, Md Tahmid Rahman Laskar, Chun Peng, Jimmy HuangarXiv 2023 · arXiv

TL;DR

This paper presents the first comprehensive evaluation of four popular Large Language Models (LLMs) across 6 diverse biomedical text processing tasks using 26 benchmark datasets. The authors discover that while zero-shot LLMs generally underperform compared to models fine-tuned on massive datasets, they consistently outperform state-of-the-art models on smaller datasets, making them highly valuable for low-resource biomedical applications.

What Problem Does This Paper Address?

In the biomedical domain, specialized language models like BioBERT, BioBART, and BioGPT have driven significant progress. However, these models require extensive fine-tuning on large, domain-specific annotated datasets. Creating these datasets is incredibly time-consuming and expensive due to the expert knowledge required.

While general-purpose LLMs (like ChatGPT) have shown incredible zero-shot capabilities in standard natural language processing (NLP) tasks, their performance in the highly specialized and linguistically complex biomedical domain remained largely unmapped. This paper addresses this gap by benchmarking how well general LLMs handle biomedical text processing without explicit task-specific training.

Methods

The authors evaluated four prominent LLMs: GPT-3.5 (gpt-3.5-turbo-0613), PaLM-2 (text-bison@001), Claude-2, and LLaMA-2-13B.

They designed task-specific prompts to evaluate these models across six core biomedical text processing tasks. Because LLMs generate free-form text that can be difficult to parse automatically, the authors implemented three distinct evaluation pipelines:

  1. Automatic Evaluation: Used for generative tasks like text summarization (leveraging metrics like ROUGE and BERTScore).
  2. Human Evaluation: Used for complex discriminative tasks like Relation Extraction, where multiple valid phrasing variations exist.
  3. Hybrid Evaluation: An automated script first parsed the LLM responses against gold-standard labels; any ambiguous or unparseable outputs were then manually reviewed by human annotators.
Figure 1: An overview of our methodology to evaluate 6 biomedical tasks across 26 datasets in this paper. At first, we construct the prompt for each dataset. Then, we generate the response for each dataset using respective LLMs. Finally, depending on the task, we apply various evaluation techniques.

Beyond zero-shot testing, the authors also investigated the effects of prompt variations, few-shot learning (using Claude-2's massive 100k token context window), fine-tuning (using LLaMA-2-7B), and potential data contamination.

Datasets

The study utilized 26 benchmark datasets categorized by task:

  • Named Entity Recognition (NER): BC2GM, BC4CHEMD, BC5CDR-CHEM, BC5CDR-Disease, JNLPBA, NCBI-Disease, LINNAEUS, s800.
  • Relation Extraction (RE): BC5CDR, KD-DTI, DDI.
  • Entity Linking (EL): BC5CDR, COMETA, NCBI.
  • Text Classification: HoC (Hallmarks of Cancer), LitCovid.
  • Question Answering (QA): PubMedQA, MEDIQA-2019.
  • Text Summarization: iCliniq, HealthCareMagic, MeQSum, MEDIQA-QS, MEDIQA-MAS, MEDIQA-ANS, eLife, PLOS.

Key Insights and Ideas

  • No "One LLM to Rule Them All": Performance varies significantly by task. Claude-2 excelled at structured sequence tasks like NER and Entity Linking; PaLM-2 was superior in Text Classification; GPT-3.5 dominated Text Summarization.
  • The "Small Data" Advantage: In scenarios with fewer than 1,000 training samples (e.g., the BC5CDR relation extraction dataset), zero-shot LLMs actually beat specialized models that were fine-tuned on those small sets. This implies that massive general pre-training gives LLMs an edge when task-specific data is scarce.
  • Extreme Sensitivity to Prompt Detail: For classification tasks, providing explicit definitions of classes within the prompt is critical. Stripping class definitions from the prompt dropped GPT-3.5’s F1 score on the HoC dataset from 59.26 down to 46.93.
  • Few-Shot Learning Can Backfire: Counterintuitively, moving from 0-shot to 1-shot or 3-shot prompts occasionally decreased performance in tasks like NER and Entity Linking, likely due to the models introducing prediction biases based on the provided examples.

Key Results

  • Relation Extraction: On the small BC5CDR dataset, zero-shot PaLM-2 achieved an F1 score of 54.30, significantly outperforming the fine-tuned BioGPT baseline (46.17).
  • Named Entity Recognition: All zero-shot LLMs struggled immensely with traditional BIO formatting (tagging tokens as Beginning, Inside, or Outside an entity). Claude-2 was the best-performing LLM but still trailed far behind fine-tuned BioBERT (e.g., an F1 of 40.45 vs SOTA 84.72 on BC2GM).
  • Question Answering: On the MEDIQA-2019 dataset, zero-shot GPT-3.5 achieved an accuracy of 73.26%, approaching the SOTA fine-tuned ALBERT model (79.49%).
  • Fine-Tuning Impact: Fine-tuning a smaller open-source model (LLaMA-2-7B) on small datasets yielded massive improvements, setting a new SOTA on the MeQSum summarization dataset (ROUGE-1 of 55.8) and matching SOTA on PubMedQA (78.00% accuracy).

Limitations and Future Work

The authors noted several limitations:

  1. BIO Formatting Inefficiency: Generative LLMs are fundamentally ill-suited for token-level BIO tagging tasks in a zero-shot setting.
  2. Data Contamination: Contamination analysis revealed that some models (like Claude-2 and LLaMA-2 on PubMedQA) likely encountered parts of these evaluation datasets during their original pre-training, artificially inflating certain scores.
  3. Context Constraints: Smaller context windows (like LLaMA-2's 4,000 tokens) limit an LLM's utility when processing long biomedical documents or multi-shot examples.

Future work will focus on exploring multimodal LLMs for biomedical image processing, addressing privacy concerns, and evaluating smaller open-source models optimized specifically for biomedical literature.

Summary updated

Abstract

Recently, Large Language Models (LLM) have demonstrated impressive capability to solve a wide range of tasks. However, despite their success across various tasks, no prior work has investigated their capability in the biomedical domain yet. To this end, this paper aims to evaluate the performance of LLMs on benchmark biomedical tasks. For this purpose, we conduct a comprehensive evaluation of 4 popular LLMs in 6 diverse biomedical tasks across 26 datasets. To the best of our knowledge, this is the first work that conducts an extensive evaluation and comparison of various LLMs in the biomedical domain. Interestingly, we find based on our evaluation that in biomedical datasets that have smaller training sets, zero-shot LLMs even outperform the current state-of-the-art fine-tuned biomedical models. This suggests that pretraining on large text corpora makes LLMs quite specialized even in the biomedical domain. We also find that not a single LLM can outperform other LLMs in all tasks, with the performance of different LLMs may vary depending on the task. While their performance is still quite poor in comparison to the biomedical models that were fine-tuned on large training sets, our findings demonstrate that LLMs have the potential to be a valuable tool for various biomedical tasks that lack large annotated data.
BibTeX
@misc{jahan2023comprehensive,
  author = {Israt Jahan and Md Tahmid Rahman Laskar and Chun Peng and Jimmy Huang},
  title = {{A Comprehensive Evaluation of Large Language Models on Benchmark Biomedical Text Processing Tasks}},
  year = {2023},
  eprint = {2310.04270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.04270},
}

Loading related content...

Figure