Learning device, learning method, and program
The learning device and method enhance neural network ensemble diversity against adversarial examples by minimizing a diversity function based on incorrect class probabilities, reducing computational complexity to O(Lm^2) and improving robustness.
Patent Information
- Application Number
- JP2022532887
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-06-30
AI Technical Summary
Existing methods for enhancing ensemble diversity in neural networks to resist adversarial examples require high computational complexity, specifically O(Lm^2 + m^3) calculations, which is inefficient.
A learning device and method that calculates an incorrect class predicted probability vector by removing correct class elements and trains neural networks to minimize an objective function with a diversity function that decreases with the angle between these vectors, reducing computational complexity to O(Lm^2).
The solution allows for diverse and robust neural network outputs with reduced computational burden, effectively resisting adversarial samples while improving classification accuracy.
Smart Images

Figure 0007548308000006 
Figure 0007548308000007 
Figure 0007548308000009
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning device, a learning method, and program Regarding. [Background technology]
[0002] As a countermeasure against adversarial examples, the technology described in Non-Patent Document 1 performs training so that multiple models tend to output diverse classification results in order to prevent multiple models from being fooled in the same way. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Tianyu Pang and 4 others, "Improving Adversarial Robustness via Promoting Ensemble Diversity", arXiv:1901.08846, 2019, https: / / arxiv.org / abs / 1901.08846 Summary of the Invention [Problem to be solved by the invention]
[0004] It is preferable that the amount of calculation required for learning is small so that multiple models can easily output diverse classification results. For example, in the above-mentioned Non-Patent Document 1, the order of computational complexity of the function used to obtain diversity in the output of the model (neural network) is O(Lm 2 +m 3 ) It is preferable to be able to compute the function used to obtain the diversity of the model's output on an order of magnitude smaller than this.
[0005] An example of the object of the present invention is to provide a learning device, a learning method, and program The purpose of this project is to provide [Means for solving the problem]
[0006] According to a first aspect of the present invention, a learning device includes an incorrect prediction calculation unit that calculates an incorrect class prediction probability vector by excluding correct class elements from a prediction probability vector of a neural network model for supervised learning data, and an update unit that learns the neural network model so as to reduce the value of an objective function including a diversity function whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases.
[0007] According to a second aspect of the present invention, a learning method includes: The computer The method includes: determining an incorrect class prediction probability vector by excluding correct class elements from the prediction probability vector of the neural network model for supervised training data; and training the neural network model so as to reduce the value of an objective function including a diversity function whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases.
[0008] According to a third aspect of the present invention, program The present invention provides a program for causing a computer to execute the following steps: obtaining an incorrect class prediction probability vector by excluding a correct class element from a prediction probability vector of a neural network model for supervised learning data; and training the neural network model so as to reduce a value of an objective function including a diversity function whose value decreases as an angle between the incorrect class prediction probability vectors of two of the neural network models increases. In be. Effect of the Invention
[0009] The above-mentioned learning device, learning method, and program According to this method, the amount of calculation required for training a plurality of models to easily output diverse classification results is relatively small. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a schematic block diagram illustrating an example of a configuration of a learning device according to an embodiment. [Diagram 2] 1 is a schematic block diagram illustrating an example of a configuration of a diversity calculation device according to an embodiment. [Diagram 3] 1 is a flowchart illustrating an example of a process performed by a learning device according to an embodiment. [Figure 4] FIG. 11 is a schematic block diagram showing another example of the configuration of a learning device according to an embodiment. [Diagram 5] 1 is a flowchart illustrating an example of a processing procedure of a learning method according to an embodiment. [Figure 6] FIG. 1 is a diagram illustrating an example of a configuration of an information processing device according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] The following describes embodiments of the present invention, but the following embodiments do not limit the scope of the invention. Furthermore, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.
[0012] <Description of the configuration in the embodiment> FIG. 1 is a schematic block diagram illustrating an example of the configuration of a learning device according to an embodiment. In the configuration shown in FIG. 1, a learning device 10 includes an input / output unit 11, a prediction unit 12, a multiple prediction loss calculation unit 13, a diversity calculation device 100, an objective function calculation unit 14, and an update unit 15.
[0013] The learning device 10 has neural network models f1, . . . , f n Here, n is a positive integer indicating the number of neural network models to be learned by the learning device 10. The neural network models f1, ..., f n The combination of these is also called a neural network model set.
[0014] The learning device 10 learns a neural network model so as to provide diversity to the output of the neural network model set, which is expected to result in the neural network model set being constructed to be robust against adversarial examples.
[0015] The adversarial sample here is a sample (classification target data) to which minute noise that cannot be recognized by humans has been added. For example, in the case of an adversarial sample image, the manipulation is difficult or impossible to notice with the naked eye. In addition, the term "robust" used here means that the model is less likely to make mistakes against adversarial samples, that is, it is less likely to classify normal samples, which are the original samples of the adversarial samples, into classes other than the correct class.
[0016] For example, when a neural network model set obtained by learning by the learning device 10 outputs multiple classes as classification results, and the neural network model that outputs the correct class is the most common among the multiple classes, the correct answer can be obtained by taking a majority vote of the outputs of the neural network models. In this case, the outputs after the neural network model set become more diverse, so that the neural network models f1, ..., f n This reduces the chances of being deceived across the board.
[0017] In addition, by outputting multiple classes of classification results from the neural network model set learned by the learning device 10, even if the correct class cannot be identified, it is possible to indicate that the input data may be an adversarial sample.
[0018] The input / output unit 11 inputs and outputs data between the learning device 10 and the outside. For example, the input / output unit 11 includes neural network models f1, . . . , f n and the parameters of each neural network model, θ1, …, θ nThe inputs accepted are the initial values of , the training data X, the correct label Y, and the values of the hyperparameters α and β.
[0019] Neural network model f i (i is an integer 1≦i≦n) may include multiple parameters, and the parameter θ i may be configured as a vector of multiple parameters. Also, the neural network models f1, ..., f n Each of the parameters θ1, ..., θ may have a different configuration and number of parameters. n The number of elements may differ for each of the
[0020] In addition, the input / output unit 11 receives parameters θ1, ..., θ n The updated parameters θ1, ..., θ n The values of θ'1, ..., θ' n It can also be written as: Alternatively, the learning device 10 may set the parameter values θ′1, . . . , θ′ n In addition to or instead of the output of n and parameter values θ′1, ..., θ′ n and may function as a classifier by receiving input data and outputting a class classification result.
[0021] The method by which the input / output unit 11 inputs and outputs data is not limited to a specific method. For example, the input / output unit 11 may have a communication function, such as being configured to include a communication device, and may transmit and receive data to and from other devices. Alternatively, the input / output unit 11 may be configured to include input devices such as a keyboard and a mouse, and may accept data input by a user operation in addition to or instead of receiving data. Furthermore, the input / output unit 11 may be configured to include a display screen such as a liquid crystal panel or an LED (Light Emitting Diode) panel, and may display data in addition to or instead of transmitting data.
[0022] The prediction unit 12 uses neural network models f1, ..., f n Based on the training data X, the predicted probability vectors f1(X,θ1), …, f n (X,θ n ) is calculated and output. The predicted probability vector here is the output of the neural network model and indicates the predicted probability of each class. That is, the neural network model f i (i is an integer of 1≦i≦n) outputs, for each class, the probability that a classification object associated with the data belongs to the class. The prediction unit 12 uses a parameter θ i Neural network model f for input of training data X under i Calculate the output of and predict the probability vector f i (X,θ i )
[0023] The multiple prediction loss calculation unit 13 calculates the prediction probability vectors f1(X, θ1), ..., f n (X,θ n ) and the ground truth label Y, we create neural network models f1, …, f n The neural network models f1, ..., f n The function that calculates an index value that indicates the magnitude of the error between the prediction result and the correct label is called the multiprediction loss function ECE. The value of the multiprediction loss function ECE is called the multiprediction loss.
[0024] For example, f i The predicted loss of l i The multiple prediction loss function ECE is l i It may be the average value of l i Alternatively, cross entropy may be used for the multi-prediction loss. In this case, the multi-prediction loss calculation unit 13 calculates the multi-prediction loss using a multi-prediction loss function ECE shown in Equation (1).
[0025]
number
[0026] "1 Y " indicates a one-hot vector whose Y-th element is 1 and the other elements are 0. "-log(1 Y f i (X,θ i ))" is the neural network model f i We denote the prediction loss by cross entropy in i (Y)), where p i (Y) is the neural network model f i is the predicted probability to be output for the correct label Y (correct class). However, the multi-prediction loss function ECE is not limited to the one shown in formula (1). Various functions that reduce the error as the output of the neural network model approaches the correct answer can be used as the multi-prediction loss function ECE. The learning device 10 learns the neural network models f1, . . . , f2 so as to reduce the value of the multi-prediction loss function ECE. n By training the neural network models f1, ..., f n The accuracy of classification by the method is improved.
[0027] The diversity calculation device 100 calculates the predicted probability vectors f1(X, θ1), ..., f n (X,θ n ) and the ground truth label Y, we create neural network models f1, ..., f n Calculate the index value of the diversity of the output of neural network models f1, ..., f n The function that calculates the diversity index value of the output of the neural network models f1, ..., f is called the diversity function ED. n The function whose value becomes smaller as the diversity of the output of is larger. In other words, for the same training data X, the predicted probability vectors f1(X, θ1), ..., f n (X,θ n ) the greater the variation, the smaller the value of the diversity function ED.
[0028] By reducing the value of the diversity function ED through learning, the predicted probability vector f1(X,θ1), …, f n (X,θ n ) and apply adversarial inputs to neural network models f1, …, f n This has the effect of making the system more robust. 1, the diversity calculation device 100 may be configured as a part of the learning device 10. Alternatively, the diversity calculation device 100 may be configured as a device separate from the learning device 10.
[0029] The objective function calculation unit 14 calculates the value of the objective function based on the value of the multiprediction loss function ECE calculated by the multiprediction loss calculation unit 13, ED which is the output from the diversity calculation device 100, and the values of the hyperparameters α and β. The objective function can be, for example, loss=αECE−βED.
[0030] The update unit 15 updates the neural network models f1, ..., f n Specifically, the update unit 15 updates the parameters θ1, ..., θ of the neural network model based on the value of the objective function calculated by the objective function calculation unit 14 so that the difference between the output of the neural network and the correct label becomes small and the similarity between the neural network models becomes small. n Update the value of
[0031] For example, the update unit 15 uses the differential coefficient of the objective function by each parameter of the neural network to update parameters θ1, . . . , θ2 that reduce the value of the objective function based on the gradient method. n However, the learning method used by the update unit 15 is not limited to a specific method. n As a method for learning, various methods for reducing the value of the objective function can be used.
[0032] 2 is a schematic block diagram illustrating an example of the configuration of the diversity calculation device 100. In the configuration illustrated in FIG. The diversity calculation device 100 receives predicted probability vectors f1(X, θ1), ..., f n (X,θ n ) and the correct label Y as input.
[0033] Here, the classes are assigned numbers from 1 to n, and are referred to as class 1, ..., class n using these numbers. In addition, the predicted probability vectors f1(X, θ1), ..., f n (X,θ n ) are vector elements that are arranged in order from the predicted probability of class 1 to the predicted probability of class n. Y indicates the number of the correct class. However, the method of class identification, the method of presenting the correct class, and the configuration of the predicted probability vector are not limited to any particular method.
[0034] The incorrect answer prediction calculation unit 101 calculates each f i (X,θ i ) the incorrect class prediction probability vector f1 excluding the element corresponding to the correct label, i.e., the Y-th element Y (X,θ1), …, f n Y (X,θ n ) is calculated and output. The normalization unit 102 calculates the incorrect class prediction probability vector f1 Y (X,θ1), …, f n Y (X,θ n ) is normalized and output. Y (X,θ1), …, f n Y (X,θ n This is to eliminate the influence of the magnitude of the vector when calculating the value of the diversity function ED (the diversity index value) based on
[0035] As the normalization performed by the normalization unit 102, various normalizations can be used for the vector. For example, the normalization unit 102 may perform L2 normalization, but is not limited to this. Alternatively, the diversity calculation device 100 may not include the normalization unit 102. That is, when the incorrect class prediction probability vector f1 Y (X,θ1), …, f n Y (X,θ n ) normalization is not required. The normalization unit 102 calculates the incorrect class prediction probability vector f1 Y (X,θ1), …, f n Y (X,θ n ) is L2-normalized, it is calculated as shown in equation (2).
[0036]
number
[0037] The angle calculation unit 103 calculates and outputs the value of the diversity function ED. For example, when the normalization unit 102 performs L2 normalization, the function shown in Equation (3) can be used as the diversity function ED.
[0038]
number
[0039] In equation (3), “·” indicates the dot product of vectors. The angle calculation unit 103 calculates the neural network models f1, . . . , f n The sum of the cosine similarities of the incorrect class prediction probability vectors for all combinations of the two incorrect class prediction probability vectors in is calculated as the diversity index value. The greater the variation in the incorrect class prediction probability vectors, the smaller the cosine similarity becomes, and the smaller the diversity index value (value of the diversity function ED) becomes. Alternatively, the angle calculation unit 103 may calculate the average of the inner products instead of the sum of the inner products of the normalized incorrect class prediction probability vectors as in Equation (4).
[0040] [Number]
[0041] As in the example of Equation (3) or Equation (4), as the diversity function ED, for two neural network models f i and f j (where i and j are positive integers satisfying 1 ≤ i < j ≤ n), the function may be used such that the larger the angle formed by the incorrect class prediction probability vectors f i Y (X, θ i ) and f j Y (X, θ j ), the smaller the value.
[0042] Also, both Equation (3) and Equation (4) are applicable to all combinations of two neural network models f1,..., f n among all the neural network models to be learned, and involve the calculation of the evaluation value of the magnitude of the angle formed by the incorrect class prediction probability vectors f i and f j f i Y (X, θ i ) and f j Y (X, θ j ).
[0043] However, as the diversity function ED, a function including the calculation of the evaluation value of the magnitude of the angle formed by the incorrect class prediction probability vectors may be used only for some combinations of two neural network models among all the neural network models to be learned. For example, the angle calculation unit 103 may calculate the value of a diversity function ED, which includes calculating an evaluation value of the magnitude of the angle between the incorrect class prediction probability vectors of adjacent neural network models in terms of identification numbers, as in the example of equation (5).
number
[0044] The calculation of the evaluation value of the magnitude of the angle used in the diversity function ED is not limited to the cosine similarity, but may be any of various functions whose value decreases as the angle increases.
[0045] <Explanation of the operation of the learning device> FIG. 3 is a flowchart showing an example of processing performed by the learning device 10. First, the input / output unit 11 includes n neural network models f1, . . . , f n , parameters θ1, …, θ n The values of , training data X, correct label Y, and hyperparameters α and β are obtained (step S10).
[0046] Next, the prediction unit 12 calculates the predicted probability vectors f1(X, θ1), ..., f n (X,θ n ) is calculated (step S20). Next, the multiple prediction loss calculation unit 13 calculates the prediction probability vectors f1(X, θ1), ..., f n (X,θ n ) and the correct answer, and calculates the average value between the models to calculate the value of the multiple prediction loss function ECE (step S31).
[0047] Next, the diversity calculation device 100 calculates the predicted probability vectors f1(X, θ1), ..., f n (X,θ n ) and the correct label Y, the incorrect class prediction probability vector f1 Y (X,θ1), …, f n Y (X,θ n) and calculates a score based on the angle between these vectors as a diversity value (diversity function ED) (step S32).
[0048] Next, the objective function calculation unit 14 calculates the objective function loss based on the multi-prediction loss function ECE, the diversity function ED, and the values of the hyperparameters α and β (step S4). Finally, the update unit 15 updates the objective function loss with the network parameters θ1, ..., θ n The network parameters θ1, ..., θ n (step S5). That is, the update unit 15 updates the updated network parameters θ′1, ..., θ′ n Calculate.
[0049] After step S4, the learning device 10 ends the process of FIG. The learning device 10 repeatedly performs the process in Fig. 3. For example, the learning device 10 may repeat the process in Fig. 3 a predetermined number of times. Alternatively, the learning device 10 may repeat the process until the magnitude of the decrease rate of the objective function converges to a predetermined magnitude or less.
[0050] As described above, the incorrect answer prediction calculation unit 101 calculates the neural network models f1, . . . , f n The incorrect class prediction probability vector f1 is obtained by removing the correct class elements from the predicted probability vector of Y (X,θ1), …, f n Y (X,θ n The update unit 15 updates the neural network models f1, ..., f2 so as to reduce the value of the objective function loss including the diversity function ED, whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases. n Learn about the following.
[0051] The update unit 15 updates the neural network models f1, ..., f nBy learning, the value of the loss function included in the objective function loss becomes smaller, and the neural network models f1, ..., f n It is expected that the classification accuracy will improve.
[0052] In addition, the update unit 15 updates the neural network models f1, ..., f n By learning, the value of the diversity function included in the objective function loss becomes smaller, and the neural network models f1, ..., f n It is expected that we can obtain a diversity of outputs (outputs of the neural network ensemble). n It is expected that the diversity of the output will make it more robust against adversarial samples.
[0053] In addition, since the update unit 15 uses, as the diversity function, a function based on the evaluation value of the angle between the incorrect class prediction probability vectors between the two neural network models, it is expected that the amount of calculation required for learning will be relatively small. For example, assuming that the number of neural network models is m and the number of classes of output vectors (number of classes) is L, the computational complexity of the function used to obtain diversity in the output of the neural network models is O(Lm 2 +m 3 ), whereas the learning device 10 can achieve a speed of O(Lm 2 ) will suffice.
[0054] The diversity function is the function of all neural network models f1, ..., f n The method includes calculating an evaluation value of the magnitude of the angle between the class prediction probability vectors for all combinations of two neural network models. This enables the learning device 10 to evaluate the diversity of the outputs of the neural network model with higher accuracy, and is expected to make it easier to obtain the diversity of the outputs of the neural network model.
[0055] The diversity function also includes a calculation of the cosine similarity between two incorrect class prediction probability vectors as a calculation of an evaluation value of the magnitude of the angle formed by the two incorrect class prediction probability vectors. As a result, in the learning device 10, when evaluating the magnitude of the angle formed by the two incorrect class prediction probability vectors, it is possible to eliminate the influence of the magnitude of each of the two incorrect class prediction probability vectors. In this respect, it is expected that the learning device 10 can evaluate the diversity of the output of the neural network model with higher accuracy and easily obtain the diversity of the output of the neural network model.
[0056] The diversity function also includes an operation of calculating an average of the cosine similarities of the incorrect class prediction probability vectors of the two neural network models for all combinations of the two neural network models among all the neural network models to be trained. In this way, by the learning device 10 calculating the average cosine similarity in the diversity function calculation, it is possible to prevent the value magnitude of the diversity function from increasing or decreasing depending on the number of neural network models, and to prevent the degree of influence of the diversity function on the objective function from changing.
[0057] FIG. 5 is a schematic block diagram illustrating another example of the configuration of the learning device according to the embodiment. In the configuration shown in FIG. 5, the learning device 500 includes an incorrect answer prediction calculation unit 501 and an update unit 502. In this configuration, the incorrect answer prediction calculation unit 501 obtains an incorrect answer class prediction probability vector by removing the correct answer class element from the prediction probability vector of the neural network model for the supervised learning data. The update unit 502 performs learning of the neural network model so as to reduce the value of the objective function including the diversity function whose value decreases as the angle between the incorrect answer class prediction probability vectors of the two neural network models increases.
[0058] By the update unit 502 learning the neural network model so as to reduce the value of the objective function, it is expected that the value of the diversity function included in the objective function will be reduced and diversity in the output of the neural network model will be obtained. By diversifying the output of the neural network model, it is expected that it will become robust against adversarial samples.
[0059] In addition, since the update unit 502 uses a function based on the evaluation value of the angle between the incorrect class prediction probability vectors between the two neural network models as the diversity function, it is expected that the amount of calculation required for learning will be relatively small. For example, assuming that the number of neural network models is m and the number of classes of output vectors (number of classes) is L, the computational complexity of the function used to obtain diversity in the output of the neural network models is O(Lm 2 +m 3 ), whereas the learning device 500 reduces the time to 2 ) will suffice.
[0060] Fig. 6 is a flowchart showing an example of a processing procedure in the learning method according to the embodiment. In the processing shown in Fig. 6, an incorrect class prediction probability vector is obtained by removing the correct class element from the prediction probability vector of the neural network model for the supervised learning data (step S501). Then, the neural network model is trained so as to reduce the value of an objective function including a diversity function whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases (step S502).
[0061] By training the neural network model to reduce the value of the objective function, the value of the diversity function included in the objective function is reduced, and it is expected that the diversity of the neural network model's output will be obtained. By increasing the diversity of the neural network model's output, it is expected that the model will become more robust against adversarial samples.
[0062] In addition, since the diversity function used is based on the evaluation value of the angle between the incorrect class prediction probability vectors of two neural network models, it is expected that the amount of calculation required for learning will be relatively small. For example, assuming that the number of neural network models is m and the number of classes of output vectors (number of classes) is L, the computational complexity of the function used to obtain diversity in the output of the neural network models is O(Lm 2 +m 3 ), whereas the process shown in FIG. 6 is O(Lm 2 ) will suffice.
[0063] <Hardware configuration> Fig. 7 is a diagram showing an example of the configuration of an information processing device 300 according to at least one embodiment. In the configuration shown in Fig. 7, the information processing device 300 includes a CPU (Central Processing Unit) 301, a ROM (Read Only Memory) 302, a RAM (Random Access Memory) 303, a group of programs 304 loaded into the RAM 303, a storage device 305 storing the group of programs 304, a drive device 306 for reading and writing data from and to a recording medium 310 outside the information processing device 300, a communication interface 307 for connecting to a communication network 311 outside the information processing device 300, an input / output interface 308 for inputting and outputting data, and a path 309 for connecting the various components.
[0064] A part or all of the above-mentioned learning device 10, or a part or all of the learning device 500 may be realized by, for example, an information processing device 300 as shown in FIG. 7 executing a program. In that case, the CPU 301 can obtain and execute a program group 304 that realizes the functions of each of the above-mentioned processing units. The program group 304 that realizes the functions of each unit of the learning device 10 or the learning device 500 is, for example, stored in advance in the storage device 305 or the ROM 302, and the CPU 301 loads it into the RAM 303 and executes it as necessary. The program group 304 may be supplied to the CPU 301 via the communication network 311, or may be stored in advance in the recording medium 310, and the drive device 306 may read out the program and supply it to the CPU 301. 7 shows an example of the configuration of the information processing device 300, and the configuration of the information processing device 300 is not exemplified in the above-mentioned case. For example, the information processing device 300 may be configured with a part of the above-mentioned configuration, such as not having the drive device 306.
[0065] When the learning device 10 is implemented in an information processing device 300, the operations of the prediction unit 12, the multiple prediction loss calculation unit 13, the objective function calculation unit 14, the update unit 15, the incorrect prediction calculation unit 101, the normalization unit 102, and the angle calculation unit 103 are stored in the form of a program in, for example, the storage device 305 or the ROM 302. The CPU 301 reads out the program from the storage device 305 or the ROM 302, loads it in the RAM 303, and executes the above-mentioned processing according to the program.
[0066] Furthermore, the CPU 301 secures a storage area in the RAM 303 according to the program. When the input / output unit 11 communicates with another device, the communication interface 307 executes the communication according to the control of the CPU 301. When the input / output unit 11 accepts data input, such as data input by a user operation, the input / output interface 308 executes reception of the data input. For example, the input / output interface 308 may be configured to include input devices such as a keyboard and a mouse, and may be configured to accept a user operation. When the input / output unit 11 outputs data, such as displaying the data, the input / output interface 308 executes output of the data. For example, the input / output interface 308 may be configured to include a display screen such as a liquid crystal panel or an LED panel, and may be configured to display the data.
[0067] When the learning device 500 is implemented in the information processing device 300, the operations of the incorrect answer prediction calculation unit 501 and the update unit 502 are stored in the form of a program in, for example, the storage device 305 or the ROM 302. The CPU 301 reads the program from the storage device 305 or the ROM 302, loads it in the RAM 303, and executes the above-mentioned processing according to the program.
[0068] Furthermore, CPU 301 secures a storage area in RAM 303 according to a program. When learning device 500 communicates with another device, communication interface 307 executes the communication according to the control of CPU 301. When learning device 500 accepts data input, such as data input by user operation, input / output interface 308 executes reception of the data input. For example, input / output interface 308 may be configured to include input devices such as a keyboard and a mouse, and be configured to accept user operations. When learning device 500 outputs data, such as displaying the data, input / output interface 308 executes output of the data. For example, input / output interface 308 may be configured to include a display screen such as a liquid crystal panel or an LED panel, and be configured to display the data.
[0069] As described above, a program for executing all or part of the processing performed by learning device 10 and learning device 500 may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed to perform processing of each part. Note that the term "computer system" here includes hardware such as the OS and peripheral devices. Furthermore, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs (Read Only Memory), and CD-ROMs (Compact Disc Read Only Memory), as well as storage devices such as hard disks built into computer systems. The above-mentioned program may be one for implementing part of the above-mentioned functions, or may be one that can implement the above-mentioned functions in combination with a program already recorded in the computer system.
[0070] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Industrial Applicability]
[0071] The embodiments of the present invention may be applied to a learning device, a learning method, and a recording medium. [Explanation of symbols]
[0072] 10 Learning Device 11 Input / output section 12 Prediction Department 13 Multiple Prediction Loss Calculation Unit 14 Objective function calculation section 15 Update section 100 Diversity Calculator 101 Incorrect Answer Prediction Calculation Unit 102 Normalization section 103 Angle calculation unit 201 Sum of inner products calculation section
Claims
1. an incorrect answer prediction calculation unit that calculates an incorrect answer class prediction probability vector by excluding correct answer class elements from the prediction probability vector of the neural network model for the supervised learning data; An update unit that performs training of the neural network model so as to reduce a value of an objective function including a diversity function whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases; A learning device comprising:
2. The diversity function includes a calculation of an evaluation value of the magnitude of an angle between the incorrect class prediction probability vectors for all combinations of two of the neural network models among all the neural network models to be trained. The learning device according to claim 1 .
3. The diversity function includes a calculation of a cosine similarity between the two incorrect class prediction probability vectors as a calculation of an evaluation value of the magnitude of an angle between the two incorrect class prediction probability vectors. The learning device according to claim 1 or 2.
4. The diversity function includes an operation of calculating an average of cosine similarities of the incorrect class prediction probability vectors of the two neural network models for all combinations of the two neural network models among all the neural network models to be trained. The learning device according to claim 1 .
5. A computer comprising: Obtaining an incorrect class prediction probability vector by excluding correct class elements from the prediction probability vector of the neural network model for the supervised learning data; training the neural network model so as to reduce a value of an objective function including a diversity function whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases; Learning methods including:
6. On the computer, Obtaining an incorrect class prediction probability vector by excluding correct class elements from the prediction probability vector of the neural network model for the supervised learning data; training the neural network model so as to reduce a value of an objective function including a diversity function whose value decreases as the angle between the incorrect class prediction probability vectors of the two neural network models increases; A program for executing.
Citation Information
Patent Citations
Information processing device, information processing method, and program
JP2017091083A
