Learning device, label estimation device, and program

By using co-occurrence information to adjust label loss values with a conditional Asymmetric Loss function, the method addresses label appearance rate imbalances and negative label domination, improving the accuracy of multi-label classification.

JP2024124787APending Publication Date: 2024-09-13NIPPON HOSO KYOKAI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023032693
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In multi-label classification problems, there is an imbalance in label appearance rates, leading to lower accuracy for low-frequency labels due to negative label domination and data imbalance, which existing techniques like Class Balanced Loss and Asymmetric Loss fail to adequately address.

Method used

A method that incorporates co-occurrence information to adjust label loss values using a conditional Asymmetric Loss function, where the loss for negative labels is weighted based on their frequency of appearance, and label smoothing is applied to improve the accuracy of label estimation.

Benefits of technology

This approach enhances the accuracy of label estimation by reducing the impact of negative label domination and data imbalance, resulting in improved learning and estimation performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024124787000001
    Figure 2024124787000001
Patent Text Reader

Abstract

To improve the accuracy of label estimation.SOLUTION: A learning device comprises a control part that performs learning of a mathematical model to be learned using a label-assignment target to which a label is to be assigned, co-occurrence information indicating the degree of co-occurrence of each of one or more labels prepared in advance, and information indicating whether each label is a positive label or a negative label, where the mathematical model is a mathematical model that estimates the probability of assigning each of the labels prepared in advance to the label-assignment target, and in learning, the mathematical model is updated to reduce the total sum of label losses LLabell which are losses obtained for each label, and the label loss LLabell is a value of a function expressed using a value rcb' indicating an amount relevant to the appearance frequency of the label, a function y' indicating processing for label smoothing based on the co-occurrence information, and Asymmetric Loss satisfying a condition that an index as Asymmetric Loss for the negative label is proportional to rcb'.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning device, a label estimation device, and a program. [Background technology]

[0002] In recent years, the amount of data handled by humans has increased significantly, and it is expected to increase at an even faster rate in the future. Adding metadata is essential for building a sound database. In particular, labels that indicate the content of the data are important when humans use the data. However, manually assigning labels to large amounts of data is a costly task. Therefore, in recent years, methods have been developed that use label classification models that use neural networks to automate the assignment of labels to data. A label is a word or short sentence that represents the content of the data and is used to classify it.

[0003] Generally, data such as text, images, and sounds often have multiple meanings. Therefore, a single piece of data may be assigned different labels of variable length. Such problems are defined as multi-label classification problems. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-53730 A [Non-patent literature]

[0005] [Non-Patent Document 1] Fujino et al., "Multi-label classification of text documents using topic models and least mean squares estimation," Journal of Tokai University, Faculty of Information and Communications, Vol. 10, No. 1, 2017, pp. 15-24 [Non-Patent Document 2] Kishida et al., "Comparison of SVM and BERT in Multi-Label Classification of Game Reviews," IPSJ SIG Technical Report, Vol. 2022-IFAT-147 No. 2, July 29, 2022 [Non-Patent Document 3] Adhikari et al., “Rethinking complex neural network architectures for document classification” Proceedings of NAACL-HLT 2019, pages 4046-4051, Minneapolis, Minnesota, June 2-June 7, 2019 [Non-Patent Document 4] Cui, Yin, et al. “Class-balanced loss based on effective number of samples.” Proceedings of the IEEE / CVF conference on computer vision and pattern recognition. 2019. [Non-Patent Document 5] Ridnik, Tal, et al. “Asymmetric loss for multi-label classification.” Proceedings of the IEEE / CVF International Conference on Computer Vision. 2021. [Non-Patent Document 6] Zhuang, Liu, et al. “A robustly optimized BERT pre-training approach with post-training.” Proceedings of the 20th chinese national conference on computational linguistics. 2021. Summary of the Invention [Problem to be solved by the invention]

[0006] In multi-label classification problems, the imbalance in the rate of label occurrence in the training data is a major problem. Labels that appear frequently in the data (high-frequency labels) can be trained with a wide variety of inputs, whereas labels that do not appear often in the data (low-frequency labels) can only be trained with a small number of inputs. As a result, the accuracy of low-frequency labels is poorer than that of high-frequency labels. This is the problem of imbalance in the rate of label occurrence in the training data.

[0007] To solve this problem, a technique called class balanced loss (see Non-Patent Document 4) is sometimes used, which suppresses the loss value derived from high-frequency labels and amplifies the loss value derived from low-frequency labels by applying a weight created from the frequency of occurrence of each label to the output of the loss function. However, amplifying the loss value derived from low-frequency labels also amplifies the problem of negative label domination, which will be described next, when the input sample has a negative low-frequency label.

[0008] In addition to the data imbalance problem mentioned above, multi-label classification also has the problem of negative label domination. This is a problem where the number of positive labels for one input sample is overwhelmingly smaller than the number of negative labels, so most of the loss values ​​calculated by the model for learning come from negative labels. This causes the model to adopt a strategy of lowering the output of many labels in order to lower the loss value. As a result, the model adapts well to high-frequency labels, which are easy to learn and have a high impact on the loss value, but does not adapt well to low-frequency labels, which are difficult to learn and have a small impact on the loss value.

[0009] To solve this problem, an asymmetric loss function has been proposed that reduces the loss value derived from the negative label by using a constant weight (see Non-Patent Document 5). However, in Asymmetric Loss, the label for the input sample is only classified as positive or negative, and the loss value is reduced by using a weight calculated from a constant.

[0010] Even with these efforts, there are still cases where the accuracy of label estimation is poor.

[0011] In view of the above circumstances, an object of the present invention is to provide a technique for improving the accuracy of label estimation. [Means for solving the problem]

[0012] According to one aspect of the present invention, a control unit is provided that performs learning of a mathematical model of a learning object using a label-assigned target that is a target for label assignment, co-occurrence information indicating a degree of co-occurrence of one or more labels prepared in advance, and information indicating whether each of the labels is a positive label or a negative label, the mathematical model is a mathematical model that estimates the probability that each of the labels prepared in advance will be assigned to the label-assigned target for each of the labels, and the learning includes a label loss L Labell The mathematical model is updated so as to reduce the amount indicating the sum of the label loss L Labell is a value r indicating the quantity related to the frequency of appearance of the label cb´ a function y' indicating label smoothing processing based on the co-occurrence information; and an Asymmetric Loss whose exponent for negative labels is the value r cb´ This is a learning device that is a function value expressed using Asymmetric Loss, which satisfies the condition that it is proportional to

[0013] According to one aspect of the present invention, a control unit is provided that performs learning of a mathematical model of a learning object using a label-assigned target that is a target for label assignment, co-occurrence information indicating a degree of co-occurrence of one or more labels prepared in advance, and information indicating whether each of the labels is a positive label or a negative label, the mathematical model is a mathematical model that estimates the probability that each of the labels prepared in advance will be assigned to the label-assigned target for each of the labels, and the learning includes a label loss L Labell The mathematical model is updated so as to reduce the amount indicating the sum of the label loss L Labell is a value r indicating the quantity related to the frequency of appearance of the label cb´ a function y' indicating label smoothing processing based on the co-occurrence information; and an Asymmetric Loss whose exponent for negative labels is the value r cb´ and an estimation unit that estimates a label to be assigned to a sentence to be processed using a trained label estimation model obtained by a learning device, the Asymmetric Loss satisfying the condition that it is proportional to

[0014] One aspect of the present invention is a program for causing a computer to function as the above-mentioned learning device.

[0015] One aspect of the present invention is a program for causing a computer to function as the label estimation device described above. Effect of the Invention

[0016] According to the present invention, it is possible to provide a technique for improving the accuracy of label estimation. [Brief description of the drawings]

[0017] [Figure 1] FIG. 1 is an explanatory diagram illustrating a label estimation system according to an embodiment. [Diagram 2] 5A to 5C are explanatory diagrams for explaining label smoothing processing based on co-occurrence information in the embodiment. [Diagram 3]FIG. 11 is an explanatory diagram illustrating the effect of a value γcb′ in the embodiment. [Figure 4] FIG. 11 is an explanatory diagram illustrating the effect of using the value γcb′ and Asymmetric Loss in the embodiment. [Diagram 5] FIG. 2 is a diagram showing an example of a hardware configuration of a learning device according to an embodiment. [Figure 6] 1 is a flowchart showing an example of a flow of a process executed by a learning device in an embodiment. [Figure 7] FIG. 2 is a diagram showing an example of a hardware configuration of a label estimation device according to an embodiment. [Figure 8] 1 is a flowchart showing an example of a flow of processing executed by a label estimation device in an embodiment. [Figure 9] 11A to 11C are diagrams showing examples of experimental results using the label estimation system according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] (Embodiment) FIG. 1 is an explanatory diagram for explaining a label estimation system 100 of an embodiment. The label estimation system 100 is a system that estimates a label to be assigned to an object to be labeled. The object to be labeled may be any object that is expressed by a tensor such as a vector, for example, a sentence. The object to be labeled may be, for example, an image or a sound. In the following, for simplicity of explanation, an example will be described in which the object to be labeled is a sentence. The system estimates a label to be assigned to a sentence. The label estimation system 100 obtains a mathematical model for estimating a label to be assigned to a sentence by a machine learning method. The label estimation system 100 estimates a label to be assigned to an input sentence using the obtained mathematical model.

[0019] More specifically, when text information is input, the label estimation system 100, which has finished acquiring the mathematical model, uses the acquired mathematical model to estimate a label to be assigned to a text indicated by the text information, based on the text information. The text information is information indicating a text. The label estimation system 100 will be described in more detail. The label estimation system 100 includes a learning device 1 and a label estimation device 2.

[0020] The learning device 1 obtains a trained label estimation model by updating the label estimation model using a machine learning method. Therefore, the learning target in the learning by the learning device 1 is the label estimation model. The label estimation model is a mathematical model that estimates a label to be assigned to a sentence indicated by input sentence information based on input sentence information, and is a mathematical model before a predetermined termination condition for learning is satisfied. Hereinafter, the sentence information used for learning the label estimation model is referred to as model learning data. The sentence information used for learning the label estimation model is the sentence information input to the label estimation model in the learning stage. The sentence indicated by the model learning data is the target for which the assigned label is estimated, and therefore the sentence indicated by the model learning data is the target to which the label is assigned. Hereinafter, the target to which the label is assigned is referred to as the label assignment target.

[0021] More specifically, the result estimated by the label estimation model is label assignment probability information. The label assignment probability information is information indicating the label assignment probability for each label candidate. The label assignment probability is the probability that a label is assigned to a label assignment target. The label candidates are one or more labels given in advance as candidates for the label to be assigned to the label assignment target. The label candidates are terms that can be associated with the label assignment target, such as "infectious disease", "business", "sports", and "stock price". In this way, the label assignment probability information is information indicating, for each label, the probability that one or more labels prepared in advance are assigned to the label assignment target.

[0022] Therefore, the label estimation model is a mathematical model that estimates, for each label, the probability that each prepared label will be assigned to a label assignment target.

[0023] The trained label estimation model is a label estimation model at the time when a predetermined termination condition for learning (hereinafter referred to as a "learning termination condition") is satisfied. The learning termination condition is, for example, a condition that a change in the label estimation model due to learning is smaller than a predetermined change. The learning termination condition may be, for example, a condition that the number of times learning has been performed reaches a predetermined number.

[0024] Hereinafter, the learning process in which the learning device 1 obtains a trained label estimation model is referred to as a model learning process. The learning may be any method using a loss (hereinafter referred to as an "ensemble loss") that satisfies a loss condition described later, for example, a method using CNN (Convolutional Neural Networks), a method using LSTM (Long short-term memory), or a method using BERT (Bidirectional Encoder Representations from Transformers). In the model learning process, the label estimation model is updated to reduce the ensemble loss.

[0025] Learning of the label estimation model is supervised learning using multiple training data. Training data is a set of text information and training data. Training data is information indicating whether each label candidate is correct or not. A probabilistic interpretation will be explained later, and according to this, training data is information indicating whether each label candidate is a label with a 100% probability of being a label that is assigned to a label assignment target, or a label with a 100% probability of not being assigned to a label assignment target. A label with a 100% probability of not being assigned to a label assignment target is, in other words, a label with a 0% probability of being a label that is assigned to a label assignment target.

[0026] Therefore, by indicating a label with a 100% probability of being a label that will be assigned to a label-assigned target with a value of 1, and indicating a label with a 100% probability of being a label that will not be assigned to a label-assigned target with a value of 0, it becomes easier to grasp the technical significance of various processes performed in learning a label estimation model. Therefore, for simplicity of explanation, the following explanation will be given taking as an example a case where a label with a 100% probability of being a label that will be assigned to a label-assigned target with a value of 1, and a label with a 100% probability of being a label that will not be assigned to a label-assigned target with a value of 0.

[0027] The correct label indicated by the correct answer data is a label that has a 100% probability of being a label that is assigned to the label assignment target. The incorrect label indicated by the correct answer data is a label that has a 100% probability of not being assigned to the label assignment target and is not the correct label. Furthermore, a label that has a 100% probability of being assigned to the label assignment target is a so-called positive label. A label that has a 100% probability of not being assigned to the label assignment target is a so-called negative label. Therefore, the correct answer data is information that indicates whether each label candidate is a positive label or a negative label.

[0028] <Examples of expressing label assignment probability information> A specific example of the expression of the label assignment probability information will be described. When there are N label candidates (N is a natural number), the label assignment probability information is expressed, for example, by an N-dimensional vector. Each element of the N-dimensional vector corresponds to one of the N label candidates, and elements with different indexes n correspond to different label candidates. n is a natural number from 1 to N. Note that the index n is an index for distinguishing the label candidates, and is also an index indicating the n-th element of the N-dimensional vector. For ease of explanation, the label estimation system 100 will be described below taking as an example a case where there are N label candidates.

[0029] Each element of the N-dimensional vector expressing the label assignment probability information indicates the label assignment probability of each corresponding label candidate. The label assignment probability is expressed, for example, as a value between 0 and 1. In such a case, the closer the value of each element of the N-dimensional vector expressing the label assignment probability information is to 0, for example, the more inappropriate the corresponding label candidate is as a label for the sentence indicated by the sentence information. On the other hand, the closer the value of each element of the N-dimensional vector expressing the label assignment probability information is to 1, for example, the more appropriate the corresponding label candidate is as a label for the sentence indicated by the sentence information.

[0030] <About model learning process and loss function> The model learning process will be described in more detail. As described above, the model learning process is a process of updating the label estimation model by a machine learning method using model learning data until the learning end condition is satisfied. In the model learning process, the label estimation model is updated so as to reduce the set loss.

[0031] <Loss conditions and collective losses> Hereinafter, A^B represents A to the power B, and A_B represents the symbol A with the subscript B. The loss condition satisfies the following first and second conditions. The first condition is that the aggregate loss is a quantity indicating the sum of each loss obtained for each label (hereinafter referred to as "label loss"). The quantity indicating the sum may be the sum itself or may be the average value. This is because the average value is the sum divided by the total number of labels. The second condition is a condition for label loss. Specifically, the second condition is that the label loss is expressed as a function y', the conditional Asymmetric Loss, and a value r indicating a quantity related to the frequency of occurrence of the target label. cb´ The condition is that the value of the function expressed using and is the value of the function expressed using. The target label is any one of the labels of the label candidates. r cb´ Since r is a quantity related to the frequency of occurrence, a value corresponding to the target label is given for each target label, and it is not necessarily the same value for all target labels. Therefore, for example, r cb´has a different value for at least one label from the other labels. This is one of the differences between the conventional Asymmetric Loss and the Conditional Asymmetric Loss.

[0032] The function y' is a function that indicates the process of label smoothing based on co-occurrence information (see References 1 and 2). The co-occurrence information is information that indicates the degree of co-occurrence of each label. The conditional asymmetric loss is an asymmetric loss in which the exponent for the negative label is the above-mentioned r cb´ This is an asymmetric loss that satisfies the condition that it is proportional to

[0033] Reference 1: Yuki Yasuda et al., “Label smoothing method using co-occurrence information in multi-label classification”, IEICE Technical Report NLC2021-27, SP2021-48 (2021-12) Reference 2: Christian Szegedy, et.al., “Rethinking the Inception Architecture for Computer Vision”, 2016 IEEE Conference on Computer Vision and Pattern Recognition

[0034] The conditional asymmetric loss is, for example, a loss expressed by the following equations (1) and (2).

[0035]

number

[0036]

number

[0037] The value p is part of the estimation result obtained by the label estimation model, and is the probability that the target label is assigned to the labeled target (i.e., the label assignment probability).

[0038] <Conditional Asymmetric Loss> To explain equations (1) and (2), we will explain the conditional asymmetric loss. Before explaining the conditional asymmetric loss, we first consider the index for the negative label, cb´ We will now explain Asymmetric Loss (ASL), which is not subject to the condition that it is proportional to . Such an ASL is a loss expressed by the following equations (3) and (4) (see equation (7) in Non-Patent Document 5).

[0039]

number

[0040]

number

[0041]

number

[0042] Equation (6) represents a mapping that expresses Asymmetric Probability Shifting (see equation (5) in Non-Patent Document 5). m is a predetermined value equal to or greater than 0.

[0043] γ in Eq. (3) + is the index for positive labels, and γ in Eq. (4) - is the index for negative labels. γ + and γ - Both of these are predetermined values. + and γ - is the same value regardless of the label.

[0044] Next, we will explain the conditional asymmetric loss. Note that the Cth power of the Bth power of A is the (B × C)th power of A. Comparing equation (2) and equation (4), the exponent in equation (4) is (γ - ×r cb´ ) Therefore, the conditional asymmetric loss is an asymmetric loss, and the exponent for the negative label is r cb´ It is an asymmetric loss that satisfies the condition that it is proportional to r cb´ Since it indicates a quantity related to the frequency of occurrence, it is not necessarily the same value for all target labels. Therefore, in the case of conditional asymmetric loss, unlike asymmetric loss, the value of the index is not necessarily the same for all labels.

[0045] Using such a conditional asymmetric loss, we obtain a label loss L that satisfies the second condition. Labell is expressed, for example, by the following formula (6). Formula (6) is a formula in which the quantity that takes the value of 0 or 1 in the formula expressing binary entropy is changed to a continuous quantity y' instead of a discrete quantity of 0 or 1. Since the second condition is satisfied, L in formula (6) + is L in Eq. (1). + In equation (6), L - is L in Eq. (2). - It is.

[0046]

number

[0047] y' is a function indicating label smoothing processing based on co-occurrence information (see References 1 and 2). Label smoothing is processing that converts the distribution of the probability that a label is assigned to a label assignment target (i.e., the label assignment probability) into a smoother distribution. Label smoothing processing based on co-occurrence information is processing that converts the distribution of the label assignment probability into a smoother distribution based on the co-occurrence information. The label smoothing processing based on co-occurrence information is processing expressed by, for example, the following formula (7).

[0048]

number

[0049] The PPMI in equation (7) is the positive pointwise mutual information matrix. The PPMI is obtained based on co-occurrence information. ij means the element in row i and column j of the positive mutual information matrix. α is a predetermined value greater than 0 and less than 1. Changing α changes the smoothness of the distribution. norm(·) is a normalization function. For example, norm(·) is Min-Max Normalization.

[0050] As described above, y is a quantity that takes the value of 0 or 1 in the formula representing binary entropy. Meanwhile, in the learning of the label estimation model, y is a quantity to which the value indicated by the correct answer data is input. Therefore, in the learning of the label estimation model, for a label indicating that the correct answer data is a positive label, a value of 1 is input to y when the loss of that label is acquired. On the other hand, for a label indicating that the correct answer data is a negative label, a value of 0 is input to y when the loss of that label is acquired. In the learning of the label estimation model, a label smoothing process based on co-occurrence information is executed, and y' is acquired based on the value of y. As is clear from formulas (6) and (7), when a label smoothing process based on co-occurrence information is not executed, y' in formula (6) is equal to y, and (1-y') is equal to (1-y).

[0051] In mathematics, values ​​between 0 and 1 are often interpreted as probabilities. 0 corresponds to 0% probability, and 1 corresponds to 100% probability. 0.5 is 50%. From this perspective, a negative label value of 0 can be interpreted as information that the probability of the label being assigned to the label target is 0%. From this perspective, the conversion from y to y' can be said to be a process in which information that the label is assigned to the label target with a 100% probability is converted to information that the label is assigned to the label target with a finite probability of less than 100% based on co-occurrence information.

[0052] It can also be said that this is a process that converts information that the probability of being assigned to the label target is 0% into information that the probability of being assigned to the label target is a finite value greater than 0% based on co-occurrence information. In this way, the conversion from y to y' can be said to be a process that smooths out the difference in label assignment probability between labels. This will be explained using Figure 2.

[0053] Fig. 2 is an explanatory diagram for explaining label smoothing processing based on co-occurrence information in an embodiment. Graph G101 in Fig. 2 is a graph showing an example of the distribution of label assignment probability before label smoothing processing is performed. Graph G102 in Fig. 2 is an example of the distribution of label assignment probability after label smoothing processing for graph G101. In both graphs G101 and G102, the horizontal axis indicates the label.

[0054] In the example of Figure 2, for example, "gold" is written on the horizontal axis. This indicates that the candidate labels to be assigned to the labeling target include the character "gold". Similarly, in the example of Figure 2, "wheat" and "flour" are written on the horizontal axis. This indicates that the candidate labels to be assigned to the labeling target include the characters "wheat" and "flour".

[0055] The example in Fig. 2 shows that label smoothing reduces the label assignment probability of labels that had a high label assignment probability in graph G101 through label smoothing processing based on co-occurrence information, and that the reduced amount is added to labels that had a label assignment probability of 0 in graph G101. If the label assignment probability is normalized so that its maximum value is 1, a label whose value was 1 in graph G101 is converted to a value y' less than 1 in graph G102. And the value in graph G102 of a label whose value was 0 in graph G101 is (1-y') after conversion. In this way, label smoothing processing is processing that converts the distribution of label assignment probabilities into a smoother distribution.

[0056] 1-y' indicates the amount of change in probability, which is obtained by a predetermined rule based on co-occurrence information. For example, if the co-occurrence information indicates that when the label assignment probability of one label is 1, the other label co-occurs with a probability of (1-y'), the amount of change in the label assignment probability of the other label is (1-y'). In the example of FIG. 2, "wheat" and "flour" indicate that when the label assignment probability of "wheat" is not 0, the label assignment probability of "flour" is also not 0. The predetermined rule based on co-occurrence information may be, for example, the rule indicated by the above-mentioned formula (7).

[0057] In this way, y' differs from y in that it is not a discrete quantity indicating 0 or 1, but a continuous quantity between 0 and 1. As described above, equation (6) is an equation in which the quantity y, which takes the value of 0 or 1 in the equation representing binary entropy, is changed to a continuous quantity y' rather than a discrete quantity of 0 or 1. Therefore, equation (6) is an equation that uses the results of the label smoothing process.

[0058] <Effects of label smoothing based on co-occurrence information> As can be seen from the explanation of Figure 2, by using y' and (1-y') instead of the terms y and (1-y), which only indicate positive and negative, the change in the label attachment probability of each label due to co-occurrence is included, making it possible to use a label loss with higher accuracy than that obtained by a rough approximation such as binarization. Note that high accuracy here means that it is more suitable for learning the label estimation model. As a result of the label attachment probability of each label being more accurately expressed, the label loss becomes more suitable for learning the label estimation model. In addition, as a result of more appropriate learning of the label estimation model, the accuracy of estimation using the trained label estimation model also improves.

[0059] <Value r cb´ For example of > The value r indicates the frequency of occurrence of the target label cb´ An example will be explained. cb´ For example, the weight r in Class Balanced loss (see Reference 3) cb Therefore, r cb´ For example, the weight r in Class Balanced Loss cb It is obtained based on r cb´ For example, r is a weighted value of the inverse of the size of the target label in the population. cb´ is expressed by the following equation (8). Equation (9) is the weight r cb This is the definition.

[0060] Reference 3: Yin Cui, et.al., “Class-Balanced Loss Based on Effective Number of Samples”, 2019 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), (2019)

[0061]

number

[0062]

number

[0063] i indicates the number of all the labels in the data set prepared in advance. Therefore, i is an identifier that identifies one or more labels (i.e., label candidates) prepared in advance. y represents the number of occurrences of the target label. β is a predetermined constant between 0 and 1. Thus, the value r cb´ is the weight r cb an identifier i for identifying a label candidate, and a quantity n representing the number of occurrences of any one of the label candidates (i.e., the target label). y The quantity may be defined by the above formula (8) as a quantity related to the frequency of occurrence of the target label using r. More specifically, the number of occurrences is the number of times the target label appears as a positive label in the training data. In this way, the value r cb´ indicates a quantity related to the frequency of occurrence of the target label. As can be seen based on equation (9), the denominator of equation (8) is a normalization factor.

[0064] <Value r cb´ About the effect of Value r cb´ represents a quantity related to the frequency of occurrence of the target label. Asymmetric Loss is a loss function that, as is well known, reduces the imbalance in the number of positive labels and negative labels. Therefore, simply using Asymmetric Loss increases the accuracy of the estimation of the label estimation model compared to when Asymmetric Loss is not used. In the label estimation model, the value r cb´ is also included in the label loss. Therefore, the label estimation model can estimate the imbalance in the frequency of occurrence of each label. This means that the degradation of the estimation accuracy caused by the bias in the frequency of occurrence of the labels can be mitigated.

[0065] Just to be clear, Asymmetric Loss reduces the imbalance between the number of positive and negative labels. On the other hand, the value of r cb´ is a quantity that represents the frequency of occurrence of labels, and does not represent the balance between positive and negative labels. Therefore, the value r cb´ When using the Asymmetric Loss without using the Asymmetric Loss, the imbalance between the number of positive labels and negative labels is not alleviated. This will be explained with reference to Figs.

[0066] FIG. 3 shows the value r cb´ FIG. 3 is an explanatory diagram for explaining the effect of. FIG. 3 is a graph showing an example of label loss for each label with an identifier from 1 to 90. In FIG. 3, "pos" means a positive label, and "neg" means a negative label. The horizontal axis of FIG. 3 indicates the label number. The label number is an identifier that identifies a label. Therefore, the horizontal axis of FIG. 3 indicates candidate labels that may be assigned to a label assignment target. The vertical axis of FIG. 3 indicates label loss.

[0067] Graph G201 in Figure 3 shows the relationship between the value r cb´ An example of the results is shown in Figure 3, where the label loss is reduced for labels with large label loss and increased for labels with small label loss. However, the imbalance between positive and negative labels remains.

[0068] FIG. 4 shows the value r cb´ FIG. 4 is an explanatory diagram for explaining the effect of using Asymmetric Loss and Asymmetric Loss. FIG. 4 shows the result of further using Asymmetric Loss in the example of FIG. 3. In FIG. 4, the imbalance between positive labels and negative labels is alleviated compared to FIG. 3.

[0069] <Value r cb´ About the effects of Value gamma cb´The effect of the above will be explained using the formula (2) as an example. cb´ is a value according to the label and the frequency of appearance of the label. In the conventional method, the same value of γ - The loss value is weighted using a constant. On the other hand, in the model training process, a value corresponding to the frequency of occurrence of each label is calculated from the frequency of occurrence of the label in the dataset (i.e., weight: r cb´ ) to γ - The loss of the negative labels is compressed by using different weights for each label, and the imbalance between the labels is mitigated.

[0070] Asymmetric Loss Index γ - ×r cb´ Using the Asymmetric Loss exponent γ - This means that the value of γ changes for each label. We will now explain the significance of this. - The higher the loss (L - ) is compressed a lot. That is, γ cb The compression ratio is low for labels with large values ​​of γ cb The compression ratio is higher for labels with small values ​​of (i.e., labels that do not appear often as positive in the dataset, i.e., labels that appear frequently as negative). Therefore, we increase the compression of the loss derived from negative labels for labels that appear frequently as negative.

[0071] <About the label estimation device> The label estimation device 2 estimates a label to be assigned to a label assignment target indicated by the input text information, using the trained label estimation model acquired by the learning device 1. More specifically, the label estimation device 2 estimates a label assignment probability of each label candidate for a label assignment target indicated by the input text information, using the trained label estimation model acquired by the learning device 1.

[0072] <Example of hardware configuration> 5 is a diagram showing an example of a hardware configuration of the learning device 1 in an embodiment. The learning device 1 includes a control unit 11 including a processor 91 such as a CPU (Central Processing Unit) and a memory 92 connected by a bus, and executes a program. The learning device 1 functions as a device including the control unit 11, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15 by executing the program.

[0073] More specifically, the processor 91 reads out a program stored in the storage unit 14, and stores the read out program in the memory 92. The processor 91 executes the program stored in the memory 92, whereby the learning device 1 functions as a device including a control unit 11, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15.

[0074] The control unit 11 controls the operation of various functional units included in the learning device 1. The control unit 11 executes, for example, a model learning process. The control unit 11 controls, for example, the operation of the output unit 15. The control unit 11 records, for example, various pieces of information generated by the execution of the model learning process in the storage unit 14.

[0075] Input unit 12 includes input devices such as a mouse, a keyboard, a touch panel, etc. Input unit 12 may be configured as an interface that connects these input devices to study device 1. Input unit 12 accepts input of various types of information to study device 1.

[0076] The communication unit 13 includes a communication interface for connecting the learning device 1 to an external device. The communication unit 13 communicates with the external device via wired or wireless communication. The external device is, for example, a device that transmits the model learning data. In this case, the communication unit 13 acquires the model learning data by communicating with the device that transmits the model learning data.

[0077] The external device is, for example, a device that is a source of the co-occurrence information. In such a case, the communication unit 13 acquires the co-occurrence information by communicating with the device that is a source of the co-occurrence information. The external device is, for example, the label estimation device 2. In such a case, the communication unit 13 transmits the trained label estimation model to the label estimation device 2 by communicating with the label estimation device 2. Note that transmitting the mathematical model means transmitting a computer program of the mathematical model.

[0078] It should be noted that the co-occurrence information and the model learning data do not necessarily have to be input via the communication unit 13, and may be input to the input unit 12.

[0079] The storage unit 14 is configured using a computer-readable storage medium device such as a magnetic hard disk device or a semiconductor storage device. The storage unit 14 stores various information related to the learning device 1. The storage unit 14 stores information inputted via the input unit 12 or the communication unit 13, for example. The storage unit 14 may store co-occurrence information in advance, for example. The storage unit 14 stores various information generated by execution of a model learning process, for example. The storage unit 14 stores a label estimation model in advance. The storage unit 14 may store the obtained learned label estimation model.

[0080] The output unit 15 outputs various information. The output unit 15 includes a display device such as a CRT (Cathode Ray Tube) display, a liquid crystal display, or an organic EL (Electro-Luminescence) display. The output unit 15 may be configured as an interface that connects these display devices to the learning device 1. The output unit 15 outputs information input to the input unit 12, for example. The output unit 15 may display the execution result of the model learning process, for example.

[0081] 6 is a flowchart showing an example of a flow of processing executed by the learning device 1 in the embodiment. The control unit 11 acquires model learning data (step S101). Next, the control unit 11 estimates label attachment probability information by inputting the model learning data acquired in step S101 to a label estimation model (step S102). Next, the control unit 11 updates the label estimation model based on the estimation result in step S103 so as to reduce the set loss (step S103).

[0082] Next, the control unit 11 determines whether or not the learning end condition is satisfied (step S104). If the learning end condition is satisfied (step S104: YES), the process ends. On the other hand, if the learning end condition is not satisfied (step S104: NO), the process returns to step S101.

[0083] The processes from step S101 to step S104, which are repeated until the learning end condition is satisfied, are an example of a model learning process.

[0084] 7 is a diagram showing an example of a hardware configuration of a label estimation device 2 in an embodiment. The label estimation device 2 includes a control unit 21 including a processor 93 such as a CPU and a memory 94 connected by a bus, and executes a program. The label estimation device 2 functions as a device including the control unit 21, an input unit 22, a communication unit 23, a storage unit 24, and an output unit 25 by executing the program.

[0085] More specifically, the processor 93 reads out a program stored in the storage unit 24, and stores the read out program in the memory 94. The processor 93 executes the program stored in the memory 94, whereby the label estimation device 2 functions as a device including a control unit 21, an input unit 22, a communication unit 23, a storage unit 24, and an output unit 25.

[0086] The control unit 21 controls the operation of various functional units included in the label estimation device 2. The control unit 21 executes, for example, a trained label estimation model. The control unit 21 controls, for example, the operation of the output unit 25. The control unit 21 records, for example, various pieces of information generated by the execution of the trained label estimation model in the storage unit 24.

[0087] The input unit 22 includes input devices such as a mouse, a keyboard, a touch panel, etc. The input unit 22 may be configured as an interface that connects these input devices to the label estimation device 2. The input unit 22 accepts input of various information to the label estimation device 2.

[0088] The communication unit 23 includes a communication interface for connecting the label estimation device 2 to an external device. The communication unit 23 communicates with the external device via a wired or wireless connection. The external device is, for example, a device that transmits text information. The external device is, for example, the learning device 1. The communication unit 23 acquires a trained label estimation model by communicating with the learning device 1. Note that the text information does not necessarily need to be input to the communication unit 23, and may be input to the input unit 22.

[0089] The storage unit 24 is configured using a computer-readable storage medium device such as a magnetic hard disk device or a semiconductor storage device. The storage unit 24 stores various information related to the label estimation device 2. The storage unit 24 stores information inputted via the input unit 22 or the communication unit 23, for example. The storage unit 24 stores various information generated by execution of a trained label estimation model, for example. The storage unit 24 stores the trained label estimation model. The storage unit 24 stores co-occurrence information inputted via the input unit 22 or the communication unit 23.

[0090] The output unit 25 outputs various information. The output unit 25 includes a display device such as a CRT display, a liquid crystal display, or an organic EL display. The output unit 25 may be configured as an interface that connects these display devices to the label estimation device 2. The output unit 25 outputs, for example, information input to the input unit 22. The output unit 25 may display, for example, the execution result of the trained label estimation model.

[0091] 8 is a flowchart showing an example of a flow of processing executed by the label estimation device 2 in the embodiment. The control unit 21 acquires text information input to the input unit 22 or the communication unit 23 (step S201). Next, the control unit 21 executes a trained label estimation model to estimate label assignment probability information for the text information acquired in step S201 (step S202). Next, the control unit 21 controls the operation of the output unit 25 to cause the output unit 25 to output the acquired label assignment probability information (step S203).

[0092] (Experimental Results) Here, we explain the results of an experiment using 100 label estimation samples. In the experiment, benchmarks used in multi-label classification were used as datasets. Specifically, three datasets were used: Reuters-21578, Arxiv Academic Paper Dataset (AAPD), and 20Newsgroups. The degree of imbalance was strongest in Reuters-21578, followed by AAPD, and weakest in 20Newsgroups.

[0093] In the experiment, a machine learning model used in natural language processing was used as the machine learning model. Specifically, BERT (Bidirectional Encoder Representations from Transformers), Bi-LSTM (Long Short Term Memory), and CNN (Convolution Neural Network) were used. The label loss in the experiment was the label loss in equation (6). In the experiment, Micro-f1 and Macro-f1 were used as evaluation indices. Macro-f1 was used to evaluate the accuracy of estimating low-frequency labels.

[0094] Fig. 9 is a diagram showing an example of an experimental result using the label estimation system 100 of the embodiment. In Fig. 9, "BCE" means Binary Cross-Entropy, "FOC" means Focal Loss, "CBL" means Class Balanced Loss, "CBL-ntr" means Class Balanced Loss with Negative Tolerant Regularization, "DBL" means Distribution Balanced Loss, and "ASL" means Asymmetric Loss. The result using the label estimation system 100 is "WASL" in Fig. 9. As for AAPD, it was not applied to Sota in the experiment.

[0095] The results in FIG. 9 show that the label estimation system 100 is capable of more accurate estimation than training using “BCE”, “FOC”, “CBL”, “CBL-ntr”, “DBL”, or “ASL” as losses.

[0096] The learning device 1 in this embodiment configured as above can improve the accuracy of label estimation because the loss used satisfies the above-mentioned second condition.

[0097] Moreover, the label estimation device 2 in the embodiment configured as above performs estimation using the learned mathematical model obtained by using the learning device 1. Therefore, the label estimation device 2 can improve the accuracy of label estimation.

[0098] (Modification) The learning device 1 may be implemented using a plurality of information processing devices communicably connected via a network. In this case, each functional unit of the learning device 1 may be distributed and implemented in the plurality of information processing devices.

[0099] The label estimation device 2 may be implemented using a plurality of information processing devices communicably connected via a network. In this case, each functional unit included in the label estimation device 2 may be distributed and implemented in the plurality of information processing devices.

[0100] All or part of the functions of the learning device 1 and the label estimation device 2 may be realized using hardware such as an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA (Field Programmable Gate Array). The program may be recorded on a computer-readable recording medium. Examples of computer-readable recording media include portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into computer systems. The program may be transmitted via a telecommunications line.

[0101] The sentence indicated by the sentence information acquired in step S201 is an example of a processing target. The control unit 21 is an example of an estimation unit.

[0102] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Explanation of symbols]

[0103] 100... label estimation system, 1... learning device, 2... label estimation device, 11... control unit, 12... input unit, 13... communication unit, 14... memory unit, 15... output unit, 21... control unit, 22... input unit, 23... communication unit, 24... memory unit, 25... output unit, 91... processor, 92... memory, 93... processor, 94... memory

Claims

1. a control unit that performs learning of a mathematical model of a learning object using a label assignment target that is a target for label assignment, co-occurrence information indicating a degree of co-occurrence of one or more labels prepared in advance, and information indicating whether each of the labels is a positive label or a negative label; Equipped with the mathematical model is a mathematical model that estimates a probability that each of the labels prepared in advance will be assigned to the label assignment target for each of the labels, In the learning, the label loss L Labell The mathematical model is updated so as to reduce the amount indicating the sum of The label loss L Labell is a value r indicating a quantity related to the frequency of appearance of the label cb´ a function y' indicating label smoothing processing based on the co-occurrence information; and an Asymmetric Loss whose index for negative labels is the value r cb´ The Asymmetric Loss satisfies the condition that it is proportional to and is the value of the function expressed using Learning device.

2. The value r cb´ is the weight r in the Class Balanced loss. cb is a quantity expressed using The learning device according to claim 1 .

3. The value r cb´ is the weight r cb an identifier i for identifying one or more of the labels prepared in advance; and a quantity n representing the number of occurrences of a target label that is any one of the one or more of the labels prepared in advance. y and, as a quantity related to the frequency of appearance of the target label, [0010] is defined as The learning device according to claim 2 .

4. The label loss L Labell is the value r cb´ the function y′, the probability p, and predetermined values ​​m and γ + Using [0025] [0030] [0045] [0050] The learning device according to claim 1 , wherein

5. A control unit that performs learning of a mathematical model of a learning object using a label assignment target that is a target for label assignment, co-occurrence information indicating a degree of co-occurrence of one or more labels prepared in advance, and information indicating whether each of the labels is a positive label or a negative label, the mathematical model is a mathematical model that estimates the probability that each of the labels prepared in advance will be assigned to the label assignment target for each of the labels, and in the learning, a label loss L Labell The mathematical model is updated so as to reduce the amount indicating the sum of the label loss L Labell is a value r indicating a quantity related to the frequency of appearance of the label cb´ a function y' indicating label smoothing processing based on the co-occurrence information; and an Asymmetric Loss whose index for negative labels is the value r cb´ an estimation unit that estimates a label to be assigned to a sentence to be processed using a trained label estimation model obtained by the learning device, the label estimation unit being a function value expressed using an Asymmetric Loss that satisfies the condition that the Asymmetric Loss is proportional to A label estimation device comprising:

6. A program for causing a computer to function as the learning device according to any one of claims 1 to 4.

7. A program for causing a computer to function as the label estimation device according to claim 5.

Citation Information

Patent Citations

  • Deep-learning learning method for category classification of documents and system for the same

    JP2019053730A