Self-Improving for Zero-Shot Named Entity Recognition with Large Language Models

Tingyu Xie, Qi Li, Yan Zhang, Zuozhu Liu, Hongwei Wang

Abstract

Large Language Models (LLMs) have demonstrated remarkable zero-shot capabilities, yet they often lag behind supervised models in specialized tasks like Named Entity Recognition (NER). This paper presents a training-free "self-improving" framework that enables LLMs to enhance their own performance using unlabeled data. By employing self-consistency for annotation and strategic retrieval for in-context learning, the framework bridges the gap between zero-shot and supervised performance without requiring human-labeled examples.

Introduction

Named Entity Recognition (NER) is a fundamental task in information extraction, traditionally dependent on extensive human-annotated datasets. While LLMs can perform NER via zero-shot prompting, their performance is often limited. In-Context Learning (ICL) significantly boosts performance by providing examples, but these are unavailable in true zero-shot scenarios. This research addresses this "Catch-22" by asking if an LLM can autonomously generate its own high-quality demonstrations from unlabeled text.

Methodology: The Self-Improving Pipeline

The proposed framework consists of a three-step, training-free pipeline designed to iteratively refine the model's outputs.

The three-step self-improving pipeline: Zero-Shot Self-Annotating, Reliable Annotation Selection, and Inference with Self-Annotated Demonstrations.
  1. Zero-Shot Self-Annotating: The LLM processes an unlabeled corpus to identify entities. To ensure reliability, a Self-Consistency (SC) approach is used: the model is prompted multiple times for each sentence, and entities appearing consistently across iterations receive higher reliability scores.
  2. Reliable Annotation Selection: To mitigate noise, the framework filters self-generated labels. Strategies include entity-level thresholding and a two-stage majority voting process that separates span identification from category classification.
  3. Inference with Self-Annotated Demonstrations: For new test queries, the system retrieves the most relevant and reliable examples from the self-annotated pool. A "Diverse Nearest with SC ranking" strategy is employed to balance similarity, diversity, and model confidence.

Experimental Results

The framework was evaluated across four English benchmarks (CoNLL03, ACE05, WikiGold, GENIA) and two Chinese datasets. The results demonstrate a consistent improvement over standard zero-shot baselines.

Detailed performance comparison of various self-annotation and retrieval strategies against zero-shot and gold-labeled baselines.

As shown in the results, the average F1 score across English benchmarks improved from 53.62 (standard zero-shot) to 58.20 (best self-improving configuration). Notably, on the CoNLL03 dataset, performance reached 74.99, significantly closing the gap toward the performance achieved with human-labeled "gold" demonstrations.

Key Insights

  • Confidence is a Proxy for Truth: Analysis revealed a strong correlation between Self-Consistency scores and actual accuracy. Most correct predictions clustered at high SC scores, suggesting that LLMs possess an internal measure of confidence that can be leveraged for data filtering.
  • The Capability Floor: The method's success is contingent on the base model's strength. While effective for GPT-3.5, performance degraded on Llama-2 13B, indicating that a minimum level of reasoning capability is required for the self-improvement loop to function.
  • The "More is Better" Fallacy: Increasing iterations or unlabeled data size does not always yield better results. Beyond a certain point, the model may begin to reinforce its own errors, leading to "error accumulation" where performance plateaus or declines.

Conclusion and Future Work

This self-improving framework demonstrates that LLMs can effectively "bootstrap" their way to higher performance in zero-shot NER tasks. While a gap remains compared to fully supervised state-of-the-art models, the training-free nature of this approach makes it highly scalable. Future research will likely focus on more advanced self-verification techniques to prevent error accumulation and extend the framework to more complex information extraction tasks.

Summary updated

BibTeX
@inproceedings{xie2024self,
  author = {Tingyu Xie and Qi Li and Yan Zhang and Zuozhu Liu and Hongwei Wang},
  title = {{Self-Improving for Zero-Shot Named Entity Recognition with Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-short.49},
}
Figure