Learning method and program
By using two neural networks to optimize the objective function in self-supervised learning and considering the inaccuracy of the image, the problem of image inaccuracy affecting learning accuracy in data expansion is solved and the learning effect is improved.
Patent Information
- Application Number
- CN202380023670.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-11-18
- Filing Date
- 2023-02-10
- Publication Date
- 2024-10-11
AI Technical Summary
Existing methods based on self-supervised learning fail to effectively consider image inaccuracies during the data expansion process, resulting in a decrease in learning accuracy.
Two neural networks are used, one of which generates probability distribution parameters of two image data through data expansion, and the other neural network optimizes the objective function to make the two image data close, and the objective function contains the likelihood of the probability distribution of the second parameter degree to account for image inaccuracies.
By optimizing the objective function, the contribution of images with large inaccuracies to learning can be reduced and the contribution of images with small inaccuracies to learning can be reduced in self-supervised learning, thereby improving learning accuracy.
Smart Images

Figure CN118765401A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a learning method and program. Background Art
[0002] As a method of making a neural network learn in advance without the need for humans to prepare labels, there is a learning method based on self-supervised learning.
[0003] In a learning method based on self-supervised learning, a unique label is mechanically created from the image data itself to learn the representation of the image (for example, Non-Patent Document 1).
[0004] Non-patent document 1 proposes a learning method that performs data expansion from the same image to different image data and maximizes the similarity between the representations of the different image data. This method can achieve the same accuracy as previous unsupervised representation learning without using negative pairs and momentum encoders that were previously used in contrastive learning.
[0005] Prior art literature
[0006] Non-patent literature
[0007] Non-patent literature 1: Chen, X. and He, K.: Exploring simple siamese representation learning, CVPR (2021).
[0008] Non-patent literature 2: De Cao, N. and Aziz, W.: The Power Spherical distribution, ICML, INNF+ (2020).
[0009] Non-patent document 3: Hafner, Danijar, et al. "Learning latent dynamics for planning from pixels." International conference on machine learning.PMLR, 2019.
[0010] Non-patent literature 4: Zhu, Yuke, et al. "Robosuite: A modular simulation framework and benchmark for robot learning." arXiv preprint arXiv:2009.12293 (2020). Summary of the invention
[0011] Problem that the invention aims to solve
[0012] However, although the learning method disclosed in the above non-patent document 1 can use multiple images obtained by data expansion in learning, sometimes the multiple images contain inaccurate images caused by data expansion, which will have a negative impact on learning. That is, in the learning method disclosed in the above non-patent document 1, the inaccuracy of the image is not taken into account.
[0013] The present disclosure is made in view of the above circumstances, and an object of the present disclosure is to provide a learning method that can take into account the inaccuracy of an image in self-supervised learning.
[0014] Solutions to the problem
[0015] A learning method according to one aspect of the present disclosure is a learning method for self-supervised representation learning performed by a computer, wherein one of two neural networks is used to output a first parameter as a parameter of a probability distribution based on one of two image data obtained by data expansion of a learning image obtained from learning data, and another of the two neural networks is used to output a second parameter as a parameter of a probability distribution based on the other of the two image data, so that the two neural networks learn to optimize an objective function for bringing the two image data close to each other, wherein the objective function includes the likelihood of the probability distribution of the second parameter.
[0016] In addition, these general or specific methods can be implemented by systems, devices, methods, integrated circuits, computer programs, or recording media such as CD-ROMs that can be read by computers, or by any combination of systems, devices, methods, integrated circuits, computer programs, and recording media.
[0017] Effects of the Invention
[0018] According to the present disclosure, it is possible to realize a learning method or the like that can take into account inaccuracy of an image in self-supervised learning. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a block diagram showing an example of the configuration of a learning system according to an embodiment.
[0020] Figure 2 This is a diagram conceptually showing the processing of the learning system according to the embodiment.
[0021] Figure 3 This is a flowchart showing the operation of the learning device according to the embodiment.
[0022] Figure 4 This is a diagram for conceptually explaining a learning method of self-supervised learning in a comparative example.
[0023] Figure 5 This is a diagram for conceptually explaining a learning method of self-supervised learning in a comparative example.
[0024] Figure 6 This is a diagram showing an example of a high-accuracy image and a low-accuracy image obtained by data expansion according to the embodiment.
[0025] Figure 7 This is a diagram showing another example of a high-accuracy image and a low-accuracy image obtained by data expansion according to the embodiment.
[0026] Figure 8 This is a diagram conceptually showing the processing of the learning system according to the first embodiment.
[0027] Fig. 9 This is a diagram conceptually showing an example of the Van Miese-Fisher distribution.
[0028] Fig.10 This is a diagram showing an example of a structure when the learning system of Example 1 is implemented.
[0029] Fig.11 This is a diagram showing an example of a pseudo code of the algorithm of Example 1.
[0030] Fig.12 It is a diagram showing a pseudo code of an algorithm of a comparative example.
[0031] Fig.13 This is a diagram conceptually showing the processing of the learning system according to the second embodiment.
[0032] Fig.14 This is a diagram conceptually showing an example of Power Spherical distribution.
[0033] Fig.15 This is a diagram showing an example of a structure when the learning system of the second embodiment is implemented.
[0034] Fig.16 This is a diagram showing an example of a pseudo code of the algorithm of Example 2.
[0035] Fig.17 This is a diagram showing the relationship between the concentration, cosine similarity, and loss of the learning system of Example 2.
[0036] Fig.18 : is a figure which shows the result of evaluating the performance of the learning system of Example 2 using the data set of the experimental example.
[0037] Fig.19 : is a graph showing the evaluation result of the inaccuracy of the image after the data expansion used in the experimental example.
[0038] Fig. 20 It is a graph showing the concentration of image prediction after data expansion.
[0039] Fig.21 This is a diagram conceptually showing the processing of the learning system according to Modification 1.
[0040] Fig. 22 It is a graph that conceptually represents the joint distribution of N discrete probability distributions (K classes).
[0041] Fig.23A FIG. 1 is a diagram showing an example of a camera image input to a controller in order for a robot to solve a task of lifting an object.
[0042] Fig. 23B Graph showing a learning curve of a simulation experiment in which a robot solves a task of lifting an object.
[0043] Fig.24A This figure shows an example of a camera image input to a controller in order for a robot to solve a task of opening a door.
[0044] Fig. 24B Graph showing a learning curve of a simulation experiment in which a robot solves a door-opening task.
[0045] Fig.25A 1 is a diagram showing an example of a camera image input to a controller in order for a robot to solve a task of inserting a pin into a hole.
[0046] Fig.25B is a graph showing a learning curve for a simulation experiment in which a robot solves a task of inserting a pin into a hole.
[0047] Fig.26 This is a diagram conceptually showing the processing of the learning system according to Modification 2.
[0048] Fig. 27 This is a diagram conceptually showing an equation for analytical calculation of the objective function of Modification Example 2. DETAILED DESCRIPTION
[0049] A learning method according to one aspect of the present disclosure is a learning method for self-supervised representation learning performed by a computer, wherein one of two neural networks is used to output a first parameter as a parameter of a probability distribution based on one of two image data obtained by data expansion of a learning image obtained from learning data, and another of the two neural networks is used to output a second parameter as a parameter of a probability distribution based on the other of the two image data, so that the two neural networks learn to optimize an objective function for bringing the two image data close to each other, wherein the objective function includes the likelihood of the probability distribution of the second parameter.
[0050] Thus, the two neural networks can learn parameters that can take into account the inaccuracy of the image, thereby enabling self-supervised learning that takes into account the inaccuracy of the image.
[0051] Here, for example, a sampling process may be performed to generate a random number that follows the probability distribution of the first parameter, and the likelihood of the probability distribution of the first parameter may be calculated using the generated random number. When the two neural networks are allowed to learn, the likelihood of the probability distribution of the second parameter may be calculated by inputting the generated random number into the probability distribution of the second parameter, and the objective function including the calculated likelihood may be optimized to allow the two neural networks to learn.
[0052] In this way, the objective function can be approximately calculated, so that a computer can optimize the objective function and the two neural networks can learn parameters that can take into account the inaccuracy of the image.
[0053] In addition, for example, the probability distribution of the first parameter may be a probability distribution defined by a delta function, the second parameter may be a parameter representing an average direction and a concentration, and the probability distribution of the second parameter may be a van Mieser-Fisher distribution defined by an average direction and a concentration.
[0054] In this way, by using the Van Mize-Fisher distribution, which is a hypersphere, as the probability distribution followed by the parameters of the latent variables, it is possible to make the two neural networks learn parameters that can take into account the inaccuracy of the image.
[0055] In addition, for example, it may also be that the probability distribution of the first parameter is a probability distribution defined by a delta function, the second parameter is a parameter representing an average direction and a concentration, the probability distribution of the second parameter is a Power Spherical distribution defined by an average direction and a concentration, and the Power Spherical distribution is a power spherical distribution.
[0056] In this way, by using the power ball distribution as a hypersphere as the probability distribution followed by the parameters of the latent variables, it is possible to make the two neural networks learn parameters that can take into account the inaccuracy of the image.
[0057] In addition, for example, the probability distribution of the first parameter and the probability distribution of the second parameter may be joint distributions of more than one discrete probability distributions, and the discrete probability distributions may have more than two categories.
[0058] In this way, by using the joint distribution of discrete probability distributions as the probability distribution followed by the parameters of the latent variables, the two neural networks can learn parameters that can take into account the inaccuracy of the image.
[0059] In addition, for example, the objective function may include the cross entropy of the probability distribution of the first parameter and the probability distribution of the second parameter, the cross entropy of the probability distribution of the second parameter includes the likelihood of the probability distribution of the second parameter, and when the two neural networks are allowed to learn, the cross entropy of the probability distribution of the first parameter and the probability distribution of the second parameter is calculated approximately or analytically, so that the two neural networks learn to optimize the objective function.
[0060] Therefore, since the objective function can be calculated analytically, a computer can be made to optimize the objective function, and the two neural networks can learn parameters that can take into account the inaccuracy of the image.
[0061] In addition, a program of one embodiment of the present invention is a program that causes a computer to execute a learning method for self-supervised representation learning, wherein the program causes the computer to execute: using one of two neural networks to output a first parameter as a parameter of a probability distribution based on one of two image data obtained by data expansion of a learning image obtained from learning data, using the other of the two neural networks to output a second parameter as a parameter of a probability distribution based on the other of the two image data, so that the two neural networks learn to optimize an objective function for bringing the two image data close to each other, wherein the objective function includes the likelihood of the probability distribution of the second parameter.
[0062] In addition, these general or specific methods can be implemented by systems, devices, methods, integrated circuits, computer programs, or recording media such as CD-ROMs that can be read by computers, or by any combination of systems, devices, methods, integrated circuits, computer programs, and recording media.
[0063] Hereinafter, the embodiments of the present disclosure will be described with reference to the accompanying drawings. The embodiments described below are all specific examples of the present disclosure. The numerical values, shapes, constituent elements, steps, the order of steps, etc. shown in the following embodiments are only examples, and their purport is not to limit the present disclosure. In addition, the constituent elements not recorded in the independent technical solutions in the constituent elements of the following embodiments are described as arbitrary constituent elements. In addition, in all embodiments, the contents of each embodiment can be combined.
[0064] (Implementation Method)
[0065] Hereinafter, a learning method and the like according to the present embodiment will be described with reference to the drawings.
[0066] [1 Learning system 1]
[0067] Figure 1This is a block diagram showing an example of the configuration of the learning system 1 according to the present embodiment. Figure 2 This is a diagram conceptually showing the processing of the learning system 1 according to the present embodiment. Figure 2 The illustrated learning system 1 a is an example of a specific aspect of the learning system 1 .
[0068] The learning system 1 is used to perform self-supervised representation learning that takes into account the inaccuracy of the image. Figure 1 As shown in FIG. 1 , the learning system 1 includes an input processing unit 11 and a learning processing device 12. Alternatively, the learning system 1 may include the learning processing device 12 instead of the input processing unit 11.
[0069] [1.1 Input processing unit 11]
[0070] The input processing unit 11 includes, for example, a computer including a memory and a processor (microprocessor), and realizes various functions by causing the processor to execute a control program stored in the memory. Figure 1 As shown, the input processing unit 11 of the present embodiment includes an acquisition unit 111 and a data expansion unit 112 .
[0071] The acquisition unit 111 acquires a learning image from the learning data. Figure 1 As shown, the acquisition unit 111 acquires one learning image X from the learning data D.
[0072] The data expansion unit 112 performs data expansion on a learning image acquired by the acquisition unit 111. In this embodiment, for example, Figure 1 As shown, the data expansion unit 112 expands the one learning image X data acquired by the acquisition unit 111 into two different image data X 1 , X 2 Here, data expansion is a process of amplifying data by performing conversion processing on image data, such as rotation processing, left-right parallel translation processing, enlargement processing, reduction processing, left-right flipping, up-down flipping, color conversion processing, etc. Figure 2 In the learning system 1a shown in FIG. 1 , two different image data X are obtained by performing data expansion on the learning image X. 1 , X 2 .
[0073] [1.2 Learning Processing Device 12]
[0074] The learning processing device 12 includes, for example, a computer including a memory and a processor (microprocessor), and realizes various functions by causing the processor to execute a control program stored in the memory. Figure 1As shown, the learning processing device 12 of the present embodiment includes a neural network 121 , a neural network 122 , a sampling processing unit 123 , and a comparison processing unit 124 .
[0075] The neural network 121 is one of the two neural networks that the learning system 1 causes to learn. The neural network 121 outputs a first parameter that is a parameter of a probability distribution based on one of two image data obtained by data expansion of one learning image acquired from the learning data.
[0076] In this embodiment, for example, Figure 1 As shown, the neural network 121 is based on the image data X output from the input processing unit 11. 1 , will be the first parameter Θ of the probability distribution 1 It is predicted and output as a feature quantity.
[0077] Figure 2 The neural network 121a shown is an example of a specific embodiment of the neural network 121, and is represented by an encoder in which a function representing a prediction process of feature representation is set to f, and a plurality of model parameters including weights are set to θ. The neural network 121a is formed by using f θ Acts on image data X obtained by data expansion of a learning image X 1 , which will be the first parameter Θ of the probability distribution q 1 As a latent variable for feature representation, the probability distribution q is as follows Figure 2 As shown, it can be expressed as the first parameter Θ 1 The probability distribution q(z|x 1 ; Θ 1 ).
[0078] The neural network 122 is the other of the two neural networks that are taught by the learning system 1. The neural network 122 outputs a second parameter that is a parameter of a probability distribution based on the other of the two image data obtained by data expansion.
[0079] In this embodiment, for example Figure 1 The neural network 122 is based on the image data X output from the input processing unit 11. 2 , the second parameter Θ will be used as the parameter of the probability distribution 2 It is predicted and output as a feature quantity.
[0080] Figure 2 The neural network 122a shown is an example of a specific embodiment of the neural network 122, and is represented by an encoder in which a function representing a prediction process of a feature representation is set to g, and a plurality of model parameters including weights are set to θ. The neural network 122a uses g θActs on image data X obtained by data expansion of a learning image X 2 , which will be the second parameter Θ of the probability distribution p 2 As a latent variable for feature representation, the probability distribution p is as follows Figure 2 As shown, it can be expressed as the second parameter θ 2 The probability distribution p(z|x 2 ; Θ 2 ).
[0081] In addition, in the present embodiment, the neural network 121 and the neural network 122 are understood as encoders that convert input data into latent variables that follow probability distribution, and they are made to learn. In addition, as the probability distribution, it is not set as a probability distribution defined by a normal distribution, but as described later, it is set as a probability distribution defined by a joint distribution of, for example, a hypersphere, a delta function, or a discrete probability distribution. Thus, the neural network 121 and the neural network 122 can learn parameters that can take into account the inaccuracy of the image by learning the parameters of the predicted probability distribution as latent variables that represent the features.
[0082] Neural network 121 and neural network 122 are, for example, Siamese networks composed of a ResNet (Residual Network) backbone network, but are not limited thereto. Neural network 121 and neural network 122 can be composed of a deep learning model including a CNN (Convolution Neural Networks) layer, which can predict parameters of probability distribution based on image data as potential representations of feature representations.
[0083] The sampling processing unit 123 performs sampling processing. In this embodiment, for example, Figure 1 As shown, the sampling processing unit 123 follows the first parameter θ 1 The probability distribution q is sampled according to the first parameter Θ output from the neural network 121 1 Get feature value z 1 Here, the sampling processing unit 123 generates, for example, 1 The sampling process of random numbers from the probability distribution is based on the first parameter Θ 1 Get feature value z 1 .
[0084] Figure 2 The sampling processing unit 123a shown in the figure is an example of a specific method of the sampling processing unit 123, and obtains the first parameter θ 1 The probability distribution q(z|x 1 ; Θ 1 ) The sampled feature z 1.
[0085] In addition, it can be understood as a process for approximately calculating the target function described later. As described later, the sampling processing unit 123 may not be necessary when the probability distribution of the first parameter is a probability distribution defined by a delta function.
[0086] The comparison processing unit 124 optimizes the neural network 121 and the neural network 122 through comparison processing, thereby causing the two neural networks, namely, the neural network 121 and the neural network 122 to learn from each other.
[0087] In this embodiment, for example, Figure 1 As shown, the comparison processing unit 124 uses the neural network 121 to compare the image data X 1 The obtained feature quantity z 1 , and as a neural network 122 from the image data X 2 The comparison processing unit 124 performs comparison processing on the probability distribution of the second parameter of the feature quantity obtained. The comparison processing unit 124 optimizes the objective function obtained by the comparison processing to make the two neural networks, namely the neural network 121 and the neural network 122 learn. For example, the comparison processing unit 124 can calculate the likelihood of the probability distribution of the second parameter by inputting the random number generated by the sampling processing unit 123 into the probability distribution of the second parameter, and calculate the objective function including the calculated likelihood. Then, the comparison processing unit 124 can make the two neural networks learn by optimizing the calculated objective function.
[0088] Figure 2 The comparison processing unit 124a shown in the figure is an example of a specific mode of the comparison processing unit 124, which calculates the second parameter θ 2 The probability distribution p(z|x 2 ; Θ 2 ) in the likelihood p(z 1 |x 2 ; Θ 2 ) and optimizes the objective function. Likelihood can indicate how well the probability distribution matches the actual observed data, and is defined by inputting the observed data into the probability distribution and multiplying the result of its output. Therefore, the comparison processing unit 124a can calculate the feature quantity z obtained by the sampling process by 1 , input to the probability distribution of the second parameter p(z|x 2 ; Θ 2 ) to calculate the likelihood.
[0089] In this way, the comparison processing unit 124 can make the two neural networks learn to optimize the objective function for making the two image data obtained by data expansion close to each other, and the objective function includes the likelihood of the probability distribution of the second parameter. As a result, learning can be performed in the following manner: when the two image data obtained by data expansion include an image with large inaccuracy, the contribution to learning is reduced, and when the two image data obtained by data expansion include an image with small inaccuracy, the contribution to learning is increased.
[0090] In addition, as an objective function, the comparison processing unit 124 can calculate and optimize an objective function using Kullback-Leibler Divergence (KL divergence). Here, KL divergence can quantify the degree of similarity (i.e., similarity) of two probability distributions. When KL divergence is used as a loss function, KL divergence can be expressed using cross entropy. In this case, the term of the cross entropy related to the random number generated by the probability distribution following the first parameter is a constant.
[0091] [1.3 Operation of the Learning Processing Device 12]
[0092] Next, the operation of the learning processing device 12 configured as above, that is, the learning method of the learning processing device 12 will be described.
[0093] Figure 3 : is a flowchart showing the operation of the learning processing device 12 according to the present embodiment.
[0094] The learning processing device 12 includes a processor and a memory, and performs the following processes S11 to S12 using programs recorded in the processor and the memory.
[0095] More specifically, first, the learning processing device 12 uses one of the two neural networks to output a first parameter as a parameter of the probability distribution based on one of the two image data obtained by data expansion of a learning image obtained from the learning data (S10). Figure 1 As shown, the learning processing device 12 uses a neural network 121 to perform data expansion on a learning image X obtained from the learning data D to obtain image data X. 1 , outputs the first parameter Θ as the parameter of the probability distribution 1 .
[0096] Next, the learning processing device 12 uses the other of the two neural networks to output a second parameter as a parameter of the probability distribution based on the other of the two image data obtained by data expansion of a learning image obtained from the learning data (S11). Figure 1 As shown, the learning processing device 12 performs data expansion on a learning image X obtained from the learning data D using the neural network 122 to obtain image data X. 2 , outputs the second parameter Θ as a parameter of the probability distribution 2 .
[0097] Next, the learning processing device 12 causes the two neural networks to learn to optimize the objective function for approximating the two image data, which includes the likelihood of the probability distribution of the second parameter (S12). Figure 2 As shown, the learning processing device 12 calculates and optimizes the second parameter θ 2 The probability distribution p(z|x 2 ; Θ 2 ) in the likelihood p(z 1 |x 2 ; Θ 2 ) objective function to enable neural network 121 and neural network 122 to learn.
[0098] [2 Effects, etc.]
[0099] First, as a comparative example, it will be described that the learning method disclosed in the above-mentioned non-patent document 1 does not take into account the inaccuracy of the image, which may have a negative impact on the learning.
[0100] Figure 4 and Figure 5 This is a diagram for conceptually explaining a learning method of self-supervised learning in a comparative example. Figure 4 and Figure 5 The neural network 821a shown is composed of a twin network and is characterized as an encoder that causes a function f that sets multiple model parameters including weights to θ to act.
[0101] In the self-supervised learning method of the comparative example, Figure 4 As shown, by performing different image processing on a certain image data X to perform data expansion, image data X is obtained. 1 , X 2 Then, in comparison 824a (Comparison 824a), the neural network 821a is made to learn to use the neural network 821a to convert the image data X 1 , X 2 The encoded feature z 1 、z 2 Specifically, the comparison 824a optimizes the inclusion of the feature quantity z 1 、z 2 The inner product z 1 T z 2 The objective function is to make Figure 4 The image data X shown 1 , X 2 The similarity between the representations is maximized. Thus, the neural network 821a can learn.
[0102] However, since hyper parameters of image processing for data expansion are randomly determined, effective features of image data X sometimes disappear due to image processing. Figure 5 An example of a case where the effective features of the image data X disappear is conceptually shown. Figure 5 In the example shown, the following situation is shown: although data expansion is performed by performing different image processing on a certain image data X, the image data X is obtained. 1 , X 2 , but in the image data X 2 The effective features of the image data X disappear, and the image data becomes highly inaccurate. 2 The feature value z obtained by encoding using the neural network 821a 2 It is likely not to represent the image data X 2 As a result, the feature quantity z 2 Become the optimization containing feature quantity z 1 、z 2 The inner product z 1 T z 2 The factor that hinders the objective function, that is, suppresses learning performance such as accuracy.
[0103] Next, use Figure 6 and Figure 7 An image with high inaccuracy and an image with low inaccuracy are described. In this embodiment, inaccuracy means accidental inaccuracy.
[0104] Figure 6 This is a diagram showing an example of a high-inaccuracy image and a low-inaccuracy image obtained by data expansion according to the present embodiment. Figure 6 The image 50a and the image 50b are obtained by performing different image processing and data expansion on the original image 50. The image 50a is an example of an image with low inaccuracy, and the image 50b is an example of an image with high inaccuracy. In the image 50a with low inaccuracy, it is known that the object (Object) shown in the image 50 is included, while in the image 50b with low inaccuracy, it is not clear whether the object shown in the image 50 is included.
[0105] Figure 7 This is a diagram showing another example of a high-accuracy image and a low-accuracy image obtained by data expansion according to the present embodiment. Figure 7 The image 51a and the image 51b are obtained by performing different image processing and data expansion on the original image 51. The image 51a is an example of an image with low inaccuracy, and the image 51b is an example of an image with high inaccuracy. Similarly, in the image 51a with low inaccuracy, it is known that the object shown in the image 51 is included, while in the image 51b with low inaccuracy, it is not clear whether the object shown in the image 51 is included.
[0106] On the other hand, according to the learning system 1 and the learning method of the present embodiment described above, it is possible to take into account the inaccuracy of the image in the self-supervised learning.
[0107] More specifically, it is assumed that the two neural networks are variational autoencoders that convert input data into latent variables that follow a probability distribution, and their probability distribution is a probability distribution defined by, for example, a hypersphere, and self-supervised learning is performed. As a result, when the two image data obtained by data expansion contain images with large inaccuracies, the contribution to learning can be reduced, and when the two image data obtained by data expansion contain images with small inaccuracies, the contribution to learning can be increased. That is, according to the learning system 1 and the learning method of the present embodiment, parameters that can take into account the inaccuracy of the image can be learned, so that self-supervised learning that takes into account the inaccuracy of the image can be performed. Therefore, even when the two image data obtained by data expansion contain images with large inaccuracies, the adverse effects on learning can be suppressed, thereby further improving the accuracy.
[0108] Hereinafter, a specific example will be described in which the latent variables predicted (converted) by two neural networks follow a probability distribution defined by a hypersphere and a delta function.
[0109] (Example 1)
[0110] Figure 8 FIG. 1 is a diagram conceptually showing the processing of the learning system 1b of the first embodiment. Figure 2 The same elements are assigned the same reference numerals and detailed descriptions thereof are omitted. Figure 8 The learning system 1b, neural network 121b and neural network 122b shown are Figure 1 An example of a specific form of the learning system 1, neural network 121 and neural network 122 shown. Similarly, Figure 8 The sampling processing unit 123b and the comparison processing unit 124b shown are Figure 1 An example of a specific form of the sampling processing unit 123 and the comparison processing unit 124 is shown.
[0111] In Example 1, Figure 8As shown, the first parameter z predicted by a neural network 121b 1 follows a probability distribution q defined by a delta function. The first parameter z 1 is the latent variable predicted by the neural network 121b.
[0112] More specifically, in Example 1, the probability distribution q is as shown in (Formula 1), which is composed of only z 1 It is defined as a delta function with probability in .
[0113] [Mathematical formula 1]
[0114] q(z|x 1 ; Θ 1 ):=δ(ZZ 1 ) (Formula 1)
[0115] Here, θ 1 =z 1 .
[0116] In addition, if Figure 8 As shown, the second parameter z predicted by another neural network 122b 2 follows the probability distribution p defined by the van Mieser-Fisher distribution. The second parameter z 2 is a latent variable predicted by the neural network 122b. The Van Miese-Fisher distribution is an example of a hypersphere, and can also be said to be a normal distribution on a sphere.
[0117] More specifically, in Example 1, the probability distribution p is defined by the Van Mieser-Fisher distribution having two parameters, namely, the average direction μ and the concentration κ, as shown in (Equation 2).
[0118] [Mathematical formula 2]
[0119] p(z|x 2 ; Θ 2 ):=C(k)exp(-κμ T z) (Formula 2)
[0120] Here, θ 2 ={κ,μ}. C(κ) is a normalization constant determined so that the product of the probability distribution p is 1.
[0121] Fig. 9 This is a diagram conceptually showing an example of the Van Miese-Fisher distribution.
[0122] like Fig. 9In the example shown, in the van Mize-Fisher distribution, the mean direction μ indicates the direction in which the median of the distribution increases on the unit sphere, which corresponds to the mean in the normal distribution. In addition, in the van Mize-Fisher distribution, the concentration κ indicates the concentration of the distribution in the mean direction μ (how far away from the mean direction μ), which corresponds to the inverse of the variance in the normal distribution. Therefore, the concentration of the distribution is greater when the concentration κ value is 100 than when the concentration κ value is 10, and the concentration of the distribution is greater when the concentration κ value is 1000 than when the concentration κ value is 100.
[0123] Thus, in this embodiment, the first parameter z predicted by the neural network 121b is 1 The probability distribution of is the probability distribution q defined by the delta function. In addition, the second parameter z predicted by the neural network 122b is 2 are parameters representing the average direction μ and the concentration κ, and the probability distribution p of the second parameter is the Van Mieser-Fisher distribution defined by the average direction μ and the concentration κ.
[0124] In addition, in the first embodiment, the sampling processing unit 123b also follows the principle of only 1 The sampling process is performed by using a delta function with probability. However, Figure 8 As shown, the sampling processing unit 123b uses the first parameter z predicted by the neural network 121b 1 As the characteristic quantity z 1 Passed as is.
[0125] The comparison processing unit 124b compares the feature value z transmitted from the sampling processing unit 123b to 1 Input to the second parameter z 2 In the probability distribution p, the second parameter z is calculated as shown in (Equation 3) 2 The likelihood of the probability distribution p of , and calculate the objective function including the calculated likelihood.
[0126] [Mathematical formula 3]
[0127] C(κ)exp(-κμ T z 1 ) (Formula 3)
[0128] In addition, the comparison processing unit 124b can make the neural networks 121b and 122b as two neural networks learn by optimizing the calculated objective function. The likelihood equation shown in (Equation 3) includes the equation μ T z 1 Therefore, for images with large inaccuracy, κ can be reduced, that is, the inner product can be reduced, and the contribution of learning can be reduced. Thus, the comparison processing unit 124b can perform optimization processing, which makes the image data X 1 , X 2The first parameter and the second parameter of the obtained feature quantity are close to each other so as to maximize the similarity.
[0129] As described above, according to the present embodiment, the two neural networks can learn the distribution of latent variables that follow the probability distribution defined by the van Mize-Fisher distribution as parameters that can take into account the inaccuracy of the image. Thus, the two neural networks can perform self-supervised learning that takes into account the inaccuracy of the image. Therefore, even if the two image data obtained by data expansion contain images with large inaccuracies, the adverse effects caused by learning the two image data containing images with high inaccuracies can be suppressed, thereby further improving the accuracy.
[0130] Hereinafter, an embodiment and pseudo code of the learning system 1b of the first embodiment will be described.
[0131] Fig.10 This is a diagram showing an example of a structure when the learning system 1b of the first embodiment is implemented. Fig.10 The architecture shown imitates the architecture disclosed in Non-Patent Document 1 as a comparative example, and is composed of an encoder f and a predictor h. Fig.10 The upper encoder f and predictor h shown in the figure correspond to the neural network 122b, which generates image data X obtained by data expansion of the input image X. 1 Perform prediction processing. Fig.10 The lower encoder f shown corresponds to the neural network 122b, which generates image data X obtained by data expansion of the input image X. 2 Perform prediction processing.
[0132] More specifically, Fig.10 The predictor h shown predicts the concentration κ of the distribution of the latent variable defined θ , average direction μ θ As the second parameter. Concentration κ θ is related to the inaccuracy of the input image X and depends on the encoder f θ and the model parameters θ of the predictor h. In addition, Fig.10 The lower level encoder f θ Predicting latent variable z 2 as the first parameter.
[0133] When using KL divergence, we can transform the concentration κ θ , average direction μ θ The van Mieser-Fisher distribution (probability distribution) defined by the latent variable z 2 The similarity between the defined probability distributions is quantified, so the KL divergence is used as the objective function. Fig.10 In the example shown, by 2 Input to the concentration k θ, average direction μ θ The van Mieser-Fisher distribution is defined to calculate the likelihood vMF(z 2 ;μ θ , κ θ ). Then, the objective function is optimized by finding the likelihood that minimizes the KL divergence. In this way, since the upper-level encoder f and predictor h can be learned, the upper-level encoder f and predictor h, which are two neural networks, and the lower-level encoder f can be learned. In addition, in the lower level, a stop gradient is performed that does not update the model parameters such as weights during back-calculation. However, since the lower-level encoder f and the upper-level encoder f are the same neural network, the lower-level encoder f can be considered to have been learned by learning the upper-level encoder f.
[0134] Fig.11 This is a diagram showing an example of pseudo code of Algorithm 1 of Example 1. Fig.12 It is a diagram showing a pseudo code of an algorithm of a comparative example. Fig.11 The algorithm 1 shown corresponds to the processing of the learning system 1b of Example 1, specifically, to Fig.10 The learning process in the architecture shown. Fig.12 The algorithm of the comparative example shown corresponds to the learning process for the twin network disclosed in Non-Patent Document 1.
[0135] By comparison Fig.11 and Fig.12 It can be seen that in Algorithm 1, the difference from the algorithm of the comparative example is that the predictor h predicts the concentration kappa and the average direction mu that define the van Miese-Fisher distribution. Therefore, in Algorithm 1, the objective function as the loss function represented by L is different from that of the algorithm of the comparative example.
[0136] (Example 2)
[0137] Fig.13 FIG. 1 is a diagram conceptually showing the processing of the learning system 1c according to the second embodiment. Figure 2 and Figure 8 The same elements are assigned the same reference numerals and detailed descriptions thereof are omitted.
[0138] Fig.13 The learning system 1c, neural network 121c and neural network 122c shown are Figure 1 An example of a specific form of the learning system 1, neural network 121 and neural network 122 shown. Similarly, Fig.13 The sampling processing unit 123c and the comparison processing unit 124c shown are Figure 1 An example of a specific form of the sampling processing unit 123 and the comparison processing unit 124 is shown.
[0139] In Example 2, Fig.13 As shown, the first parameter z predicted by a neural network 121c 1 follows a probability distribution q defined by a delta function. The first parameter z 1 is the latent variable predicted by the neural network 121c.
[0140] More specifically, in Example 2, the probability distribution q is also as shown in the above (Formula 1), which is composed of only z 1 It is defined as a delta function with probability in .
[0141] On the other hand, Fig.13 As shown, the second parameter z predicted by another neural network 122c 2 follows the probability distribution p defined by the power ball distribution. The second parameter z 2 is a latent variable predicted by the neural network 122c. The power ball distribution is an example of a hypersphere.
[0142] More specifically, in Example 2, the probability distribution p is defined by a power ball distribution having two parameters, namely, the average direction μ and the concentration κ, as shown in (Formula 4). In addition, regarding the power ball distribution, the detailed description disclosed in Non-Patent Document 2 is omitted, and the power ball distribution is a probability distribution that improves the stability of the backtracking and the processing time of the sampling process, which are problems of the van Mize-Fisher distribution. That is, in the power ball distribution, the instability of C(κ) as a normalization constant in the van Mize-Fisher distribution and the large calculation load are improved.
[0143] [Formula 4]
[0144] p(z|x 2 ; Θ 2 ):=C(κ)(1+μ T z) κ (Formula 4)
[0145] Here, θ 2 ={κ,μ}, C(κ) is a normalization constant.
[0146] Fig.14 This is a diagram conceptually showing an example of power sphere distribution.
[0147] like Fig.14 In the example shown, even in the power sphere distribution, the average direction μ indicates the direction in which the median value of the distribution on the unit sphere increases. In addition, in the power sphere distribution, the concentration κ indicates the concentration degree of the distribution on the average direction μ (how far away from the average direction μ). Therefore, the concentration degree of the distribution is greater when the concentration κ value is 100 than when the concentration κ value is 10, and the concentration degree of the distribution is greater when the concentration κ value is 1000 than when the concentration κ value is 100.
[0148] Thus, in this embodiment, the first parameter z predicted by the neural network 121c is 1 The probability distribution of is the probability distribution q defined by the delta function. In addition, the second parameter z predicted by the neural network 122c is 2 are parameters representing the average direction μ and the concentration κ, and the probability distribution p of the second parameter is a power ball distribution defined by the average direction μ and the concentration κ.
[0149] As in the first embodiment, the sampling processing unit 123c follows only z 1 The probability delta function is used for sampling, but Fig.13 As shown, the first parameter z predicted by the neural network 121c is 1 Passed as is.
[0150] The comparison processing unit 124c compares the feature value z transmitted from the sampling processing unit 123c to 1 Input to the second parameter z 2 In the probability distribution p, the second parameter z is calculated as shown in (Equation 5) 2 The likelihood of the probability distribution p of , and calculate the objective function including the calculated likelihood.
[0151] [Mathematical formula 5]
[0152] C(κ)(1+μ T z 1 ) κ (Formula 5)
[0153] In addition, the comparison processing unit 124c can make the neural networks 121c and 122c as two neural networks learn by optimizing the calculated objective function. The likelihood equation shown in (Equation 5) includes the equation μ T z 1 Therefore, for images with large inaccuracy, κ can be reduced, that is, the inner product can be reduced, and the contribution of learning can be reduced. Thus, the comparison processing unit 124c can perform optimization processing, which makes the image data X 1 , X 2 The first parameter and the second parameter of the obtained feature quantity are close to each other so as to maximize the similarity.
[0154] As described above, according to the present embodiment, the two neural networks can learn the distribution of latent variables that follow the probability distribution defined by the power ball distribution as a parameter that can take into account the inaccuracy of the image. As a result, the two neural networks can perform self-supervised learning that takes into account the inaccuracy of the image. Therefore, even if the two image data obtained by data expansion contain images with high inaccuracy, it is possible to suppress the adverse effects caused by learning the two image data containing images with high inaccuracy, thereby further improving the accuracy.
[0155] Hereinafter, an embodiment and pseudo code of the learning system 1c of the second embodiment will be described.
[0156] Fig.15 1 is a diagram showing an example of the architecture when the learning system 1c of the second embodiment is installed. Fig.15 The upper encoder f and predictor h shown in the figure correspond to the neural network 122c, which generates image data X obtained by data expansion of the input image X. 1 Perform prediction processing. Fig.15 The lower encoder f shown corresponds to the neural network 122c, which generates image data X obtained by data expansion of the input image X. 2 Perform prediction processing.
[0157] More specifically, Fig.15 The predictor h shown predicts the concentration κ of the distribution of the latent variable defined θ , the average direction μθ is used as the second parameter. Concentration κ θ It is related to the inaccuracy of the input image X and depends on the encoder f θ and the model parameters θ of the predictor h. In addition, the encoder f θ Predicting latent variable z 2 as the first parameter.
[0158] When using KL divergence, we can transform the concentration κ θ , the van Mieser-Fisher distribution (probability distribution) defined by the mean direction μθ and the latent variable z 2 The similarity between the defined probability distributions is quantified, so the KL divergence is used as the objective function. Fig.15 In the example shown, by 2 Input to the concentration k θ and the average direction μ θ The power ball distribution is defined to calculate the likelihood PS(z 2 ;μ θ , κ θ ). Then, the objective function can be optimized by finding the likelihood that minimizes the KL divergence. Thus, since the upper encoder f and predictor h can be learned, the upper encoder f and predictor h as two neural networks, and the lower encoder f can be learned.
[0159] Fig.16 This is a diagram showing an example of pseudo code of Algorithm 2 of Example 2. Fig.16 The algorithm 2 shown corresponds to the processing of the learning system 1c of Example 2, specifically, to Fig.15 The learning process in the architecture shown.
[0160] Will Fig.16 With the above Fig.12 By comparison, it can be seen that in Algorithm 2, the difference from the algorithm of the comparative example is that the predictor h predicts the concentration kappa and the average direction mu defined by the power sphere distribution. Therefore, in Algorithm 2, the objective function, which is the loss function represented by L, is different from that of the algorithm of the comparative example.
[0161] In addition, comparison Fig.12 and Fig.16 The only difference is that instead of predicting the Van Mize-Fisher distribution, we predict the power ball distribution with the concentration kappa and the mean direction mu. The other processing order is the same.
[0162] Fig.17 is the concentration κ of the learning system 1c of Example 2 i , cosine similarity, and loss. The loss is the latent variable z as the first parameter 2 The probability distribution of i and the average direction μ θ (Second parameter) defines the loss between the power ball distribution, and the cosine similarity is given by the average direction μ θ and latent variable z 2 The inner product μ θ T z 2 To express.
[0163] like Fig.17 As shown in , when the concentration κ is constant, the closer the cosine similarity is to 0, that is, the more dissimilar the two probability distributions are, the greater the loss. In addition, as Fig.17 As shown in , it can be seen that the smaller the concentration κ is, the less the loss is affected by the value of cosine similarity. 1 The inaccuracy of the latent variable z 2 In the case of similar average directions μ, a significant increase in loss can be prevented by reducing κ. That is, when the two image data obtained by data expansion contain an image with large inaccuracy, the contribution to learning can be reduced, and when the two image data obtained by data expansion contain an image with small inaccuracy, the contribution to learning can be increased.
[0164] (Experimental example)
[0165] Next, the effect of the learning method of Example 2 is verified by performing self-supervised learning using the imagenette and imagewoof datasets, which are subsets of the ImageNet dataset, as described in the following experimental example.
[0166] Fig.18 : is a diagram showing the results of evaluating the performance of the learning system 1c of Example 2 using the data set of the experimental example. Fig.18 The embodiment 2 shown corresponds to the evaluation result of the performance of the architecture in the case where the learning system 1c of the embodiment 2 is installed. Fig.18 Also shown as a comparative example is the evaluation result of the performance of the twin network disclosed in Non-Patent Document 1. In addition, in the evaluation results, Top1 accuracy and Top5 accuracy are used as evaluation indicators.
[0167] Imagenette's dataset contains 10 types of data that are easy to classify, and there are two types of datasets for learning and evaluation. On the other hand, imagewoof's dataset contains 10 types of data that are difficult to classify, and there are two types of datasets for learning and evaluation. In this experimental example, all the datasets for learning are used for self-supervised learning. On the other hand, when learning a linear classifier for evaluation, about 20% of the dataset for learning is used to adjust the model parameters.
[0168] In addition, the encoder f used in this experimental example consists of a backbone network and an MLP (Multi layer perceptron). Resnet18 is used as the backbone network. In addition, the MLP has three fully connected layers (fc layers), and a BN (Batch Normalization) layer is applied to each layer. As an activation function, ReLU (Rectified Linear Unit) is applied to all layers except the output layer. The dimensions of the input layer and the hidden layer are set to 2048 dimensions.
[0169] In addition, the predictor h used in this experimental example is composed of an MLP with two fully connected layers. The activation functions of BN and ReLU are applied to the first fully connected layer. The dimension of the input layer is set to 512 dimensions, and the dimension of the output layer is set to 2049 dimensions. In addition, the dimension of the output layer of the predictor h of the comparative example is 2048 dimensions.
[0170] In this experiment, momentum SGD is used for learning, and the learning rate is set to 10 -3 In addition, the batch size is set to 64 and the number of training epochs is set to 200. In addition, the optimization of the linear classifier used for evaluation uses LARS (Layer-wise Adaptive Rate Scaling), with the learning rate set to 1.6 and the batch size set to 512.
[0171] from Fig.18As shown in the evaluation results, the Top 1 accuracy and Top 5 accuracy in the imagenette data set and the imagewoof data set in Example 2 are higher than those in the comparative example.
[0172] Fig.19 is a diagram showing the evaluation results of the inaccuracy of the image after data expansion used in this experimental example. Fig.19 The frequency distribution of the concentration κ predicted for the image after data expansion is shown by a histogram. Fig.19 The evaluation results shown in FIG. 1 show that the image predicted by the concentration κ is difficult to identify and the accuracy is low. Fig.19 As can be seen from the evaluation results shown, an image for which the concentration κ is predicted to be low can be identified as showing a truck, a building, a golf ball, etc., and the inaccuracy is high.
[0173] Therefore, it can be seen that, through the learning method of Example 2 and the like, the parameters of the probability distribution corresponding to the inaccuracy of the image can be learned, and the inaccuracy of the input image can be learned.
[0174] Fig. 20 is a graph showing the concentration κ of the image prediction after data expansion. Fig. 20 In , the predicted concentration κ is shown for an image obtained by performing data expansion on the original image (Original) before data expansion. Fig. 20 As can be seen from the example shown, it is difficult to recognize what an image with a high predicted concentration κ shows, while it is possible to recognize what an image with a low predicted concentration κ shows, but the inaccuracy is high.
[0175] (Variant 1)
[0176] In the above-mentioned Embodiment 1 and Embodiment 2, an example is described in which the latent variables represented by the features predicted by the two neural networks follow the probability distribution defined by the hypersphere and the delta function, but it is not limited to this.
[0177] The latent variables represented by the features predicted by the two neural networks may follow a probability distribution defined by a joint distribution of discrete probability distributions. This case is described below as a modification example 1.
[0178] Fig.21 FIG. 1 is a diagram conceptually showing the processing of the learning system 1d according to the modification example 1. Figure 2 The same elements are assigned the same reference numerals and detailed descriptions thereof are omitted. Fig.21 The learning system 1d, neural network 121d and neural network 122d shown are Figure 1 An example of a specific form of the learning system 1, neural network 121 and neural network 122 shown. Similarly, Fig.21 The sampling processing unit 123d and the comparison processing unit 124d shown are Figure 1 An example of a specific form of the sampling processing unit 123 and the comparison processing unit 124 is shown.
[0179] In variation 1, if Fig.21 As shown, a neural network 121d predicts a first parameter Θ 1 The probability distribution q(z|x) is defined by the joint distribution of N discrete probability distributions (K classes). 1 ; Θ 1 ). The first parameter Θ 1 is the latent variable predicted by the neural network 121d.
[0180] In addition, if Fig.21 As shown, another neural network 122d predicts a second parameter θ 2 The probability distribution p(z|x) is defined by the joint distribution of N discrete probability distributions (K classes). 2 ; Θ 2 ). The second parameter Θ 2 is the latent variable predicted by the neural network 122d.
[0181] Fig. 22 It is a graph that conceptually represents the joint distribution of N discrete probability distributions (K classes).
[0182] like Fig. 22 In the example shown, the joint distribution of N discrete probability distributions (K classes) is a distribution that shows N discrete probability distributions of K classes at the same time. Here, when each discrete probability distribution is, for example, a probability distribution of a dice, the K classes shown on the horizontal axis are 6 classes, and the vertical axis represents the frequency of each number of the dice.
[0183] Thus, in this variation, the first parameter θ predicted by the neural network 121d is 1 The probability distribution and neural network prediction 122d predict the second parameter Θ 2 The probability distribution of may be a joint distribution of more than one discrete probability distribution. Moreover, the discrete probability distributions may each have more than two categories.
[0184] In this case, the sampling processing unit 123d may generate a signal that conforms to the first parameter θ. 1 The probability distribution of a random number z 1 For example, Fig. 22 As shown, the sampling processing unit 123d can generate the above-mentioned random number z by randomly extracting a value of one class in K classes from each discrete probability distribution in N discrete probability distributions. 1 .
[0185] The comparison processing unit 124d can convert the random number z generated by the sampling processing unit 123c into 1 Input to the second parameter z 2 From the probability distribution p, calculate the second parameter z 2 The likelihood p(z 1 |x 2 ; Θ 2 ), and calculate the likelihood p(z 1 |x 2 ; Θ 2 )’s objective function.
[0186] Then, the comparison processing unit 124d can cause the neural network 121d and the neural network 122d, which are two neural networks, to learn by optimizing the calculated objective function.
[0187] As described above, according to this variation, the two neural networks can learn the distribution of latent variables that follow the probability distribution defined by the joint distribution of discrete probability distributions as parameters that can take into account the inaccuracy of the image. As a result, the two neural networks can perform self-supervised learning that takes into account the inaccuracy of the image. Therefore, even if the two image data obtained by data expansion contain images with high inaccuracy, it is possible to suppress the adverse effects caused by learning the two image data containing images with high inaccuracy, thereby further improving the accuracy.
[0188] Next, a simulation experiment was performed to confirm the effectiveness of the learning method of this modification example, which will be described.
[0189] Using Fig.21 A simulation experiment was conducted in which the robot controller was made to perform reinforcement learning based on input images using the feature quantities (parameters that follow probability distribution) obtained through self-supervised learning in the structure of the learning system 1d shown.
[0190] The robot controller is the model that controls the robot, which is composed of a neural network π φ Composition. Neural network π φ The input is obtained by Fig.21 The learning system 1d shown in FIG. 1a performs self-supervised learning to predict the feature quantity of the neural network 121d. In other words, the neural network π φ The input of is a first parameter following a probability distribution, wherein the first parameter is a function f of the neural network 121d obtained by self-supervised learning. θ Output feature quantity.
[0191] In addition, f θ The neural network 121d in operation is composed of the convolutional neural network and the recurrent neural network disclosed in the non-patent document 3. θThe neural network 122d in operation is composed of a convolutional neural network having the same structure as the convolutional neural network possessed by the neural network 121d.
[0192] In this simulation experiment, neural network 121d and neural network 122d are first made to learn. Specifically, neural network 121d and neural network 122d are self-supervisedly learned by 1) optimizing the objective function of the inner product of the feature quantities of neural network 121d and neural network 122d, and 2) optimizing with the objective function of this embodiment.
[0193] Next, a neural network π is implemented using the feature quantities obtained from the neural network 121d and the neural network 122d as input. φ reinforcement learning.
[0194] In addition, the software described in Non-Patent Document 4 was used as a simulation environment for the robot, and evaluation was performed using three tasks.
[0195] Figures 23A to 25B 3 is a diagram showing the evaluation results of three tasks according to this modification. Fig.23A , Fig.24A and Fig.25A shows the input images fed into the robot's controller to solve three tasks, Fig. 23B , Fig. 24B and Fig.25B The learning curves of the simulation experiments for the three tasks are shown. Fig. 23B , Fig. 24B and Fig.25B The vertical axis represents the reward of reinforcement learning, and the horizontal axis represents the learning speed.
[0196] More specifically, Fig.23A FIG. 1 is a diagram showing an example of a camera image input to a controller in order for a robot to solve a task of lifting an object. Fig. 23B is a graph showing a learning curve of a simulation experiment in which a robot solves a task of lifting an object. Fig.24A is a diagram showing an example of a camera image input to a controller in order for a robot to solve a door opening task. Fig. 24B is a learning curve for a simulation experiment to enable the robot to solve the door opening task. Fig.25A is a diagram showing an example of a camera image input to a controller in order for a robot to solve a task of inserting a pin into a hole.
[0197] Fig.25B is a learning curve representing a simulation experiment in which a robot solves the task of inserting a pin into a hole. Figure 23B to Figure 25B A comparative example is shown, in which a neural network π constituting a controller of a robot is used. φThe case where the feature quantity learned by the neural network disclosed in non-patent document 1 is used as the input.
[0198] from Figure 23B to Figure 25B It can be seen that the learning speed is improved in the present modification example compared to the comparative example.
[0199] (Variant 2)
[0200] In the above-described first embodiment, second embodiment, and modified example 1, it is assumed that the KL divergence shown in the following (Formula 6) is calculated as the loss.
[0201] [Mathematical formula 6]
[0202]
[0203] In the above-mentioned Embodiment 1, Embodiment 2 and Modification 1, it is assumed that the cross entropy of the first term is approximately calculated as shown in (Formula 7) by performing sampling processing and setting the second term as a constant. i is a random number sampled from the probability distribution q.
[0204] [Mathematical formula 7]
[0205]
[0206] However, the loss shown in (Equation 6) is not limited to approximate calculation, but can be calculated analytically. This is because in either case, the computer can optimize the objective function. In addition, in this case, sampling processing is not necessary.
[0207] In addition, in the above-mentioned Embodiment 1 and Embodiment 2, it is described that only z 1 The probability delta function is used for sampling, but due to the fact that z 1 Passed as is, so sampling processing is not necessary.
[0208] Fig.26 FIG. 1 is a diagram conceptually showing the processing of the learning system 1e according to the second modification. Figure 2 The same elements are assigned the same reference numerals and detailed descriptions thereof are omitted. Fig.26 The learning system 1e, neural network 121e and neural network 122e shown are Figure 1 An example of a specific form of the learning system 1, neural network 121 and neural network 122 shown. Similarly, Fig.26 The comparison processing unit 124e shown is Figure 1 An example of a specific form of the comparison processing unit 124 is shown.
[0209] In variation 2, if Fig.26As shown, the first parameter Θ predicted by a neural network 121e 1 follows a probability distribution q defined by a delta function. The first parameter Θ 1 is the latent variable predicted by the neural network 121e.
[0210] More specifically, in the second modification, the probability distribution q is also as shown in the above (Formula 1), which is composed of only z 1 In addition, the probability distribution q can be defined by the joint distribution of discrete probability distributions.
[0211] In addition, if Fig.26 As shown, the second parameter θ predicted by another neural network 122e 2 follows a probability distribution p defined by the van Mieser-Fisher distribution or the power ball distribution. The second parameter Θ 2 is the latent variable predicted by the neural network 122e. More specifically, in the second variant, the probability distribution p is defined by the van Miese-Fisher distribution or the power ball distribution having two parameters, the average direction μ and the concentration κ, as shown in (Equation 2) or (Equation 4).
[0212] In addition, when the probability distribution q is defined by the joint distribution of discrete probability distributions, the probability distribution p can also be defined by the joint distribution of discrete probability distributions.
[0213] In this case, the comparison processing unit 124e can calculate the objective function including the cross entropy shown in (Formula 8).
[0214] [Mathematical formula 8]
[0215]
[0216] In other words, the objective function can contain the first parameter θ 1 The probability distribution and the second parameter Θ 2 The cross entropy of the probability distribution, the second parameter Θ 2 The cross entropy of the probability distribution contains a second parameter Θ 2 The likelihood of the probability distribution of .
[0217] Then, when the two neural networks are made to learn, the comparison processing unit 124e can calculate the first parameter θ approximately or analytically. 1 The probability distribution q and the second parameter Θ 2 Thus, the comparison processing unit 124e enables the neural network 121e and the neural network 122e, which are two neural networks, to learn to optimize the objective function.
[0218] In addition, the first parameter θ predicted by the neural network 121e 1When following the probability distribution q defined by the delta function, the loss shown in (Formula 6) as the objective function can be analytically calculated using (Formula 9).
[0219] [Mathematical formula 9]
[0220]
[0221] Fig. 27 This is a diagram conceptually showing an equation for analytically calculating the objective function of Modification Example 2.
[0222] In addition, in the first parameter Θ 1 The probability distribution q(z|·) and the second parameter Θ 2 When the probability distribution p(z|·) is a probability distribution defined by the joint distribution of N discrete probability distributions (K classes), the loss shown in (Equation 6) as the objective function can be used Fig. 27 The formula shown is used to calculate analytically.
[0223] (Possibility of other implementations)
[0224] The above described the learning method of the present disclosure in the embodiment, but there is no particular limitation on the subject or device that implements each process. It can be processed by a processor assembled in a specific device configured locally. In addition, it can be processed by a cloud server configured in a place different from the local device.
[0225] In addition, the present disclosure is not limited to the above-mentioned embodiments, examples and variations. For example, another embodiment implemented by arbitrarily combining the constituent elements described in this specification, or excluding some constituent elements, can be used as an embodiment of the present disclosure. In addition, within the scope of the meaning represented by the sentences recorded in the scope of the claim for protection, variations obtained by implementing various modifications thought of by those skilled in the art to the above-mentioned embodiments are also included in the present disclosure.
[0226] In addition, the present disclosure also includes the following cases.
[0227] (1) Specifically, the above-mentioned device is a computer system composed of a microprocessor, ROM, RAM, hard disk unit, display unit, keyboard, mouse, etc. A computer program is stored in the RAM or hard disk unit. Each device realizes its function by the microprocessor operating according to the computer program. Here, the computer program is a program composed of a plurality of command codes representing instructions to the computer in order to realize a specified function.
[0228] (2) A part or all of the components constituting the above-mentioned device may also be constituted by a system LSI (Large Scale Integration). System LSI is a super multifunctional LSI manufactured by integrating multiple structural parts on a single chip. Specifically, it is a computer system composed of a microprocessor, ROM, RAM, etc. A computer program is stored in the RAM. The microprocessor operates according to the computer program, and the system LSI realizes its function.
[0229] (3) A part or all of the constituent elements of the above-mentioned device may also be composed of an IC card or a single module that can be detached from each device. The IC card or the module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or the module may include the above-mentioned super-multifunctional LSI. The IC card or the module realizes its function by the microprocessor operating according to the computer program. The IC card or the module may be tamper-proof.
[0230] (4) In addition, the present disclosure may be the methods described above. In addition, the present disclosure may be a computer program that implements the methods on a computer, or a digital signal composed of the computer program.
[0231] (5) In addition, the present disclosure may be a computer program or a digital signal recorded on a computer-readable recording medium, such as a floppy disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), and a semiconductor memory, etc. In addition, the above-mentioned digital signal recorded on these recording media may be used.
[0232] In addition, the present disclosure may transmit the computer program or the digital signal via a telecommunication communication line, a wireless or wired communication line, a network represented by the Internet, data broadcasting, or the like.
[0233] In addition, the present disclosure may be a computer system including a microprocessor and a memory, wherein the memory stores the above-mentioned computer program, and the microprocessor operates according to the computer program.
[0234] Furthermore, the program or the digital signal can be implemented by another independent computer system by transferring the program or the digital signal after being recorded on the recording medium or by transferring the program or the digital signal via the network or the like.
[0235] Industrial Applicability
[0236] The present disclosure can be used for a learning method, a learning device, and a program for performing self-supervised learning using data-extended image data.
[0237] Description of Reference Numerals
[0238] 1. 1a, 1b, 1c, 1d, 1e learning system
[0239] 11Input processing unit
[0240] 12Learning Processing Device
[0241] 50, 50a, 50b, 51, 51a, 51b images
[0242] 111 Acquisition Department
[0243] 112 Data Extension Unit
[0244] 121, 121a, 121b, 121c, 121d, 121e, 122, 122a, 122b, 122c, 122d, 122e, 821a neural network
[0245] 123, 123a, 123b, 123c, 123d sampling processing unit
[0246] 124, 124a, 124b, 124c, 124d, 124e comparison processing unit
[0247] 824a Comparison
Claims
1. A learning method is a learning method for self-supervised representation learning performed by a computer, wherein: outputting a first parameter as a parameter of a probability distribution based on one of two image data obtained by data expansion of a learning image obtained from the learning data using one of the two neural networks, outputting a second parameter as a parameter of a probability distribution according to the other of the two image data using the other of the two neural networks, The two neural networks are caused to learn to optimize an objective function for approximating the two image data, the objective function including a likelihood of a probability distribution of the second parameter.
2. The learning method according to claim 1, wherein: performing a sampling process for generating random numbers that follow the probability distribution of the first parameter, Using the generated random number, calculating the likelihood of the probability distribution of the first parameter, When the two neural networks are made to learn, The two neural networks learn by inputting the generated random number into the probability distribution of the second parameter, calculating the likelihood of the probability distribution of the second parameter, and optimizing the objective function including the calculated likelihood.
3. The learning method according to claim 1, wherein: The probability distribution of the first parameter is a probability distribution defined by a delta function, The second parameter is a parameter representing the average direction and concentration, The probability distribution of the second parameter is a Van Mieser-Fisher distribution defined by a mean direction and a concentration.
4. The learning method according to claim 1, wherein: The probability distribution of the first parameter is a probability distribution defined by a delta function, The second parameter is a parameter representing the average direction and concentration, The probability distribution of the second parameter is a Power Spherical distribution defined by an average direction and a concentration, and the Power Spherical distribution is a power spherical distribution.
5. The learning method according to claim 1, wherein: The probability distribution of the first parameter and the probability distribution of the second parameter are respectively joint distributions of more than one discrete probability distribution, The discrete probability distributions each have more than two categories.
6. The learning method according to claim 1, wherein: The objective function comprises the cross entropy of the probability distribution of the first parameter and the probability distribution of the second parameter, The cross entropy of the probability distribution of the second parameter comprises the likelihood of the probability distribution of the second parameter, When the two neural networks are made to learn, The two neural networks are made to learn to optimize the objective function by approximately or analytically calculating the cross entropy of the probability distribution of the first parameter and the probability distribution of the second parameter.
7. A program that causes a computer to perform a learning method for self-supervised representation learning, wherein: The program causes the computer to execute: outputting a first parameter as a parameter of a probability distribution based on one of two image data obtained by data expansion of a learning image obtained from the learning data using one of the two neural networks, outputting a second parameter as a parameter of a probability distribution according to the other of the two image data using the other of the two neural networks, The two neural networks are caused to learn to optimize an objective function for approximating the two image data, the objective function including a likelihood of a probability distribution of the second parameter.
