A noisy label correction method for fine-grained entity classification

By converting sentences and entity mention tuples into specific template input pre-trained language models, and using semi-supervised learning and entropy regularization techniques to correct noise labels in fine-grained entity classification, the problem of the impact of noise labels is solved. , significantly improving model performance.

CN114912436BActive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210587889.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-10-22
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

There are a large number of noise labels in existing fine-grained entity classification methods, which affects model performance. Moreover, existing noise reduction methods rely heavily on artificially given prior knowledge, and their application scope is limited.

Method used

A noisy label correction method for fine-grained entity classification is adopted. By converting sentences and entity mention tuples into specific templates, the pre-trained language model is input to predict the probability of label occurrence, and semi-supervised learning and entropy regularization techniques are used to Potentially noisy labels are relabeled, and noisy samples are filtered and corrected.

Benefits of technology

The performance of the classification model is significantly improved, making it better than the baseline model in different fine-grained entity classification tasks, and effectively corrects the noise labels in the original data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114912436B_ABST
    Figure CN114912436B_ABST
Patent Text Reader

Abstract

The present invention discloses a noise label correction method for fine-grained entity classification, comprising the following steps: 1) obtaining sentences in a sample and entity mentions that have been marked in the sentence as input; 2) converting the sentence and the entity mention tuple that have been marked in the sentence according to; 3) using the converted input as the input of a pre-trained language model BERT, predicting the [MASK] position, and taking the probability of the label appearing at the [MASK] position as the probability that the sample has the label; 4) in step 3), before the model network is overfitted, the probability that the sample label is positive is estimated based on the logits output by the model before overfitting; 5) using the logit output by the model before overfitting to estimate the posterior probability that the data label is positive or negative, selecting potential noise labels, and re-labeling the potential noise labels using a semi-supervised learning method. The method of the present invention can effectively correct the noise labels in fine-grained entity classification data without introducing artificial prior knowledge.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to natural language processing technology, and in particular to a noise label correction method for fine-grained entity classification. Background Art

[0002] Existing fine-grained entity typing (FET) methods are mainly based on large-scale weakly supervised data training. These data generated by crowdsourcing annotation or remote supervision methods often contain a large number of noisy labels, which seriously affects the performance of the model. Traditional denoising methods usually rely on manually designed heuristic rules. With the advancement of deep learning, many methods are committed to automatically correcting noisy labels in fine-grained entity classification data. Among them, a series of methods based on partial labeling loss have been widely studied. This type of method weakens the supervisory signal from potential noisy labels by correcting the loss function. In addition, there are methods that generate more accurate training data by training noisy data filtering networks and label re-labeling networks. Although these methods have made great progress in automatic fine-grained entity classification label denoising, they usually rely heavily on artificial prior knowledge, such as predefined hierarchical type structures, manually annotated datasets, etc. In the real world, this prior knowledge may be difficult to obtain, resulting in limited application scope of existing denoising methods. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a noise label correction method for fine-grained entity classification in view of the defects in the prior art.

[0004] The technical solution adopted by the present invention to solve the technical problem is: a noise label correction method for fine-grained entity classification, comprising the following steps:

[0005] 1) Obtain the sentences in the sample and the annotated entity mentions in the sentences as input according to the fine-grained entity classification dataset;

[0006] 2) Transform the sentence and the entity mention bigrams marked in the sentence according to the following template;

[0007] T(x,m)=x,P1]m[P2][P3][MASK]

[0008] Where [P1][P2][P3] are randomly initialized trainable parameters that together form the prompt template, [MASK] is the mask symbol used in the pre-trained language model, x is the sentence, m is the marked entity in the sentence, and T(·,·) is the transformation function;

[0009] 3) The converted input is used as the input of the pre-trained language model BERT, the [MASK] position is predicted, and the probability of the label appearing at the [MASK] position is used as the probability that the sample has the label;

[0010] 4) In step 3), before the model network is overfitted, the probability that the sample label is positive is estimated based on the logits output by the entity classification model before overfitting;

[0011] 4.1) Based on the original labels and logits of the samples, a heuristic algorithm is used to filter the noise samples;

[0012] 4.2) Calculate the probability that the sample label is positive

[0013]

[0014] Among them, y is the sample label, y=1 corresponds to a positive sample, y=0 corresponds to a negative sample, and l represents the logits output by the entity classification model for the sample.

[0015] 5) Use the logit output of the model before overfitting to estimate the posterior probability that the data label is positive or negative, select potential noise labels, and relabel the potential noise labels using a semi-supervised learning method.

[0016] According to the above scheme, the step 4.1) is as follows: collect the logits output by the model for positive and negative samples, and regard the outliers as noise samples, and continue to execute this step until no outliers can be selected.

[0017] According to the above scheme, step 5) is as follows: first, compare the posterior probability of the sample label being positive with the original label. If one of the following conditions is met, it is regarded as a potential noise label:

[0018]

[0019] Among them, p(y=1|logit) is the posterior probability that the sample label is positive, is the original label, ∈∈[0,0.5] is the algorithm hyperparameter, and then the remaining clean labels are used to continue fine-tuning the model. At the same time, the potential noise samples are regarded as unlabeled data and entropy regularization is applied to them to encourage the decision boundary to be located in the low-density sample area. After fine-tuning, the potential noise samples are relabeled according to the model output. If the model output logit is greater than 0, a positive label is assigned, otherwise a negative label is assigned.

[0020] The beneficial effect of the present invention is that after using the noise label correction method proposed in the present invention to reduce the noise of the data, the classification model performance is significantly improved, and it is always better than all benchmark models in different fine-grained entity classification tasks. This shows that the method proposed in the present invention effectively corrects the noise labels in the original data. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0022] Figure 1 is a method flow chart of an embodiment of the present invention;

[0023] Figure 2 3 is a schematic diagram of estimating the posterior label probability using the logits output by the model before overfitting according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0025] like Figure 1 As shown, a noise label correction method for fine-grained entity classification includes the following steps:

[0026] 1) The training set of the fine-grained entity classification task can be represented as a series of (sentence, entity mention) bigrams.

[0027] According to the fine-grained entity classification dataset, the sentences in the sample and the annotated entity mentions in the sentences, that is, the (sentence, entity mention) bigrams are taken as input;

[0028] 2) Convert the (sentence, entity mention) bigrams according to the following template;

[0029] T(x,m)=x[P1]m[P2][P3][MASK]

[0030] Where [P1][P2][P3] are randomly initialized trainable parameters that together form the prompt template, [MASK] is the mask symbol used in the pre-trained language model, x is the sentence, m is the marked entity in the sentence, and T(·,·) is the transformation function;

[0031] 3) The converted input is used as the input of the pre-trained language model BERT, and the [MASK] position is predicted. The probability of the label appearing at the [MASK] position is used as the probability that the sample has the label. If the label contains multiple words, the average probability of validity is taken.

[0032] like Figure 2 As shown in the figure, the model did not completely separate the positive and negative samples before overfitting, and some "ambiguous" samples appeared.

[0033] 4) In step 3), before the model network is overfitted, the probability of the sample label being positive is estimated based on the logits output by the model before overfitting;

[0034] 4.1) Based on the original labels and logits of the samples, a heuristic algorithm is used to filter the noise samples;

[0035] The specific algorithm is as follows:

[0036]

[0037]

[0038] After filtering is completed, p(y=1) and p(y=0) can be obtained by counting the number of positive and negative samples remaining in the statistical data set, and p(l│y=1) and p(l|y=0) can be used to perform maximum likelihood fitting on the logits output by the positive and negative samples using a one-dimensional Gaussian distribution.

[0039] 4.2) Calculate the probability that the sample label is positive

[0040]

[0041] Where y is the sample label, y=1 corresponds to a positive sample, y=0 corresponds to a negative sample, and l represents the logits output by the entity classification model for the sample;

[0042] 5) Use the logit output of the model before overfitting to estimate the posterior probability of the data label being positive or negative, compare it with the original label, and select the potential noise label. Specifically, if a sample meets one of the following two conditions, it will be considered as a potential noise sample:

[0043]

[0044] Among them, p(y=1|logit) is the posterior probability that the sample label is positive, is the original label, ∈∈[0,0.5] is the algorithm hyperparameter. The potential noise labels are then relabeled using a semi-supervised learning method. In order to correct the noise samples as much as possible, this method proposes to continue fine-tuning the model using the remaining clean labels, while treating the potential noise samples as unlabeled data and applying entropy regularization to them, encouraging the decision boundary to be located in the low-density sample area. After fine-tuning, the potential noise samples are relabeled according to the model output. If the model output logit is greater than 0, a positive label is assigned, otherwise a negative label is assigned.

[0045] Experiments show that the noise label correction method of the present invention achieves better results than the existing mainstream methods. The experiment uses two benchmark sequence annotation datasets for evaluation, namely the ultra-fine-grained entity classification dataset (Ultra-Fine) and the entity classification part of the OntoNotes dataset. The detailed information of the corpus is shown in Table 1.

[0046] Table 1 Corpus information

[0047]

[0048] The experimental part aims to evaluate the effectiveness of the noise label correction method proposed in this invention on different fine-grained entity classification datasets. We list the Macro-F1 scores on Ultra-Fine and OntoNotes fine-grained entity classification tasks as the evaluation indicators of the model. The denoising method proposed in this invention uses a fine-grained entity classification method based on prompt learning. In order to better demonstrate the performance improvement brought by denoising, we compare the performance of this method before and after data denoising. The specific experimental comparison results are given in Tables 2 and 3 respectively.

[0049] Table 2 Ultra-Fine comparison test results

[0050]

[0051] Table 3 Comparative experimental results of OntoNotes fine-grained entity classification

[0052]

[0053] It is worth noting that from the above two tables, it can be observed that after using the noise label correction method proposed in the present invention to reduce the noise of the data, the model performance is significantly improved, and it is always better than all benchmark models in different fine-grained entity classification tasks. This shows that the method proposed in the present invention effectively corrects the noise labels in the original data.

[0054] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A noise label correction method for fine-grained entity classification, characterized in that: The following steps are involved: 1) Obtain the sentences in the sample and the annotated entity mentions in the sentences as input according to the fine-grained entity classification dataset; 2) Transform the sentence and the entity mention bigrams marked in the sentence according to the following template; T(x,m)=x[P1]m[P2][P3][MASK] Where [P1][P2][P3] are randomly initialized trainable parameters that together form the prompt template, [MASK] is the mask symbol used in the pre-trained language model, x is the sentence, m is the marked entity in the sentence, and T is the transformation function; 3) The converted input is used as the input of the pre-trained language model BERT, the [MASK] position is predicted, and the probability of the label appearing at the [MASK] position is used as the probability that the sample has the label; 4) In step 3), before the model network is overfitted, the probability that the sample label is positive is estimated based on the logits output by the entity classification model before overfitting; 4.1) Based on the original labels and logits of the samples, a heuristic algorithm is used to filter the noise samples; 4.2) Calculate the probability that the sample label is positive Where y is the sample label, y=1 corresponds to a positive sample, y=0 corresponds to a negative sample, and l represents the logits output by the entity classification model for the sample; 5) Use the logit output of the entity classification model before overfitting to estimate the posterior probability of the data label being positive or negative, select the potential noise label by comparing the posterior probability with the original label, and use the semi-supervised learning method to relabel the potential noise label to complete the correction; The step 5) is specifically as follows: 5.1) Compare the posterior probability of the sample label being positive with the original label. If one of the following conditions is met, it will be selected as a potential noise label: Among them, p(y=1|logit) is the posterior probability that the sample label is positive, For the original annotation, ∈[0,0.5] is the algorithm hyperparameter; 5.2) Use the remaining clean labels to continue fine-tuning the model, while treating potential noise samples as unlabeled data and applying entropy regularization to them, encouraging the decision boundary to be located in the low-density sample area; after fine-tuning, re-label the potential noise samples according to the model output. If the model output logit is greater than 0, a positive label is assigned, otherwise a negative label is assigned.

2. The noise label correction method for fine-grained entity classification according to claim 1 is characterized in that: The step 4.1) is specifically as follows: collect the logits output by the model for positive and negative samples, and regard the outliers as noise samples, and continue to perform this step until no outliers can be selected.