Empirical Study of Zero-Shot NER with ChatGPT

Tingyu Xie, Qi Li, Jian Zhang, Yan Zhang, Zuozhu Liu, Hongwei Wang · DOI

Abstract

Named Entity Recognition (NER) is a foundational task in Information Extraction, yet Large Language Models (LLMs) like ChatGPT often struggle with its inherent structural constraints in zero-shot settings. This study presents a systematic empirical investigation into boosting ChatGPT's NER performance. By decomposing the task into label-specific queries, augmenting prompts with external syntactic tools, and implementing a two-stage majority voting system, the researchers achieve substantial F1-score improvements across multiple languages and specialized domains.

Introduction

While ChatGPT has demonstrated remarkable general-purpose reasoning, its application to "structured prediction" tasks like NER remains challenging. Standard "vanilla" prompting—simply asking the model to extract entities—frequently results in low recall or misclassification, particularly when dealing with out-of-distribution data such as industrial technical reports or complex linguistic structures in Chinese. This research aims to bridge the gap by harnessing the latent reasoning potential of LLMs through structured prompting and external tool integration.

Methods

The authors propose a suite of four primary strategies to improve zero-shot extraction:

  1. Decomposed-QA: This approach transforms the holistic extraction task into a multi-turn dialogue. Instead of identifying all entities at once, the model is queried sequentially for specific labels (e.g., "What are the 'Person' entities?"). This reduces the search space and cognitive load for the model.
  2. Syntactic Prompting: The model is prompted to perform intermediate reasoning, such as identifying Part-of-Speech (POS) tags, before final entity recognition.
  3. Tool Augmentation: To overcome the model's internal syntactic limitations, external parsers (like HanLP) provide explicit POS tags or dependency trees within the prompt.
  4. Two-Stage Majority Voting: To mitigate hallucinations, multiple responses are sampled. A voting mechanism first identifies the most consistent text spans (mentions) and then determines the most consistent labels for those spans.

Datasets and Evaluation

The strategies were evaluated across seven benchmarks:

  • Chinese Specialized: PowerPlantFlat (PPF) and PowerPlantNested (PPN), featuring technical reports.
  • Chinese General: OntoNotes 4, MSRA, and Weibo NER.
  • English General: ACE05 and ACE04.

Further validation was conducted on biomedical datasets (BC5CDR, BioNLP11, CRAFT) and the standard CoNLL-2003 set.

Key Insights and Ideas

A critical finding of the study is the importance of prompt structure. Specifically, the researchers observed that placing reasoning hints at the end of the instruction (the "Back" position) is more effective than placing them at the beginning ("Front"). This proximity to the generation point likely helps the model maintain focus on the reasoning task.

Additionally, the study found that:

  • Decomposition is vital: Multi-turn querying consistently outperforms single-shot prompts, especially for large label sets.
  • External tools are superior: High-quality output from dedicated parsers provides a more reliable boost than relying on the LLM's internal syntactic "intuition."
  • Specialized domains benefit most: The most dramatic gains occurred on the PowerPlant datasets, where the model could not rely on pre-training patterns alone.

Key Results

The proposed methods yielded significant performance gains. On the PowerPlantFlat dataset, the F1 score improved from a baseline of 27.85% to 40.31% when combining Decomposed-QA, Tool Augmentation, and Self-Consistency. The two-stage majority voting strategy alone provided a consistent 2-4% F1 improvement across nearly all test cases. Notably, these syntactic augmentation strategies also outperformed standard Chain-of-Thought (CoT) prompting in few-shot scenarios.

Limitations and Future Work

While effective, these methods increase inference costs due to multi-turn interactions and multiple sampling. Future research will explore the optimal ordering of labels in Decomposed-QA and the potential synergy of combining multiple types of syntactic metadata (e.g., POS tags and dependency trees) within a single context window.

Summary updated

BibTeX
@inproceedings{xie2023empirical,
  author = {Tingyu Xie and Qi Li and Jian Zhang and Yan Zhang and Zuozhu Liu and Hongwei Wang},
  title = {{Empirical Study of Zero-Shot NER with ChatGPT}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.493},
}
Figure