NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Named Entity Recognition in Multi-level Contexts

Yubo Chen, Chuhan Wu, Tao Qi, Zhigang Yuan, Yongfeng Huang

Abstract

Traditional Named Entity Recognition (NER) models often suffer from "tunnel vision," relying exclusively on local sentence-level context to identify entities. This limitation leads to errors when sentence-level information is ambiguous. This paper proposes a unified framework that incorporates multi-level contexts—document-level interactions and word-level type preferences—to resolve such ambiguities. By integrating multi-head self-attention for document-level dependencies and an auxiliary multi-task learning objective for word-level priors, the model achieves state-of-the-art performance across multiple languages, including English, German, and Dutch.

Introduction

Named Entity Recognition (NER) is a fundamental task in Natural Language Processing, aimed at identifying and classifying entities such as people, organizations, and locations. Despite its maturity, standard models often struggle with ambiguous phrases where the correct label depends on broader context. For instance, the phrase "Elizabeth Trump and Son" might appear to be a list of individuals in one sentence but is actually the name of a real estate company when viewed in the context of the entire document.

The authors identify two critical gaps in traditional sentence-level models: document-level neglect, where related sentences within the same text are ignored, and word-level neglect, where inherent "fingerprints" of specific words (like "Inc." or "Corp") are not explicitly leveraged.

Examples of document-level and word-level contextual evidence resolving entity ambiguity.

Methodology

The proposed framework builds upon the TagLM architecture, utilizing BiGRUs and pre-trained language model embeddings (ELMo). It introduces two novel components to capture multi-level context:

Document-level Context via Multi-head Self-Attention

Rather than treating sentences as isolated units, the model employs a multi-head self-attention mechanism to capture interactions across the entire document. This allows the model to resolve ambiguity in one sentence by "borrowing" clarity from another mention of the same entity elsewhere. This document-level representation is integrated by replacing the initial hidden state of the sentence-level encoder.

Word-level Context via Multi-task Learning

To capture word-level "priors," the authors introduce an auxiliary task where the model predicts the "type and position preference" of every word. For example, the word "Inc." is a strong indicator of the end of an organization name. By training this task alongside the primary NER objective, the model learns to use these inherent word properties to support final sequence decoding via a Conditional Random Field (CRF) layer.

Experimental Results

The model was evaluated on four standard benchmarks: CoNLL-2003 (English and German), CoNLL-2002 (Dutch), and Wikigold (English).

Performance comparison across four datasets showing the additive benefits of word-level, document-level, and multi-level contexts.

As shown in the results, the proposed model consistently outperformed the TagLM+ELMo baseline across all datasets. Key improvements include:

  • English (CoNLL-2003): Achieved an F1 score of 92.68%, a 0.47% absolute improvement.
  • German: Reached 78.87% F1, a 1.04% improvement.
  • Dutch: Reached 88.93% F1, a 0.88% improvement.

Ablation studies confirm that while both document-level and word-level contexts provide individual boosts, their combination yields the most significant performance gains, indicating that they provide complementary information.

Conclusion

By looking beyond the individual sentence, this multi-level context framework effectively addresses the "tunnel vision" problem in NER. The integration of document-level self-attention and word-level multi-task learning allows the model to leverage both global document consistency and local vocabulary priors. Future work may involve exploring the sequential nature of document structure and optimizing the computational overhead associated with document-wide attention mechanisms.

Summary updated

BibTeX
@inproceedings{chen2020named,
  author = {Yubo Chen and Chuhan Wu and Tao Qi and Zhigang Yuan and Yongfeng Huang},
  title = {{Named Entity Recognition in Multi-level Contexts}},
  booktitle = {AACL/IJCNLP},
  year = {2020},
  doi = {10.18653/v1/2020.aacl-main.22},
}
Figure