Skip to main content
QUICK REVIEW

[Paper Review] A comparative study of zero-shot inference with large language models and supervised modeling in breast cancer pathology classification

Madhumita Sushil, Travis Zack|arXiv (Cornell University)|Jan 25, 2024
Machine Learning in HealthcareComputer Science3 citations
TL;DR

This study compares zero-shot inference using GPT-4 and GPT-3.5 against supervised models (random forest, LSTM-Att, UCSF-BERT) on a manually labeled dataset of 769 breast cancer pathology reports across 13 classification tasks. GPT-4 achieved an average macro F1 score of 0.83, outperforming the best supervised model (LSTM-Att, F1=0.75), especially in imbalanced settings, demonstrating LLMs' potential to reduce reliance on large annotated datasets in clinical NLP.

ABSTRACT

Although supervised machine learning is popular for information extraction from clinical notes, creating large annotated datasets requires extensive domain expertise and is time-consuming. Meanwhile, large language models (LLMs) have demonstrated promising transfer learning capability. In this study, we explored whether recent LLMs can reduce the need for large-scale data annotations. We curated a manually-labeled dataset of 769 breast cancer pathology reports, labeled with 13 categories, to compare zero-shot classification capability of the GPT-4 model and the GPT-3.5 model with supervised classification performance of three model architectures: random forests classifier, long short-term memory networks with attention (LSTM-Att), and the UCSF-BERT model. Across all 13 tasks, the GPT-4 model performed either significantly better than or as well as the best supervised model, the LSTM-Att model (average macro F1 score of 0.83 vs. 0.75). On tasks with high imbalance between labels, the differences were more prominent. Frequent sources of GPT-4 errors included inferences from multiple samples and complex task design. On complex tasks where large annotated datasets cannot be easily collected, LLMs can reduce the burden of large-scale data labeling. However, if the use of LLMs is prohibitive, the use of simpler supervised models with large annotated datasets can provide comparable results. LLMs demonstrated the potential to speed up the execution of clinical NLP studies by reducing the need for curating large annotated datasets. This may result in an increase in the utilization of NLP-based variables and outcomes in observational clinical studies.

Motivation & Objective

  • To evaluate whether large language models (LLMs) can reduce the need for large-scale, manually annotated clinical datasets in breast cancer pathology classification.
  • To compare the zero-shot classification performance of GPT-4 and GPT-3.5 against supervised models on a curated dataset of 769 pathology reports.
  • To assess the impact of label class imbalance on LLM and supervised model performance.
  • To identify error patterns in LLM inference, particularly in complex or multi-sample reasoning tasks.
  • To evaluate the feasibility of using LLMs to accelerate clinical NLP research by minimizing data curation efforts.

Proposed method

  • Curated a manually-labeled dataset of 769 breast cancer pathology reports, annotated with 13 diagnostic and pathological categories.
  • Applied zero-shot prompting to GPT-4 and GPT-3.5 models, providing only class descriptions without fine-tuning.
  • Trained and evaluated three supervised models: random forest classifier, LSTM with attention (LSTM-Att), and UCSF-BERT.
  • Used macro F1 score as the primary evaluation metric across all 13 classification tasks.
  • Analyzed error types in GPT-4 predictions, focusing on multi-sample inference and complex task design.
  • Compared model performance across all tasks, with special attention to imbalanced label distributions.

Experimental results

Research questions

  • RQ1Can zero-shot LLM inference with GPT-4 achieve comparable or better performance than supervised models in breast cancer pathology classification?
  • RQ2How does label class imbalance affect the performance of zero-shot LLMs versus supervised models?
  • RQ3What are the primary error sources in GPT-4’s zero-shot predictions for clinical pathology reports?
  • RQ4Does the use of LLMs significantly reduce the need for large-scale data annotation in clinical NLP tasks?
  • RQ5Under what conditions do supervised models with large annotated datasets remain preferable to zero-shot LLMs?

Key findings

  • GPT-4 achieved an average macro F1 score of 0.83 across all 13 classification tasks, outperforming the best supervised model, LSTM-Att, which achieved 0.75.
  • On tasks with high label imbalance, GPT-4’s performance advantage over supervised models was more pronounced.
  • Common error sources in GPT-4 included incorrect inferences drawn from multiple reports and difficulties with complex task design.
  • The performance gap between GPT-4 and supervised models was most significant in low-resource or imbalanced label scenarios.
  • Despite error patterns, GPT-4 demonstrated strong zero-shot generalization, suggesting reduced dependency on large annotated datasets.
  • When LLM use is not feasible, supervised models trained on large annotated datasets can still deliver comparable performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.