Evaluating Named Entity Recognition Using Few-Shot Prompting with Large Language Models

Hédi Zeghidi, Ludovic Moncla
8/28/2024
cs.IRcs.AI

No official code found. Best implementation: GEODE-project/ner-llm (10 stars, last commit 2026-04-08).

Abstract

This paper evaluates Few-Shot Prompting with Large Language Models for Named Entity Recognition (NER). Traditional NER systems rely on extensive labeled datasets, which are costly and time-consuming to obtain. Few-Shot Prompting or in-context learning enables models to recognize entities with minimal examples. We assess state-of-the-art models like GPT-4 in NER tasks, comparing their few-shot performance to fully supervised benchmarks. Results show that while there is a performance gap, large models excel in adapting to new entity types and domains with very limited data. We also explore the effects of prompt engineering, guided output format and context length on performance. This study underscores Few-Shot Learning's potential to reduce the need for large labeled datasets, enhancing NER scalability and accessibility.

View on arXivView PDF

Code Implementations(1)

Code and ressources for evaluating Named Entity Recognition using Few-Shot Prompting with Large Language Models

101Python, Jupyter NotebookAug 28, 20246 months agoNOASSERTION

Cite this paper

@article{zeghidi2024evaluating,
  title  = {Evaluating Named Entity Recognition Using Few-Shot Prompting with Large Language Models},
  author = {Hédi Zeghidi and Ludovic Moncla},
  year   = {2024},
  eprint = {2408.15796},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.15796v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.15796.svg)](https://codeofpaper.com/paper/2408.15796)

Discussion