Exploiting Global Contextual Information for Document-level Named Entity Recognition

Zanbo Wang, Wei Wei, Xianling Mao, Shanshan Feng, Pan Zhou, Zhiyong He, Sheng Jiang

TL;DR

This paper introduces GCDoc, a novel approach to Named Entity Recognition (NER) that leverages global contextual information across entire documents, not just individual sentences. By constructing a document graph to capture word-level dependencies and employing a cross-sentence module for sentence-level context, GCDoc significantly improves NER performance, achieving new state-of-the-art results on benchmark datasets.

What Problem Does This Paper Address?

Named Entity Recognition (NER) is a crucial task in information extraction, aiming to identify and classify named entities (like people, organizations, and locations) within text. Traditional NER models primarily rely on sequence labeling techniques that focus on the local context within a single sentence. While effective for many tasks, this sentence-level approach has limitations. When entity mentions are ambiguous or when crucial contextual clues are spread across multiple sentences within a document, these models can struggle. This "sentence-level inherent ambiguity issue" can lead to performance drops. The paper addresses this by proposing a method to fully exploit the global contextual information available at both the word and sentence levels within an entire document.

Methods

The core of the proposed GCDoc model lies in its two main components designed to capture global context:

  • Document Graph Module (Word-Level Context):
    • A document graph is constructed where nodes represent tokens and edges connect tokens that appear multiple times within the document. This graph aims to model non-local dependencies between words, especially those that might be semantically related but separated by sentence boundaries.
  • Graph Neural Networks (GNNs), specifically Gated Graph Neural Networks (GGNNs), are used to learn enriched contextual representations for each token by aggregating information from its neighbors in the graph.
  • Noise Reduction Strategies: To mitigate the impact of potentially noisy or unreliable connections in the graph, two strategies are introduced:
  • Epistemic Uncertainty: Bayesian probability theory and Monte Carlo dropout are employed to estimate the uncertainty in token predictions. Tokens with high uncertainty are considered less reliable and their connections in the document graph are pruned, preventing the spread of noise.
  • Selective Auxiliary Classifier: A binary classifier is used to determine the likelihood that two nodes (tokens) belong to the same entity category. This helps in calculating edge weights more effectively, guiding the aggregation process and reducing the importance of noisy neighbors.
  • Cross-Sentence Contextual Embedding Module (Sentence-Level Context):
    • This module aims to leverage context from adjacent sentences. It encodes the current sentence, as well as a specified number of preceding and succeeding sentences (a window of k sentences on each side).
  • An attention mechanism is used to weigh the importance of these auxiliary sentence representations relative to the current sentence, allowing for a more informed sentence-level representation. This enhanced representation is then fused with the token embeddings.

The overall architecture builds upon a Bi-LSTM-CRF framework, incorporating these new modules to enhance token representations.

Datasets

The proposed GCDoc model was evaluated on two widely-used benchmark NER datasets:

  • CoNLL 2003: A collection of news articles from the Reuters corpus, featuring four entity types: Person (PER), Location (LOC), Organization (ORG), and Miscellaneous (MISC).
  • OntoNotes 5.0 English: A larger and more diverse dataset with eighteen entity types, including Persons, Organizations, and Geopolitical Entities.

The paper notes that they followed standard dataset splits and evaluation metrics for fair comparison.

Key Insights and Ideas

  • Global Context is Crucial for NER: The paper strongly advocates that relying solely on sentence-level context is insufficient for robust NER, especially in complex documents. Global document-level information, both at word and sentence levels, provides vital disambiguation clues.
  • Document Graphs for Non-Local Dependencies: Constructing a graph based on token co-occurrence within a document is an effective way to capture long-range semantic relationships that traditional sequential models miss.
  • Noise is a Major Challenge in Global Context: Simply incorporating more context can introduce noise. The paper's focus on pruning the document graph based on uncertainty and using a selective classifier to guide edge weights is a key insight into managing this noise.
  • Sentence-Level Context Beyond the Current Sentence: Adjacent sentences often carry relevant topical information. The cross-sentence module effectively leverages this by treating them as auxiliary context, enhancing the current sentence's representation.
  • Uncertainty as a Pruning Signal: Using epistemic uncertainty to identify unreliable tokens for graph pruning is an innovative way to improve the robustness of graph-based methods.

Key Results

The GCDoc model achieved state-of-the-art performance on both benchmark datasets:

  • CoNLL 2003:
    • Without external language models: 92.22% F₁-score.
  • With BERT pre-trained embeddings: 93.40% F₁-score.
  • These results represent improvements over previous top-performing models.
  • OntoNotes 5.0:
    • Without external language models: 88.32% F₁-score.
  • With BERT pre-trained embeddings: 90.49% F₁-score.
  • Again, these scores surpassed existing baselines.

The paper also highlights that their model's performance exhibits smaller standard deviations, indicating greater stability and robustness compared to the Bi-LSTM-CRF baseline. Ablation studies confirmed the significant contributions of both the document graph module and the cross-sentence module.

Limitations and Future Work

  • Window Size for Cross-Sentence Module: The optimal window size (k) for the cross-sentence module was found to be small (around 2). Larger windows led to performance degradation, suggesting that incorporating too much distant sentence context can introduce irrelevant information. This implies a need for more sophisticated methods to select relevant cross-sentence context.
  • Computational Complexity: While the paper claims the overall complexity remains comparable to the baseline due to sampling in the graph module, graph-based methods can still be computationally intensive.
  • Future Work: The authors suggest exploring more advanced graph construction strategies and attention mechanisms for better context aggregation. They also hint at the potential for applying their document-level approach to other NLP tasks beyond NER.

Summary updated

BibTeX
@article{wang2024exploiting,
  author = {Zanbo Wang and Wei Wei and Xianling Mao and Shanshan Feng and Pan Zhou and Zhiyong He and Sheng Jiang},
  title = {{Exploiting Global Contextual Information for Document-level Named Entity Recognition}},
  journal = {Knowledge-Based Systems},
  year = {2024},
  doi = {10.1016/j.knosys.2023.111266},
}
Figure