Show Less, Instruct More: Enriching Prompts with Definitions and Guidelines for Zero-Shot NER

Andrew Zamai, Andrea Zugarini, Leonardo Rigutini, Marco Ernandes, Marco Maggini
7/1/2024
cs.CL

No official code found. Best implementation: andrewzamai/SLIMER (5 stars, Apache-2.0, last commit 2025-05-21).

Abstract

Recently, several specialized instruction-tuned Large Language Models (LLMs) for Named Entity Recognition (NER) have emerged. Compared to traditional NER approaches, these models have demonstrated strong generalization capabilities. Existing LLMs primarily focus on addressing zero-shot NER on Out-of-Domain inputs, while fine-tuning on an extensive number of entity classes that often highly or completely overlap with test sets. In this work instead, we propose SLIMER, an approach designed to tackle never-seen-before entity tags by instructing the model on fewer examples, and by leveraging a prompt enriched with definition and guidelines. Experiments demonstrate that definition and guidelines yield better performance, faster and more robust learning, particularly when labelling unseen named entities. Furthermore, SLIMER performs comparably to state-of-the-art approaches in out-of-domain zero-shot NER, while being trained in a more fair, though certainly more challenging, setting.

View on arXivView PDF

Code Implementations(1)

andrewzamai/SLIMERCommunity75%
Apache-2.0

Show Less, Instruct More: Enriching Prompts with Definitions and Guidelines for Zero-Shot NER

51Python, Jupyter NotebookSep 18, 20241 years agoApache-2.0
large-language-modelsnamed-entity-recognitionnatural-language-processingstate-of-the-artzero-shot

Similar Papers

Cite this paper

@article{zamai2024show,
  title  = {Show Less, Instruct More: Enriching Prompts with Definitions and Guidelines for Zero-Shot NER},
  author = {Andrew Zamai and Andrea Zugarini and Leonardo Rigutini and Marco Ernandes and Marco Maggini},
  year   = {2024},
  eprint = {2407.01272},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.01272v3}
}

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/2407.01272.svg)](https://codeofpaper.com/paper/2407.01272)

Discussion