FsPONER: Few-Shot Prompt Optimization for Named Entity Recognition in Domain-Specific Scenarios
Authors:
Open Access
- 16 October 2024
- book chapter
- Published by IOS Press
- p. 3757-3764
Abstract
Large Language Models (LLMs) have provided a new pathway for Named Entity Recognition (NER) tasks. Compared with fine-tuning, LLM-powered prompting methods avoid the need for training, conserve substantial computational resources, and rely on minimal annotated data. Previous studies have achieved comparable performance to fully supervised BERT-based fine-tuning approaches on general NER benchmarks. However, none of the previous approaches has investigated the efficiency of LLM-based few-shot learning in domain-specific scenarios. To address this gap, we introduce FsPONER, a novel approach for optimizing few-shot prompts, and evaluate its performance on domain-specific NER datasets, with a focus on industrial manufacturing and maintenance, while using multiple LLMs – GPT-4-32K, GPT-3.5-Turbo, LLaMA 2-chat, and Vicuna. FsPONER consists of three few-shot selection methods based on random sampling, TF-IDF vectors, and a combination of both. We compare these methods with a general-purpose GPT-NER method as the number of few-shot examples increases and evaluate their optimal NER performance against fine-tuned BERT and LLaMA 2-chat. In the considered real-world scenarios with data scarcity, FsPONER with TF-IDF surpasses fine-tuned models by approximately 10% in F1 score.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Instruction Tuning for Large Language Models: A SurveyACM Computing Surveys, 2026
- GPT-NER: Named Entity Recognition via Large Language Models2025
- Large language models for generative information extraction: a surveyFrontiers of Computer Science, 2024
- Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction FollowingProceedings of the AAAI Conference on Artificial Intelligence, 2024
- Lost in the Middle: How Language Models Use Long ContextsTransactions of the Association for Computational Linguistics, 2024
- Are Emergent Abilities in Large Language Models just In-Context Learning?2024
- “FabNER”: information extraction from manufacturing process science domain literature using named entity recognitionJournal of Intelligent Manufacturing, 2021
- A deep learning based method for extracting semantic information from patent documentsScientometrics, 2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- Unsupervised named-entity extraction from the Web: An experimental studyArtificial Intelligence, 2005