Learning device, learning method, and program

By employing multiple trained teacher models to generate data with pseudo-correct labels, the method addresses the performance issue in distilled learning using GAN-generated data, resulting in improved student model accuracy.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing distilled learning methods using Generative Adversarial Networks (GAN) to generate data for student models fail to improve performance when the generated images are far from the target domain, due to the lack of available training data for teacher models.

Method used

A method involving multiple trained teacher models that generate data with pseudo-correct labels, ensuring each teacher model outputs labels close to the pseudo-correct label, and using this data for distillation learning of a student model to improve performance.

Benefits of technology

Enables high-performance student models to be generated using unknown data, bridging the gap between generated and target domain images, thereby enhancing model accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563495000001
    Figure 0007563495000001
  • Figure 0007563495000002
    Figure 0007563495000002
  • Figure 0007563495000003
    Figure 0007563495000003
Patent Text Reader

Abstract

This learning device performs distillation learning using unknown data that a teacher model has not learned. A data generation means generates generated data on the basis of an input pseudo-correct label. Specifically, the data generation means generates, as the generated data, data such that each of a plurality of teacher models outputs a teacher prediction label close to the pseudo-correct label when the data is input into the teacher model. A learning means uses the plurality of teacher models to perform distillation learning of a student model using the generated data as input.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for training a neural network using distillation. [Background technology]

[0002] In machine learning, a highly accurate learning model can be constructed by assembling a deep neural network. Such learning models are called deep learning or deep learning, and consist of millions to hundreds of millions of neural networks. It is known that in deep learning, the more complex and deeper the learning model is, that is, the more neural networks there are, the more accurate the model will be. On the other hand, since enlarging the model requires more computer memory, methods have been proposed to build smaller models while maintaining the performance of large models.

[0003] Non-Patent Document 1 and Patent Document 1 describe a learning method called Knowledge Distillation (hereinafter referred to as "distillation"), which imitates a large model (hereinafter referred to as "teacher model") that has already been trained, with a small model (hereinafter referred to as "student model"). In this method, data used in training the teacher model is input to the teacher model and the student model, and the student model is trained so as to approach a weighted average of the predicted label output by the teacher model and the true label given in the training data. The learning method described in Non-Patent Document 1 uses a weighted average label, so the same data used in training the teacher model is required when training the student model. However, since deep learning requires a large amount of training data, it may be difficult to keep the training data itself from the viewpoints of capacity limitations of storage media, protection of privacy information contained in the data, and copyright of data.

[0004] Non-Patent Document 2 describes distillation learning that does not use the data used in training the teacher model, but uses data unknown to the teacher model, that is, data whose true labels associated with the input data are unknown. This learning method trains a student model so as to approach the predicted labels of the teacher model for unknown data. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2019-046380 A [Non-patent literature]

[0006] [Non-Patent Document 1] Hinton et al., “Distilling the Knowledge in a Neural Network”, NIPS 2014 workshop [Non-Patent Document 2] Kulkami et al., “Knowledge distillation using unlabeled mismatched images”, arXiv:1703.07131. Summary of the Invention [Problem to be solved by the invention]

[0007] In the learning method described in Non-Patent Document 2, images generated using a Generative Adversarial Network (GAN) are used to perform distillation learning from a teacher model to a student model. However, if the images generated using a GAN are far removed from the images in the target domain, the performance of the student model cannot be expected to improve.

[0008] One object of the present invention is to realize distillation learning that generates a high-performance student model using unknown data. [Means for solving the problem]

[0009] In one aspect of the present invention, a learning device comprises: Multiple pre-trained teacher models and a data generation means for generating generated data based on the input pseudo-ground-truth labels, the data generation means generating data such that each of the plurality of teacher models to which the generated data is input outputs a teacher predicted label close to the pseudo-ground-truth labels; A learning means receives the generated data as an input and performs distillation learning of a student model using the plurality of teacher models.

[0010] In another aspect of the invention, a method of learning comprises: 1. A computer-implemented method of learning, comprising: Obtain multiple pre-trained teacher models, Generate generated data based on the input pseudo-ground truth labels, The generated data is input, and distillation learning of a student model is performed using the plurality of teacher models; The generation data is data such that each of the plurality of teacher models to which the generation data is input outputs a teacher predicted label close to the pseudo ground truth label.

[0011] In yet another aspect of the invention, program teeth, Obtain multiple pre-trained teacher models, Generate generated data based on the input pseudo-ground truth labels, A process of performing distillation learning of a student model using the generated data as an input and the multiple teacher models, The generated data causes a computer to execute processing such that each of the plurality of teacher models to which the generated data is input outputs a teacher predicted label close to the pseudo-ground-truth label. Effect of the Invention

[0012] According to the present invention, it is possible to realize distillation learning that generates a high-performance student model using unknown data. [Brief description of the drawings]

[0013] [Figure 1] 2 shows a hardware configuration of the learning device according to the first embodiment. [Diagram 2] 13 is a flowchart showing the overall flow of a learning process. [Diagram 3] FIG. 13 is a diagram illustrating an example of a decision boundary of a teacher model. [Figure 4] Schematic diagram of how the teacher model learns. [Diagram 5] 1 shows a functional configuration of a learning device when learning a data generating unit. [Figure 6] 13 shows an example of the configuration of a label distribution determination unit. [Figure 7] 2 shows the functional configuration of a learning device when learning a student model. [Figure 8] 13 is a flowchart of a learning process for a student model. [Figure 9] 13 shows a functional configuration of a learning device according to a second embodiment. [Figure 10] 10 is a flowchart of a learning process according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. First Embodiment [Basic concept] Generally, when a student model is trained using a distillation technique (hereinafter also referred to as "distilled learning"), the student model is trained using the training data used to train the teacher model. In addition, when the training data used to train the teacher model is not available, the student model is trained using images generated using GAN or the like. However, if the images generated using GAN are far from the images in the target domain, the performance improvement of the student model by distilled learning cannot be expected. Therefore, in this embodiment, the performance of the student model by distilled learning is improved by bringing the images generated by GAN closer to the domain in which the teacher model was trained, i.e., the target domain.

[0015] [Hardware configuration] 1 is a block diagram showing the hardware configuration of a learning device according to embodiment 1. As shown in the figure, a learning device 10 includes an interface (I / F) 12, a processor 13, a memory 14, a recording medium 15, and a database (DB) 16.

[0016] The interface 12 inputs and outputs data to and from an external device. Specifically, the interface 12 obtains training data and unknown data used by the training device 10 from the external device.

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

[0018] The memory 14 is composed of a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The memory 14 stores models of the neural network used by the learning device 10, specifically, a teacher model, a student model, etc. The memory 14 is also used as a working memory while the processor 13 is executing various processes.

[0019] Recording medium 15 is a non-volatile, non-temporary recording medium such as a disk-shaped recording medium or semiconductor memory, and is configured to be detachable from learning device 10. Recording medium 15 records various programs executed by processor 13. When learning device 10 executes various processes, the programs recorded on recording medium 15 are loaded into memory 14 and executed by processor 13. Database 16 stores data input via interface 12.

[0020] [Learning process overview] Next, an overview of the learning process by the learning device 10 will be described. Fig. 2 is a flowchart showing the overall flow of the learning process. The learning process is roughly divided into learning of a teacher model (step S10), learning of a data generating unit (step S20), and learning of a student model (step S30).

[0021] The training of the teacher model involves training a plurality of teacher models using data obtained in a plurality of locations (domains). This results in a plurality of trained teacher models. The training of the data generation unit involves training a data generation unit that generates data used in training the student model using a plurality of trained teacher models. The data generation unit generates images using GAN. The training of the student model involves training a student model by distillation using a plurality of trained teacher models and a trained data generation unit. Each of these will be explained in detail below.

[0022] [Teacher model learning] First, the learning of the teacher model will be described. (Basic concept) In training the teacher model, the teacher model is trained using images obtained at each site (target domain). That is, a teacher model is trained for each target domain, and multiple teacher models corresponding to multiple target domains are trained. Here, each teacher model is trained to simultaneously satisfy the following two objectives:

[0023] Objective A: To achieve high performance on images in the target domain. This is similar to normal learning. Objective B: For images other than the target domain, make the output distribution of each teacher model as different as possible. That is, each teacher model is trained to intentionally increase the degree of inconsistency of the output for images other than the target domain.

[0024] We will now explain an example of a teacher model that simultaneously satisfies the above objectives A and B. Figure 3 shows an example of a distribution map of features. In this example, a target domain is classified into class X and class Y. Features that belong to area 1 on the distribution map are classified into class X, and features that belong to area 2 are classified into class Y.

[0025] Here, the classification boundaries of teacher models 1 and 2 that simultaneously satisfy the above objectives A and B are denoted by F1 and F2, respectively. First, the classification boundaries F1 and F2 both divide areas 1 and 2 into different areas, so that class X and class Y can be correctly classified. Therefore, teacher models 1 and 2 both satisfy the above objective A. Furthermore, the classification boundaries F1 and F2 classify most of the areas other than areas 1 and 2 (white areas) into different classes. Therefore, teacher models 1 and 2 satisfy the above objective B. In other words, the classification boundaries F1 and F2 correctly classify classes X and Y in the target domain, and classify most other areas into different classes. Therefore, teacher models 1 and 2 simultaneously satisfy the above objectives A and B.

[0026] If a teacher model 3 is generated in addition to teacher models 1 and 2, the classification boundary F3 will divide areas 1 and 2 into different regions in the same way as the classification boundaries F1 and F2 as shown in Figure 3, and will also divide the regions other than areas 1 and 2 into two regions different from the classification boundaries F1 and F2. The multiple teacher models trained in this way are used in the training of the data generation unit and the training of the student model, which will be described later.

[0027] (Teacher model learning method) FIG. 4 shows a schematic diagram of a method for learning a teacher model. In this example, N teacher models 20-1 to 20-N are to be learned. Each teacher model 20-1 to 20-N is a model using a neural network. In the following description, when there is no need to distinguish between the individual teacher models 20-1 to 20-N, they may be simply referred to as "teacher model 20." In the following drawings, elements to be learned are shown in gray.

[0028] First, as shown in Fig. 4(A), learning data is input to each of the teacher models 20-1 to 20-N. This learning data is learning data for the target domain, and a correct answer label is prepared. That is, this learning data includes an image obtained in the target domain and a correct answer label for the image. Each of the teacher models 20-1 to 20-N outputs a predicted label 1 to N for the input image, respectively.

[0029] The learning device 10 learns the teacher model 20-1 so as to minimize the error between the predicted label 1 output by the teacher model 20-1 and the correct label prepared as learning data. The learning device 10 also performs similar processing on the other teacher models 20-2 to 20-N to learn each of the teacher models 20-2 to 20-N. As a result, each of the teacher models 20-1 to 20-N is trained to make correct predictions for image data of the target domain. In this way, the above-mentioned objective A is satisfied.

[0030] Next, as shown in FIG. 4B, unknown data is input to each teacher model 20-1 to 20-N. The unknown data is data unknown to the teacher model, that is, data not used in the learning of the teacher model. Specifically, the unknown data is an image other than an image of the target domain, and no correct answer label is prepared. Each teacher model 20-1 to 20-N outputs a prediction label 1 to N for the input unknown data. The learning device 10 learns the teacher model 20-1 so that the degree of mismatch between the prediction label 1 and the other prediction labels 2 to N is maximized. The learning device 10 also performs the same process for the other teacher models 20-2 to 20-N, and learns each teacher model 20-2 to 20-N. As a result, each teacher model 20-1 to 20-N is learned so that the degree of mismatch of the prediction label is high for unknown data that is an image of a domain other than the target domain (hereinafter also referred to as a "non-target domain"), that is, so as to output a prediction label that is as different as possible. As a result, the above-mentioned purpose B is satisfied.

[0031] As a method for performing learning using the unknown data, for example, the technique described in the following document can be used. "Maximum Classifier Discrepancy for Unsupervised Domain Adaptation", Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, Tatsuya Harada; Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018, pp. 3723-3732

[0032] In addition to the above methods, a loss function indicating the degree of discrepancy in the predicted labels output by each teacher model can be defined, and this loss function can be added to the loss function used when training using normal training data.

[0033] In the above description, two types of learning are performed in sequence, first by learning using training data of the target domain to satisfy objective A, and then by learning using unknown data of the non-target domain to satisfy objective B. Alternatively, the training data and unknown data may be mixed and input to each teacher model 20, and each teacher model 20 may perform learning to simultaneously satisfy objectives A and B.

[0034] [Data generation part training] Next, the learning of the data generating unit will be described. (Basic concept) The data generating unit generates an image using a GAN. Here, in this embodiment, the GAN is trained so that the image generated by the data generating unit is closer to the image of the target domain. Specifically, in the training of the GAN, a consistency loss is added as a loss function. That is, when an image generated by the GAN is input to a plurality of teacher models, a loss is added so that the loss becomes smaller as the output distributions of the plurality of teacher models match. By the above-mentioned training of the teacher models, each teacher model is trained to output a predicted label with a high degree of match for an image of the target domain, and to output a predicted label with a low degree of match for an image of the non-target domain. Therefore, when a certain image is input to each teacher model, if the predicted labels output by each teacher model have a high degree of match (if the consistency loss is small), the image is considered to be close to the image of the target domain. Conversely, when a certain image is input to each teacher model, if the predicted labels output by each teacher model have a low degree of match (if the consistency loss is large), the image is considered not to be close to the image of the target domain.

[0035] Therefore, the learning device 10 inputs images generated by the GAN to each teacher model and calculates the consistency loss based on the predicted labels output by each teacher model. Then, the learning device 10 trains the GAN to generate images that reduce the consistency loss. In this way, the GAN is trained to output images that are close to images in the target domain.

[0036] (Functional configuration) 5 shows the functional configuration of the learning device 10 when learning the data generation unit. The learning device 10 includes a random number generator 31, a data generation unit 32, teacher models 20-1 to 20-N, a label error minimization unit 33, and a label distribution determination unit 34. Here, the data generation unit 32 shown in gray is the target of learning. Moreover, the teacher models 20-1 to 20-N have already been learned in the above-mentioned directions.

[0037] The random number generator 31 generates a random vector and outputs it to the data generation unit 32. By using the random vector, the data generation unit 32 can generate a variety of images. The data generation unit 32 is composed of a GAN. Unknown data is input to the data generation unit 32. As described above, the unknown data is image data of a non-target domain. The unknown data is for making the GAN learn how a natural image looks, and images obtained from a general image dataset such as Image Net can be used as the unknown data. By using images from the image dataset as the unknown data, the data generation unit 32 can generate images that look like natural images. In the sense of making the GAN learn how a natural image looks, the unknown data can also be regarded as auxiliary data or proxy data.

[0038] Further, the pseudo-correct label D3 is input to the data generating unit 32. The pseudo-correct label D3 is data that specifies the class of the image generated by the data generating unit 32, and may be, for example, a class number. The data generating unit 32 generates an image D1 of the class indicated by the pseudo-correct label D3 based on the input random number vector and the pseudo-correct label D3, and outputs the image D1 to the teacher models 20-1 to 20-N.

[0039] The data generating unit (GAN) 32 includes a generator and a discriminator. As a basic operation, the generator receives a random vector and a pseudo-ground truth label D3 as input and generates an image D1. The image D1 or unknown data is input to the discriminator. The discriminator is trained with the goal of distinguishing between the image D1 generated by the generator and unknown data, and the generator is trained with the goal of generating an image D1 that the discriminator cannot distinguish. In this embodiment, in addition to the above learning, the generator is trained using a label error minimization unit 33 as described later.

[0040] The teacher models 20-1 to 20-N each perform prediction for the image D1, and output the predicted label D2 to the label error minimization unit 33 and the label distribution determination unit 34. Hereinafter, the predicted label output by the teacher model 20 is called the "teacher predicted label". The label distribution determination unit 34 calculates the distribution of the labels based on the teacher predicted labels D2 input from the teacher models 20-1 to 20-N, determines the pseudo-correct labels D3 so that the calculated distribution is uniform, and outputs them to the data generation unit 32. For example, when the teacher model 20 classifies 10 classes, each of the teacher models 20-1 to 20-N outputs the classification results of the 10 classes as the teacher predicted labels D2. The label distribution determination unit 34 counts the teacher predicted labels D2 output by the teacher models 20-1 to 20-N, and generates pseudo-correct labels D3 indicating the class of the image to be generated next by the data generation unit 32 so that the distribution is uniform, and outputs them to the data generation unit 32. As a result, the data generating unit 32 generates images so that the teacher prediction labels D2 output from the teacher models 20-1 to 20-N are distributed evenly.

[0041] Furthermore, the label distribution determination unit 34 outputs the pseudo-correct labels D3 to the label error minimization unit 33. The label error minimization unit 33 uses the teacher prediction labels D2 and the pseudo-correct labels D3 input from each of the teacher models 20-1 to 20-N to train the data generation unit 32. Specifically, the label error minimization unit 33 calculates the errors between the teacher prediction labels D2 and the pseudo-correct labels D3 output from each of the teacher models 20-1 to 20-N, and optimizes the parameters of the neural network constituting the data generation unit 32 so that the sum of the errors is minimized.

[0042] In addition, the label error minimization unit 33 trains the data generation unit 32 based on the above-mentioned consistency loss. Specifically, the label error minimization unit 33 calculates the consistency loss based on the teacher prediction label D2 output by each teacher model 20-1 to 20-N. The consistency loss is a loss that becomes smaller as the distributions of the teacher prediction labels D2 output by the multiple teacher models 20 match. Therefore, the label error minimization unit 33 trains the generator of the data generation unit 32 so that the consistency loss is reduced, that is, so that the distributions of the teacher prediction labels D2 output by the teacher models 20-1 to 20-N become closer. As a result, the data generation unit 32 is trained to generate an image in which the distributions of the teacher prediction labels D2 output by each teacher model 20-1 to 20-N match when the generated image is input, that is, an image close to the image of the target domain.

[0043] FIG. 6 shows a configuration example of the label distribution determination unit 34. The label distribution determination unit 34 includes a cumulative probability density calculation unit 35, a weight calculation unit 36, and a multiplier 37. The teacher prediction label D2 output from each teacher model 20-1 to 20-N is input to the cumulative probability density calculation unit 35 and the multiplier 37. The cumulative probability density calculation unit 35 calculates the cumulative probability distribution of each class from each teacher prediction label D2, obtains a cumulative probability density, and inputs it to the weight calculation unit 36. The weight calculation unit 36 ​​calculates a weight for each class so that the cumulative probability density of each class is uniform. For example, the weight calculation unit 36 ​​may use the inverse of the cumulative probability density as the weight, or the weight for some classes may be arbitrarily determined by the user. Then, the multiplier 37 multiplies the teacher prediction label D2 by the weight to determine a pseudo-correct label D3 for each unknown data.

[0044] [Student model learning] Next, the learning of the student model will be described. (Functional configuration) 7 shows the functional configuration of the learning device 10 when learning a student model. The learning device 10 includes a random number generator 31, a data generation unit 32, teacher models 20-1 to 20-N, a label distribution determination unit 34, a student model 40, and a distilled learning unit 41. Here, the student model 40 is the subject of learning. Note that each of the teacher models 20-1 to 20-N and the data generation unit 32 has already been trained by the above-mentioned learning method. Also, the random number generator 31 and the label distribution determination unit 34 are the same as those at the time of training of the data generation unit shown in FIG. 5.

[0045] When the pseudo-correct labels D3 are input from the label distribution determination unit 34, the data generation unit 32 generates an image D1 using the pseudo-correct labels D3 and a random number vector from the random number generator 31, and outputs the image D1 to the teacher models 20-1 to 20-N and the student model 40. The student model 40 is configured using a neural network, similar to the teacher model.

[0046] Each teacher model 20-1 to 20-N outputs a teacher prediction label D2 for image D1 to the distilled learning unit 41. Also, student model 40 outputs a prediction label (hereinafter also referred to as a "student prediction label") D5 for image D1 to the distilled learning unit 41. The distilled learning unit 41 learns the student model 40 so that the student model 40 approaches the teacher model 20. Specifically, the distilled learning unit 41 optimizes the parameters of the neural network constituting the student model 40 so that the sum of the errors between the student prediction label D5 and each teacher prediction label D2 and the pseudo-correct label D3 is minimized. In this way, the student model is learned by distillation.

[0047] As described above, the data generator 32 is trained to generate an image D1 similar to an image of the target domain based on unknown data. Therefore, even if the training data of the teacher model is not available, the student model 40 is trained by distillation using the image D1 similar to the image of the target domain generated from unknown data, so that the student model 40 can appropriately inherit the performance of each teacher model 20.

[0048] In the above configuration, the data generating unit 32 is an example of a data generating means, the image D1 is an example of generated data, the distilled learning unit 41 is an example of a learning means, and the label distribution determining unit 34 is an example of a label distribution determining means.

[0049] (Student model learning process) Fig. 8 is a flowchart of the learning process of the student model by the learning device 10 shown in Fig. 7. This process is realized by the processor 13 shown in Fig. 1 executing a program prepared in advance.

[0050] First, the label distribution determination unit 34 generates a pseudo-correct label D3 and outputs it to the data generation unit 32 (step S31). The data generation unit 32 uses a random vector to generate an image D1 of a class indicated by the input pseudo-correct label D3, and outputs it to the teacher model 20 and the student model 40 (step S32). Next, each of the teacher model 20 and the student model 40 makes a prediction for the image D1, and outputs a teacher prediction label D2 and a student prediction label D5 to the distilled learning unit 41 (step S33).

[0051] Next, the distilled learning unit 41 learns the student model so that the error between the student predicted label D5 and each teacher predicted label D2 and the pseudo-correct label D3 is minimized (step S34). The processes of steps S31 to S34 are repeatedly executed until a predetermined end condition is met, and when the predetermined end condition is met (step S35: Yes), the process ends.

[0052] As described above, in the learning process of the student model, distillation learning is performed using images that are close to the target domain images generated by the learned data generation unit 32, so that even when unknown data is used, a student model that appropriately inherits the performance of the teacher model can be obtained.

[0053] [Second embodiment] Next, a second embodiment of the present invention will be described. Fig. 9 shows the functional configuration of a learning device 50 according to the second embodiment. The hardware configuration of the learning device 50 is the same as that shown in Fig. 1.

[0054] The learning device 50 performs distillation learning using unknown data that has not been learned by the teacher model, and includes a plurality of teacher models 51, a data generating means 52, a learning means 53, and a student model 54, as shown in the figure. The plurality of teacher models have already been learned, and the student model 54 is the subject of learning. The data generating means 52 generates generated data based on the input pseudo-correct labels. Specifically, the data generating means 52 generates data as generated data such that each of the plurality of teacher models to which the generated data has been input outputs a teacher prediction label close to the pseudo-correct label. The learning means 53 receives the generated data as input, and performs distillation learning of the student model 54 using the plurality of teacher models 51. In this way, distillation learning can be performed using unknown data.

[0055] FIG. 10 is a flowchart of the learning process according to the second embodiment. First, a plurality of trained teacher models are acquired (step S51). Next, generated data is generated based on the input pseudo-ground-truth labels (step S52). Here, the generated data is data such that each of the plurality of teacher models to which the generated data is input outputs a teacher predicted label close to the pseudo-ground-truth label. Then, using the generated data as input, distillation learning of a student model is performed using the plurality of teacher models (step S53).

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

[0057] (Appendix 1) Multiple pre-trained teacher models and a data generation means for generating generated data based on the input pseudo-ground-truth labels, the data generation means generating data such that each of the plurality of teacher models to which the generated data is input outputs a teacher predicted label close to the pseudo-ground-truth labels; A learning means for performing distillation learning of a student model using the generated data as an input and the plurality of teacher models; A learning device comprising:

[0058] (Appendix 2) The learning device described in Appendix 1, wherein the learning means inputs the generated data to the multiple teacher models and student models, and uses teacher predicted labels output by the multiple teacher models as correct labels to learn the student model.

[0059] (Appendix 3) The learning device described in Appendix 1 or 2, wherein the multiple teacher models have been trained so that the teacher prediction labels that each output for known input data are close to the correct labels and so that the degree of discrepancy between the teacher prediction labels that each output for unknown input data is maximized.

[0060] (Appendix 4) 4. The learning device according to claim 3, wherein the known input data is data used in training the teacher model, and the unknown input data is data not used in training the teacher model.

[0061] (Appendix 5) 5. The learning device according to claim 3 or 4, wherein the known input data is data in a target domain, and the unknown input data is data other than the data in the target domain.

[0062] (Appendix 6) The learning device according to any one of appendix 1 to 5, wherein the data generation means has been trained to minimize a loss function that becomes smaller as the distributions of teacher prediction labels output by each of the plurality of teacher models become more consistent when the generated data is input to the plurality of teacher models.

[0063] (Appendix 7) The learning device according to any one of appendix 1 to 6, wherein the learning means learns the student model so as to minimize the sum of an error between a student predicted label output by the student model and a teacher predicted label output by the multiple teacher models, and an error between the student predicted label and the pseudo-ground truth label.

[0064] (Appendix 8) The learning device according to any one of claims 1 to 7, further comprising a label distribution determination means for adjusting values ​​of the pseudo-correct labels so that teacher predicted labels output by the plurality of teacher models are evenly distributed among the classes.

[0065] (Appendix 9) Obtain multiple pre-trained teacher models, Generate generated data based on the input pseudo-ground truth labels, The generated data is input, and distillation learning of a student model is performed using the plurality of teacher models; A learning method in which the generated data is data such that each of the multiple teacher models to which the generated data is input outputs a teacher predicted label that is close to the pseudo-ground-truth label.

[0066] (Appendix 10) Obtain multiple pre-trained teacher models, Generate generated data based on the input pseudo-ground truth labels, A process of performing distillation learning of a student model using the generated data as an input and the multiple teacher models, The generated data is a recording medium having a program recorded thereon that causes a computer to execute a process in which each of the multiple teacher models to which the generated data is input outputs a teacher predicted label that is close to the pseudo-ground-truth label.

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

[0068] 10 Learning Device 20 Teacher Model 31 Random Number Generator 32 Data Generation Section 33 Label error minimization unit 34 Label distribution determination unit 40 Student Model 41 Distillation Learning Club

Claims

1. Multiple pre-trained teacher models and A data generating means for generating generated data based on the input pseudo-correct label, a data generating means for generating, as the generated data, data such that each of the plurality of teacher models to which the generated data is input outputs a teacher predicted label close to the pseudo ground truth label; A learning means for performing distillation learning of a student model using the generated data as an input and the plurality of teacher models; A learning device comprising:

2. The learning device according to claim 1 , wherein the learning means inputs the generated data to the plurality of teacher models and student models, and uses teacher predicted labels output by the plurality of teacher models as correct labels to learn the student model.

3. The learning device according to claim 1 or 2, wherein the plurality of teacher models have been trained so that the teacher prediction labels that each output for known input data are close to the correct labels and so that the degree of discrepancy between the teacher prediction labels that each output for unknown input data is maximized.

4. 4. The learning device according to claim 3, wherein the known input data is data used in training the teacher model, and the unknown input data is data not used in training the teacher model.

5. 5. The learning device according to claim 3, wherein the known input data is data in a target domain, and the unknown input data is data other than the data in the target domain.

6. The learning device according to any one of claims 1 to 5, wherein the data generation means has been trained to minimize a loss function that becomes smaller as the distributions of teacher prediction labels output by each of the plurality of teacher models become more consistent when the generated data is input to the plurality of teacher models.

7. 7. The learning device according to claim 1, wherein the learning means learns the student model so as to minimize a sum of an error between a student predicted label output by the student model and a teacher predicted label output by the plurality of teacher models, and an error between the student predicted label and the pseudo-ground truth label.

8. The learning device according to claim 1 , further comprising a label distribution determination means for adjusting values ​​of the pseudo-correct labels so that teacher predicted labels output from the plurality of teacher models are evenly distributed among the classes.

9. A computer-implemented learning method comprising: Obtain multiple pre-trained teacher models, Generate generated data based on the input pseudo-ground truth labels, The generated data is input, and distillation learning of a student model is performed using the plurality of teacher models; A learning method in which the generated data is data such that each of the multiple teacher models to which the generated data is input outputs a teacher predicted label that is close to the pseudo-ground-truth label.

10. Obtain multiple pre-trained teacher models, Generate generated data based on the input pseudo-ground truth labels, A process of performing distillation learning of a student model using the generated data as an input and the multiple teacher models, A program that causes a computer to execute a process in which the generated data is data such that each of the multiple teacher models to which the generated data is input outputs a teacher predicted label that is close to the pseudo-ground-truth label.

Citation Information

Patent Citations

  • Model distillation method and device, electronic equipment and readable storage medium

    CN111695699A

  • Learning apparatus, learning method, learning program, estimation device, estimation method, and estimation program

    JP2019046380A