Learning device, learning method, and program

The learning device and method address the challenge of costly data collection by using weakly correct data and pseudo labels to enhance model accuracy, achieving efficient and accurate machine learning.

JP7563574B2Active Publication Date: 2024-10-08NEC CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023506589
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-17
Publication Date
2024-10-08
Estimated Expiration
2041-03-17

AI Technical Summary

Technical Problem

Preparing large amounts of data with correct answers for machine learning requires significant cost and time, limiting the efficiency of data collection and model accuracy.

Method used

A learning device and method that utilizes weakly correct data through multiple inference processes, pseudo label generation, and loss calculations to update model parameters, reducing the need for extensive data collection.

Benefits of technology

Reduces data collection costs while generating highly accurate machine learning models by leveraging weakly correct data and pseudo labels to enhance model performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563574000003
    Figure 0007563574000003
  • Figure 0007563574000004
    Figure 0007563574000004
  • Figure 0007563574000005
    Figure 0007563574000005
Patent Text Reader

Abstract

In the present invention, a first inference means subjects weak correctness-labeled data to first data extension, and performs first inference using the obtained data. A first loss calculation means calculates a first loss using the result of first inference and weak correctness assigned to the weak correctness-labeled data. A second inference means subjects the weakly correct labeled data to second data extension, and performs second inference using the obtained data. A third inference means subjects the weakly correct labeled data to third data extension, and performs third inference using the obtained data. A pseudo label generation means generates a pseudo label using the result of third inference. A second loss calculation means calculates a second loss on the basis of the result of second inference and the pseudo label. An update means updates the parameters of the first inference means, the second inference means, and the third inference means on the basis of the first loss and the second loss.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a method for training a machine learning model. [Background technology]

[0002] In recent years, machine learning-based recognition technology has shown extremely high performance, especially in the field of image recognition. The high accuracy of such machine learning-based recognition technology is supported by a large amount of data with correct answers. In other words, high accuracy is achieved by preparing a large amount of data with correct answers and performing learning.

[0003] However, preparing a large amount of data with correct answers requires cost and time. From this perspective, Patent Document 1 discloses a method for accurately identifying classes even when there are few learning images, by using the probability of an input image belonging to each class and an estimated true / false probability that indicates the likelihood that the input image is an artificial image. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2020-16935 A Summary of the Invention [Problem to be solved by the invention]

[0005] One objective of the present disclosure is to generate highly accurate machine learning models while reducing data collection costs. [Means for solving the problem]

[0006] In one aspect of the present disclosure, a learning device includes: A first inference means for performing a first data augmentation on the data with the weak answer and performing a first inference from the obtained data; a first loss calculation means for calculating a first loss from a result of the first inference and a weak correct answer assigned to the data with the weak correct answer; A second inference means for performing a second data extension on the weakly correct data and performing a second inference from the obtained data; a third inference means for performing a third data extension on the weakly correct data and performing a third inference from the obtained data; a pseudo label generating means for generating a pseudo label from a result of the third inference; a mask generating means for generating a mask indicating whether or not the reliability of the result of the third inference is equal to or greater than a predetermined value; When the reliability of the result of the third inference based on the mask is equal to or greater than a predetermined value, a second loss calculation means for calculating a second loss based on a result of the second inference and the pseudo label; an update means for updating parameters of the first inference means, the second inference means, and the third inference means based on the first loss and the second loss; Equipped with.

[0007] In another aspect of the present disclosure, a method of learning comprises: 1. A computer-implemented method of learning, comprising: A first data augmentation is performed on the weakly-answered data, and a first inference is performed from the obtained data using a first model; Calculating a first loss from a result of the first inference and the weak correct answer assigned to the data with the weak correct answer; A second data augmentation is performed on the weak ground truth data, and a second inference is performed from the obtained data using a second model. A third data augmentation is performed on the weakly correct data, and a third inference is performed from the obtained data using a third model. generating pseudo labels from the results of the third inference; generating a mask indicating whether the reliability of the result of the third inference is equal to or greater than a predetermined value; When the reliability of the result of the third inference based on the mask is equal to or greater than a predetermined value, Calculating a second loss based on the result of the second inference and the pseudo label; Parameters of the first model, the second model, and the third model are updated based on the first loss and the second loss.

[0008] In yet another aspect of the disclosure, a program includes: A first data augmentation is performed on the weakly-answered data, and a first inference is performed from the obtained data using a first model; Calculating a first loss from a result of the first inference and the weak correct answer assigned to the data with the weak correct answer; A second data augmentation is performed on the weak ground truth data, and a second inference is performed from the obtained data using a second model. A third data augmentation is performed on the weakly correct data, and a third inference is performed from the obtained data using a third model. generating pseudo labels from the results of the third inference; generating a mask indicating whether the reliability of the result of the third inference is equal to or greater than a predetermined value; When the reliability of the result of the third inference based on the mask is equal to or greater than a predetermined value, Calculating a second loss based on the result of the second inference and the pseudo label; The computer is caused to execute a process of updating parameters of the first model, the second model, and the third model based on the first loss and the second loss. Effect of the Invention

[0009] According to the present disclosure, it is possible to reduce data collection costs and generate highly accurate machine learning models. [Brief description of the drawings]

[0010] [Figure 1] Here is an example of a dataset for a multi-class classification problem. [Diagram 2] 1 is a block diagram showing a hardware configuration of a learning device according to a first embodiment. [Diagram 3] FIG. 2 is a block diagram showing the functional configuration of the learning device of the first embodiment. [Figure 4] 4 is a flowchart of a learning process performed by the learning device of the first embodiment. [Diagram 5] 1 shows a configuration of an inference device according to a first embodiment. [Figure 6] FIG. 11 is a block diagram showing the functional configuration of a learning device according to a second embodiment. [Figure 7] 10 is a flowchart of a learning process performed by a learning device according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, preferred embodiments of the present disclosure will be described with reference to the drawings. First Embodiment [Concept explanation] (Weak Label) In this embodiment, a machine learning model is trained using a dataset with weak labels (hereinafter also referred to as "weak answer labels"). A normal "answer" correctly specifies the single correct answer class to which the data belongs, whereas a "weak answer" is an answer that includes ambiguity and noise.

[0012] Now, consider a multi-class classification problem in which element x in data space X is classified into correct category (class) y, which is an element of correct answer candidate set Y. (1) Typical datasets for multi-class classification problems A typical dataset is a set D of pairs (x, y) of data x, which is an element of data space X, and correct category y, which is an element of correct answer candidate set Y.

number

[0013] (2) Weak-correct datasets for multi-class classification problems Weakly-grounded labels z∈Z are determined according to p(z|y) when the true ground truth y is determined. The weakly-grounded labels dataset has the following form:

number

[0014] Examples of learning using weakly labeled labels include positive and unlabeled (PU) learning, complementary label learning, partial label learning, and expert dataset learning.

[0015] (Partial label learning) In multi-class classification, learning based on an expert dataset can be considered as a special case of learning based on partial labels. A "partial label" is a set of correct answers for data x to be classified, where a subset Z of Y is given as a set of correct answers candidates, instead of a correct answer category y that is an element of the entire set Y of correct answer candidates. Here, subset Z includes the true correct answer category y. For convenience of description, the complement of set A will be referred to as " - Marked as "A".

[0016] In the expert dataset, the labels - Z is a partial label in the sense described above. - Z. A label z that is an element of a subset Z can be considered as a partial label {z} in the sense described above.

[0017] In addition, partial labels in the above sense are also called weak labels, ambiguous labels, etc. in some documents. In addition, although the terms partial labels, weak labels, and ambiguous labels may be used in different senses, in this specification, the term "partial labels" is used as a concept including the above partial labels, weak labels, and ambiguous labels.

[0018] (Expert Data Set) Next, a specific example of an expert dataset will be described. An "expert dataset" is a learning dataset that can be used when learning a multi-class classification model, and is composed of multiple partial datasets. Specifically, the expert dataset is configured to satisfy the following conditions: (A) Each of the multiple partial data sets is assigned a responsibility area that includes at least a portion of all categories to be recognized. (B) All categories to be recognized are assigned to one of multiple partial datasets. (C) Each data item included in the partial dataset is assigned a correct answer label indicating that the category to be recognized does not belong to the responsibility area of ​​the partial dataset, or that the category does not belong to the responsibility area of ​​the partial dataset.

[0019] Figure 1 shows examples of a normal dataset and an expert dataset for a multi-class classification problem. Figure 1(A) shows a normal dataset used for training. Assume that an object recognition model that performs multi-class classification of 100 classes based on image data is trained. In the normal training dataset, one of 100 classes, i.e., 100 categories, is assigned as the correct label for each of the prepared image data.

[0020] FIG. 1B shows an example of an expert dataset. Note that, in this expert dataset, as in the example of FIG. 1A, multi-class classification with a total of 100 classes is performed. In the expert dataset, multiple partial datasets are prepared. In the example of FIG. 1B, multiple partial datasets such as "aquatic mammals" and "people" are prepared. A responsibility range is set for each partial dataset. Five types of aquatic mammals, "beavers," "dolphins," "otters," "seals," and "whales," are assigned as responsibility ranges to the "aquatic mammals" partial dataset. Five types of people, "babies," "boys," "girls," "men," and "women," are assigned as responsibility ranges to the "people" partial dataset. Here, the responsibility ranges are determined so that all classes (categories) to be recognized are assigned to one of the multiple partial datasets. That is, 100 classes are assigned to the multiple partial datasets so that there is no class that is not assigned to any of the partial datasets. In other words, the responsibility ranges are determined so that all recognition targets of the 100 classes are covered by the multiple partial datasets. This makes it possible to train a multi-class classification system with 100 classes using the expert dataset, just like the normal dataset shown in Figure 1(A). Such an expert dataset is an example of weakly-annotated data.

[0021] (Using weakly correct labels) The above-mentioned weakly-corrected labels are easier to assign than normal correct labels, and can be prepared at low cost. Therefore, by using the weakly-corrected labels and the weakly-corrected losses, it is possible to learn correct class classification from weakly-corrected data. However, the weakly-corrected labels have a small amount of information, and overfitting is likely to occur when learning using only the weakly-corrected losses. Therefore, in the embodiment of the present disclosure, in addition to the weakly-corrected losses, overfitting is prevented by regularization using a no-correct loss that requires that the model output does not change significantly due to data expansion.

[0022] [Learning device] (Hardware configuration) 2 is a block diagram showing the hardware configuration of the learning device 100 of the first embodiment. As shown in the figure, the learning device 100 includes an interface (I / F) 11, a processor 12, a memory 13, a recording medium 14, and a database (DB) 15.

[0023] The interface 11 inputs and outputs data to and from an external device. Specifically, data with weak answers used for learning is input through the interface 11.

[0024] The processor 12 is a computer such as a CPU (Central Processing Unit) and controls the entire learning device 100 by executing a program prepared in advance. The processor 12 may be a GPU (Graphics Processing Unit) or an FPGA (Field-Programmable Gate Array). The processor 12 executes a learning process, which will be described later.

[0025] The memory 13 is composed of a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The memory 13 is also used as a working memory while the processor 12 is executing various processes.

[0026] Recording medium 14 is a non-volatile, non-transient recording medium such as a disk-shaped recording medium or a semiconductor memory, and is configured to be detachable from learning device 100. Recording medium 14 records various programs executed by processor 12. When learning device 100 executes various processes, the programs recorded on recording medium 14 are loaded into memory 13 and executed by processor 12. DB 15 stores data with weak correct answers for learning as necessary.

[0027] (Functional configuration) 3 is a block diagram showing the functional configuration of the learning device 100 of the first embodiment. The learning device 100 includes data extension units 21a to 21c, inference units 22a to 22c, a weak-answer loss calculation unit 23, a no-answer loss calculation unit 24, a pseudo label generation unit 25, a mask generation unit 26, a gradient calculation unit 27, an update unit 28, and parameter holding units 29a and 29b.

[0028] The data with weak correct answers includes input data and a weak correct answer label corresponding to the input data. For example, when training an image recognition model, the input data is an image used for training, and a weak correct answer label is assigned to the image. Of the data with weak correct answers, the input data is input to the data extension units 21a to 21c, and the weak correct answer label is input to the weak correct answer loss calculation unit 23.

[0029] The data extension unit 21a randomly converts the input data and outputs the converted input data to the inference unit 22a. The inference unit 22a performs inference on the input data using a machine learning model. For example, when learning an image recognition model, the inference unit 22a infers the class of an object included in the input data and outputs it to the loss calculation unit 23 with weak correct answer.

[0030] The weak-correction-attached loss calculation unit 23 calculates a weak-correction-attached loss from the inference result input from the inference unit 22a and the weak-correction label. The weak-correction-attached loss calculation unit 23 outputs the calculated weak-correction-attached loss to the gradient calculation unit 27.

[0031] The data extension unit 21b performs random conversion on the input data and outputs the converted data to the inference unit 22b. Similarly, the data extension unit 21c performs random conversion on the input data and outputs the converted data to the inference unit 22c. The three data extension units 21a to 21c including the data extension unit 21a each perform a random conversion independently on the input data, and the types of conversion may be the same or different. In a preferred example, the conversion by the data extension unit 21b is stronger than the conversions by the data extension units 21a and 21c. A strong conversion refers to a conversion that causes a large change to the input data, and for example, when the input data is an image, it is a conversion that changes the content of the image more significantly.

[0032] The inference unit 22b uses the machine learning model to perform inference on the input data converted by the data extension unit 21b, and outputs the inference result to the no-correct-answer loss calculation unit 24. In addition, the inference unit 22c uses the machine learning model to perform inference on the input data converted by the data extension unit 21c, and outputs the inference result to the pseudo label generation unit 25.

[0033] The pseudo label generating unit 25 generates a pseudo label based on the inference result by the inference unit 22c. The "pseudo label" refers to a label generated from the inference result of a model that is in the middle of learning or has already been learned. Specifically, the pseudo label generating unit 25 may convert the inference result of the inference unit 22c into a one-hot vector. The one-hot vector is a vector in which only the correct answer class has a value of "1" and the other classes have a value of "0". Alternatively, the pseudo label generating unit 25 may convert the inference result of the inference unit 22c into a soft label compared to the so-called hard label using "0" or "1". The pseudo label generating unit 25 outputs the generated pseudo label to the no-correct answer loss calculating unit 24.

[0034] The mask generation unit 26 compares the reliability score of the inference result output by the inference unit 22c, i.e., the maximum value of the scores for each class, with a predetermined threshold, and generates a mask indicating whether the reliability of the estimation result by the inference unit 22c is equal to or greater than the predetermined threshold. Specifically, the mask generation unit 26 generates a mask "1" when the maximum value of the inference result score is greater than the threshold, and generates a mask "0" when the maximum value is equal to or less than the threshold, and outputs the mask to the no-correct-answer loss calculation unit 24. This mask serves as an index indicating whether the pseudo label generated by the pseudo label generation unit 25 should be used in the loss calculation in the no-correct-answer loss calculation unit 24.

[0035] The no-correct loss calculation unit 24 calculates the no-correct loss using the inference result input from the inference unit 22b and the pseudo label generated by the pseudo label generation unit 25. Here, the no-correct loss calculation unit 24 determines whether or not to perform loss calculation using the pseudo label based on the mask input from the mask generation unit 26. Specifically, when the mask input from the mask generation unit 26 is "1", the no-correct loss calculation unit 24 calculates the no-correct loss assuming that the reliability of the pseudo label is high. On the other hand, when the mask input from the mask generation unit 26 is "0", the no-correct loss calculation unit 24 does not calculate the no-correct loss assuming that the reliability of the pseudo label is low. Then, when the no-correct loss calculation unit 24 calculates the no-correct loss, it outputs the obtained no-correct loss to the gradient calculation unit 27.

[0036] The gradient calculation unit 27 calculates the gradient of the input weakly-corrected loss and the no-corrected loss, and outputs it to the update unit 28. For example, the gradient calculation unit 27 calculates the gradient of the sum or weighted sum of the weakly-corrected loss and the no-corrected loss, and outputs it to the update unit 28.

[0037] The update unit 28 uses the input gradient to update the parameters (hereinafter referred to as "parameters P1") of the inference units 22a and 22b, and outputs them to the parameter holding unit 29a. The parameter holding unit 29a sets the updated parameters P1 for the inference units 22a and 22b. In this way, the same parameters P1 are set for the inference units 22a and 22b.

[0038] Furthermore, the update unit 28 uses the input gradient to update a parameter (hereinafter referred to as "parameter P2") of the inference unit 22c, and outputs it to the parameter holding unit 29b. The parameter holding unit 29a sets the updated parameter P2 in the inference unit 22c. Here, the parameter P2 held by the parameter holding unit 29b may be the same as the parameter P1 held by the parameter holding unit 29a, or may be an exponential moving average of the parameter P1 of the inference units 22a and 22b each time it is updated.

[0039] In the above configuration, the data extension unit 21a and the inference unit 22a are an example of a first inference means, and the weakly correct loss calculation unit 23 is an example of a first loss calculation means. The data extension unit 21b and the inference unit 22b are an example of a second inference means, and the data extension unit 21c and the inference unit 22c are an example of a third inference means. The pseudo label generation unit 25 is an example of a pseudo label generation means, and the no-correct loss calculation unit 24 is an example of a second loss calculation means. The gradient calculation unit 27, the update unit 28, and the parameter holding units 29a and 29b are an example of an update means.

[0040] (Learning process) Fig. 4 is a flowchart of the learning process by the learning device 100 of the first embodiment. This process is realized by the processor 12 shown in Fig. 1 executing a program prepared in advance and operating as each element shown in Fig. 3. This process is repeatedly executed every time data with weak answers is input.

[0041] First, input data included in the weak-correct data is input to the data extension units 21a to 21c. The data extension unit 21a converts the input data of the weak-correct data and outputs it to the inference unit 22a (step S11). The inference unit 22a performs inference from the converted input data and outputs the inference result to the weak-correct loss calculation unit 23 (step S12). The weak-correct loss calculation unit 23 calculates a weak-correct loss from the inference result and the weak-correct label, and outputs it to the gradient calculation unit 27 (step S13).

[0042] In parallel with steps S11 to S13, the data extension unit 21c converts the data with weak correct answers and outputs it to the inference unit 22c (step S14). The inference unit 22c performs inference from the converted input data and outputs the inference result to the pseudo label generation unit 25 (step S15). The pseudo label generation unit 25 generates a pseudo label from the inference result and outputs it to the no-correct-answer loss calculation unit 24 (step S16). In addition, the mask generation unit 26 generates a mask based on the inference result of the inference unit 22c and outputs it to the no-correct-answer loss calculation unit 24 (step S17).

[0043] The data extension unit 21b converts the data with weak correct answers and outputs it to the inference unit 22b (step S18). The inference unit 22b performs inference from the converted input data and outputs the inference result to the no-correct answer loss calculation unit 24 (step S19). When the mask input from the mask generation unit 26 is "1", the no-correct answer loss calculation unit 24 calculates the no-correct answer loss from the inference result input from the inference unit 22b and the pseudo label input from the pseudo label generation unit 25, and outputs it to the gradient calculation unit 27 (step S20).

[0044] The gradient calculation unit 27 calculates the gradient of the input weakly correct loss and the no-correct loss, and outputs it to the update unit 28 (step S21). The update unit 28 updates the parameter P1 of the inference units 22a and 22b based on the input gradient, and outputs it to the parameter holding unit 29a, and updates the parameter P2 of the inference unit 22c, and outputs it to the parameter holding unit 29b (step S22). Then, the parameter holding unit 29a sets the parameter P1 to the inference units 22a and 22b, and the parameter holding unit 29b sets the parameter P2 to the inference unit 22c (step S23). In this way, the parameters of the inference units 22a to 22c are updated.

[0045] (Modification) In the above embodiment, the same input data of weakly correct data, i.e., input image, is input to the data extension units 21a to 21c in each step of the learning process. Instead, the image input to the data extension unit 21a and the image input to the data extension units 21b and 21c in each step of the learning process may be different. That is, the image used for inference by the inference unit 22b and the image used for inference by the inference unit 22c and used for generating pseudo labels by the pseudo label generation unit 25 must be the same, but the image may be different from the image used for inference by the inference unit 22a.

[0046] [Inference device] 5 shows the configuration of the inference device of the first embodiment. The inference device 200 includes an inference unit 201. The inference unit 201 uses a machine learning model learned by the above-mentioned learning process. That is, the inference unit 201 is set with a parameter P1 obtained by the above-mentioned learning process.

[0047] During inference, input data to be inferred is input to the inference unit 201. This input data is data such as a photographed image acquired in an environment in which the inference device 200 is actually operated, and is data that is the subject of actual image recognition. The inference unit 201 performs inference from the input data and outputs an inference result. For example, in the case of image recognition that performs multi-class classification, the inference unit 201 outputs a probability value of each class based on the input image as an inference result.

[0048] <Second embodiment> 6 is a block diagram showing the functional configuration of a learning device according to the second embodiment. The learning device 70 includes a first inference means 71, a first loss calculation means 72, a second inference means 73, a third inference means 74, a pseudo label generation means 75, a second loss calculation means 76, and an update means 77.

[0049] FIG. 7 is a flowchart of the learning process by the learning device 70 of the second embodiment. The first inference means 71 performs a first data extension on the data with the weak correct answer, and performs a first inference from the obtained data (step S41). The first loss calculation means 72 calculates a first loss from the result of the first inference and the weak correct answer assigned to the data with the weak correct answer (step S42). The second inference means 73 performs a second data extension on the weak correct answer data, and performs a second inference from the obtained data (step S43). The third inference means 74 performs a third data extension on the weak correct answer data, and performs a third inference from the obtained data (step S44). The pseudo label generation means 75 generates a pseudo label from the result of the third inference (step S45). The second loss calculation means 76 calculates a second loss based on the result of the second inference and the pseudo label (step S46). The update means 77 updates the parameters of the first inference means, the second inference means and the third inference means based on the first loss and the second loss (step S47).

[0050] According to the learning device of the second embodiment, it is possible to generate a highly accurate machine learning model using data with weak correct answers.

[0051] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes.

[0052] (Appendix 1) A first inference means for performing a first data augmentation on the data with the weak answer and performing a first inference from the obtained data; a first loss calculation means for calculating a first loss from a result of the first inference and a weak correct answer assigned to the data with the weak correct answer; A second inference means for performing a second data extension on the weakly correct data and performing a second inference from the obtained data; a third inference means for performing a third data extension on the weakly correct data and performing a third inference from the obtained data; a pseudo label generating means for generating a pseudo label from a result of the third inference; a second loss calculation means for calculating a second loss based on a result of the second inference and the pseudo label; an update means for updating parameters of the first inference means, the second inference means, and the third inference means based on the first loss and the second loss; A learning device comprising:

[0053] (Appendix 2) a mask generating means for generating a mask indicating whether or not the reliability of the result of the third inference is equal to or greater than a predetermined value; A learning device as described in Appendix 1, wherein the second loss calculation means calculates the second loss based on the mask when the reliability of the result of the third inference is equal to or greater than a predetermined value.

[0054] (Appendix 3) The learning device according to claim 1 or 2, wherein the first data augmentation, the second data augmentation, and the third data augmentation are performed on the same weakly corrected data.

[0055] (Appendix 4) The learning device according to claim 1 or 2, wherein the second data augmentation and the third data augmentation are performed on the same weakly corrected data, and the first data augmentation is performed on weakly corrected data different from the second data augmentation and the third data augmentation.

[0056] (Appendix 5) 5. The learning device according to claim 1, wherein the update means sets the same parameters for the first inference means and the second inference means.

[0057] (Appendix 6) The learning device according to claim 5, wherein the update means generates another parameter based on the parameters set in the first inference means and the second inference means, and sets the parameter in the third inference means.

[0058] (Appendix 7) A first data augmentation is performed on the weakly-answered data, and a first inference is performed from the obtained data using a first model; Calculating a first loss from a result of the first inference and the weak correct answer assigned to the data with the weak correct answer; A second data augmentation is performed on the weak ground truth data, and a second inference is performed from the obtained data using a second model. A third data augmentation is performed on the weakly correct data, and a third inference is performed from the obtained data using a third model. generating pseudo labels from the results of the third inference; Calculating a second loss based on the result of the second inference and the pseudo label; A learning method that updates parameters of the first model, the second model, and the third model based on the first loss and the second loss.

[0059] (Appendix 8) A first data augmentation is performed on the weakly-answered data, and a first inference is performed from the obtained data using a first model; Calculating a first loss from a result of the first inference and the weak correct answer assigned to the data with the weak correct answer; A second data augmentation is performed on the weak ground truth data, and a second inference is performed from the obtained data using a second model. A third data augmentation is performed on the weakly correct data, and a third inference is performed from the obtained data using a third model. generating pseudo labels from the results of the third inference; Calculating a second loss based on the result of the second inference and the pseudo label; A recording medium having a program recorded thereon to cause a computer to execute a process of updating parameters of the first model, the second model, and the third model based on the first loss and the second loss.

[0060] Although the present disclosure has been described above with reference to the embodiments and examples, the present disclosure is not limited to the above-mentioned embodiments and examples. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present disclosure within the scope of the present disclosure. [Explanation of symbols]

[0061] 21a~21c Data extension section 22a~22c Reasoning part 23 Loss calculation with weak answer 24 No Answer Loss Calculation Section 25 Pseudo label generation unit 26 Mask Generation Unit 27 Gradient Calculation Unit 28 Update section 29a, 29b Parameter storage unit 100 Learning Device 200 Reasoning device

Claims

1. a first inference means for performing a first data extension on the data with the weak answer and performing a first inference from the obtained data; a first loss calculation means for calculating a first loss from a result of the first inference and a weak correct answer assigned to the data with the weak correct answer; a second inference means for performing a second data extension on the weakly correct data and performing a second inference from the obtained data; a third inference means for performing a third data extension on the weakly correct data and performing a third inference from the obtained data; a pseudo label generating means for generating a pseudo label from a result of the third inference; a mask generating means for generating a mask indicating whether or not the reliability of the result of the third inference is equal to or greater than a predetermined value; a second loss calculation means for calculating a second loss based on the result of the second inference and the pseudo label when a reliability of the result of the third inference is equal to or greater than a predetermined value based on the mask; an update means for updating parameters of the first inference means, the second inference means, and the third inference means based on the first loss and the second loss; A learning device comprising:

2. The learning device according to claim 1 , wherein the first data augmentation, the second data augmentation, and the third data augmentation are performed on the same weakly correct answer-added data.

3. The learning device according to claim 1 , wherein the second data augmentation and the third data augmentation are performed on the same weakly correct data, and the first data augmentation is performed on weakly correct data different from the second data augmentation and the third data augmentation.

4. 4. The learning device according to claim 1, wherein the update means sets the same parameters for the first inference means and the second inference means.

5. 5. The learning device according to claim 4, wherein the update means generates another parameter based on the parameters set in the first inference means and the second inference means, and sets the other parameter in the third inference means.

6. 1. A computer-implemented method of learning, comprising: A first data augmentation is performed on the weakly-answered data, and a first inference is performed from the obtained data using a first model; Calculating a first loss from a result of the first inference and the weak correct answer assigned to the data with the weak correct answer; A second data augmentation is performed on the weak ground truth data, and a second inference is performed from the obtained data using a second model; A third data augmentation is performed on the weakly correct data, and a third inference is performed from the obtained data using a third model; generating pseudo labels from the results of the third inference; generating a mask indicating whether the reliability of the result of the third inference is equal to or greater than a predetermined value; calculating a second loss based on the second inference result and the pseudo label when a confidence level of the third inference result based on the mask is equal to or greater than a predetermined value; A learning method for updating parameters of the first model, the second model, and the third model based on the first loss and the second loss.

7. A first data augmentation is performed on the weakly-answered data, and a first inference is performed from the obtained data using a first model; Calculating a first loss from a result of the first inference and the weak correct answer assigned to the data with the weak correct answer; A second data augmentation is performed on the weak ground truth data, and a second inference is performed from the obtained data using a second model; A third data augmentation is performed on the weakly correct data, and a third inference is performed from the obtained data using a third model; generating pseudo labels from the results of the third inference; generating a mask indicating whether the reliability of the result of the third inference is equal to or greater than a predetermined value; calculating a second loss based on the second inference result and the pseudo label when a confidence level of the third inference result based on the mask is equal to or greater than a predetermined value; A program that causes a computer to execute a process of updating parameters of the first model, the second model, and the third model based on the first loss and the second loss.

Citation Information

Patent Citations

  • Automatic machine, and system and method for automatically operating same

    JP2004326200A

  • Image recognition learning device, image recognition device, method, and program

    JP2020016935A