Model learning device, model learning method, and program

The use of complementary labels in machine learning addresses the challenge of multi-label classification by generating efficient model learning techniques that enhance estimation accuracy and class handling.

JP7540595B2Active Publication Date: 2024-08-27NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023526801
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-06-11
Publication Date
2024-08-27
Estimated Expiration
2041-06-11

AI Technical Summary

Technical Problem

Existing machine learning techniques struggle to efficiently handle multi-label classification problems due to the time-consuming nature of assigning correct labels, making it difficult to generate sufficient labeled data for improving estimation accuracy and handling multiple classes.

Method used

A model learning technique using complementary labels is developed, where a set of data is generated with one or more complementary labels, and a specific loss function is calculated to update the model, enabling effective learning for multi-label classification.

Benefits of technology

This approach allows for efficient model learning in multi-label classification problems, utilizing more data to improve estimation accuracy and enable estimation targeting multiple classes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540595000016
    Figure 0007540595000016
  • Figure 0007540595000019
    Figure 0007540595000019
  • Figure 0007540595000017
    Figure 0007540595000017
Patent Text Reader

Abstract

Provided is a model learning technology which addresses the problem of multi-label classification and which uses a supplemental label. Included are: a learning data generation unit that generates, from a set of data with one or more supplemental labels attached thereto, a set (hereinafter referred to as the learning data set) of data with one supplemental label attached thereto; a first risk calculation unit that uses a patch, which is a partial set of the learning data set, to calculate a risk -R(g:-loss) for a determination function g relating to a loss function -loss calculated by a prescribed formula; and a model updating unit that uses a risk -R(g:-loss) to update a model.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to machine learning techniques. [Background technology]

[0002] In recent years, machine learning has been used in the fields of acoustic event detection, image segmentation, image recognition, etc. The general steps of machine learning are described below.

[0003] (1) A label (called a correct label) is assigned to each piece of data, indicating the class to which the data belongs, and data with the correct label is generated. By performing this process on a large amount of data, a set of data with the correct label is generated.

[0004] (2) Train the model using a set of data with correct labels.

[0005] (3) Using the trained model, the class to which the input data belongs (called the correct class) is predicted.

[0006] In estimating correct classes using a trained model generated according to the above procedure, if one wishes to improve the estimation accuracy, data to which more correct labels have been assigned is required. Also, if one wishes to increase the number of classes to which data to be estimated belongs, data to which more correct labels have been assigned is required. However, the task of assigning correct labels is very time-consuming, and it is difficult to generate a large amount of data to which correct labels have been assigned.

[0007] Therefore, Non-Patent Document 1 proposes machine learning in the following procedure.

[0008] (1) A label (called a complementary label) is assigned to each piece of data, indicating a class to which the data does not belong, and data is generated with the incorrect complementary label. By performing this process on many pieces of data, a set of data with complementary labels is generated.

[0009] (2) Train the model using a set of complementary labeled data.

[0010] (3) Using the trained model, the class to which the input data belongs (called the correct class) is predicted.

[0011] Since it is less time-consuming to assign complementary labels to data than to assign correct labels to data, it is possible to generate data to which more labels are assigned. In addition, the estimation accuracy of the correct class estimation using a trained model generated according to the procedure in Non-Patent Document 1 is comparable to the estimation accuracy of the correct class estimation using a trained model generated according to a general procedure. [Prior art documents] [Non-patent literature]

[0012] [Non-Patent Document 1] T. Ishida et al., “Complementary-Label Learning for Arbitrary Losses and Models,” ICML 2019, pp.2971-2980, 2019. Summary of the Invention [Problem to be solved by the invention]

[0013] The technology in Non-Patent Document 1 targets problems where one piece of data belongs to only one class (hereinafter referred to as a multi-class classification problem), and cannot handle problems where one piece of data belongs to more than one class (i.e., there may be two or more classes) (hereinafter referred to as a multi-label classification problem).

[0014] Therefore, an object of the present invention is to provide a model learning technique using complementary labels for multi-label classification problems. [Means for solving the problem]

[0015] One aspect of the present invention includes a training data generation unit that generates a set of data to which one supplementary label is assigned (hereinafter referred to as a training data set) from a set of data to which one or more supplementary labels are assigned, and a loss function calculated by the following formula using a batch that is a subset of the training data set: - Risk of decision function g on loss - R(g: - a first risk calculation unit for calculating a risk loss;

number

[0016] One aspect of the present invention includes a training data generation unit that generates a set of data to which one supplementary label is assigned (hereinafter referred to as a training data set) from a set of data to which one or more supplementary labels are assigned, and a loss function calculated by the following formula using a batch that is a subset of the training data set: - Risk of decision function g on loss - R(g: - a first risk calculation unit for calculating a risk loss;

number

[0017] According to the present invention, model learning using complementary labels for multi-label classification problems is possible. [Brief description of the drawings]

[0018] [Figure 1] FIG. 1 is a block diagram showing a configuration of a model learning device 100. [Diagram 2] 4 is a flowchart showing the operation of the model learning device 100. [Diagram 3] FIG. 2 is a block diagram showing a configuration of a model learning device 200. [Figure 4] 4 is a flowchart showing the operation of the model learning device 200. [Diagram 5] FIG. 2 is a diagram illustrating an example of a functional configuration of a computer that realizes each device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Hereinafter, an embodiment of the present invention will be described in detail. Note that components having the same functions are given the same reference numbers and duplicated explanations will be omitted.

[0020] Before describing each embodiment, the notation used in this specification will be described.

[0021] ^ (caret) represents a superscript. For example, x y^z Yes z is a superscript to x, and x y^z Yes z is a subscript to x. Also, _ (underscore) represents a subscript. For example, x y_z Yes zis a superscript to x, and x y_z Yes z is a subscript on x.

[0022] In addition, the superscripts "^" and "~" such as ^x and ~x for a certain letter x should actually be written directly above the "x", but due to the constraints of the description in the specification, they are written as ^x and ~x.

[0023] <Technical background> In an embodiment of the present invention, a model for a multi-label classification problem is trained using data with one or more supplementary labels. Note that the embodiment of the present invention can also be used to train a model for a multi-class classification problem using data with one or more supplementary labels.

[0024] In the following, the number of classes to which data may belong, that is, the number of classes into which data is classified, is defined as K, and the set of correct labels is [K] = {1, ..., K}. Here, the correct labels are the labels indicating that the data belongs to class 1, ..., class K, and are represented as 1, ..., K, respectively.

[0025] Consider K complementary labels. Here, the K complementary labels are labels indicating that the class does not belong to class 1, ..., and labels indicating that the class does not belong to class K, respectively. - 1, …, - Let us denote it by K. Also, the set of complementary labels [ - K]={ - 1, …, - K}.

[0026] In the embodiment of the present invention, data to which one or more supplementary labels are assigned is handled as follows. When M supplementary labels are assigned to data, where M is 2 or more, M pieces of data to which one supplementary label is assigned are generated from the data. This will be explained using the symbols explained below as "data to which M supplementary labels are assigned (x i , ( - y1, …,- y M )) (where x i ∈χ, - y1, …, - y M ∈[ - K]), one complementary labeled data (x i , - y1), …, (x i , - y M ) is generated.

[0027] Hereinafter, we will explain the correct label learning and the complementary label learning in detail. Here, the correct label learning means learning a model using a set of data to which one or more correct labels are assigned, and the complementary label learning means learning a model using a set of data to which one or more complementary labels are assigned.

[0028] [Correct label learning] Let χ be the set of data, and g:χ→R K Let g be the decision function. k Let D be the distribution on χ×[K] (where the random variable of distribution D is denoted as (X, Y)~D), and {P k} k=1 K (However, P k =P(X|Y=k)), {π k} k=1 K (However, π k = P(Y=k)), loss: [K] × R K →R + If we define the loss function for learning correct labels as the loss function loss, the risk R(g:loss) of the decision function g for the distribution D is expressed as follows:

number

number

[0029] (Binary Cross Entropy)

number

number

[0030] [Complementary label learning] - D is χ×[ - K] (where, - Let D be the random variable (X, - Y)~ - D), { - P k} k=1 K (however, - P k =P(X| - Y=k)), { - π k} k=1 K (however, - π k =P( - Y=k) - loss:[ - K]×R K →R + If we use the loss function for complementary label learning, the loss function - loss distribution - The risk of a decision function g on D - R(g: - loss) is expressed by the following formula:

number

number

number

number

[0031] First Embodiment Hereinafter, model learning device 100 will be described with reference to Figs. 1 and 2. Fig. 1 is a block diagram showing the configuration of model learning device 100. Fig. 2 is a flowchart showing the operation of model learning device 100. As shown in Fig. 1, model learning device 100 includes a learning data generation unit 110, a first risk calculation unit 120, a model update unit 130, a termination condition determination unit 140, and a recording unit 190. Recording unit 190 is a component that appropriately records information necessary for the processing of model learning device 100.

[0032] The operation of the model learning device 100 will be described with reference to FIG.

[0033] In S110, the training data generation unit 110 generates a set of data to which one complementary label has been assigned (hereinafter referred to as a training data set) from a set of data to which one or more complementary labels have been assigned (hereinafter referred to as an input complementary labeled data set).

[0034] In S120, the first risk calculation unit 120 calculates a loss function using the batch, which is a subset of the training data set generated in S110, using the following equation: - Risk of decision function g on loss - R(g: - Calculate the loss.

number

[0035] (Reference Non-Patent Document 1: Q. Kong et al., “Sound Event Detection of Weakly Labelled Data with CNN-Transformer and Automatic Threshold Optimization,” IEEE / ACM Transactions on Audio, Speech, and Language Processing, vol.28, pp.2450-2460, 2020.) (Reference Non-Patent Document 2: Y. Wang et al., “Self-supervised Equivariant Attention Mechanism for Weakly Supervised Semantic Segmentation,” CVPR 2020, pp.12275-12284, 2020.) In S140, if a predetermined termination condition is satisfied, the termination condition determination unit 140 terminates the process by treating the model obtained in the process of S130 as a trained model, and otherwise returns to the process of S120. For example, the termination condition may be a condition as to whether or not the upper limit of the number of model updates has been reached.

[0036] (Modification) The above processes of S110 to S140 may be carried out as follows.

[0037] In S110, the training data generation unit 110 generates a batch, which is a subset of an input complementary labeled data set, from a set of data to which one or more complementary labels have been assigned (hereinafter referred to as an input complementary labeled data set), and generates a set of data to which one complementary label has been assigned (hereinafter referred to as a training data set) from the batch.

[0038] In S120, the first risk calculation unit 120 calculates a loss function using the training data set generated in S110, the loss function being calculated by the formula (1): - Risk of decision function g on loss - R(g: - Calculate the loss.

[0039] In S130, the model update unit 130 updates the risk calculated in S120. - R(g: - loss) to update the model.

[0040] In S140, if a predetermined termination condition is satisfied, the termination condition determination unit 140 terminates the process by treating the model obtained in the process of S130 as a trained model, and otherwise returns to the process of S110.

[0041] According to an embodiment of the present invention, model learning using complementary labels for multi-label classification problems is possible. By using data with complementary labels, learning using a larger amount of data is possible, and the accuracy of estimation using a trained model can be improved and estimation for a larger number of classes can be performed.

[0042] <Second embodiment> Hereinafter, model learning device 200 will be described with reference to Figs. 3 and 4. Fig. 3 is a block diagram showing the configuration of model learning device 200. Fig. 4 is a flowchart showing the operation of model learning device 200. As shown in Fig. 3, model learning device 200 includes a learning data generation unit 110, a first risk calculation unit 120, a second risk calculation unit 220, a third risk calculation unit 230, a model update unit 240, a termination condition determination unit 140, and a recording unit 190. Recording unit 190 is a component that appropriately records information necessary for the processing of model learning device 200.

[0043] The operation of model learning device 200 will be described with reference to FIG.

[0044] In S110, the training data generation unit 110 generates a set of data to which one complementary label has been assigned (hereinafter referred to as a training data set) from a set of data to which one or more complementary labels have been assigned (hereinafter referred to as an input complementary labeled data set).

[0045] In S120, the first risk calculation unit 120 calculates a loss function using the batch, which is a subset of the training data set generated in S110, using the following equation: - Risk of decision function g on loss - R(g: - Calculate the loss.

number

[0046] In S230, the third risk calculation unit 230 calculates the risk calculated in S120. - R(g: - loss) and the risk R(g:loss) calculated in S130, R(g) = α - R(g: - Calculate the risk R(g) using the formula: (g:loss)+(1-α)(g:loss) (where α is a constant satisfying 0<α<1).

[0047] In S240, the model update unit 240 updates the model using the risk R(g) calculated in S230. Specifically, the model update unit 240 updates the model so as to minimize the risk R(g). As in the first embodiment, the model used for acoustic event detection can be trained using the model described in Reference Non-Patent Document 1, and the model used for image segmentation can be trained using the model described in Reference Non-Patent Document 2.

[0048] In S140, if a predetermined termination condition is satisfied, the termination condition determination unit 140 terminates the processing by treating the model obtained in the processing of S240 as a trained model, and otherwise returns to the processing of S120 and S220.

[0049] (Modification) The above processes of S110 to S140 may be carried out as follows.

[0050] In S110, the training data generation unit 110 generates a batch, which is a subset of an input complementary labeled data set, from a set of data to which one or more complementary labels have been assigned (hereinafter referred to as an input complementary labeled data set), and generates a set of data to which one complementary label has been assigned (hereinafter referred to as a training data set) from the batch.

[0051] In S120, the first risk calculation unit 120 calculates a loss function using the training data set generated in S110, the loss function being calculated by the formula (2): - Risk of decision function g on loss - R(g: - Calculate the loss.

[0052] In S220, the second risk calculation unit 220 calculates the risk R(g:loss) of the decision function g related to the loss function loss using a batch, which is a subset of a set of data to which one or more correct labels have been assigned (hereinafter referred to as the input correct-labeled data set).

[0053] In S230, the third risk calculation unit 230 calculates the risk calculated in S120. - R(g: - loss) and the risk R(g:loss) calculated in S130, R(g) = α - R(g: - Calculate the risk R(g) using the formula: (g:loss)+(1-α)(g:loss) (where α is a constant satisfying 0<α<1).

[0054] In S240, the model update section 240 updates the model using the risk R(g) calculated in S230.

[0055] In S140, if a predetermined termination condition is satisfied, the termination condition determination unit 140 terminates the processing by treating the model obtained in the processing of S240 as a trained model, and otherwise returns to the processing of S110 and S220.

[0056] According to an embodiment of the present invention, model learning using complementary labels for multi-label classification problems is possible. By using data with complementary labels, learning using a larger amount of data is possible, and the accuracy of estimation using a trained model can be improved and estimation for a larger number of classes can be performed.

[0057] <Additional Notes> 5 is a diagram showing an example of the functional configuration of a computer that realizes each of the above-mentioned devices (i.e., each node). The processing in each of the above-mentioned devices can be implemented by having a recording unit 2020 load a program for causing a computer to function as each of the above-mentioned devices, and having the control unit 2010, input unit 2030, output unit 2040, etc. operate.

[0058] The device of the present invention has, as a single hardware entity, an input section to which a keyboard or the like can be connected, an output section to which a liquid crystal display or the like can be connected, a communication section to which a communication device (e.g., a communication cable) capable of communicating with the outside of the hardware entity can be connected, a CPU (which may also have a central processing unit, cache memory, registers, etc.), memories such as RAM and ROM, an external storage device such as a hard disk, and buses connecting the input section, output section, communication section, CPU, RAM, ROM, and external storage device so that data can be exchanged between them. If necessary, the hardware entity may also be provided with a device (drive) capable of reading and writing a recording medium such as a CD-ROM. A physical entity equipped with such hardware resources is, for example, a general-purpose computer.

[0059] The external storage device of the hardware entity stores the programs required to realize the above-mentioned functions and the data required in the processing of these programs (not limited to the external storage device, but for example the programs may be stored in a ROM, which is a read-only storage device). Data obtained by the processing of these programs is stored appropriately in the RAM, the external storage device, etc.

[0060] In the hardware entity, each program stored in an external storage device (or ROM, etc.) and the data required for processing each program are loaded into memory as necessary, and interpreted, executed, and processed by the CPU as appropriate, so that the CPU realizes a predetermined function (each component represented as the above, "unit," "means," etc.).

[0061] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present invention. In addition, the processes described in the above-described embodiment are not limited to being executed in chronological order according to the order described, but may be executed in parallel or individually depending on the processing capacity of the device that executes the processes or as necessary.

[0062] As described above, when the processing functions of the hardware entities (the devices of the present invention) described in the above embodiments are realized by a computer, the processing contents of the functions that the hardware entities should have are described by a program. Then, by executing this program on a computer, the processing functions of the hardware entities are realized on the computer.

[0063] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium may be, for example, a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, or any other suitable recording medium. Specifically, for example, a hard disk drive, a flexible disk, a magnetic tape, or the like can be used as the magnetic recording device, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), or the like can be used as the optical disk, an MO (Magneto-Optical disc), or the like can be used as the magneto-optical recording medium, and an EEP-ROM (Electronically Erasable and Programmable-Read Only Memory) or the like can be used as the semiconductor memory.

[0064] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.

[0065] A computer that executes such a program, for example, first stores the program recorded on a portable recording medium or the program transferred from a server computer in its own storage device. Then, when executing a process, the computer reads the program stored in its own storage device and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. The server computer may not transfer the program to the computer, but may execute the above-mentioned process by a so-called ASP (Application Service Provider) type service that realizes the processing function only by issuing an execution instruction and obtaining the result. Note that the program in this embodiment includes information used for processing by an electronic computer that is equivalent to a program (data that is not a direct instruction to the computer but has a nature that specifies the processing of the computer, etc.).

[0066] In addition, in this embodiment, a hardware entity is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.

[0067] The foregoing description of the embodiments of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings. The embodiments have been chosen and depicted to provide a best illustration of the principles of the invention and to enable those skilled in the art to utilize the invention in various embodiments and with various modifications as may be suitable for the practical use contemplated. All such modifications and variations are within the scope of the invention as defined by the appended claims interpreted in accordance with the breadth to which they are fairly, legally, and equitably entitled.

Claims

1. a training data generation unit that generates a set of data to which one complementary label is assigned (hereinafter referred to as a training data set) from a set of data to which one or more complementary labels are assigned; A loss function calculated using a batch that is a subset of the training data set is given by the following equation: - Risk of decision function g on loss - R(g: - A first risk calculation unit that calculates a risk loss ( ##EQU14## (where K is the number of classes into which data is classified, and loss is the loss function used when training a model using a set of data with one or more correct labels.) A second risk calculation unit that calculates a risk R(g:loss) of a decision function g related to a loss function loss using a batch that is a subset of a set of data to which one or more correct answer labels are assigned; risk - R(g: - loss) and risk R(g:loss), R(g) = α - R(g: - a third risk calculation unit that calculates a risk R(g) by (1-α)R(g:loss)+(1-α)R(g:loss) (where α is a constant satisfying 0<α<1); a model update unit that updates the model using the risk R(g); A model learning device comprising:

2. a learning data generating step in which the model learning device generates a set of data to which one supplementary label is assigned (hereinafter referred to as a learning data set) from a set of data to which one or more supplementary labels are assigned; The model learning device calculates a loss function using a batch that is a subset of the learning data set, using the following formula: - Risk of decision function g on loss - R(g: - a first risk calculation step of calculating a risk loss ( ##EQU00016## (where K is the number of classes into which data is classified, and loss is the loss function used when training a model using a set of data with one or more correct labels.) A second risk calculation step in which the model learning device calculates a risk R(g:loss) of a decision function g related to a loss function loss using a batch that is a subset of a set of data to which one or more correct answer labels are assigned; The model learning device is - R(g: - loss) and risk R(g:loss), R(g) = α - R(g: - loss)+(1-α)R(g:loss) (where α is 0 <α<1を満たす定数)により、リスクr(g)を計算する第3リスク計算ステップと、a model updating step in which the model learning device updates the model using the risk R(g); A model training method including:

3. The model learning method according to claim 2, The loss function is either binary cross entropy or multi-label soft margin. A model learning method comprising:

4. A program for causing a computer to execute the model learning method according to claim 2 or 3.

Citation Information

Patent Citations

  • ICD automatic coding method and system for diagnosis reason visualization

    CN111540468A

  • System for sampling characteristic word

    JP2004030202A