Named Entity Recognition Incremental Learning Without Catastrophic Forgetting

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing deep learning models face challenges in adding new classes without interfering with the classification of original classes, often requiring large datasets for re-annotation and are prone to catastrophic forgetting, which is time-consuming and resource-intensive.

Innovation Solution

A method for few-shot incremental learning that saves last hidden state features from a pre-trained model and uses cosine similarity and cross-entropy loss optimization to add new classes, avoiding catastrophic forgetting and reducing the need for large datasets.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a deep learning model is retrained with all original training data enhanced with new classes, then the model can learn new classes, but the process is time-consuming and resource-consuming

Engineering Contradiction:
Improveability to learn new classesVSAvoidtraining time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent extracts and saves the last hidden state features corresponding to prototypes of original classes from the pre-trained model. These extracted features serve as a compact representation of original class knowledge, allowing the model to learn new classes without reprocessing all original training data, thus significantly reducing training time while maintaining adaptability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent performs preliminary action by saving the hidden state features of original classes before adding new classes. This pre-computed feature representation is stored and reused during incremental learning, eliminating the need to retrain on original data when new classes are introduced, thereby reducing time consumption.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If a deep learning model is retrained with all original training data enhanced with new classes, then the model can learn new classes, but the process is resource-consuming

Engineering Contradiction:
Improveability to learn new classesVSAvoidcomputational resources
Core Design Contradiction:
Adaptability or versatilityVSUse of energy by moving object

Solution Approach 1:

The patent extracts and saves the last hidden state features corresponding to prototypes of original classes from the pre-trained model. These extracted features serve as a compact representation of original class knowledge, allowing the model to learn new classes without reprocessing all original training data, thus significantly reducing training time while maintaining adaptability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent performs preliminary action by saving the hidden state features of original classes before adding new classes. This pre-computed feature representation is stored and reused during incremental learning, eliminating the need to retrain on original data when new classes are introduced, thereby reducing time consumption.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If a deep learning model is trained to add new classes, then the model gains new classification capabilities, but classification accuracy for original classes deteriorates

Engineering Contradiction:
Improveability to recognize new classesVSAvoidclassification accuracy for original classes
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent introduces an intermediary mechanism by using saved hidden state features of original classes as a reference during incremental learning. These saved features act as a mediator that guides the model to maintain accurate classification of original classes while learning new classes, preventing catastrophic forgetting through feature-level knowledge preservation.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent applies parameter changes by optimizing the loss function to include both cross-entropy loss for new classes and a constraint term that measures the distance between current hidden state features and saved hidden state features of original classes. This parameter adjustment ensures that while learning new classes, the model's representation of original classes remains stable, maintaining classification accuracy.

Inventive Principle:
Principle #35Parameter changes

4Quantity of substance

If few shot learning is used to train with minimal examples, then annotation costs are reduced, but the model underperforms compared to a model trained with a large dataset

Engineering Contradiction:
Improveamount of training dataVSAvoidclassification performance
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent performs preliminary action by pre-training the model on a large dataset to learn robust feature representations. The hidden state features from this pre-trained model are then saved and used as a foundation for few-shot incremental learning. This preliminary training endows the model with strong general capabilities, allowing it to achieve good performance even with minimal additional training data for new classes.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies parameter changes by optimizing the loss function to include both cross-entropy loss for new classes and a constraint term that measures the distance between current hidden state features and saved hidden state features of original classes. This parameter adjustment ensures that while learning new classes, the model's representation of original classes remains stable, maintaining classification accuracy.

Inventive Principle:
Principle #35Parameter changes

Applied Scientific Principles

This section explains which scientific principles are used to turn an abstract innovation direction into a practical engineering solution.

Function Achieved in This Case

Enables accurate classification of both old and new classes with minimal training data, reducing annotation costs and resource consumption while maintaining model flexibility.

Implementation Method 1

The cosine similarity loss optimization is of last hidden state features resulting from the further trained deep learning model and the first class and the second class compared to the saved last hidden state features

Methodology Applied
Scientific EffectCosine similarity:

Implementation Method 2

The cross entropy loss optimization is for classification of the first class, the second class, and the third class

Methodology Applied
Scientific EffectCross entropy:

Data Source

PatentUS12554937B2Few shot incremental learning for named entity recognition
Publication Date: 2026.02.17 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12554937B2 patent drawing
  • US12554937B2 patent drawing
  • US12554937B2 patent drawing

AI summary

A method, computer system, and a computer program product for classification training are provided. A deep learning model is trained with a first dataset that includes annotated samples that include a first and second class. Last hidden state features corresponding to respective tokens from prototypes of the first and second class are saved. The trained deep learning model is further trained with a second dataset that includes additional annotated samples that include the first and second class and a third class. The further training includes performing a cosine similarity loss optimization and a cross entropy loss optimization. The cosine similarity loss optimization is of last hidden state features resulting from the further trained deep learning model and the first class and the second class compared to the saved last hidden state features. The cross entropy loss optimization is for classification of the first, second, and the third class.