Abstract
Unlabeled Entity Problem (UEP) in Named Entity Recognition (NER) datasets seriously hinders the improvement of NER performance. This paper proposes SCL-RAI to cope with this problem. Firstly, we decrease the distance of span representations with the same label while increasing it for different ones via span-based contrastive learning, which relieves the ambiguity among entities and improves the robustness of the model over unlabeled entities. Then we propose retrieval augmented inference to mitigate the decision boundary shifting problem. Our method significantly outperforms the previous SOTA method by 4.21% and 8.64% F1-score on two real-world datasets.
Introduction: The Unlabeled Entity Problem
In Named Entity Recognition (NER), the goal is to identify and classify spans of text into predefined categories like "PERSON" or "ORG". However, real-world datasets—especially those generated through distant supervision or automated labeling—often suffer from the Unlabeled Entity Problem (UEP).
As shown in the example above, an entity like "NBA" might be correctly labeled as an organization in one instance but left as background noise in another. This inconsistency sends conflicting signals to the model during training. The model begins to treat valid entities as "non-entities," causing its decision boundary to shift toward the entity side. This shift makes the model overly conservative, leading it to miss entities during inference.
Methodology: The SCL-RAI Framework
To address these challenges, the authors propose SCL-RAI, a framework consisting of two main components: Span-based Contrastive Learning (SCL) and Retrieval Augmented Inference (RAI).
1. Span-based Contrastive Learning (SCL)
During the training phase, SCL-RAI employs a supervised contrastive loss. Instead of just learning to classify individual spans, the model is trained to cluster them. It pulls representations of the same entity type (e.g., all "PERSON" spans) closer together in the vector space while pushing different types and non-entities further apart. This clustering makes the model more robust to labeling noise, as the underlying entity representations remain distinct even when some labels are missing.
2. Retrieval Augmented Inference (RAI)
To correct the "shifted decision boundary" at test time, the framework introduces a retrieval step:
- Dictionary Construction: After training, the model calculates a "prototype" (center point) for every entity type based on the training data.
- Interpolation: During inference, the model calculates the similarity between a new span's representation and these stored prototypes. The final prediction is a blend of the model's raw output and this similarity score. If the model is uncertain due to a boundary shift, the proximity to a known prototype helps guide it toward the correct label.
Experimental Results
The researchers evaluated SCL-RAI on two datasets with significant labeling noise: EC (E-commerce) and NEWS.
- EC Dataset: SCL-RAI achieved a 71.24% F1-score, a 4.21% improvement over the previous state-of-the-art (SOTA) method (Variant Negative Sampling).
- NEWS Dataset: SCL-RAI reached a 94.79% F1-score, outperforming the previous SOTA by a massive 8.64%.
Ablation studies highlighted the importance of both components. Removing the RAI step resulted in a drop of 0.6% to 1.1% in F1-score, confirming that while SCL handles the bulk of the representation learning, RAI provides a necessary correction for the decision boundary shift. Visualizations of the embedding space further demonstrate that contrastive learning creates significantly tighter and more separable entity clusters compared to standard cross-entropy training.
Conclusion and Future Work
SCL-RAI effectively tackles the Unlabeled Entity Problem by combining robust representation learning with a corrective inference mechanism. By treating NER as a clustering and retrieval task rather than just a classification task, the model achieves significant gains in noisy, real-world environments. While the retrieval step adds some computational complexity, the performance gains are substantial. Future work may extend this framework to other tasks involving noisy labels, such as relation extraction or general text classification.
Summary updated