[Paper Review] Identifying and Extracting Rare Disease Phenotypes with Large Language Models
This study evaluates zero-shot and few-shot prompt learning with ChatGPT for extracting rare disease phenotypes from unstructured clinical text, comparing it to fine-tuned BioClinicalBERT. Despite lower overall performance (F1 0.472–0.591 vs. 0.689), ChatGPT outperforms fine-tuned models on rare diseases and signs in the one-shot setting (F1 0.776 and 0.725), demonstrating potential for low-resource phenotyping with minimal labeled data.
Rare diseases (RDs) are collectively common and affect 300 million people worldwide. Accurate phenotyping is critical for informing diagnosis and treatment, but RD phenotypes are often embedded in unstructured text and time-consuming to extract manually. While natural language processing (NLP) models can perform named entity recognition (NER) to automate extraction, a major bottleneck is the development of a large, annotated corpus for model training. Recently, prompt learning emerged as an NLP paradigm that can lead to more generalizable results without any (zero-shot) or few labeled samples (few-shot). Despite growing interest in ChatGPT, a revolutionary large language model capable of following complex human prompts and generating high-quality responses, none have studied its NER performance for RDs in the zero- and few-shot settings. To this end, we engineered novel prompts aimed at extracting RD phenotypes and, to the best of our knowledge, are the first the establish a benchmark for evaluating ChatGPT's performance in these settings. We compared its performance to the traditional fine-tuning approach and conducted an in-depth error analysis. Overall, fine-tuning BioClinicalBERT resulted in higher performance (F1 of 0.689) than ChatGPT (F1 of 0.472 and 0.591 in the zero- and few-shot settings, respectively). Despite this, ChatGPT achieved similar or higher accuracy for certain entities (i.e., rare diseases and signs) in the one-shot setting (F1 of 0.776 and 0.725). This suggests that with appropriate prompt engineering, ChatGPT has the potential to match or outperform fine-tuned language models for certain entity types with just one labeled sample. While the proliferation of large language models may provide opportunities for supporting RD diagnosis and treatment, researchers and clinicians should critically evaluate model outputs and be well-informed of their limitations.
Motivation & Objective
- To evaluate the performance of large language models, specifically ChatGPT, in zero-shot and few-shot settings for rare disease phenotype extraction.
- To benchmark ChatGPT’s named entity recognition (NER) performance against fine-tuned BioClinicalBERT on rare disease phenotypes.
- To investigate whether effective prompt engineering can enable ChatGPT to match or exceed fine-tuned models for specific entity types with minimal labeled examples.
- To provide a foundation for using generative LLMs as pre-annotation tools in rare disease phenotyping, reducing manual curation burden.
Proposed method
- Reformulated named entity recognition (NER) as a text generation task using custom prompts to extract four entity types: rare diseases, diseases, signs, and symptoms.
- Designed sentence-based prompts for zero-shot and few-shot inference, avoiding complex list formats to reduce computational cost and improve performance.
- Evaluated ChatGPT’s performance using exact match and partial match criteria on a subset of the RareDis corpus (832 texts).
- Compared results against a fine-tuned BioClinicalBERT model, which achieved an F1 score of 0.689 on the same test set.
- Conducted in-depth error analysis to identify failure modes, including boundary errors and spurious/missed entities due to ambiguous or nested phenotypic descriptions.
- Used standard NLP evaluation metrics (precision, recall, F1) and performed error categorization by entity type and error type (boundary, spurious, missed).
Experimental results
Research questions
- RQ1Can ChatGPT achieve competitive performance in zero-shot and few-shot settings for rare disease phenotype extraction without fine-tuning?
- RQ2Does prompt engineering significantly influence the performance of generative LLMs in biomedical NER tasks?
- RQ3For which entity types (e.g., rare diseases, signs, symptoms) does ChatGPT outperform fine-tuned models in low-data regimes?
- RQ4What are the primary error patterns in LLM-based phenotype extraction, and how do they relate to clinical text complexity?
Key findings
- Fine-tuned BioClinicalBERT achieved the highest overall F1 score (0.689), outperforming both zero-shot and few-shot ChatGPT settings.
- In the one-shot setting, ChatGPT achieved an F1 score of 0.776 for rare diseases and 0.725 for signs—surpassing the performance of fine-tuned BioClinicalBERT on these specific entity types.
- ChatGPT demonstrated strong pre-annotation potential, achieving F1 scores of 0.761 for rare diseases and 0.627 for signs in the zero-shot setting.
- Boundary errors and spurious/missed entities were the most common error types, particularly for signs and symptoms, due to complex or ambiguous clinical descriptions.
- Sentence-based prompts outperformed or matched list-based prompts and reduced computational cost, suggesting they are more effective and efficient for this task.
- Despite lower overall performance, the results indicate that with appropriate prompt design, generative LLMs like ChatGPT can match or exceed fine-tuned models for specific rare disease entity types in low-resource scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.