Introduction
Deep Neural Networks (DNNs) in Named Entity Recognition (NER) frequently exhibit overconfidence, a phenomenon known as miscalibration. For instance, a model might assign a 99% confidence score to an incorrect "Person" entity. In safety-critical domains like healthcare or finance, such unreliable uncertainty estimation can lead to significant liabilities. While techniques like Monte Carlo (MC) Dropout can estimate uncertainty, they incur high computational costs during inference. This study investigates whether data augmentation (DA)—traditionally used to boost accuracy—can serve as a computationally efficient alternative for calibrating NER models.
Methodology
The researchers evaluated four NER-specific data augmentation strategies against standard calibration baselines:
Standard Calibration Baselines
- Temperature Scaling (TS): A post-processing method that adjusts output probabilities.
- Label Smoothing (LS): A training-time technique that prevents the model from assigning full probability to a single class.
- MC Dropout: Estimates uncertainty by performing multiple stochastic forward passes at inference time.
NER Data Augmentation Strategies
- Label-wise Token Replacement (LwTR): Replaces tokens with others sharing the same label.
- Mention Replacement (MR): Swaps entire entity mentions (e.g., "London" for "New York") within the same category.
- Synonym Replacement (SR): Uses WordNet to substitute words with their synonyms.
- Masked Entity Language Modeling (MELM): Leverages a pre-trained language model to fill masked entity slots with contextually relevant alternatives.
Performance was primarily measured using Expected Calibration Error (ECE) and Maximum Calibration Error (MCE) across the OntoNotes 5.0 (cross-genre) and MultiCoNER (cross-lingual) datasets.
Experimental Results
The study found that DA methods, particularly MELM and MR, significantly reduce model overconfidence.
As shown in the results, DA methods often outperformed computationally intensive alternatives like MC Dropout. In the telephone conversation (tc) domain of OntoNotes, MELM improved ECE by up to 6.01% over the baseline.
Impact of Augmentation Scale
The researchers also observed that increasing the volume of augmented data generally leads to better calibration.
Scaling the augmented dataset up to twice the original size consistently improved performance, especially for the Mention Replacement (MR) method.
Key Insights
- The Perplexity Connection: DA effectiveness for calibration is tied to the linguistic plausibility of the generated data. Methods like MELM and MR, which produce low-perplexity (more natural) sentences, help the model learn more robust uncertainty boundaries.
- In-Domain vs. Out-of-Domain (OOD): While DA excels in in-domain and near-OOD scenarios, its benefits diminish when test data is significantly distant from the training distribution.
- Inference Efficiency: Unlike ensemble or dropout methods, DA-trained models maintain standard inference speeds, making them ideal for real-time applications.
Conclusion and Future Work
Data augmentation is a powerful, "free" tool for improving NER model calibration. While it significantly reduces overconfidence in many scenarios, it does not fully solve the challenges of far-OOD data. Future work will focus on generating more diverse, "difficult" augmented examples and extending these findings to span-level calibration and non-English source languages.
Summary updated