Improving Large Language Models for Clinical Named Entity Recognition via Prompt Engineering
Not on the map. Why?
Abstract (arXiv)
Objective: This study quantifies the capabilities of GPT-3.5 and GPT-4 for clinical named entity recognition (NER) tasks and proposes task-specific prompts to improve their performance. Materials and Methods: We evaluated these models on two clinical NER tasks: (1) to extract medical problems, treatments, and tests from clinical notes in the MTSamples corpus, following the 2010 i2b2 concept extraction shared task, and (2) identifying nervous system disorder-related adverse events from safety reports in the vaccine adverse event reporting system (VAERS). To improve the GPT models' performance, we developed a clinical task-specific prompt framework that includes (1) baseline prompts with task description and format specification, (2) annotation guideline-based prompts, (3) error analysis-based instructions, and (4) annotated samples for few-shot learning. We assessed each prompt's effectiveness and compared the models to BioClinicalBERT. Results: Using baseline prompts, GPT-3.5 and GPT-4 achieved relaxed F1 scores of 0.634, 0.804 for MTSamples, and 0.301, 0.593 for VAERS. Additional prompt components consistently improved model performance. When all four components were used, GPT-3.5 and GPT-4 achieved relaxed F1 socres of 0.794, 0.861 for MTSamples and 0.676, 0.736 for VAERS, demonstrating the effectiveness of our prompt framework. Although these results trail BioClinicalBERT (F1 of 0.901 for the MTSamples dataset and 0.802 for the VAERS), it is very promising considering few training samples are needed. Conclusion: While direct application of GPT models to clinical NER tasks falls short of optimal performance, our task-specific prompt framework, incorporating medical knowledge and training samples, significantly enhances GPT models' feasibility for potential clinical applications.
Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Builds on 14 of its 41 references that are in the map. First posted on arXiv 29 Mar 2023.
Builds on
14 of 41 references.
References · 14
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2023GPT-4 Technical Reportcited by 18,278
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
- 2022Emergent Abilities of Large Language Modelscited by 2,499
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,942
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,066
- 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 1,001
- 2019Publicly Available Clinical BERT Embeddingscited by 999
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 894
- 2015Bidirectional LSTM-CRF Models for Sequence Taggingcited by 545
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 490
2 more
Built on by
Citing papers per year: 2023: 2; 2024: 0; 2025: 1; 2026: 4.
7 papers.
- 2023Exploring Recommendation Capabilities of GPT-4V(ision): A Preliminary Case Studycited by 12
- 2025Navigating the Risks of Using Large Language Models for Text Annotation in Social Science Researchcited by 4
- 2023Graphene: Infrastructure Security Posture Analysis with AI-generated Attack Graphscited by 3
- 2026Empathy Applicability Modeling for General Health Queriescited by 0
- 2026Universal NER v2: Towards a Massively Multilingual Named Entity Recognition Benchmarkcited by 0
- 2026Scaling Performance and Low-Resource Annotation with Many-Shot In-Context Learning for Named Entity Recognitioncited by 0
- 2026Do It Right! A Methodology for Successful NLP System Developmentcited by 0
- 2026Do It Right! A Methodology for Successful NLP System Development6 Jul 2026
- 2026Scaling Performance and Low-Resource Annotation with Many-Shot In-Context Learning for Named Entity Recognition20 Jun 2026
- 2026Universal NER v2: Towards a Massively Multilingual Named Entity Recognition Benchmark14 Apr 2026
- 2026Empathy Applicability Modeling for General Health Queries14 Jan 2026
- 2025Navigating the Risks of Using Large Language Models for Text Annotation in Social Science Research27 Mar 2025
- 2023Graphene: Infrastructure Security Posture Analysis with AI-generated Attack Graphs20 Dec 2023
- 2023Exploring Recommendation Capabilities of GPT-4V(ision): A Preliminary Case Study7 Nov 2023