Abstract
Large language models (LLMs) like GPT-3 are frequently celebrated for their "few-shot" learning capabilities. However, in specialized domains like biomedical information extraction (IE), the performance of in-context learning (ICL) remains under-scrutinized compared to traditional fine-tuning. This paper systematically evaluates GPT-3 against smaller, domain-specific models like PubMedBERT. The findings reveal that even with advanced prompting optimizations, GPT-3 is significantly outperformed by fine-tuned models, particularly due to its struggles with the "null class" and poor data efficiency.
Introduction
Information Extraction (IE)—encompassing Named Entity Recognition (NER) and Relation Extraction (RE)—is vital for processing the vast biomedical literature. Annotating such data is costly and requires expert knowledge, making the "zero-training" promise of In-Context Learning (ICL) highly attractive. This study investigates whether GPT-3's ICL can truly replace the traditional workflow of fine-tuning smaller, specialized models on limited labeled data.
Methodology
The authors employ a "true few-shot" evaluation setting, preventing "cheating" via large validation sets for prompt tuning. To optimize GPT-3's performance, they implement several techniques:
- Task Linearization: Converting IE tasks into natural language generation.
- k-Nearest Neighbor (kNN) Retrieval: Selecting the most relevant training examples for each prompt.
- Logit Biasing: Restricting NER outputs to tokens present in the source text to prevent hallucinations.
- Contextual Calibration: Adjusting for the model's inherent label biases.
These optimizations are benchmarked against fine-tuned versions of PubMedBERT, BioBERT, and RoBERTa using the BLURB benchmark, which includes datasets like BC5CDR and DDI.
Key Results and Insights
The quantitative results demonstrate a substantial performance gap. Fine-tuned PubMedBERT achieved an average F1 of 68.2 in NER, compared to GPT-3’s 51.5. In RE, RoBERTa-large reached 47.4 F1, while GPT-3 lagged at 36.0.
Several critical issues were identified:
- The "Null Class" Problem: GPT-3 often fails to recognize when no entities or relations are present, leading to high false-positive rates. In the real world, where many sentences contain no relevant information, this is a major drawback.
- Data Inefficiency: While fine-tuned models scale well with more data (e.g., moving from 100 to 500 examples), GPT-3’s performance plateaus quickly. If you have the resources to label a few hundred examples, fine-tuning is the clear winner.
- Surface-Level Heuristics: Explainability analysis suggests GPT-3 relies on keyword signals, whereas fine-tuned models better capture the actual linguistic structure of the sentence.
- Economic Paradox: The API costs for GPT-3 experiments (~$1,500) far exceed the cost of training a BERT-sized model on local hardware, which yields better results.
Conclusion
While LLMs offer convenience, they are currently not a substitute for domain-specific fine-tuning in high-precision biomedical IE tasks. The study suggests that researchers should prioritize small, well-trained models over expensive, black-box LLMs when labeled data—even in small amounts—is available.
Summary updated