ScdNER: Span-Based Consistency-Aware Document-Level Named Entity Recognition

Ying Wei, Qi Li

Abstract

ScdNER is a novel two-stage document-level Named Entity Recognition (NER) model designed to improve prediction consistency. By fusing global features at the span level rather than the word level, ScdNER mitigates the noise typically introduced by word-level document-level NER models. The framework employs a binary classifier to filter non-entity noise and an adaptive gating mechanism to balance local and global context, achieving state-of-the-art results across biomedical, scientific, and general domain datasets.

Introduction

Named Entity Recognition (NER) is a fundamental task in natural language processing, involving the identification and categorization of entities such as genes, chemicals, or locations. Traditional sentence-level models often suffer from label inconsistency, where the same entity is assigned different labels across a document due to varying local contexts.

Document-Level NER (DL-NER) was developed to address this by leveraging global information. However, most existing DL-NER models share information at the word level. This approach can be problematic; for instance, the word "type" might be part of a specific entity like "breast cancer type 1" in one sentence but serve as a common noun elsewhere. Fusing features at the word level in such cases introduces noise. ScdNER addresses this by shifting the focus from individual tokens to entire text spans, ensuring that semantic meaning is better preserved during feature fusion.

Methodology

The ScdNER framework consists of a two-stage process that integrates local and global information at the span level:

Stage 1: Binary Span Classification

The model first enumerates all possible token sequences (spans) within a document. A binary classifier is then trained to predict the probability that each span represents an entity. This stage serves as a "soft filter," identifying candidate spans for further processing while assigning lower weights to non-entity noise.

Stage 2: Adaptive Global Feature Fusion

In the second stage, the model refines span representations using global document context:

  • Span-Based Key-Value Memory: Features of spans (keys) and their corresponding entity probabilities from Stage 1 (values) are stored in a memory module.
  • Weighted Fusion: To predict a label for a target span, the model retrieves all other spans in the document with the same surface name. A global feature is calculated as a weighted average of these spans, using their Stage 1 probabilities as weights. This ensures that high-confidence entities contribute more to the global representation.
  • Gating Mechanism: A learnable gate determines the balance between local context and the aggregated global information, allowing the model to adaptively rely on document-level consistency or local uniqueness.
The ScdNER architecture overview.

Experiments and Key Results

The model was evaluated across five benchmark datasets in three domains: Biomedical (CDR, NCBI-disease, ChemdNER), Scientific (SciERC), and General Domain (OntoNotes 5.0). ScdNER achieved new state-of-the-art (SOTA) performance across all tested domains:

  • Biomedical: F1 scores reached 91.2% (CDR), 90.4% (NCBI), and 93.1% (ChemdNER), representing improvements of 1.0% to 1.3% over previous benchmarks.
  • Scientific: On the SciERC dataset, ScdNER achieved an F1 score of 71.44%, a significant 1.11% improvement over the previous SOTA.
  • General: On OntoNotes 5.0, the model reached 90.80% F1, outperforming strong baselines like SpERT-Doc-BERT.
Performance comparison on the SciERC dataset.

Ablation studies confirmed that both the key-value memory and the entity filtering mechanism are critical, with their removal leading to performance drops of approximately 1% each. Furthermore, ScdNER significantly reduced the "inconsistency rate"—the frequency with which the same string is labeled differently within a document—from 4.6% to 3.3% on the CDR dataset.

Conclusion and Future Work

ScdNER demonstrates that span-level global feature fusion is a highly effective strategy for document-level NER. By utilizing entity probabilities as a denoising tool, the model achieves superior consistency and accuracy.

However, limitations remain. Error analysis indicates that "Missing" entities and "Wrong Boundaries" are still prevalent. Additionally, errors in the Stage 1 filter can propagate to the final prediction. Future research may explore more robust boundary detection and "soft punishment" mechanisms to further mitigate error propagation and improve performance on datasets with lower inter-annotator agreement.

Summary updated

BibTeX
@inproceedings{wei2023scdner,
  author = {Ying Wei and Qi Li},
  title = {{ScdNER: Span-Based Consistency-Aware Document-Level Named Entity Recognition}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.970},
}
Figure