Learning method, learning program, and learning device
The learning method reduces channel correlation in neural networks using a first loss function to enhance feature expression and improve performance on both supervised and unsupervised tasks.
Patent Information
- Application Number
- JP2021145941
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-09-08
AI Technical Summary
Conventional neural network training methods using adversarial learning to make distinguishable information indistinguishable and covariance between elements as a loss function can adversely affect the network's performance by reducing feature expression ability.
A learning method that reduces the correlation between channels in the feature output of neural networks by using a first loss function to train the network, improving the ability to express different information without reducing channel variance.
Enhances the neural network's performance by increasing its ability to express features and improve task-specific performance on both supervised and unsupervised learning datasets.
Smart Images

Figure 0007566705000002 
Figure 0007566705000003 
Figure 0007566705000004
Abstract
Description
[Technical field]
[0001] FIELD An embodiment of the present invention relates to a learning method, a learning program, and a learning device. [Background technology]
[0002] Neural networks are trained using training data. For example, a method of performing adversarial training so that features of a supervised training data set cannot be distinguished from features of an unsupervised training data set has been disclosed (see, for example, Patent Document 1). Also, a method of training using the covariance between elements of features of supervised training data as a loss function has been disclosed (see, for example, Non-Patent Document 1).
[0003] However, in the method of Patent Document 1, since learning is performed to forcibly make distinguishable information indistinguishable by adversarial learning, there are cases where a negative effect is caused on the task that the learning model is originally intended to accomplish. In addition, in the method of Patent Document 2, since the covariance between elements is used as a loss function in supervised learning, there are cases where the variance of elements is reduced, thereby degrading the expressive ability of features. In other words, in the conventional technology, the performance of the neural network may be degraded. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] International Publication No. 2021 / 038812 [Non-patent literature]
[0005] [Non-Patent Document 1] Michael Cogswell, et al. “Reducing Overfitting in Deep Networks by Decorrelating Representations” Summary of the Invention [Problem to be solved by the invention]
[0006] The present invention has been made in view of the above, and has an object to provide a learning method, a learning program, and a learning device that can improve the performance of a neural network. [Means for solving the problem]
[0007] The training method of the embodiment is a computer-executed training method, comprising: A set of training data consisting of Correlation between channels in the features output from at least one of the intermediate and final layers of the neural network that receives the input is A training step of training the neural network to reduce a value of a first loss function. The feature amount is represented by a channel value of each of the plurality of channels for each of the plurality of learning data, and the correlation between the channels is a value included in the feature amount and represents a correlation between groups of the channel values of the learning data group for the different channels. . [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of a learning device. [Figure 2A] FIG. 4 is a diagram illustrating an example of a learning process. [Figure 2B] FIG. 4 is a schematic diagram of an example of a feature amount. [Figure 3A] FIG. 1 is a diagram illustrating an example of a learning process of a neural network. [Figure 3B] FIG. 1 is a diagram illustrating an example of a learning process of a neural network. [Figure 3C] FIG. 1 is a diagram illustrating an example of a learning process of a neural network. [Figure 4] FIG. 4 is a schematic diagram of an example of a display screen. [Diagram 5] 11 is a flowchart showing an example of a flow of information processing. [Figure 6] Hardware configuration diagram. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The learning method, learning program, and learning device will be described in detail below with reference to the accompanying drawings.
[0010] FIG. 1 is a block diagram showing an example of the configuration of a learning device 10 according to this embodiment.
[0011] The learning device 10 is an information processing device that learns a neural network 20 .
[0012] The learning device 10 includes a processing unit 12, a memory unit 14, a display unit 16, and an operation input unit 18. The processing unit 12, the memory unit 14, the display unit 16, and the operation input unit 18 are connected via a bus 19 so as to be able to exchange data or signals.
[0013] The memory unit 14 stores various data. The memory unit 14 is, for example, a random access memory (RAM), a semiconductor memory element such as a flash memory, a hard disk, an optical disk, or the like. The memory unit 14 may be a storage device provided outside the learning device 10. Also, at least one of the memory unit 14, the display unit 16, the operation input unit 18, and the multiple functional units included in the processing unit 12 may be mounted on an external information processing device communicatively connected to the learning device 10 via a network or the like.
[0014] The display unit 16 is a display that displays various information. The operation input unit 18 accepts operation input by a user. The operation input unit 18 is, for example, various pointing devices such as a mouse, a keyboard, etc. The display unit 16 and the operation input unit 18 may be integrated into a touch panel.
[0015] The processing unit 12 executes information processing including a learning process for training the neural network 20 .
[0016] FIG. 2A is an explanatory diagram of an example of the learning process by the processing unit 12. As shown in FIG.
[0017] The processing unit 12 trains the neural network 20 so as to reduce a value 50 of a first loss function obtained from correlation between channels in features 40 output from at least one of an intermediate layer and a final layer of the neural network 20 to which a plurality of training data 30 have been input.
[0018] The training data 30 is input data used for training the neural network 20. The multiple training data 30 input to the neural network 20 include, for example, a supervised training data set 32 and an unsupervised training data set 34.
[0019] The supervised learning data set 32 is made up of a plurality of supervised learning data to which teaching information has been added, and the unsupervised learning data set 34 is made up of a plurality of unsupervised learning data to which teaching information has not been added.
[0020] The training information is data that directly or indirectly represents the correct answer data that should be output from the neural network 20 during learning. The training information is also sometimes called a correct answer label.
[0021] The training data 30 input to the neural network 20 is processed according to parameters in the model of the neural network 20, and the feature quantity 40 is output as an array from the intermediate layer or the final layer of the neural network 20.
[0022] The processing unit 12 may manipulate the shape of the array or the values of the array based on a specific axis for the feature 40. Examples of such manipulations include manipulation methods for reducing the dimensions of the array, such as "Global Average Pooling" and "Global Max Pooling."
[0023] FIG. 2B is a schematic diagram of an example of the feature amount 40. As shown in FIG.
[0024] In FIG. 2B, the horizontal axis represents the number of channels. The vertical axis represents the batch size. A channel is a type of element that represents a feature amount. When the learning data 30 is image data of a person's face, the type of element is, for example, the distance between the eyes in the face, the height of the nose, etc. However, it is not limited to these, and in fact, it is sufficient that some variable that is effective for identifying an individual from a face image is extracted as a numerical value by learning a neural network and used as an element. The number of channels is, for example, 256, but is not limited to this number.
[0025] The batch size is the number of samples of the training data 30. In other words, the batch size is the number of training data 30 used to train the neural network 20.
[0026] The value 50 of the first loss function is a value that represents the level of correlation between channels in the feature 40. For example, the processing unit 12 may calculate the value f i and f j Identify f i and f j is a group of values of the feature quantities of the multiple learning data 30 in different channels, and is expressed as a vector. The value 50 of the first loss function is, for example, a value calculated using a correlation coefficient. For example, the value f i and f j Correlation coefficient r i,j where i and j are integers that represent the number of channels, and are different from each other. Therefore, the correlation coefficient r i,j means the correlation coefficient between the i-th channel and the j-th channel.
[0027] The value of the first loss function, 50, is the correlation coefficient r i,j The absolute sum or correlation coefficient r i,j The sum of squares of
[0028] The processing unit 12 trains the neural network 20 to reduce the value 50 of the first loss function. That is, the processing unit 12 trains the neural network 20 to reduce the value f i and the value of the jth channel f j The neural network 20 is trained to reduce the correlation between the vectors x and y.
[0029] In detail, the processing unit 12 calculates the value 50 of the first loss function for each of a plurality of combinations obtained by changing the combination of the i-th and j-th channels, and trains the neural network 20 to reduce these values 50 of the first loss function.
[0030] Specifically, for example, the processing unit 12 uses a loss function to calculate a value 50 of a first loss function that indicates the level of correlation between channels, and back-propagates the value 50 to the neural network 20. For example, the processing unit 12 calculates the value f i and f j The correlation coefficient with i,j Then, the neural network 20 is trained by adding the loss expressed by the formula (1).
[0031]
number
[0032] Then, the processing unit 12 updates the parameters in the model of the neural network 20 using the gradient descent method, and performs learning to reduce the value 50 of the first loss function, which is the correlation between channels of the feature amount 40.
[0033] The processing unit 12 can reduce the correlation between the channels of the feature 40 by repeatedly training the neural network 20 so as to reduce the value 50 of the first loss function. That is, the processing unit 12 can train the neural network 20 so that the values of different channels of the feature 40 can express more different information. Therefore, the processing unit 12 can improve the expressive ability of the feature 40.
[0034] Returning to Fig. 1, the processing by the processing unit 12 will now be described in detail.
[0035] In this embodiment, the processing unit 12 includes an input unit 12A, an acquisition unit 12B, a derivation unit 12C, a learning unit 12D, a reception unit 12E, and a display control unit 12F.
[0036] The input unit 12A, the acquisition unit 12B, the derivation unit 12C, the learning unit 12D, the reception unit 12E, and the display control unit 12F are realized, for example, by one or more processors. For example, each of the above units may be realized by having a processor such as a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit) execute a program, that is, by software. Each of the above units may be realized by a processor such as a dedicated IC, that is, by hardware. Each of the above units may be realized by using both software and hardware. When multiple processors are used, each processor may realize one of the units, or may realize two or more of the units.
[0037] FIG. 3A is a diagram illustrating an example of the learning process of the neural network 20. As shown in FIG.
[0038] The input unit 12A inputs a plurality of pieces of training data 30 to the neural network 20.
[0039] For example, the input unit 12A inputs a supervised learning data set 32 and an unsupervised learning data set 34 as the multiple pieces of learning data 30 to the neural network 20.
[0040] As the plurality of training data 30 to be input to the neural network 20, a group of a plurality of supervised training data sets 32 and a group of a plurality of unsupervised training data sets 34 may be used.
[0041] In this case, the multiple supervised learning datasets 32 may be supervised learning datasets 32 of different domains. Different domains means that at least one of the types of data and the environments in which the data are acquired is different. Specifically, for example, the supervised learning datasets 32 of different domains may be a supervised learning dataset 32 of scenery and a supervised learning dataset 32 that is image data of people, etc.
[0042] Similarly, the multiple unsupervised training data sets 34 may be training data 30 from different domains.
[0043] Moreover, the unsupervised learning dataset 34 may be a set of data obtained by removing the teaching information from the supervised learning dataset 32 .
[0044] The input unit 12A may input a portion of the supervised learning data included in the supervised learning data set 32 to the neural network 20. Alternatively, the input unit 12A may input all of the supervised learning data included in the supervised learning data set 32 to the neural network 20.
[0045] Similarly, the input unit 12A may input a portion of the unsupervised training data included in the unsupervised training data set 34 to the neural network 20. Alternatively, the input unit 12A may input all of the unsupervised training data included in the unsupervised training data set 34 to the neural network 20.
[0046] The acquiring unit 12B acquires, as the feature amount 40, a first feature amount 40A and a second feature amount 40B.
[0047] The first feature 40A is a feature 40 that is output from at least one of the intermediate layer and the final layer of the neural network 20 by inputting the supervised learning data set 32 to the neural network 20.
[0048] The second feature 40B is a feature 40 that is output from at least one of the intermediate layer and the final layer of the neural network 20 by inputting the unsupervised learning data set 34 to the neural network 20.
[0049] The acquiring unit 12B acquires a first feature 40A from the neural network 20 by inputting the supervised learning data set 32 to the neural network 20. The acquiring unit 12B also acquires a second feature 40B from the neural network 20 by inputting the unsupervised learning data set 34 to the neural network 20.
[0050] The order in which the acquiring unit 12B acquires the first feature amount 40A and the second feature amount 40B is not limited. For example, the acquiring unit 12B may acquire the first feature amount 40A and then the second feature amount 40B. Also, the acquiring unit 12B may acquire the first feature amount 40A and then the second feature amount 40B.
[0051] As described above, the first feature 40A and the second feature 40B are feature 40 output from an intermediate layer or a final layer of the neural network 20. The first feature 40A and the second feature 40B may be feature 40 output from different layers of the neural network 20. Also, the first feature 40A and the second feature 40B may be feature 40 output from the same layer of the neural network 20.
[0052] The first feature amount 40A and the second feature amount 40B output from the neural network 20 may be one or more. When there are more than one, for example, the acquiring unit 12B may acquire the multiple feature amounts 40 obtained from each of two or more layers in the neural network 20 as the first feature amount 40A and the second feature amount 40B independently.
[0053] The derivation unit 12C derives a value 50 of a first loss function from the feature amount 40.
[0054] For example, the derivation unit 12C derives a value 50B of the second loss function based on the first feature amount 40A.
[0055] The value 50B of the second loss function is a value that represents how far the output information obtained from the neural network 20 by inputting the supervised learning dataset 32 to the neural network 20 is from an ideal output state obtained from the teaching information added to the supervised learning dataset 32. In other words, the value 50B of the second loss function is information that represents how close or far the output information output from the neural network 20 is to the teaching information added to the supervised learning dataset 32.
[0056] The output information is information that directly or indirectly represents output data output from the neural network 20. In other words, the output information is information that is output by the neural network 20 as an inference result about the supervised training data set 32 by inputting the supervised training data set 32 to the neural network 20. In particular, the output information is data output from the neural network 20 that is related to the task targeted by the neural network 20.
[0057] The target tasks of the neural network 20 are to classify the input data, to identify the input data, to generate different data from the input data, to detect a particular pattern from the input data, etc. The input data is data to be input to the neural network 20. In the training phase of the neural network 20, the input data is training data 30.
[0058] The derivation unit 12C derives output information corresponding to a target task based on the first feature amount 40A, and derives a second loss function value 50B between the derived output information and the teaching information. The second loss function value 50B may be a value calculated using a correlation coefficient.
[0059] Moreover, the derivation unit 12C derives a third loss function value 50C based on the second feature amount 40B. The third loss function value 50C is an example of the first loss function value 50. The derivation unit 12C derives the first loss function value 50 representing the correlation between channels in the second feature amount 40B as the third loss function value 50C.
[0060] The learning unit 12D learns the neural network 20 so as to reduce the value 50B of the second loss function and the value 50C of the third loss function.
[0061] In detail, the learning unit 12D performs learning by backpropagating the value 50B of the second loss function to the neural network 20 and updating the parameters in the model of the neural network 20 by the gradient descent method. Through this learning, the learning unit 12D trains the neural network 20 so as to improve the performance for the target task.
[0062] In this case, the learning unit 12D may further input the intermediate output or the final output of the neural network 20 to another neural network such as a classifier or a decoder, and use the output obtained to calculate the value 50B of the second loss function related to the target task. The learning unit 12D may then train the neural network 20 simultaneously with training these other neural networks.
[0063] Moreover, the learning unit 12D performs learning by backpropagating the third loss function value 50C, which is an example of the first loss function value 50, to the neural network 20 and updating parameters in the model of the neural network 20 by the gradient descent method. Through these processes, the learning unit 12D can train the neural network 20 so that the expressive ability of the second feature 40B obtained when the unsupervised learning dataset 34 is input is improved and the performance in the target task is improved.
[0064] The loss function used for the third loss function value 50C derived from the second feature amount 40B may not only be a loss function that indicates the level of correlation between channels, but may also include other types of loss functions. In this case, the learning unit 12D may use these multiple types of loss functions for the third loss function value 50C to learn the neural network 20. When using multiple types of loss functions for the third loss function value 50C to backpropagate to the neural network 20, the learning unit 12D may backpropagate each type of loss function individually. Alternatively, the learning unit 12D may integrate the multiple types of loss functions used for the third loss function value 50C by a weighted sum and then backpropagate to the neural network 20.
[0065] The learning unit 12D can cause the neural network 20 to learn a target task by repeatedly learning the neural network 20 so as to reduce the value 50B of the second loss function and the value 50C of the third loss function. Furthermore, the learning unit 12D can improve the performance of the neural network 20 when the task is applied to the unsupervised learning dataset 34.
[0066] FIG. 3A shows an example in which the derivation unit 12C derives the second loss function value 50B, which is a value representing how far the output information obtained from the neural network 20 by inputting the supervised learning data set 32 to the neural network 20 is from an ideal output state obtained from the teaching information added to the supervised learning data set 32, based on the first feature amount 40A. However, the derivation unit 12C may derive a fourth loss function value, which is the first loss function value 50 representing the correlation between channels of the first feature amount 40A, based on the first feature amount 40A. Then, the learning unit 12D may use the fourth loss function value 50D in addition to the second loss function value 50B, and train the neural network 20 so as to reduce the fourth loss function value 50D and the third loss function value 50C.
[0067] Fig. 3B is an explanatory diagram of an example of the learning process of the neural network 20. Fig. 3B shows an example in which a second loss function value 50B, a fourth loss function value 50D, and a third loss function value 50C are used for learning the neural network 20.
[0068] 3A, input unit 12A inputs a supervised learning data set 32 and an unsupervised learning data set 34 to neural network 20 as a plurality of training data 30. Note that input unit 12A may use two or more supervised learning data sets 32 and two or more unsupervised learning data sets 34 as training data 30, similar to the above.
[0069] The acquiring unit 12B acquires a first feature 40A and a second feature 40B from the neural network 20 as the feature 40. The acquiring unit 12B acquires the first feature 40A from the neural network 20 by inputting the supervised learning dataset 32 to the neural network 20. The acquiring unit 12B also acquires the second feature 40B from the neural network 20 by inputting the unsupervised learning dataset 34 to the neural network 20.
[0070] The derivation unit 12C derives a second loss function value 50B and a fourth loss function value 50D from the first feature amount 40A, and derives a third loss function value 50C from the second feature amount 40B. The fourth loss function value 50D is an example of the first loss function value 50. The derivation unit 12C may derive the first loss function value 50 representing the correlation between channels in the first feature amount 40A as the fourth loss function value 50D.
[0071] In this case, the learning unit 12D trains the neural network 20 so as to reduce the second loss function value 50B, the fourth loss function value 50D, and the third loss function value 50C. In detail, the learning unit 12D performs training by backpropagating the second loss function value 50B, the fourth loss function value 50D, which is an example of the first loss function value 50, and the third loss function value 50C to the neural network 20 and updating parameters in the model of the neural network 20 by the gradient descent method. Through this training, the learning unit 12D can train the neural network 20 so as to improve the expressive ability of each of the first feature amount 40A and the second feature amount 40B and improve performance in a target task.
[0072] That is, by having learning unit 12D repeatedly train neural network 20 so as to reduce second loss function value 50B, fourth loss function value 50D, and third loss function value 50C, it is possible to cause neural network 20 to learn a target task while improving the performance of neural network 20 when the task is applied to unsupervised training data set 34.
[0073] It should be noted that the processing unit 12 may train the neural network 20 using only the supervised training data set 32 without using the unsupervised training data set .
[0074] 3C is a diagram illustrating an example of the learning process of the neural network 20. FIG 3C shows a form in which only a supervised learning data set 32 is used as the learning data 30.
[0075] In this case, the input unit 12A inputs supervised learning data sets 32 to the neural network 20 as a plurality of pieces of learning data 30. Note that the input unit 12A may use two or more supervised learning data sets 32 as the learning data 30.
[0076] The acquiring unit 12B acquires a first feature 40A from the neural network 20 as the feature 40. The acquiring unit 12B acquires the first feature 40A from the neural network 20 by inputting the supervised learning dataset 32 to the neural network 20.
[0077] The derivation unit 12C derives a second loss function value 50B and a fourth loss function value 50D from the first feature 40A. As described above, the second loss function value 50B is a value that represents how far the output information obtained from the neural network 20 by inputting the supervised learning data set 32 to the neural network 20 is from an ideal output state obtained from the teaching information added to the supervised learning data set 32. As described above, the fourth loss function value 50D is the first loss function value 50 that represents the correlation between channels in the first feature 40A.
[0078] In this case, the learning unit 12D trains the neural network 20 so as to reduce the value 50B of the second loss function and the value 50D of the fourth loss function.
[0079] In detail, the learning unit 12D performs learning by backpropagating the value 50B of the second loss function to the neural network 20 and updating parameters in the model of the neural network 20 by the gradient descent method. Through this learning, the learning unit 12D trains the neural network 20 so as to improve performance for the target task. At this time, the learning unit 12D may further use an output obtained by inputting an intermediate output or a final output of the neural network 20 to another neural network such as a classifier or a decoder, in calculating the value 50B of the second loss function for the target task. The learning unit 12D may train the neural network 20 at the same time as training these other neural networks.
[0080] Furthermore, the learning unit 12D performs learning by backpropagating the value 50D of the fourth loss function to the neural network 20 and updating the parameters in the model of the neural network 20 by the gradient descent method. Through this learning, the learning unit 12D can train the neural network 20 so that the expressive ability of the feature quantity 40 output from the neural network 20 is improved and the performance for the target task is improved.
[0081] That is, the learning unit 12D repeatedly learns the neural network 20 so as to reduce the value 50B of the second loss function and the value 50D of the fourth loss function, thereby improving the performance of the target task of the neural network 20.
[0082] When backpropagating the second loss function value 50B and the fourth loss function value 50D, which are multiple loss functions, the learning unit 12D may backpropagate each loss function individually, or may backpropagate the multiple loss functions by integrating them using a weighted sum.
[0083] Returning to FIG. 1, the explanation will be continued. The reception unit 12E receives an operation instruction from a user via the operation input unit 18. In this embodiment, the reception unit 12E receives an input of learning conditions. The learning conditions include at least one of the network structure of the neural network 20 to be learned, the learning data 30 to be used for learning, and the setting contents to be used during learning.
[0084] For example, the user operates the operation input unit 18 while viewing the display screen displayed on the display unit 16 to input the learning conditions.
[0085] 4 is a schematic diagram of an example of a display screen 60. For example, the display screen 60 includes a network structure selection area 60A, a supervised learning dataset 32 selection area 60B, an unsupervised learning dataset 34 selection area 60C, a parameter input area 60D, a learning status display area 60E, an end button 60F, and a save button 60G.
[0086] Network structure selection area 60A is an area for selecting the network structure of neural network 20 to be trained. The user selects a desired network structure from the list of network structures displayed in network structure selection area 60A. Through this selection process, the user inputs the network structure of neural network 20 to be trained.
[0087] The selection area 60B of the supervised learning dataset 32 is a selection area for the supervised learning dataset 32 used for learning. The user selects a desired supervised learning dataset 32 from the list of supervised learning datasets 32 displayed in the selection area 60B of the supervised learning dataset 32. Through this selection process, the user inputs the supervised learning dataset 32 to be used for learning.
[0088] The selection area 60C for the unsupervised learning dataset 34 is a selection area for the unsupervised learning dataset 34 to be used for learning. The user selects a desired unsupervised learning dataset 34 from the list of unsupervised learning datasets 34 displayed in the selection area 60C for the unsupervised learning dataset 34. Through this selection process, the user inputs the unsupervised learning dataset 34 to be used for learning.
[0089] The parameter input area 60D is an input field for setting contents used during training of the neural network 20. For example, the setting contents are weighting values used for integrating a plurality of loss functions, parameters used during backpropagation, etc. The user inputs the setting contents used during training of the neural network 20 by inputting desired parameters into the parameter input area 60D.
[0090] The learning status display area 60E is a display field for the learning status of the neural network 20.
[0091] The end button 60F is an operation button for instructing to end learning. The save button 60G is an operation button for inputting an instruction to save the neural network 20 during learning.
[0092] The receiving unit 12E receives the learning conditions input via each of the network structure selection area 60A, the supervised learning dataset 32 selection area 60B, the unsupervised learning dataset 34 selection area 60C, and the parameter input area 60D.
[0093] When the receiving unit 12E receives the learning conditions, the learning unit 12D may train the neural network 20 in accordance with the received learning conditions.
[0094] For example, the learning unit 12D uses the supervised learning data set 32 and the unsupervised learning data set 34 included in the received learning conditions as the learning data 30. The learning unit 12D also uses the neural network 20 having the network structure input via the network structure selection area 60A as the learning target. The learning unit 12D also learns the neural network 20 using the setting contents used during learning input via the parameter input area 60D.
[0095] The user inputs the learning conditions via the display screen 60, and the learning unit 12D learns the neural network 20 according to the learning conditions. Therefore, even a user who does not have sufficient specialized knowledge can easily input the learning conditions of the neural network 20. Also, the learning unit 12D can learn the neural network 20 according to the learning conditions desired by the user.
[0096] The display control unit 12F displays on the display screen 60 at least one of the learning progress of the neural network 20 by the learning unit 12D and recommended changes to the learning conditions according to the learning progress.
[0097] For example, the display control unit 12F displays the learning progress status of the neural network 20 by the learning unit 12D in a learning status display area 60E of the display screen 60. The user can easily check the learning status of the neural network 20 by visually checking the learning status display area 60E.
[0098] The recommended change content of the learning condition is information representing the recommended change content of the learning condition. For example, assume a situation in which the display control unit 12F determines that the value of the loss function does not reach the threshold value serving as a guide for the completion of learning according to the learning progress status. In this case, the display control unit 12F displays information representing that an increase in the amount of data of the learning data 30 is recommended on the display screen 60. Also assume a situation in which the display control unit 12F determines that the value of the loss function does not reach the threshold value serving as a guide for the completion of learning according to the learning progress status. In this case, the display control unit 12F displays information representing that a change in the parameters of the neural network 20 is recommended on the display screen 60. These loss function values refer to the first loss function value 50, the second loss function value 50B, the third loss function value 50C, and the fourth loss function value 50D described above.
[0099] The user can change the learning conditions according to the suggested change recommendations, so even a user who does not have sufficient specialized knowledge can easily change the learning conditions of the neural network 20.
[0100] Next, an example of the flow of information processing executed by the learning device 10 of this embodiment will be described.
[0101] Fig. 5 is a flowchart showing an example of the flow of information processing executed by the learning device 10 of this embodiment. Fig. 5 shows an example of the flow of information processing of the learning process shown in Fig. 3A.
[0102] The input unit 12A inputs a plurality of pieces of learning data 30 to the neural network 20 (step S100).
[0103] The acquiring unit 12B acquires the first feature amount 40A and the second feature amount 40B output from at least one of the intermediate layer and the final layer of the neural network 20 as the feature amount 40 (step 102).
[0104] The derivation unit 12C derives a first loss function value 50 from the first feature amount 40A and the second feature amount 40B acquired in step S102 (step S104). For example, the derivation unit 12C derives a second loss function value 50B from the first feature amount 40A, and derives a third loss function value 50C from the second feature amount 40B.
[0105] The learning unit 12D learns the neural network 20 so as to reduce the value 50B of the second loss function and the value 50C of the third loss function derived in step S104 (step S106).
[0106] Next, the processing unit 12 judges whether or not to end the learning (step S108). For example, the processing unit 12 performs the judgment of step S108 by judging whether the value 50B of the second loss function and the value 50C of the third loss function derived in step S104 are equal to or less than a threshold value that is a guide for the completion of the learning. Alternatively, the processing unit 12 may perform the judgment of step S108 by judging whether or not the end button 60F is operated by the user through the operation input unit 18.
[0107] If the determination in step S108 is negative (step S108: No), the process returns to step S100. If the determination in step S108 is positive (step S108: Yes), the trained neural network 20 is stored in the storage unit 14, and this routine ends.
[0108] As described above, the training method of the present embodiment trains the neural network 20 so as to reduce the value 50 of the first loss function representing the correlation between channels in the features 40 output from at least one of the intermediate layer and the final layer of the neural network 20 to which a plurality of training data 30 have been input.
[0109] It can be said that the higher the correlation between the channels of the feature 40 obtained when the training data 30 is input to the neural network 20, the more overlap there is in the information represented by these channels. For this reason, it can be said that the higher the correlation between the channels of the feature 40, the lower the expressive ability of the feature 40 compared to when the correlation is low. Specifically, for example, when the task aimed at by the neural network 20 is data classification using the feature 40, a high correlation between the channels of the feature 40 is an undesirable state.
[0110] On the other hand, the learning method executed by the learning device 10 of this embodiment trains the neural network 20 so as to reduce the value 50 of the first loss function between channels in the feature 40. Therefore, the learning method of this embodiment can improve the expressive ability of the feature 40.
[0111] In other words, the learning method of this embodiment can improve the expressive ability of the feature 40 by reducing the correlation between the channels of the feature 40 without reducing the variance of the channel values of the feature 40.
[0112] Therefore, the learning method of the present embodiment can improve the performance of the neural network 20.
[0113] It is preferable that the learning data 30 input to the neural network 20 be data in the same domain as the input data used in the application of the neural network 20.
[0114] There may be a difference in domain, such as the data acquisition environment or the type of data, between the training data 30 and the input data used in the application destination. In such a case, the performance of inference using the neural network 20 may be degraded. On the other hand, by using data of the same domain as the input data used in the application destination for the training data 30, the learning method of this embodiment can improve the expressive ability of the feature 40 for the input data used in the application destination. In this case, no teaching information is required in the calculation and reduction process of the correlation between the channels of the feature 40. Therefore, in this case, in addition to the above effects, the learning method of this embodiment can easily provide a neural network 20 that can be used in the application destination using unsupervised input data.
[0115] As described above, the value 50 of the first loss function may be a value calculated using a correlation coefficient.
[0116] When a correlation coefficient is used as the value 50 of the first loss function, it is possible to perform learning that increases the variance between channels while decreasing the covariance, and to perform learning of the neural network 20 that further improves the expressive ability of the feature 40. Furthermore, since the correlation coefficient has a value range of -1 to 1 regardless of the distribution of the original values, it does not need to be normalized individually.
[0117] 3A and 3B, the learning method of this embodiment may use the supervised learning dataset 32 and the unsupervised learning dataset 34 as the learning data 30. By using the supervised learning dataset 32 and the unsupervised learning dataset 34 as the learning data 30, it is possible to perform learning of the neural network 20 that improves the expressive ability for both the supervised learning dataset 32 and the unsupervised learning dataset 34. Therefore, in addition to the above effects, the learning method of this embodiment can improve the general performance of the neural network 20.
[0118] As described above, a plurality of supervised learning data sets 32 and a plurality of unsupervised learning data sets 34 may be used as the training data 30. By using a plurality of supervised learning data sets 32 and a plurality of unsupervised learning data sets 34, in addition to the above-mentioned effects, the performance of the neural network 20 can be further improved.
[0119] Next, an example of the hardware configuration of the learning device 10 of this embodiment will be described.
[0120] FIG. 6 is a diagram illustrating an example of a hardware configuration of the learning device 10 of this embodiment.
[0121] The learning device 10 of this embodiment has a hardware configuration that utilizes a conventional computer, with a CPU (Central Processing Unit) 81, a ROM (Read Only Memory) 82, a RAM (Random Access Memory) 83, and a communication I / F 84, etc., interconnected via a bus 85.
[0122] The CPU 81 is a calculation device that controls the learning device 10 of this embodiment. The ROM 82 stores programs and the like that realize various processes by the CPU 81. Although a CPU is used for the explanation here, a GPU (Graphics Processing Unit) may be used as the calculation device that controls the learning device 10. The RAM 83 stores data necessary for various processes by the CPU 81. The communication I / F 84 is an interface that is connected to the display unit 16, the operation input unit 18, etc., and is used to send and receive data.
[0123] In the learning device 10 of this embodiment, the CPU 81 reads a program from the ROM 82 onto the RAM 83 and executes it, thereby realizing each of the above functions on the computer.
[0124] The programs for executing the above processes executed by the learning device 10 of this embodiment may be stored in a hard disk drive (HDD). Also, the programs for executing the above processes executed by the learning device 10 of this embodiment may be provided by being pre-installed in the ROM 82.
[0125] The program for executing the above-mentioned processes executed by the learning device 10 of this embodiment may be stored in a computer-readable storage medium such as a CD-ROM, CD-R, memory card, DVD (Digital Versatile Disc), or flexible disk (FD) in an installable or executable format file and provided as a computer program product. The program for executing the above-mentioned processes executed by the learning device 10 of this embodiment may be stored on a computer connected to a network such as the Internet and provided by downloading the program via the network. The program for executing the above-mentioned processes executed by the learning device 10 of this embodiment may be provided or distributed via a network such as the Internet.
[0126] Although the embodiment of the present invention has been described above, this embodiment is presented as an example and is not intended to limit the scope of the invention. This new embodiment can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0127] 10 Learning Device 12A input section 12B Acquisition Department 12C Derivation part 12D Learning Department 12E Reception 12F Display control unit
Claims
1. 1. A computer implemented method of learning, comprising: a learning step of learning the neural network so as to reduce a value of a first loss function, which is a correlation between channels, in feature amounts output from at least one of an intermediate layer and a final layer of the neural network to which a group of training data consisting of a plurality of training data has been input; Including, The feature amount is represented by a channel value of each of a plurality of said channels for each of a plurality of said learning data; The correlation between the channels is a value included in the feature amount and representing a correlation between groups of the channel values of the training data group for the different channels; How to learn.
2. The correlation between the groups of channel values is represented by a correlation coefficient between groups of said channel values; The learning method according to claim 1 .
3. an input step of inputting, as the plurality of pieces of learning data, a supervised learning data set which is a plurality of pieces of supervised learning data to which teaching information has been added, and an unsupervised learning data set which is a plurality of pieces of unsupervised learning data to which the teaching information has not been added, into the neural network; an acquisition step of acquiring a first feature amount, which is the feature amount output from the neural network by inputting the supervised learning data set, and a second feature amount, which is the feature amount output from the neural network by inputting the unsupervised learning data set; a correlation derivation step of deriving a value of a second loss function representing a correlation between the teaching information assigned to the supervised learning dataset and output information corresponding to the teaching information obtained from the neural network by inputting the supervised learning dataset, the value being derived based on the first feature amount, and a value of a third loss function which is the value of the first loss function representing a correlation between channels in the second feature amount; Including, The learning step includes: training the neural network to reduce a value of the second loss function and a value of the third loss function; The learning method according to claim 1 .
4. an input step of inputting, as the plurality of pieces of learning data, a supervised learning data set which is a plurality of pieces of supervised learning data to which teaching information has been added, and an unsupervised learning data set which is a plurality of pieces of unsupervised learning data to which the teaching information has not been added, into the neural network; an acquisition step of acquiring a first feature amount, which is the feature amount output from the neural network by inputting the supervised learning data set, and a second feature amount, which is the feature amount output from the neural network by inputting the unsupervised learning data set; a derivation step of deriving a value of a second loss function derived based on the first feature amount, the value representing a correlation between the teaching information assigned to the supervised learning dataset and output information corresponding to the teaching information obtained from the neural network by inputting the supervised learning dataset, a value of a fourth loss function which is the value of the first loss function which represents a correlation between channels in the first feature amount, and a value of a third loss function which is the value of the first loss function which represents a correlation between channels in the second feature amount; Including, The learning step includes: training the neural network to reduce a value of the second loss function, a value of the third loss function, and a value of the fourth loss function; The learning method according to claim 1 .
5. an input step of inputting, as the plurality of pieces of training data, a plurality of supervised training data sets to which instruction information has been added, into the neural network; an acquisition step of acquiring a first feature amount, which is the feature amount output from the neural network, by inputting the supervised learning data set; a derivation step of deriving a value of a second loss function representing a correlation between the teaching information assigned to the supervised learning dataset and output information corresponding to the teaching information obtained from the neural network by inputting the supervised learning dataset, the value being derived based on the first feature amount, and a value of a fourth loss function being the value of the first loss function representing a correlation between channels in the first feature amount; Including, The learning step includes: training the neural network to reduce a value of the second loss function and a value of the fourth loss function; The learning method according to claim 1 .
6. A correlation coefficient is used to calculate the value of the first loss function. A learning method according to any one of claims 1 to 5.
7. The plurality of pieces of learning data are A plurality of groups of supervised learning data sets and a plurality of groups of unsupervised learning data sets are included, The learning method according to any one of claims 1 to 6.
8. a receiving step of receiving an input of learning conditions including at least one of a network structure of the neural network to be learned, the learning data to be used for learning, and settings to be used during learning; The learning step includes: training the neural network according to the received training conditions; The learning method according to any one of claims 1 to 7.
9. a display step of displaying a display screen including at least one of a learning progress status of the neural network and a recommendation for changing the learning conditions according to the learning progress status; Including, The learning method according to claim 8.
10. A learning program for causing a computer to execute the program, a learning step of learning the neural network so as to reduce a value of a first loss function, which is a correlation between channels, in feature amounts output from at least one of an intermediate layer and a final layer of the neural network to which a group of training data consisting of a plurality of training data has been input; Including, The feature amount is represented by a channel value of each of a plurality of said channels for each of a plurality of said learning data; The correlation between the channels is a value included in the feature amount and representing a correlation between groups of the channel values of the training data group for the different channels; Study program.
11. a learning unit that learns the neural network so as to reduce a value of a first loss function that is an inter-channel correlation in feature amounts output from at least one of an intermediate layer and a final layer of the neural network to which a learning data group consisting of a plurality of learning data is input; The feature amount is represented by a channel value of each of a plurality of said channels for each of a plurality of said learning data; The correlation between the channels is a value included in the feature amount and representing a correlation between groups of the channel values of the training data group for the different channels; Learning device.
Citation Information
Patent Citations
Image processing method and apparatus, electronic device, and computer readable storage medium
US20210192758A1
Classification device, learning device, classification method, learning method, classification program, and learning program
WO2021038812A1
