TL;DR
Incremental Named Entity Recognition (INER) models often suffer from a hidden "biased context" problem when learning new entity types, which accelerates the forgetting of older types. To solve this, the authors propose Type-Balanced Contextual Learning (TBCL), a novel method that pairs original sentences with versions where new entities are erased, enforcing a contextual consistency loss. TBCL achieves new state-of-the-art performance across multiple standard benchmarks and demonstrates exceptional stability against class-ordering instability.
What Problem Does This Paper Address?
Named Entity Recognition (NER) is a core NLP task focused on locating and classifying entities (like people, organizations, or locations) in text. In real-world applications, AI systems frequently encounter entirely new entity types over time. Re-training a massive model from scratch every time a new entity type is introduced is computationally prohibitive. This gives rise to Incremental Named Entity Recognition (INER).
INER faces two classic hurdles: catastrophic forgetting (losing old knowledge when learning new things) and semantic shift (where previously learned entities are suddenly masked as generic background text in new datasets). While pseudo-labeling techniques have successfully mitigated semantic shift, this paper uncovers a new, overlooked bottleneck: The Biased Context Problem.
When a model is fed new sentences to learn a new entity type (e.g., Organization), any old entity types present in those sentences (e.g., Person) will co-occur overwhelmingly with the new type. As a result, the model mistakenly learns that Person tokens are strictly associated with Organization contexts. This skews the model's contextual understanding, causing it to overfit to new entity types and fail to recognize old entities when they appear in different contexts.
Methods
To rectify this context bias, the authors introduce Type-Balanced Contextual Learning (TBCL). Instead of modifying the underlying model architecture, TBCL adjusts how the model processes contextual relationships during training using two core mechanisms:
- Sentence-Duplet Learning Scheme: For every training sentence $X^t$ containing new entity types, the framework constructs an erased twin sentence $\overline{X^t}$ by removing the tokens belonging to the new entity types and replacing them with a placeholder
[X]. - Contextual Consistency Loss ($\mathcal{L}_{ctxc}$): The model is trained on both the original and erased sentences simultaneously. TBCL applies a consistency constraint that forces the model's token-level probability distributions for the old entity types to remain identical across both versions.
By stripping away the new entity context in the erased sentence and forcing prediction consistency, the model learns to decouple old entities from the over-represented contexts of newly introduced types.
Datasets
The authors evaluated TBCL across ten different incremental settings using four highly recognized datasets:
- CoNLL2003: A standard benchmark containing 4 foundational entity types (Location, Misc, Organization, Person).
- I2B2: A specialized clinical notes dataset featuring 16 medical and privacy entity types.
- OntoNotes5: A large-scale, diverse dataset spanning 18 entity types.
- FEW-NERD: A highly challenging dataset with 66 fine-grained entity types, used here to test performance over an extended 11-step incremental learning setup.
Key Insights and Ideas
- Context is a Double-Edged Sword: While rich contextual representations help language models achieve high accuracy, highly skewed context distributions in sequential data streams act as a dangerous shortcut that erases past knowledge.
- Data Augmentation Alone Isn't Enough: In ablation studies, simply duplicating the original sentences (
Baseline+double) did not improve performance. True mitigation requires selectively erasing the newly introduced information (Baseline+duplet) to force the model to rely on stable, non-biased features. - Order Invariance: A notorious issue in incremental learning is that performance fluctuates wildly depending on the order in which classes are introduced. TBCL demonstrates remarkable robustness and tighter variance across random class permutations compared to previous state-of-the-art methods.
Key Results
TBCL consistently outperformed all competing baselines—including previous state-of-the-art methods like RDP and CFNER—across all datasets and settings.
- Substantial Performance Gains: On the challenging I2B2 dataset (under the FG-8-PG-1 setting), TBCL achieved an absolute improvement of +6.49 in Micro-F1 and +4.28 in Macro-F1 over the previous best method (RDP).
- Sustained Performance Over Time: Step-wise evaluations revealed that TBCL maintains high accuracy across long sequences of incremental updates, successfully resisting the typical downward performance spiral seen in standard fine-tuning.
- Backbone Agnostic: The method scales effectively with larger pre-trained language models. Upgrading the encoder backbone from
bert-base-casedtoroberta-largeboosted TBCL's Micro-F1 from 82.37 to 84.20 on the I2B2 benchmark.
Limitations and Future Work
While highly effective, the authors note that completely erasing tokens to create sentence duplets can disrupt the natural syntax and grammatical structure of sentences. This disruption could potentially affect the language model's internal contextual representations.
For future work, the authors suggest exploring more sophisticated text-manipulation strategies (such as substitution or soft-masking) to balance context without breaking syntax. Additionally, extending this type-balanced contextual learning paradigm to other token-level incremental tasks, such as relation extraction or incremental semantic segmentation in computer vision, remains a promising direction.
Summary updated