TL;DR
This paper investigates whether large language models (LLMs) like ChatGPT can replace specialized models for understanding biomedical text. The authors find that while LLMs show promise, fine-tuned transformer models, particularly PubMedBERT, still outperform them on crucial tasks like intent detection and named entity recognition (NER) in the biomedical domain, especially with limited training data.
What Problem Does This Paper Address?
The explosion of biomedical literature online has led to a surge in specialized search queries. Effectively processing these queries requires understanding user intent (what the user is looking for) and extracting key entities (like diseases, drugs, or symptoms). While recent advancements in large language models (LLMs) have demonstrated impressive general intelligence, it's unclear if they can match or surpass the performance of task- and domain-specific Natural Language Understanding (NLU) approaches in complex fields like biomedicine. This paper aims to bridge this gap by empirically evaluating LLMs against fine-tuned models on biomedical intent detection and NER tasks.
Methods
The researchers employed a comparative approach, evaluating both large language models and supervised fine-tuned (SFT) models.
- Large Language Models (LLMs): They used instruction-tuned ChatGPT (gpt-3.5-turbo-instruct) and Llama-2 (7b). For intent detection, they used a k-shot prompting strategy (providing a few examples per class). For NER, they adapted a tag generation approach, where each entity type is predicted individually.
- Supervised Fine-Tuned (SFT) Models: A variety of SFT models were evaluated, including:
- Transformer-based models: BERT, RoBERTa (pre-trained on general English), and domain-specific models like BioBERT, PubMedBERT, BioMed RoBERTa, and ClinicalBERT (pre-trained on biomedical text).
- Traditional models: LSTM and CNNs (with and without CRF layers), and a handcrafted feature-based ML classifier (XGBoost, Logistic Regression).
- State-of-the-art NER model: BINDER, combined with various encoders.
The evaluation focused on strict F1-scores for NER and accuracy for intent detection, with careful attention to experimental setup, including training epochs, learning rates, and batch sizes.
Datasets
The study utilized several established datasets for evaluation:
- Named Entity Recognition (NER) Datasets:
- JNLPBA (Genetics)
- DDI (Drug-Drug Interactions)
- BC5CDR (Chemicals and Diseases)
- NCBI-Disease (Diseases)
- AnatEM (Anatomy)
- Intent Detection Datasets:
- CMID (Chinese Medical Question Intent Classification)
- KUAKE-QIC (part of the CBLUE benchmark)
- Intent-Merged Dataset: A novel dataset created by combining the intent labels from DDI, NCBI-Disease, and JNLPBA with their respective NER datasets. This dataset was created to evaluate intent detection in a domain-specific context. The CMID and KUAKE-QIC datasets, originally in Chinese, were translated to English and validated by human experts.
Key Insights and Ideas
- SFT Models Still Reign Supreme: Despite the hype around LLMs, fine-tuned transformer models, especially those pre-trained on biomedical data (like PubMedBERT), consistently outperform general-purpose LLMs on both intent detection and NER tasks in this domain.
- Domain Knowledge is Crucial: The poor performance of LLMs on the "Intent-Merged" dataset highlights their deficiency in specialized domain knowledge, even when fine-tuned. This suggests that while LLMs have broad capabilities, they struggle to match the nuanced understanding of domain-specific models.
- Few-Shot Learning Advantage: PubMedBERT, even with just 5 supervised examples, can surpass ChatGPT on biomedical NER benchmarks. This is a significant finding, demonstrating the efficiency of specialized models in low-data scenarios.
- BINDER Enhances Performance: The BINDER model, when combined with PubMedBERT, shows remarkable performance, especially in few-shot settings. This suggests that its bi-encoder architecture, trained with contrastive learning, effectively leverages high-quality embeddings and entity descriptions.
- LLMs Struggle with Structure: The paper notes that LLMs, like Llama-2, can struggle with structured output and may "hallucinate" text, indicating a need for more robust control mechanisms for specific tasks.
Key Results
- Intent Detection: All SFT approaches consistently outperformed instruction-tuned ChatGPT. RoBERTa achieved the highest average accuracy across the intent detection datasets.
- Named Entity Recognition (NER):
- Transformer-based SFT models (BERT, RoBERTa, BioBERT, PubMedBERT, etc.) significantly outperformed ChatGPT, with PubMedBERT showing particularly strong results.
- BINDER combined with PubMedBERT achieved the highest macro-average F1-score (86.04) across the five NER datasets.
- Models like LSTM/CNN and traditional ML-based models performed poorly, indicating the importance of contextual understanding and domain-specific pretraining.
- In few-shot settings (5-10 shots), BINDER-PubMedBERT significantly outperformed raw PubMedBERT.
Limitations and Future Work
- Dataset Scalability: The authors acknowledge that their datasets need to be scaled up in terms of different languages, sizes, and intent labels.
- Multilingual and Joint Models: Future work will focus on developing a single model for jointly extracting intents and entities across multiple languages and exploring cross-domain scenarios.
- Error Analysis: The paper identified specific error types, such as misclassification of "other" intents and challenges in identifying "drug_n" entities (representing new or unapproved drugs), suggesting the need for periodic model updates.
Summary updated