Regularizing Models via Pointwise Mutual Information for Named Entity Recognition

Minbyul Jeong, Jaewoo Kang

Abstract

When performing named entity recognition (NER), entity length is variable and dependent on a specific domain or dataset. Pre-trained language models (PLMs) are used to solve NER tasks and tend to be biased toward dataset patterns such as length statistics, surface form, and skewed class distribution. These biases hinder the generalization ability of PLMs, which is necessary to address many unseen mentions in real-world situations. We propose a novel debiasing method RegLER to improve predictions for entities of varying lengths. To close the gap between evaluation and real-world situations, we evaluated PLMs on partitioned benchmark datasets containing unseen mention sets. Here, RegLER shows significant improvement over long-named entities that can predict through debiasing on conjunction or special characters within entities. Furthermore, there is a severe class imbalance in most NER datasets, causing easy-negative examples to dominate during training, such as "The". Our approach alleviates skewed class distribution by reducing the influence of easy-negative examples. Extensive experiments on the biomedical and general domains demonstrated the generalization capabilities of our method.

Introduction

Named Entity Recognition (NER) is a fundamental task in natural language processing, yet current state-of-the-art models often exhibit a "laziness" problem. Pre-trained language models (PLMs) like BERT are highly effective at memorizing patterns, but they frequently rely on superficial cues rather than deep contextual understanding. For instance, if a specific word consistently appears as a "Location" in a training set, the model may memorize the word's label without learning the underlying linguistic context. This reliance on dataset-specific patterns leads to poor generalization when encountering unseen entities or complex, multi-word names—a common challenge in specialized fields such as biomedicine.

The Challenge of Dataset Bias

Standard NER models are hindered by three primary types of bias:

  1. Length Statistics: Models become accustomed to the average entity length in a dataset. As illustrated in Figure 1, the vast majority of entities in common benchmark datasets are extremely short, typically 1 to 3 tokens. This distribution makes it difficult for models to accurately identify unusually long entities.
  2. Surface Form Bias: Models tend to memorize specific words rather than learning context.
  3. Class Imbalance: In most NER datasets, the vast majority of tokens are labeled "O" (Outside an entity). These "easy-negative" examples dominate training, making it difficult for models to detect the start of an entity, especially when it begins with common words like "The" or "Latent."
Distribution of entity lengths across various NER datasets.

In the biomedical domain, these issues are particularly acute. Entities such as foot-and-mouth-disease virus L protease are long and contain conjunctions ("and") and special characters ("-") that typically signal the absence of an entity in general-domain text.

The RegLER Framework

To address these challenges, we introduce RegLER (Regularization for Long-named Entity Recognition). RegLER is a training-time regularization framework that utilizes subword-level Pointwise Mutual Information (PMI) to identify and mitigate dataset biases.

Overview of the RegLER framework, showing (a) the conceptual basis of PMI for debiasing and (b) the training process integrating the bias-only model.

1. The Bias-Only Model (PMI)

Instead of training an auxiliary neural network, RegLER employs PMI to calculate the correlation between subwords and their entity tags in the training set. If a subword like "disease" is highly correlated with an "Inside" (I) tag, the PMI captures this as a "bias." By operating at the subword level, RegLER can estimate biases for out-of-vocabulary (OOV) words by decomposing them into known components.

2. Training with a "Handicap"

RegLER operates on the "Product of Experts" principle. During training, the final prediction is a combination of the target PLM and the PMI-based bias model. The loss function is calculated on this combined output, effectively "handicapping" the PLM. If the bias model can easily predict a tag based on the word alone, the PLM receives minimal credit. This forces the PLM to learn the more difficult aspects of the task—such as context and complex structures—that the simple bias model cannot capture.

3. Bias-Weighted Scaling

A temperature scaling factor ($\lambda$) is introduced to adjust the bias distribution based on entity length. For longer entities, the bias distribution is smoothed, forcing the model to be more robust and flexible when dealing with multi-word entities that contain common, non-entity-like words. Crucially, the bias model is discarded after training, ensuring no additional computational overhead during inference.

Experimental Evaluation

RegLER was evaluated across ten benchmark datasets, including seven from the biomedical domain (e.g., NCBI-disease, BC5CDR, BC2GM) and two from the general domain (CoNLL-2003, WNUT-2017). To rigorously test generalization, test sets were partitioned into "Seen" (Memorization), "Unseen," "Synonyms," and "Concepts."

Key Results and Discussion

  • Generalization Gains: RegLER achieved absolute improvements in "Synonym" and "Concept" generalization by approximately 1.34% to 1.4% F1 over standard fine-tuning.
  • Long Entity Performance: For entities with a length of 8 or more words, the F1 score improved by up to 2%.
  • Domain Versatility: While improvements were most pronounced in the complex biomedical domain, RegLER also showed significant gains on the WNUT-2017 dataset, which focuses on novel and emerging entities.
  • Equilibrium of Components: The study found that subword frequency, class prior, and temperature scaling work in equilibrium. Together, they significantly boost the model's ability to generalize to new concepts.

Conclusion

RegLER provides a robust method for debiasing PLMs in NER tasks without increasing inference time. By forcing models to look beyond superficial dataset patterns, it significantly improves performance on long and unseen entities. Future work will explore making the scaling factor $\lambda$ a learnable parameter and developing more universal bias models that span multiple domains.

Summary updated

BibTeX
@misc{jeong2021regularizing,
  author = {Minbyul Jeong and Jaewoo Kang},
  title = {{Regularizing Models via Pointwise Mutual Information for Named Entity Recognition}},
  year = {2021},
  eprint = {2104.07249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.07249},
}
Figure