Manuscript Offprint

arXiv:2608.31038

Type-Balanced Contextual Learning for Incremental Named Entity Recognition

Duzhen Zhang, Yahan Yu, Xiuyi Chen, Chenxing Li, Dong Yu

Duzhen Zhang, Yahan Yu, Xiuyi Chen, Chenxing Li, and Dong Yu ID^{ID}, Fellow, IEEE

Abstract—Incremental Named Entity Recognition (INER) stands as a pivotal task in information extraction, emphasizing the successive identification of new entity types within unstructured text. Faced with the continuous influx of entity types, INER grapples with two significant challenges: the widespread issue of catastrophic forgetting and the unique shift issue of the non-entity type semantics. While pseudo-labeling-based INER methods have proven effective in addressing these challenges, a previously overlooked issue arises: the biased context problem. Our analysis shows that, in new sentences, the contextual associations of tokens representing old entity types exhibit a significantly stronger bias towards new entity types compared to their contexts in old sentences. This tendency intensifies the degradation of old knowledge while promoting the overfitting of new knowledge. To solve this biased context, we propose a Type-Balanced Contextual Learning (TBCL) method, featuring a sentence-duplet learning scheme and a contextual consistency loss. This approach offers a fresh perspective for INER through context analysis. Extensive experiments across ten INER settings on three highly recognized datasets showcase the efficacy of our TBCL method, highlighting its proficiency in resolving the biased context issue inherent in pseudo-labeling based INER approaches.

Impact Statement—Incremental Named Entity Recognition (INER) allows AI systems to continuously identify emerging entities in text, crucial for virtual assistants, automated healthcare records, and dynamic information platforms. Traditional methods often forget prior knowledge and overfit new data due to biased context. Our Type-Balanced Contextual Learning (TBCL) method corrects this by balancing old and new contextual information, ensuring stable learning over time. Extensive evaluations across benchmark datasets show TBCL consistently surpasses prior state-of-the-art approaches, offering more accurate, reliable, and adaptable AI models. This advancement improves AI's practical utility in healthcare, business intelligence, and education (social impact), reduces costly errors and inefficiencies (economic impact), and sets a new standard for sustainable incremental learning in real-world AI applications.

Index Terms—Incremental Learning, Named Entity Recognition, Knowledge Distillation, Pseudo-labeling, Context Analysis

I. INTRODUCTION

NAMED Entity Recognition (NER) is crucial for information extraction, supporting various downstream

Figure

Fig. 1. A basic example of INER scenario, where FL, CL, and PL represent Full ground-truth Labels, Current ground-truth Labels, and Pseudo Labels, respectively. Previous entity types (e.g., [PER] (Person), [CITY] (City)) and future entity type (e.g., [DATE] (Date)) are marked as the non-entity type (i.e., [O]) in the current step t where [ORG] (Organization) is the current entity type being learned, leading to the shift of the non-entity type semantics (the second row CL). Using PL produced by the previous model to augment CL as the current classification target can effectively address the issue of semantic shift (the third row CL+PL).

tasks such as question answering [1], [2] and web search queries [3]–[6]. NER focuses on identifying entities from unstructured text and classifying them into predefined categories (e.g., Person, Location) or as the non-entity type. In the traditional fully-supervised NER framework [7], all predefined entity types are fixed and learned simultaneously during training, with the assumption that no new types will appear at the testing stage. Nevertheless, real-world scenarios frequently demand the discovery of novel entity types dynamically. For instance, virtual voice assistants like Alexa need to recognize new types (e.g., Genre, Actor) to understand emerging intents (e.g., GetMovie) [8]. Conventional NER paradigms struggle when confronted with new entity types not encountered at the training stage. A simple strategy involves fine-tuning the NER model exclusively with new entity types samples, referred to as Incremental Named Entity Recognition (INER) [8]–[10]. Effective INER methods [8], [11], [12] are needed to incrementally update the model using only training samples of new entity types. However, INER faces two primary issues: catastrophic forgetting [13]–[16] and the semantic shift of the non-entity type [17].

The first challenge, catastrophic forgetting [13]–[16], is a widespread issue in incremental learning methodologies. This problem arises when model weights are modified to align with the optimal parameter space for newly added entity types, while lacking access to those encountered earlier. As a result, the NER model often forgets previously acquired knowledge of old entity types as it acquires information about new ones. The second challenge, the semantic shift of the non-entity type [17], is specific to INER. In contrast to conventional NER paradigms, where the non-entity type only includes tokens unrelated to any entity type, INER employs a distinct tagging

Manuscript created March, 2025. Duzhen Zhang and Yahan Yu contributed equally to this work. Chenxing Li is the corresponding author. Duzhen Zhang is with the Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, UAE (E-mail: duzhen.zhang@mbzuai.ac.ae). Yahan Yu is with the Kyoto University, Kyoto, Japan (E-mail: yahan@nlp.ist.i.kyoto-u.ac.jp). Xiuyi Chen is with the Institute of Automation, Chinese Academy of Sciences, Beijing, China (E-mail: chenxiuyi2017@gmail.com). Chenxing Li is with the Tencent, AI Lab, Beijing, China (E-mail: chenxingli@tencent.com). Dong Yu is with the Tencent, AI Lab, Bellevue, WA 98004 USA (E-mail: dyu@global.tencent.com).

The code is publicly available at https://github.com/BladeDancer957/TBCL.

JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021

Figure

Fig. 2. Depiction of biased contextual relationships between the old-entity-type and new-entity-type tokens in the new sentences. At step t−1t-1, when the NER model learns Person-entity-type sentences, the context of Person includes various entity types (e.g., Person-City, Person-Country, Person-Location). However, at step tt, when the model learns the new Organization-entity-type sentences, the context of Person predominantly comprises Person-Organization pairs. Consequently, a new-entity-type-biased context for the old-entity-type (Person) tokens emerges in the new-entity-type (Organization) sentences, exacerbating the old-entity-type forgetting and new-entity-type overfitting issues.

approach. In INER, both previously learned and future entity types are tagged as the non-entity type at the current step, resulting in what we term the semantic shift of the non-entity type. As shown in Figure 1 (the second row, CL), old types Person and City (learned in previous steps like t−1t-1, t−2t-2, t−3t-3, etc.) and the future type Date (to be learned in future steps like t+1t+1, t+2t+2, t+3t+3, etc.) are all masked as the non-entity type in the current step tt, where Organization is the type currently being learned. If measures are not implemented to distinguish tokens associated with old entity types from the actual non-entity type, this phenomenon of semantic shift might worsen catastrophic forgetting.

Early INER methods [8], [11], [12] typically employ Knowledge Distillation (KD) [18] to address the problem of catastrophic forgetting. These approaches transfer output probability distribution from the previous model to the current model, thereby retaining the previously learned knowledge of old entity types. However, they overlook the shift issue of the non-entity type semantics specific to INER. To overcome this limitation, RDP [17], a pseudo-labeling based INER method, is proposed. This method tackles the semantic shift issue by augmenting the current ground-truth labels with pseudo labels, resulting in more informative labels as the classification target for the current step (the third row CL+PL in Figure 1). These pseudo labels are derived from predictions of the old model. By integrating KD and pseudo-labeling, RDP [17] attains State-Of-The-Art (SOTA) performance in INER.

Although RDP [17] effectively addresses the two primary

challenges of INER, it introduces another challenge. Since NER is considered a context-dependent token-level classification task, we conducted a contextual analysis of entity types after pseudo-labeling [19]. As shown in Figure 2, in step t−1t-1, when the model learns the Person entity type, we observed that the co-occurrence frequency of Person with each of the pseudo-labeled old entity types (e.g., City, Country, Location) in the old sentences is almost the same. However, by step tt, as the model learns the Organization entity type, the co-occurrence frequency between Person and Organization is greatly higher than with other entity types in the new sentences. We term this challenge the biased context problem, indicating that the context of old-entity-type tokens in the novel sentences exhibits a stronger bias towards new entity types compared to that in the old sentences. This bias can lead to a pronounced exacerbation of old-entity-type forgetting and new-entity-type overfitting.

To rectify this context bias, we introduce a Type-Balanced Contextual Learning (TBCL) method, which integrates a sentence-duplet learning scheme with a contextual consistency loss. This method aims to mitigate the impact of biased context information from old-entity-type tokens in the new incremental sentences. The sentence-duplet learning scheme utilizes pairs of sentences: the original sentence containing the new-entity-type tokens and a modified version with those tokens removed. This approach helps correct the context of old entity types in relation to the new ones. Additionally, the contextual consistency loss enforces a restriction on the context of old entity types within each sentence pair, ensuring consistency across contexts.

We highlight our core contributions as follows:

  • We pioneer the exploration of biased context in the INER scenario and introduce the TBCL method to address it. This method aims to mitigate the forgetting of old entity types while preventing the overfitting of new ones.
  • We devise a novel sentence-duplet learning scheme and a contextual consistency loss, modifying how old entity types are contextualized with respect to new ones.
  • Comprehensive experiments conducted on ten INER settings across three highly recognized datasets confirm the efficacy of the proposed TBCL method. The outcomes reveal that our method surpasses several existing INER methods and achieves new SOTA performance in INER.

References (53)

  • Entity-Relation Extraction as Multi-Turn Question Answering
  • Entity-Based Knowledge Conflicts in Question Answering
  • Gazetteer Enhanced Named Entity Recognition for Code-Mixed Web Queries
  • Named entity recognition in query
  • Tagging Address Queries in Maps Search
  • AliCG: Fine-grained and Evolvable Conceptual Graph Construction for Semantic Search at Alibaba
  • Neural architectures for named entity recognition
  • Continual learning for named entity recognition
  • Continual lifelong learning with neural networks: A review
  • Lifelong learning algorithms
  • Learn and Review: Enhancing Continual Named Entity Recognition via Reviewing Synthetic Samples
  • Distilling Causal Effect from Miscellaneous Other-Class for Continual Named Entity Recognition
  • Catastrophic interference in connectionist networks: The sequential learning problem
  • Catastrophic forgetting, rehearsal and pseudorehearsal
  • An empirical investigation of catastrophic forgetting in gradient-based neural networks (opens arXiv in a new tab)
  • Overcoming catastrophic forgetting in neural networks
  • Task relation distillation and prototypical pseudo label for incremental named entity recognition
  • Distilling the Knowledge in a Neural Network
  • Rbc: Rectifying the biased context in continual semantic segmentation
  • Lifelong machine learning
  • Federated Incremental Semantic Segmentation
  • Continual learning through synaptic intelligence
  • Memory Aware Synapses: Learning what (not) to forget
  • Progress & compress: A scalable framework for continual learning
  • Learning a Unified Classifier Incrementally via Rebalancing
  • Learning without Forgetting
  • PackNet: Adding Multiple Tasks to a Single Network by Iterative Pruning
  • Lifelong learning with dynamically expandable networks
  • Incremental Learning Through Deep Adaptation
  • iCaRL: Incremental Classifier and Representation Learning
  • Gradient Episodic Memory for Continual Learning
  • Continual Learning with Deep Generative Replay
  • End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF
  • A survey on deep learning for named entity recognition
  • Neural Architectures for Named Entity Recognition (opens the publisher in a new tab)
  • BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
  • Decomposing Logits Distillation for Incremental Named Entity Recognition
  • Learning “O
  • SKD-NER: Continual Named Entity Recognition via Span-based Knowledge Distillation with Reinforcement Learning
  • Continual Named Entity Recognition without Catastrophic Forgetting
  • Exploring Stability-Plasticity Trade-offs for Continual Named Entity Recognition
  • Flexible weight tuning and weight fusion strategies for continual named entity recognition
  • Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition
  • Serving the enterprise and beyond with informatics for integrating biology and the bedside (i2b2)
  • OntoNotes: the 90% solution
  • PODNet: Pooled Outputs Distillation for Small-Tasks Incremental Learning
  • Continual learning: A comparative study on how to defy forgetting in classification tasks
  • Semi-Supervised Self-Training of Object Detection Models
  • Pytorch: An imperative style, high-performance deep learning library
  • HuggingFace's Transformers: State-of-the-art Natural Language Processing
  • PLOP: Learning Without Forgetting for Continual Semantic Segmentation
  • Incremental learning with maximum entropy regularization: Rethinking forgetting and intransigence (opens arXiv in a new tab)
  • Few-nerd: A few-shot named entity recognition dataset