[Paper Review] Informed Named Entity Recognition Decoding for Generative Language Models
This paper proposes iNERD, a novel framework that treats named entity recognition as a generative task using large language models with an informed decoding strategy to prevent hallucinations and improve performance. By coarse-tuning on a merged NER corpus and enforcing a structured generation format with special tokens, iNERD achieves state-of-the-art results, especially in zero-shot and open-vocabulary settings, outperforming traditional encoder-only models in adaptability and robustness.
Ever-larger language models with ever-increasing capabilities are by now well-established text processing tools. Alas, information extraction tasks such as named entity recognition are still largely unaffected by this progress as they are primarily based on the previous generation of encoder-only transformer models. Here, we propose a simple yet effective approach, Informed Named Entity Recognition Decoding (iNERD), which treats named entity recognition as a generative process. It leverages the language understanding capabilities of recent generative models in a future-proof manner and employs an informed decoding scheme incorporating the restricted nature of information extraction into open-ended text generation, improving performance and eliminating any risk of hallucinations. We coarse-tune our model on a merged named entity corpus to strengthen its performance, evaluate five generative language models on eight named entity recognition datasets, and achieve remarkable results, especially in an environment with an unknown entity class set, demonstrating the adaptability of the approach.
Motivation & Objective
- To bridge the gap between generative language models and extractive NLP tasks like named entity recognition (NER).
- To address the limitations of encoder-only models in handling dynamic or unknown entity classes by leveraging the language understanding of decoder-only LLMs.
- To develop a decoding strategy that prevents hallucinations by restricting token generation to valid entity structures.
- To improve model adaptability to new or unseen entity classes without retraining.
Proposed method
- The model generates text in a structured format using special tokens: <CT> to denote the start of an entity, <TCS> to separate entity type from content, and <ES> to separate distinct entities.
- An informed decoding algorithm masks out disallowed tokens during generation, ensuring only valid entity spans are produced and eliminating hallucinations.
- The model is coarse-tuned on a merged named entity corpus to enhance contextual awareness for NER tasks.
- The framework is compatible with any decoder-only LLM, making it future-proof and easily upgradable as new models emerge.
- The approach treats NER as a sequence generation problem, enabling end-to-end training and inference with strong structural constraints.
- The decoding process enforces a fixed output schema, reducing the search space and improving generation reliability.
Experimental results
Research questions
- RQ1Can named entity recognition be effectively reformulated as a generative task using large language models without sacrificing performance or introducing hallucinations?
- RQ2How does informed decoding with structural constraints improve NER performance compared to standard autoregressive generation?
- RQ3To what extent can coarse-tuning on a merged NER corpus enhance the zero-shot and few-shot generalization of generative LLMs in NER?
- RQ4How does the iNERD framework perform under unknown or open-vocabulary entity class settings compared to traditional encoder-only models?
- RQ5Can the proposed method maintain high performance across diverse domains such as general, biomedical, and financial text without retraining?
Key findings
- The iNERD framework achieves state-of-the-art performance on eight benchmark NER datasets, including CoNLL-2003, CoNLL++, and biomedical and financial datasets.
- Informed decoding alone improves F1 scores by approximately 4% on CoNLL-2003 and CoNLL++ when applied to a base model.
- Coarse-tuning on a merged NER corpus significantly boosts performance, especially in zero-shot and few-shot settings with unknown entity classes.
- The ablation study confirms that both coarse-tuning and informed decoding are essential, with performance dropping to near-zero when both are removed in a no-fine-tuning setting.
- The model demonstrates strong adaptability to new entity classes without retraining, outperforming traditional encoder-only models in dynamic or open-vocabulary scenarios.
- The framework maintains high performance across diverse domains, indicating its robustness and generalization capability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.