Abstract
Label errors in token classification datasets, such as those used for Named Entity Recognition (NER), significantly hinder model performance and evaluation. This paper evaluates various methods for aggregating token-level model confidence into sentence-level scores to identify mislabeled data. We demonstrate that the worst-token method—ranking sentences by their single most suspicious token—consistently outperforms more complex aggregation strategies and ensemble-based approaches, providing a simple yet effective tool for data cleaning.
Introduction
Supervised learning for token classification requires high-quality, fine-grained labels. However, real-world datasets often contain noise due to the tedious nature of the labeling task. While errors occur at the token level, human review is most effective at the sentence level, where context is preserved. The central challenge lies in identifying which sentences are most likely to contain at least one error. This study investigates 11 different scoring methods to bridge the gap between token-level predictions and sentence-level quality assessment.
Methodology
The proposed worst-token method identifies a sentence's quality based on its "weakest link." Formally, the sentence score is defined as the minimum (worst) label quality score among all constituent tokens.
To determine individual token quality, we evaluated several metrics:
- Self-confidence (sc): The model's predicted probability for the assigned label.
- Normalized Margin (nm): The difference between the probability of the assigned label and the highest probability among other classes.
- CrossWeigh (cwe): An ensemble-based approach that uses multiple models to identify suspicious labels.
The worst-token approach was compared against standard baselines, including average-quality (averaging all token scores) and predicted-difference (counting model-label disagreements).
Experimental Setup
Experiments were conducted primarily on the CoNLL-2003 dataset for Named Entity Recognition. To ensure realistic evaluation, performance was measured against CoNLL++, a manually corrected version of the original test set containing naturally occurring errors. We employed two transformer architectures, BERT and XLM, to generate the underlying class probabilities. Performance was quantified using the Area Under the Precision-Recall Curve (AUPRC) and the Lift @ #Errors metric.
Results
The empirical results demonstrate the clear superiority of the worst-token method. As shown in Table 1, the combination of the worst-token aggregation strategy with the self-confidence (sc) token score achieved the highest AUPRC across all tested models.
Specifically, using BERT, the worst-token method achieved an AUPRC of 0.4357, a significant improvement over the 0.3022 achieved by the common average-quality approach. Furthermore, the method demonstrated high efficiency, yielding a Lift score of approximately 9.0, meaning reviewers would find nine times more errors compared to random sampling. The consistency of these results across BERT, XLM, and unmerged subword variants underscores the robustness of the approach.
Discussion and Conclusion
The success of the worst-token method highlights the "weakest link" principle in NLP data cleaning: a single highly suspicious token is a more reliable indicator of a faulty sentence than a general lack of confidence across all tokens. This approach is computationally efficient, requiring only a single trained model rather than expensive ensembles. While the method relies on the quality of the underlying model and focuses on detection rather than automated correction, it provides a powerful tool for streamlining human-in-the-loop data auditing. Future work may explore more sophisticated subword pooling strategies to further refine the detection of errors in modern transformer-based workflows.
Summary updated