Rethinking Negative Instances for Generative Named Entity Recognition

Yuyang Ding, Juntao Li, Pinzheng Wang, Zecheng Tang, Yan Bowen, Min Zhang

Introduction

Named Entity Recognition (NER) has evolved from traditional sequence labeling to generative approaches using Large Language Models (LLMs). While generative NER simplifies the task by prompting models to list entities, most current systems are "entity-centric," focusing solely on extracting relevant terms while ignoring the surrounding non-entity text. This paper argues that these "negative instances" are crucial for defining label boundaries and improving zero-shot generalization.

The GNER Framework

The authors introduce GNER, a framework designed to leverage negative instances through three primary innovations:

1. Context-Aware Task Schema

Unlike standard generative models that only output entities, GNER uses a context-aware schema. It is trained to predict a label for every token in a sentence using the BIO (Begin, Inside, Outside) format. This approach forces the model to learn the relationship between entities and their surrounding context, effectively using non-entity text as "connective tissue" to identify trigger phrases.

The GNER instruction tuning prompt, illustrating the BIO-format guideline and token-by-token output schema.

2. Optimized Alignment and Decoding

To handle the minor text alterations common in LLM outputs, GNER employs an optimized Longest Common Subsequence (LCS) algorithm. This ensures a one-to-one correspondence between the original input and generated output, improving extraction accuracy. Furthermore, the token-by-token schema enables a self-correction mechanism during beam search, allowing the model to pivot to correct labels as more context is generated.

Experimental Results

GNER was evaluated across diverse domains, including AI, Literature, Music, Politics, Science, Movies, and Restaurants, using datasets like CrossNER and MIT.

Performance comparison (F1 score) across multiple domains, showing GNER models consistently outperforming GPT-3.5 and previous SOTA 7B models.

Key Findings

  • Zero-Shot Performance: GNER-LLaMA-7B achieved a significant 9-point $F_1$ improvement over existing state-of-the-art models in zero-shot settings.
  • Efficiency: The framework provides a 2.5x boost in inference speed compared to previous benchmarks like UniversalNER, while the optimized LCS algorithm offers up to a 17.3x speedup for long sequences.
  • Model Scaling: Smaller models, such as GNER-T5-large (780M), demonstrated the ability to outperform much larger 7B and 13B parameter models, highlighting the effectiveness of the context-aware training.

Conclusion and Future Work

By rethinking the role of negative instances, GNER addresses the boundary and hallucination issues prevalent in generative NER. While currently focused on "Flat-NER," future iterations aim to extend this context-aware approach to nested and discontinuous entities, providing a more robust and unified framework for information extraction.

Summary updated

BibTeX
@inproceedings{ding2024rethinking,
  author = {Yuyang Ding and Juntao Li and Pinzheng Wang and Zecheng Tang and Yan Bowen and Min Zhang},
  title = {{Rethinking Negative Instances for Generative Named Entity Recognition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.206},
}
Figure