Control method, information processing device and control program
Through the conversion model and the variational autoencoder optimization algorithm, the attack resistance evaluation accuracy of the classification model is improved, the problems of large calculation amount and low accuracy in the existing technology are solved, and a more efficient model reverse attack evaluation is achieved.
Patent Information
- Application Number
- CN202080087277.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-01-17
AI Technical Summary
When evaluating the attack resistance of a classification model generated by machine learning, the existing technology has problems such as large calculation amount, low accuracy and easy to fall into local solutions. In particular, it is difficult to effectively evaluate the security of the classification model during model reverse attacks.
By using a transformation model to convert high-dimensional image data into low-dimensional feature values, extracting feature values according to a specific probability distribution, updating the feature values to improve the confidence of the classification model, and combining variational autoencoders and gradient method optimization algorithms to reduce Number of visits to classification models and local solution risk.
It improves the accuracy of the attack resistance evaluation of the classification model, reduces the calculation amount and local solution risk of the model's reverse attack, and improves the accuracy of the reproducibility of the training data.
Smart Images

Figure CN114868124B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a control method, an information processing device and a control program. Background Art
[0002] There is a situation where a classification model that predicts the category of an object in an input image is generated by machine learning, and the generated classification model is used for image recognition. In the machine learning that generates the classification model, training data is prepared that establishes a correspondence between a sample image and a teacher label representing the category to which the sample image belongs. The training data can be used to generate a classification model that outputs a confidence level representing the possibility that the input image belongs to a specific category. The classification model may be a multi-layer neural network such as a convolutional neural network (CNN).
[0003] Model inversion attacks are discussed as a threat to the security of classification models generated by machine learning. Classification models are characterized by the fact that when an image similar to a sample image included in the training data is input, it often outputs a very high confidence level as the confidence level of the correct answer category. In model inversion attacks, this property is exploited to infer the sample images included in the training data by exploring input images with very high confidence levels for a specific category. When confidential information that should be protected, such as personal information, is included in the training data, there is a risk that the confidential information may be inferred and leaked.
[0004] In addition, as a security technology using machine learning, an intrusion detection system has been proposed that inputs network traffic data into a neural network and determines the type of intrusion based on a feature vector calculated in the neural network.
[0005] Patent Document 1: Japanese Patent Application Publication No. 2018-67304
[0006] When using a classification model generated by machine learning, there is a desire to conduct a trial model reverse attack to evaluate the attack resistance of the classification model. As a simple evaluation method, the following method is considered, that is, repeatedly generating input images, accessing the classification model of the evaluation object and calculating the confidence of a specific category, and slightly correcting the pixel values of the image to increase the confidence, to evaluate whether a sample image with the correct answer can be reproduced.
[0007] However, in the simple evaluation method of repeatedly performing micro-corrections on pixel values, the number of accesses to the classification model is very large, and the amount of calculation is large. In addition, since images are data with large dimensions and high degrees of freedom, there are many cases where local solutions that are not similar to the sample image of the correct answer are encountered, depending on the initial image that was first input. Therefore, there is a problem that it is difficult to accurately evaluate the attack resistance of the classification model within the realistic analysis time range. Summary of the invention
[0008] In one aspect, an object of the present invention is to provide a control method, an information processing device, and a control program for improving the accuracy of evaluating the attack resistance of a learned model.
[0009] In one embodiment, a control method executed by a computer is provided. A classification model and a conversion model are obtained, the classification model calculates a confidence level indicating the possibility that the input image data belongs to a specific category based on the input image data, the conversion model is a model that converts an input feature value having a smaller dimension than the input image data into the input image data, and is generated so that a set of feature values corresponding to a set of image data follows a specific probability distribution, a first feature value is extracted based on the specific probability distribution, the first feature value is converted into first image data using the conversion model, a first confidence level corresponding to the first image data is calculated using the classification model, and based on the specific probability distribution and the first feature value, the feature value input to the conversion model is updated from the first feature value to the second feature value so that the confidence level calculated by the classification model is higher than the first confidence level.
[0010] In one embodiment, an information processing device including a storage unit and a processing unit is provided. In one embodiment, a control program executed by a computer is provided.
[0011] In one aspect, the evaluation accuracy of the attack resistance of the learned model is improved.
[0012] The above and other objects, features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings which illustrate preferred embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a diagram for explaining an example of the information processing device according to the first embodiment.
[0014] Figure 2 This is a diagram showing a hardware example of the information processing device according to the second embodiment.
[0015] Figure 3 This is a diagram showing an input and output example of a classification model.
[0016] Figure 4 is a diagram showing an example of a variational autoencoder.
[0017] Figure 5 : is a figure which shows the first example of training data inference.
[0018] Figure 6 2 is a diagram showing a second example of training data inference.
[0019] Figure 7 It is a diagram showing a third example of training data inference.
[0020] Figure 8 It is a diagram showing a fourth example of training data inference.
[0021] Fig. 9 It is a diagram showing a clipping example of probability distribution.
[0022] Fig.10 This is a block diagram showing a functional example of the information processing device.
[0023] Fig.11 It is a diagram showing an example of information on probability distribution.
[0024] Fig.12 is a diagram showing an example of a vector table.
[0025] Fig.13 : is a flowchart showing a first process example of training data inference.
[0026] Fig.14 This is a flowchart (latter half) showing an example of the first process of training data estimation.
[0027] Fig.15 : is a flowchart showing an example of the second process of training data inference.
[0028] Fig.16 This is a flowchart (latter half) showing an example of the second process of training data estimation. DETAILED DESCRIPTION
[0029] Hereinafter, the present embodiment will be described with reference to the drawings.
[0030] [First embodiment]
[0031] A first embodiment will be described.
[0032] Figure 1 This is a diagram for explaining an example of the information processing device according to the first embodiment.
[0033] The information processing device 10 of the first embodiment evaluates the attack resistance of the learned model generated by machine learning. The attack on the learned model includes a model reverse attack. The model reverse attack infers the training data used in machine learning by giving various input data to the learned model and monitoring the output of the learned model. The reproducibility of the training data varies depending on the learned model subjected to the model reverse attack. The information processing device 10 confirms the reproducibility of the training data by trial model reverse attack and evaluates the attack resistance of the learned model. The information processing device 10 can also be a client device or a server device. The information processing device 10 can also be called a computer, a control device, an analysis device, an evaluation device, a machine learning device, etc.
[0034] The information processing device 10 has a storage unit 11 and a processing unit 12. The storage unit 11 may also be a volatile semiconductor memory such as a RAM (Random Access Memory), or a non-volatile storage device such as a HDD (Hard Disk Drive) or a flash memory. The processing unit 12 is, for example, a processor such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or a DSP (Digital Signal Processor). However, the processing unit 12 may also include an electronic circuit for a specific purpose such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). The processor executes a program stored in a memory such as a RAM (which may also be the storage unit 11). There is also a case where a collection of multiple processors is referred to as a "multiprocessor" or simply a "processor".
[0035] The storage unit 11 stores a classification model 13 and a conversion model 14 .
[0036] The classification model 13 is a learned model of the evaluation object, and calculates the confidence based on the image data. The image data may also be tensor data in which multiple pixel values are arranged in a grid. The confidence is a numerical value indicating the possibility that the input image data belongs to a specific category (image classification). The classification model 13 may also calculate multiple confidences corresponding to multiple categories. The confidence of a certain category may also be a probability indicating the relative likelihood that the input image data belongs to the category among multiple categories. The total value of the confidence of multiple categories may also be 1, and the confidence of each category may also be a real number greater than 0 and less than 1. The higher the confidence of a certain category, the higher the possibility that the input image data belongs to the category.
[0037] The classification model 13 is used for image recognition such as face recognition and text recognition. The classification model 13 includes parameters whose values are determined through machine learning. The classification model 13 can also be a multi-layer neural network such as CNN, and can also include weights assigned to edges between connecting nodes as parameters. The training data used in the generation of the classification model 13 establishes a correspondence between sample image data and a teacher label indicating the category to which the sample image data belongs. For example, the sample image data is facial photo data, and the teacher label is the facial recognition result of the correct answer. In addition, for example, the sample image data is handwritten text data, and the teacher label is the text recognition result of the correct answer.
[0038] Here, the training data may contain secret information such as personal information that should be protected. For example, the correspondence between facial photo data and the name of the person is personal information that should be protected. Since the classification model 13 represents the general relationship between various sample image data and teacher labels, it does not directly provide each secret information. However, when the sample image data is input, the classification model 13 may output a very large numerical value as the confidence of the correct answer category. This gives the attacker a hint to infer the sample image data. Therefore, there is a risk that the model reverse attack is successful and the secret information contained in the training data is leaked.
[0039] In addition, the information processing device 10 can perform a black box attack on the model inversion attack even if the internal structure of the classification model 13 is not known. Therefore, the information processing device 10 does not need to maintain the classification model 13 itself, as long as it can access the classification model 13. For example, the information processing device 10 can also send image data to other information processing devices that have disclosed the classification model 13, and receive the confidence corresponding to the image data from the other information processing devices.
[0040] The conversion model 14 converts the feature value into image data. The image data output by the conversion model 14 can be input to the classification model 13. The input feature value has a smaller dimension than the image data. For example, the feature value is a 48-dimensional vector. The conversion model 14 can also be a multi-layer neural network. In addition, the conversion model 14 can also be generated by the information processing device 10, or obtained from other information processing devices.
[0041] Here, the conversion model 14 is generated so that the set of eigenvalues corresponding to the set of various image data follows a specific probability distribution 15. The probability distribution 15 can also be a normal distribution. For example, the probability distribution 15 is a multivariate normal distribution specified by a specific mean vector and a variance-covariance matrix. The probability distribution 15 assigns a probability density calculated according to a probability density function to an eigenvalue. The probability density of a certain eigenvalue can also be said to represent the probability of occurrence of image data converted from the eigenvalue. Generally speaking, the closer to the average, the greater the probability density, and the farther away from the average, the smaller the probability density.
[0042] The conversion model 14 may also be a decoder included in a variational autoencoder (VAE). For example, the information processing device 10 collects image data that is the same as or the same type as the sample image data used in the machine learning of the classification model 13. The information processing device 10 uses the collected image data to generate a variational autoencoder through machine learning. A variational autoencoder is a multi-layer neural network that includes an encoder that calculates eigenvalues based on image data and a decoder that restores the eigenvalues to image data. Since the encoder includes nodes equivalent to the mean and variance of the eigenvalues, the set of eigenvalues calculated by the encoder often conforms to a specific probability distribution.
[0043] The processing unit 12 performs a model reverse attack on the classification model 13 as follows. The processing unit 12 extracts the eigenvalue 16 (first eigenvalue) based on the probability distribution 15. The eigenvalue 16 can also be randomly extracted according to the probability density shown in the probability distribution 15. For example, the processing unit 12 generates a random number greater than 0 and less than 1, and obtains the eigenvalue with a cumulative probability consistent with the random number. Thus, the higher the probability density, the higher the possibility of extracting the eigenvalue, and the lower the probability density, the lower the possibility of extracting the eigenvalue.
[0044] The processing unit 12 converts the feature value 16 into image data 17 by inputting the feature value 16 into the conversion model 14. The processing unit 12 calculates the confidence 18 corresponding to the image data 17 by inputting the image data 17 into the classification model 13. In the case where the classification model 13 calculates the confidence of multiple categories, a category of an object set as the inferred sample image data is determined. The category of the object can also be specified by the user. In addition, the conversion model 14 is combined with the previous stage of the classification model 13. In the trial of the model reverse attack, the conversion model 14 and the classification model 13 are used as a whole, and the image data 17 as intermediate data can also be taken out without explicit. Therefore, the model after combining the conversion model 14 and the classification model 13 can be regarded as one model to try the model reverse attack.
[0045] The processing unit 12 extracts the eigenvalue 19 (second eigenvalue) based on the probability distribution 15, the eigenvalue 16, and the confidence 18, and updates the eigenvalue 16 to the eigenvalue 19. The eigenvalue 19 is extracted in such a way that the confidence calculated by the classification model 13 is higher than the confidence 18. The processing unit 12 may also use an exploration algorithm of a gradient method such as the steepest descent method. For example, the processing unit 12 calculates the ratio of the change in confidence or the change in the index value corresponding to the confidence to the change in the eigenvalue as a gradient, and determines the eigenvalue 19 based on the calculated gradient and the eigenvalue 16. At this time, the probability density corresponding to the eigenvalue 16 may also be used as a weight coefficient to multiply the confidence 18 to obtain the index value. Thus, the eigenvalue is preferentially explored in the direction in which the probability density becomes higher, which can suppress the generation of image data with a lower probability of occurrence.
[0046] The processing unit 12 inputs the eigenvalue 19 to the conversion model 14. The processing unit 12 searches for eigenvalues with higher confidence by repeatedly updating the eigenvalues, generating image data, and calculating the confidence. The processing unit 12 regards the image data converted from the eigenvalues with sufficiently high confidence as the inference result of the sample image data based on the model reverse attack. In addition, the processing unit 12 can also extract multiple different eigenvalues as initial values based on the probability distribution 15, and repeatedly execute the multiple eigenvalues respectively.
[0047] As described above, instead of directly searching for image data with high confidence, the processing unit 12 searches for feature values on the feature space that follows the probability distribution 15. In the case of a search algorithm using the gradient method, instead of calculating the gradient of the confidence as the gradient of the pixel value with respect to the image data, the gradient of the confidence is calculated as the gradient of the feature value with respect to the feature space.
[0048] In addition, the control method of the information processing device 10 based on the first embodiment can also be expressed as follows. The information processing device 10 extracts a certain value from a value set according to a distribution, and the value set includes a plurality of values corresponding to features of a plurality of image data in a specific distribution and the variables included in each of the plurality of values are fewer than the variables included in each of the plurality of image data. The information processing device 10 obtains the confidence of a specific classification among the confidences of the classifications included in the classification inference result of the classification inference model when the extracted certain value is set as an input value to the classification inference model. The information processing device 10 generates a value having a higher confidence than the obtained confidence of the specific classification included in the classification inference result of the classification inference model when the classification inference model is set as an input value to the classification inference model based on the distribution and the certain value. The "classification inference model" corresponds to, for example, a model after the conversion model 14 is combined at the previous stage of the classification model 13. The "specific distribution" corresponds to, for example, the probability distribution 15. The "variable" corresponds to, for example, an element of each dimension included in a vector. The "certain value" corresponds to, for example, the feature value 16. The "confidence of a specific classification" corresponds to, for example, the confidence 18. “A value higher than the obtained confidence level” corresponds to feature value 19, for example.
[0049] According to the information processing device 10 of the first embodiment, the feature value 16 is extracted based on the probability distribution 15, and the confidence 18 is calculated through the conversion model 14 and the classification model 13. Then, the feature value input to the conversion model 14 is updated from the feature value 16 to the feature value 19, so that the confidence calculated by the classification model 13 is higher than the confidence 18.
[0050] By utilizing a feature space that has a smaller dimension than the image data and has a specific probability distribution, the exploration efficiency can be improved compared to the case of directly correcting the pixels of the image data, and the number of accesses to the classification model 13 can be reduced. In addition, the possibility of generating image data that is significantly different from the sample image data included in the training data and inputting it into the classification model 13 can be reduced, and the possibility of falling into a local solution and failing to infer the sample image data can be reduced. Therefore, the classification model 13 can be efficiently tested for model reverse attack, and the maximum reproducibility of the sample image data can be evaluated with good accuracy. As a result, the evaluation accuracy of the attack resistance of the classification model 13 can be improved.
[0051] [Second Embodiment]
[0052] Next, a second embodiment will be described.
[0053] The information processing device of the second embodiment tests a model reverse attack on a classification model generated by machine learning to evaluate the attack resistance of the classification model. The information processing device of the second embodiment may be a client device or a server device.
[0054] Figure 2 This is a diagram showing a hardware example of the information processing device according to the second embodiment.
[0055] The information processing device 100 of the second embodiment includes a CPU 101, a RAM 102, a HDD 103, a GPU 104, an input interface 105, a medium reader 106, and a communication interface 107. These units of the information processing device 100 are connected to a bus. The information processing device 100 corresponds to the information processing device 10 of the first embodiment. The CPU 101 corresponds to the processing unit 12 of the first embodiment. The RAM 102 or the HDD 103 corresponds to the storage unit 11 of the first embodiment.
[0056] CPU 101 is a processor that executes program commands. CPU 101 loads at least a portion of the program and data stored in HDD 103 into RAM 102 and executes the program. CPU 101 may also have multiple processor cores, and information processing device 100 may also have multiple processors. There are cases where a collection of multiple processors is called a "multiprocessor" or simply a "processor".
[0057] RAM 102 is a volatile semiconductor memory that temporarily stores programs executed by CPU 101 and data used for calculation by CPU 101. Information processing device 100 may include a memory of a type other than RAM, or may include a plurality of memories.
[0058] HDD 103 is a non-volatile storage device that stores software programs such as OS (Operating System), middleware, and application software, as well as data. Information processing device 100 may also include other types of storage devices such as flash memory and SSD (Solid State Drive), or may include multiple storage devices.
[0059] The GPU 104 outputs an image to a display device 111 connected to the information processing device 100 according to a command from the CPU 101. Any type of display device such as a CRT (Cathode Ray Tube) display, a liquid crystal display (LCD: Liquid Crystal Display), an organic EL (OEL: Organic Electro-Luminescence) display, or a projector can be used as the display device 111. An output device other than the display device 111 such as a printer may be connected to the information processing device 100.
[0060] The input interface 105 receives input signals from an input device 112 connected to the information processing apparatus 100. Any type of input device such as a mouse, a touch panel, a touch pad, or a keyboard can be used as the input device 112. The information processing apparatus 100 may be connected to a plurality of types of input devices.
[0061] The medium reader 106 is a reading device that reads programs and data recorded on the recording medium 113. As the recording medium 113, any type of recording medium such as a floppy disk (FD: Flexible Disk), a magnetic disk such as an HDD, an optical disk such as a CD (Compact Disc), a DVD (Digital Versatile Disc), a semiconductor memory, etc. can be used. The medium reader 106, for example, copies the program and data read from the recording medium 113 to other recording media such as RAM102 and HDD103. The read program is executed by CPU101, for example. In addition, the recording medium 113 can also be a portable recording medium, and there are cases where it is used to distribute programs and data. In addition, there are cases where the recording medium 113 and HDD103 are referred to as computer-readable recording media.
[0062] The communication interface 107 is connected to the network 114 and communicates with other information processing devices via the network 114. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router, or a wireless communication interface connected to a wireless communication device such as a base station or an access point.
[0063] Next, the classification model is explained.
[0064] Figure 3 This is a diagram showing an input and output example of a classification model.
[0065] The classification model 141 is generated by machine learning. The classification model 141 is a learned model that receives the image 142 and outputs the confidence data 143. The classification model 141 is a model that classifies the image 142 into any category and is used for image recognition. In the second embodiment, facial recognition is mainly assumed to determine the name of a person based on a facial photo of the person.
[0066] Image 142 is a collection of pixel values arranged in a grid. A pixel value is a numerical value indicating the brightness of a pixel. Image 142 is represented as a tensor as a multidimensional array. When image 142 is a monochrome image, image 142 is represented as a second-order tensor as a two-dimensional array having a specified height and a specified width. When image 142 is a color image, image 142 is represented as a third-order tensor as a three-dimensional array having a specified height, a specified width, and three channels equivalent to RGB (Red Green Blue). The height and width of image 142 input to classification model 141 are pre-adjusted to the specified height and width. Pixel values equivalent to the number of height×width×number of channels are input to classification model 141. This height×width×number of channels is the input dimension.
[0067] Confidence data 143 is output data that lists multiple confidences corresponding to multiple categories. Multiple categories are candidates for categories to be classified as image types. In the case of facial recognition, multiple categories are names of different people. The confidence of a certain category is a numerical value that shows the likelihood that image 142 belongs to the category. The higher the confidence, the higher the possibility that image 142 belongs to the category, and the lower the confidence, the lower the possibility that image 142 belongs to the category. The confidence of each category is a real number greater than 0 and less than 1. The total value of the confidence of multiple categories is 1. For example, for image 142 as a facial photo, the confidence of Alice is 0.80, the confidence of Bob is 0.10, and the confidence of Carol is 0.10. In this case, the person in image 142 is likely to be Alice.
[0068] The classification model 141 is, for example, a multi-layer neural network such as a convolutional neural network (CNN). Generally speaking, a convolutional neural network includes one or more convolutional layers, one or more pooling layers, and one or more fully connected layers.
[0069] The convolution layer performs product-sum operations between the input tensor and a filter called a kernel to generate an output tensor called a feature map. In a typical convolution layer, the height and width of the kernel are smaller than the input tensor, and the height and width of the output tensor are the same as or smaller than the input tensor. The convolution layer stacks the kernel on the input tensor, calculates the product between the elements of the stacked kernel and the elements of the input tensor, and adds the products. The added value becomes the element of the output tensor corresponding to the element of the input tensor overlapped by the center of the kernel. The convolution layer offsets the kernel on the input tensor and repeats the product-sum operation.
[0070] The pooling layer combines multiple consecutive (for example, 2×2=4) elements in the input tensor into one element, and generates an output tensor with a smaller height and width than the input tensor. In the pooling operation, there are maximum pooling that selects the maximum value from multiple elements, average pooling that calculates the average of multiple elements, etc. The fully connected layer calculates a value as the weighted sum of all elements of the input tensor.
[0071] The above-mentioned convolution operation, pooling operation and full connection operation are implemented as a multi-layer neural network. The multi-layer neural network includes an input layer that receives input data, an output layer that outputs output data, and one or more intermediate layers between the input layer and the output layer. Nodes equivalent to neurons are listed in one layer, and edges equivalent to synapses are formed between nodes in adjacent layers. Weights are assigned to the edges. The weights of the edges are parameters calculated by machine learning.
[0072] In learning the classification model 141, training data including a plurality of sets of sample images and sets of teacher labels indicating categories is used. The teacher labels are assigned by the user. In the case of face recognition, a collection of facial photos to which names of various people are assigned is used as training data.
[0073] In the case where the classification model 141 is a multi-layer neural network, for example, the error back propagation method is used in the calculation of the edge weights. In the error back propagation method, the pixel values of the sample image are input to the nodes of the input layer, and the process of multiplying the output values of the nodes of the previous layer by the weights and inputting them to the nodes of the next layer is repeated from the input layer to the output layer. The output value of the output layer is compared with the teacher label and the error is calculated. Then, the gradient (partial differential) of the error relative to the edge weight is calculated in sequence starting from the side close to the output layer, and the weight is updated based on the gradient of the error. The gradient of the error is back propagated from the output layer to the input layer. The input of the sample image, the calculation of the error, and the updating of the weight are repeated for a large number of sample images contained in the training data. In this way, the classification model 141 is generated based on the training data.
[0074] However, in the training data used for generating the classification model 141, there are cases where secret information such as personal information that should be protected is included. For example, there are cases where a group of a facial photo and a name is personal information that should be protected. In this regard, the classification model 141 generated based on the training data only outputs the confidence level corresponding to the input image, and does not directly provide the group of sample images and teacher labels included in the training data. Therefore, if the training data is hidden, even if the classification model 141 is made public, the secret information will not be leaked immediately.
[0075] However, there is a case where a sample image corresponding to a specific category can be inferred based on the confidence of the category by performing a model reverse attack on the classification model 141. This is because, due to the nature of machine learning, if the sample image itself included in the training data is input to the classification model 141, the confidence of the correct answer category output from the classification model 141 is very high. If the reproducibility of the sample image based on the model reverse attack is high, there is a risk of leakage of secret information related to the sample image.
[0076] The reproducibility of the sample image based on the model reverse attack depends on various important factors such as the model structure of the classification model 141, the amount of training data, the nature of the event to be predicted by the classification model 141, etc. Therefore, the information processing device 100 evaluates the resistance of the classification model 141 to the model reverse attack before publishing the classification model 141.
[0077] The information processing device 100 conducts a model reverse attack on the classification model 141 to evaluate the maximum extent to which a sample image corresponding to a specific category can be reproduced, thereby evaluating the attack resistance of the classification model 141. When the reproducibility is low, the attack resistance of the classification model 141 is high (less vulnerable), and when the reproducibility is high, the attack resistance of the classification model 141 is low (more vulnerable). When the attack resistance is evaluated to be low, measures are considered to reduce the risk of leakage of confidential information when the classification model 141 is made public. For example, countermeasures such as reducing the resolution (number of effective digits) of the confidence output by the classification model 141, not outputting the confidence but only outputting the category name with the highest confidence, etc. are considered.
[0078] However, the problem is how to conduct a model reverse attack. In the second embodiment, considering that the attacker cannot obtain the classification model 141, a black box attack is assumed to analyze the input and output of the classification model 141 without using the information of the internal structure of the classification model 141. This is because there is a situation where the classification model 141 itself is not distributed, but the function of the classification model 141 is made public as a service on the network.
[0079] As a simple attack method based on a black box attack, the following method is considered, that is, a certain image is input into the classification model 141 to obtain the confidence of a specific category, and the process of updating the image so that the confidence becomes higher is repeated until the confidence is high enough. In the case of using an exploration algorithm of a gradient method such as the steepest descent method, the gradient of the confidence relative to the pixel value of the image is calculated (the value after the confidence is partially differentiated by the pixel value), and the pixel value is updated according to the gradient.
[0080] However, in the above-mentioned simple attack method, since the dimension of the image is large and the degree of freedom is high, in order to achieve a sufficiently high confidence level, the number of times the image is updated increases, and the number of times the image is input into the classification model 141 increases. For example, there is a case where the number of accesses to the classification model 141 reaches hundreds of millions of times, and even if the time required for each access is 1 millisecond, it may take several days to complete the inference. In addition, when the initial image initially input is a pure white image, a pure black image, or other image that is different in nature from the desired sample image, there is a case where the updated image converges to a local solution. Therefore, there is a case where the image after maximizing the confidence level is significantly different from the sample image, and the model reverse attack fails.
[0081] To address this problem, the information processing device 100 uses a variational autoencoder to test a model inversion attack. The information processing device 100 efficiently evaluates the maximum degree of reproducibility with which the model inversion attack can infer the sample image of the training data. Therefore, the evaluation accuracy of the attack resistance of the classification model 141 is improved. The variational autoencoder used in the second embodiment is described below.
[0082] Figure 4 is a diagram showing an example of a variational autoencoder.
[0083] The variational autoencoder 151 is a type of autoencoder. The autoencoder generates a multi-layer neural network through machine learning in a manner that the input data is equal to the output data. The autoencoder compresses the input data into a vector with a smaller dimension than the input data, and restores the output data based on the vector. However, the variational autoencoder 151 is generated as a set of vectors that follow a specific probability distribution. The variational autoencoder 151 includes an encoder 152 and a decoder 153.
[0084] Encoder 152 receives an input of image 157. Encoder 152 is a multi-layer neural network including a plurality of layers. The dimension of the output of encoder 152 is smaller than the dimension of the input of encoder 152. For example, the dimension of each layer of encoder 152 decreases step by step from the input toward the output. Decoder 153 outputs image 158. The height and width of image 158 are the same as image 157. Image 158 is ideally the same as image 157. Decoder 153 is a multi-layer neural network including a plurality of layers. The dimension of the output of decoder 153 is larger than the dimension of the input of decoder 153. For example, the dimension of each layer of decoder 153 increases step by step from the input toward the output.
[0085] Here, between the encoder 152 and the decoder 153, a vector 155 is calculated. The vector 155 is a vector that expresses the features of the image 157 in a low dimension. The dimension of the vector 155 is, for example, 48 dimensions. There are also cases where the vector 155 is called a latent variable, a feature quantity, a feature vector, etc. The vector 155 is mapped to the latent space 154. The latent space 154 is a vector space such as a 48-dimensional space.
[0086] If a set of images of the same type (for example, a set of facial photos, a set of handwritten text) is input to the encoder 152, the set of vectors corresponding to the set of these images has a specific probability distribution such as a normal distribution in the latent space 154. The probability distribution of the latent space 154 is, for example, a multivariate normal distribution defined by a specific mean vector and a variance-covariance matrix with the vector 155 set as a probability variable. However, a probability distribution other than a normal distribution may also be assumed. The probability of occurrence of a specific vector in the set of vectors is approximated by a probability density calculated by a probability density function. Generally, the probability density of a vector that is closer to the mean vector is greater, and the probability density of a vector that is farther away from the mean vector is smaller.
[0087] Since the vector 155 follows a specific probability distribution, the encoder 152 calculates a numerical value equivalent to the mean vector (μ) and a numerical value equivalent to the variance covariance matrix (Σ) for the input image 157. The sampling of the extracted vector 155 is performed according to the probability distribution represented by the numerical value calculated by the encoder 152. For example, a random number 156 (random number ε) is generated based on a standard normal distribution N (0, I) in which the mean vector is a zero vector (0) and the variance covariance matrix is an identity matrix I. The random number 156 is a random number randomly extracted according to the probability density shown by the standard normal distribution. The variance covariance matrix Σ is multiplied by the random number ε to obtain a deviation, and the vector 155 is calculated by adding the mean vector μ to the deviation.
[0088] In the generation of the variational autoencoder 151 based on machine learning, images that are the same as or the same type as the sample images used for the machine learning of the classification model 141 are collected. In the case where the training data itself is available, the sample images contained in the training data can also be used. However, in an actual model reverse attack, since the attacker cannot obtain the training data, it is preferred to use images of the same type as the sample images from the perspective of attack resistance evaluation. For example, in the case where the classification model 141 performs facial authentication, the information processing device 100 collects facial photos that are publicly available on the Internet. In addition, for example, in the case where the classification model 141 performs text recognition, the information processing device 100 collects handwritten text that is publicly available on the Internet.
[0089] The information processing device 100 determines the parameters included in the variational autoencoder 151 by using the collected images as input images and output images of the variational autoencoder 151. Thus, the weights of the edges included in the encoder 152 and the decoder 153 are determined. The edge weights are updated, for example, by the above-mentioned back propagation method.
[0090] If the parameters are determined, the information processing device 100 inputs the set of images generated by the variational autoencoder 151 into the encoder 152 again, and calculates the set of vectors corresponding to the set of images. Then, the information processing device 100 calculates the average vector and the variance covariance matrix based on the set of vectors. The average vector is a vector that averages the elements of the vector for each dimension. The variance covariance matrix is a square matrix with a side length equal to the number of dimensions. The diagonal components of the variance covariance matrix represent the variance of the elements of each dimension. The non-diagonal components of the variance covariance matrix represent the covariance of the elements between two different dimensions.
[0091] The information processing device 100 regards the entire latent space 154 in which vectors corresponding to various images are drawn as following a probability distribution corresponding to the mean vector and the variance covariance matrix. The assumed probability distribution is, for example, a multivariate normal distribution. In this way, by generating a variational autoencoder 151, a decoder 153 whose input follows a specific probability distribution can be obtained. As described below, the information processing device 100 explores vectors in the latent space 154 instead of directly exploring images with higher confidence.
[0092] Next, the training data inference method as a model reverse attack is described. Four examples are given below as training data inference methods.
[0093] Figure 5 : is a figure which shows the first example of training data inference.
[0094] In the first training data inference method, the information processing device 100 extracts a vector set 161 from the latent space 154 according to the probability distribution calculated when the variational autoencoder 151 is generated. The information processing device 100 randomly extracts a plurality of vectors in a manner that vectors with higher probability density are easier to extract and vectors with lower probability density are more difficult to extract. The vector set 161 includes, for example, 16 vectors.
[0095] The information processing device 100 inputs the vectors included in the vector set 161 to the decoder 153, respectively, and generates an image set 162 corresponding to the vector set 161. The image set 162 includes, for example, 16 images. The information processing device 100 inputs the images included in the image set 162 to the classification model 141, respectively, and generates confidence data 163. The confidence data 163 includes a column of confidence for each image included in the image set 162. The column of confidence is a plurality of confidences corresponding to a plurality of categories.
[0096] The information processing device 100 focuses on a specific category and extracts the confidence of the category of interest from the confidence data 163. The category of interest is predetermined when the model reverse attack is tried. For example, the category of interest is specified by the user. The information processing device 100 calculates the gradient of the confidence based on the pixel value, that is, the value after the confidence is partially differentiated by the pixel value, for each image contained in the image set 162. The gradient of the confidence shows the amount of change in the confidence when the pixel value is changed by a small amount. Based on the gradient, the information processing device 100 updates the pixel value of the image in a manner that increases the confidence. For example, the information processing device 100 multiplies the gradient by a specified learning rate λ to calculate the update amount, so that the pixel value changes by the update amount.
[0097] However, an image whose pixel values are artificially changed may not be a natural image. Therefore, the information processing device 100 inputs the image whose pixel values are changed into the noise filter 164 to remove noise from the image. The noise filter 164 is, for example, a noise removing autoencoder (DAE: Denoising Auto Encoder). The noise removing autoencoder uses the image with added noise as the input image and the original image without added noise as the output image, and is generated by machine learning. Furthermore, the information processing device 100 inputs the image that has passed the noise filter 164 into the sharpening filter 165. The sharpening filter 165 is an image filter that emphasizes edges, such as a Laplace filter. This is because the image that has passed the noise filter 164 tends to become a blurred image.
[0098] The image set 162 is updated using the image that has passed the sharpening filter 165. The information processing device 100 executes a loop of repeatedly generating the confidence data 163 based on the classification model 141 and updating the image set 162. The information processing device 100 may also stop the loop when the number of iterations of the loop reaches a predetermined number. In addition, the information processing device 100 may also stop the loop when the maximum confidence exceeds a threshold. In addition, the information processing device 100 may also stop the loop when the confidence no longer increases.
[0099] The information processing device 100 outputs the image corresponding to the maximum confidence among the confidences calculated so far as the inference result of the sample image corresponding to the category of interest. However, the information processing device 100 may output multiple images from the one with the larger confidence, or may output all images whose confidence exceeds the threshold.
[0100] In the first training data inference method, the initial value of the image set 162 is determined by extracting the vector set 161 from the latent space 154 according to the probability distribution. Therefore, irrelevant images that are obviously not similar to the sample image are suppressed from being input to the classification model 141. Therefore, the number of visits to the classification model 141 can be reduced to shorten the exploration time, and the possibility of finally reaching an image close to the sample image becomes higher.
[0101] Figure 6 2 is a diagram showing a second example of training data inference.
[0102] In the second training data inference method, the information processing device 100 performs the same processing as the first training data inference method as an inner loop. That is, the information processing device 100 generates a vector set 161, converts the vector set 161 into an image set 162 using the decoder 153, and generates confidence data 163 from the image set 162 using the classification model 141. Then, the information processing device 100 updates the image set 162 in such a way that the confidence becomes higher.
[0103] Here, whenever the number of iterations of the inner loop reaches a predetermined number, the information processing device 100 executes the outer loop. As the outer loop, the information processing device 100 inputs the latest images included in the image set 162 to the encoder 152, and generates a vector set 166 corresponding to the image set 162. Since the images included in the image set 162 have been updated, the vector set 166 is different from the vector set 161. However, the number of vectors included in the vector set 166 is the same as that of the vector set 161, for example, 16.
[0104] The information processing device 100 generates evaluation value data 167 based on the vector set 166 and the confidence data 163. The evaluation value data 167 shows the evaluation value of each vector included in the vector set 166. The information processing device 100 may also use the confidence itself of the category of interest as the evaluation value. In addition, the information processing device 100 may also set the probability density of the vector shown in the probability distribution as a regularization term, and use the product of the confidence and the regularization term as the evaluation value. By setting the probability density as the regularization term, the evaluation of the vector corresponding to the natural image with a higher probability of occurrence tends to become higher, and the evaluation of the vector corresponding to the unnatural image with a lower probability of occurrence tends to become lower. In addition, the information processing device 100 may also set an upper limit value for the regularization term as described later, clip the probability density larger than the upper limit value to the upper limit value and use it as the regularization term.
[0105] The information processing device 100 updates the vector set 161 based on the calculated evaluation value. For example, the information processing device 100 sorts the vectors included in the vector set 166 in descending order of evaluation value, selects a specified number or a specified proportion of vectors from the side with a higher evaluation value, and deletes the unselected vectors. Alternatively, the information processing device 100 randomly selects a specified number or a specified proportion of vectors from the vector set 166 so that each vector is selected with a probability of a ratio of the evaluation value. The set of vectors selected here becomes the next vector set 161. In this case, the number of vectors included in the vector set 161 is reduced. During the repetition of the outer loop, the number of vectors can also be reduced step by step.
[0106] In addition, the information processing device 100 may also extract a new vector from the latent space 154 instead of the deleted vector and append it to the vector set 161. During the repetition of the outer loop, the number of vectors included in the vector set 161 may be kept constant by adding new vectors corresponding to the amount deleted. The information processing device 100 may also extract a new vector from the vicinity of the vector that is not deleted but retained. For example, the information processing device 100 defines a probability distribution with a small standard deviation centered on the retained vector, and randomly extracts a new vector based on the probability distribution. Half of the vectors may also be deleted from the vector set 166, and new vectors may be extracted one by one from the vicinity of the retained vector.
[0107] If the number of iterations of the outer loop reaches the threshold, the training data inference is completed. The information processing device 100 outputs the image corresponding to the maximum confidence (or evaluation value) among the confidences (or evaluation values) calculated so far as the inference result of the sample image. However, the information processing device 100 may output multiple images starting from the one with the larger confidence (or evaluation value), or may output all images whose confidence (or evaluation value) exceeds the threshold.
[0108] In the second training data inference method, the update of the image corresponding to the vector with a smaller evaluation value is suspended at an intermediate stage. Therefore, unnecessary exploration of images with a low probability of reaching the sample image is suppressed. In addition, there is a case where a vector near the vector with a higher evaluation value is added as an initial value instead of the vector for which the update of the image is suspended. Therefore, the number of visits to the classification model 141 can be reduced to shorten the exploration time, and the probability of finally reaching an image close to the sample image becomes higher.
[0109] Figure 7 It is a diagram showing a third example of training data inference.
[0110] The third training data inference method performs a single-loop exploration in the same manner as the first training data inference method. However, the exploration object updated during the exploration is replaced by the vector set 161 instead of the image set 162. In the third training data inference method, the image set 162 is intermediate data passed from the decoder 153 to the classification model 141 and has no other use. Therefore, the model formed by combining the decoder 153 at the front stage of the classification model 141 can be virtually regarded as one model. The virtual model receives the vector of the latent space 154 as input and outputs the confidence corresponding to the input vector.
[0111] The information processing device 100 generates a vector set 161, converts the vector set 161 into an image set 162 using the decoder 153, and generates confidence data 163 based on the image set 162 using the classification model 141. The model formed by combining the decoder 153 with the classification model 141 can also be said to generate confidence data 163 based on the vector set 161.
[0112] The information processing device 100 calculates the gradient of the confidence based on the elements of the vector, that is, the value after the confidence is partially differentiated with respect to the elements of the vector, for each vector included in the vector set 161. The gradient of the confidence shows the amount of change in the confidence when the elements of the vector are changed slightly. However, the information processing device 100 may also set the probability density of the vector shown in the probability distribution as a regularization term, and calculate the gradient of the product of the confidence and the regularization term. In addition, the information processing device 100 may also set an upper limit value for the regularization term as described later, clip the probability density greater than the upper limit value to the upper limit value and use it as a regularization term. The information processing device 100 updates the vector based on the gradient so that the confidence becomes higher. For example, the information processing device 100 calculates the update amount by multiplying the gradient by a specified learning rate λ, so that the elements of the vector change the update amount.
[0113] The information processing device 100 may also stop the loop when the number of iterations of the loop reaches a specified number. In addition, the information processing device 100 may also stop the loop when the maximum confidence (or the product of the confidence and the regularization term) exceeds a threshold. In addition, the information processing device 100 may also stop the loop when the confidence (or the product of the confidence and the regularization term) no longer increases. The information processing device 100 outputs the image corresponding to the vector with the maximum confidence (or the product of the confidence and the regularization term) among the confidences (or the product of the confidence and the regularization term) calculated so far as the inference result of the sample image. However, the information processing device 100 may also output images corresponding to multiple vectors starting from the side with the larger confidence (or the product of the confidence and the regularization term), and may also output images corresponding to all vectors whose confidence (or the product of the confidence and the regularization term) exceeds the threshold.
[0114] In the third training data inference method, the exploration space is replaced by a latent space 154 having a smaller dimension than the image space, instead of an image space which is a set of pixel values. Therefore, the number of accesses to the classification model 141 can be reduced, thereby shortening the exploration time. In addition, by using the latent space 154 having a specific probability distribution, it is suppressed that irrelevant images are input to the classification model 141, and the possibility of finally reaching an image close to the sample image becomes higher.
[0115] Figure 8 It is a diagram showing a fourth example of training data inference.
[0116] In the fourth training data inference method, the information processing device 100 performs the same processing as the third training data inference method as an inner loop. That is, the information processing device 100 generates a vector set 161, converts the vector set 161 into an image set 162 using the decoder 153, and generates confidence data 163 based on the image set 162 using the classification model 141. Then, the information processing device 100 updates the vector set 161 in such a way that the confidence (or the product of the confidence and the regularization term) becomes higher.
[0117] Here, each time the number of iterations of the inner loop reaches a specified number, the information processing device 100 executes the outer loop in the same manner as the second training data inference method. However, since the exploration object is not the image set 162 but the vector set 161, the encoder 152 may not be used. That is, the information processing device 100 generates evaluation value data 167 based on the vector set 161 and the confidence data 163. The evaluation value data 167 shows the evaluation value of each vector contained in the vector set 161. The evaluation value may also be the confidence itself, or it may be the product of the confidence and the regularization term. The regularization term may also be the probability density of the vector, or it may be the probability density clipped to a specified upper limit value.
[0118] The information processing device 100 updates the vector set 161 based on the calculated evaluation value. For example, the information processing device 100 selects a specified number or a specified proportion of vectors from the side with a higher evaluation value, and deletes the unselected vectors. Alternatively, the information processing device 100 randomly selects a specified number or a specified proportion of vectors from the vector set 161 so that each vector is selected with a probability of the ratio of the evaluation value, and deletes the unselected vectors. The information processing device 100 may also extract a new vector from the latent space 154 instead of the deleted vector and append it to the vector set 161. For example, the information processing device 100 extracts a new vector from the vicinity of the vector that has not been deleted and is retained. It is also possible to delete half of the vectors from the vector set 161 and extract new vectors one by one from the vicinity of the retained vectors.
[0119] The number of iterations of the inner loop is, for example, 4 times. The number of iterations of the outer loop is, for example, 3 to 6 times. If the number of iterations of the outer loop reaches the threshold, the training data inference is completed. The information processing device 100 outputs the image corresponding to the maximum confidence (or evaluation value) among the confidences (or evaluation values) calculated so far as the inference result of the sample image. However, the information processing device 100 may output multiple images starting from the one with the larger confidence (or evaluation value), or may output all images whose confidence (or evaluation value) exceeds the threshold.
[0120] Next, we will provide additional explanation on the regularization term multiplied by the confidence.
[0121] Fig. 9 It is a diagram showing a clipping example of probability distribution.
[0122] The probability density of a vector is specified by a probability distribution 171 that uses the vector as a probability variable. Generally speaking, the closer a vector is to the average, the greater its probability density is, and the farther a vector is from the average, the smaller its probability density is. In many cases, an image corresponding to a vector that is very far from the average is an image that is far different from the input assumed by the classification model 141. For example, when the classification model 141 performs facial recognition, in many cases, an image corresponding to a vector that is very far from the average does not represent a person's face. In addition, in many cases, when the classification model 141 performs text recognition, in many cases, an image corresponding to a vector that is very far from the average does not represent handwritten text.
[0123] Therefore, by using the probability density as a regularization term and multiplying the confidence by the regularization term, exploration is preferentially performed in a direction close to the average of the probability distribution 171. This can suppress exploration of images that are greatly different from the input assumed by the classification model 141.
[0124] However, the image corresponding to a vector that is too close to the average becomes an "average image" in which the features of various categories are averaged. The average image is different from the sample image corresponding to a specific category and does not meet the purpose of model reverse attack. In contrast, if the probability density itself is used as a regularization term, even if the vector is close to the average to a certain extent, it will be explored in a direction that is closer to the average, and there may be a situation where it is too close to the average.
[0125] Therefore, consider setting an upper limit value 172 for the probability distribution 171, and using the upper limit value 172 to trim the regularization term. When the probability density is below the upper limit value 172, the original probability density is used as the regularization term, and when the probability density exceeds the upper limit value 172, the upper limit value 172 is used as the regularization term. That is, the regularization term is limited to below the upper limit value 172. In this way, it is possible to suppress the vector from being too close to the average of the probability distribution 171. The upper limit value 172 can also be specified by the user, or it can be automatically determined by the information processing device 100 based on the probability distribution 171, such as setting the probability density under 3Σ (3 times the standard deviation Σ) to the upper limit value 172.
[0126] Next, the functions of the information processing device 100 will be described.
[0127] Fig.10 This is a block diagram showing a functional example of the information processing device.
[0128] The information processing device 100 includes a classification model storage unit 121, an image storage unit 122, a VAE storage unit 123, and an analysis result storage unit 124. These storage units are implemented using, for example, a storage area of the RAM 102 or the HDD 103. In addition, the information processing device 100 includes a VAE generation unit 131, a training data inference unit 132, and an analysis result display unit 138. These processing units are implemented using, for example, a program executed by the CPU 101.
[0129] The classification model storage unit 121 stores the learned classification model 141. The classification model 141 may be generated by the information processing device 100 or by another information processing device. However, when the model reverse attack is attempted, it is sufficient to be able to access the classification model 141, and the information processing device 100 may not retain the classification model 141 itself. For example, the information processing device 100 may also send the image to another information processing device that discloses the function of the classification model 141, and receive the confidence from the other information processing device.
[0130] The image storage unit 122 stores a collection of images of the same type as the input of the classification model 141. The images stored in the image storage unit 122 are collected from the Internet, for example. For example, when the classification model 141 is a face recognition model, facial photos are collected. When the classification model 141 is a text recognition model, handwritten text is collected.
[0131] The VAE storage unit 123 stores the learned variational autoencoder 151. The variational autoencoder 151 includes a learned encoder 152 and a decoder 153. The variational autoencoder 151 is generated in the information processing device 100. However, in the case where a variational autoencoder 151 corresponding to the type of input of the classification model 141 already exists, the information processing device 100 can also obtain the learned variational autoencoder 151. In addition, the VAE storage unit 123 stores information showing the probability distribution of the vector calculated between the encoder 152 and the decoder 153. In addition, the VAE storage unit 123 stores information showing the upper limit value of the probability density set for the probability distribution of the vector.
[0132] The analysis result storage unit 124 stores analysis results indicating the model reverse attack resistance of the classification model 141. The analysis results include one or more estimated images that are the results of inference of the sample images used in the machine learning of the classification model 141.
[0133] The VAE generation unit 131 uses the image stored in the image storage unit 122 as the input and output of the variational autoencoder 151, and generates the variational autoencoder 151 through machine learning. The weights of the edges between the nodes included in the variational autoencoder 151 are determined by machine learning. The VAE generation unit 131 stores the variational autoencoder 151 including the encoder 152 and the decoder 153 in the VAE storage unit 123. In addition, the VAE generation unit 131 inputs the image stored in the image storage unit 122 to the learned encoder 152, and calculates a set of vectors corresponding to the set of images. The VAE generation unit 131 determines the probability distribution of the calculated set of vectors, and stores information showing the probability distribution in the VAE storage unit 123. For example, the probability distribution is determined by the mean vector and the variance covariance matrix.
[0134] The training data inference unit 132 performs a model reverse attack on the classification model 141 stored in the classification model storage unit 121. The training data inference unit 132 infers the sample image used in the machine learning of the classification model 141 through the model reverse attack, and stores the analysis result including the inferred image in the analysis result storage unit 124. At this time, the training data inference unit 132 executes any one of the four training data inference methods described above. The training data inference unit 132 includes an encoding unit 133, a decoding unit 134, a confidence calculation unit 135, a vector selection unit 136, and an image update unit 137.
[0135] The encoding unit 133 inputs the image to the encoder 152 stored in the VAE storage unit 123, and calculates a vector corresponding to the input image. The encoding unit 133 is used in the second training data inference method. The decoding unit 134 inputs the vector to the decoder 153 stored in the VAE storage unit 123, and generates an image corresponding to the input vector. The confidence calculation unit 135 inputs the image to the classification model 141, and calculates the confidence corresponding to the input image. Multiple confidences corresponding to multiple categories are output from the classification model 141. However, in the model reverse attack, one confidence corresponding to a category of interest is used. The category of interest is specified by the user.
[0136] The vector selection unit 136 sets the upper limit value of the probability distribution and stores information indicating the upper limit value in the VAE storage unit 123. In addition, the vector selection unit 136 extracts the initial value of the vector from the latent space 154 based on the information of the probability distribution stored in the VAE storage unit 123. In the third training data inference method and the fourth training data inference method, the vector selection unit 136 calculates the gradient using the confidence calculated by the confidence calculation unit 135 and updates the vector based on the gradient. In the second training data inference method and the fourth training data inference method, the vector selection unit 136 calculates the evaluation value of the vector and deletes or adds the vector based on the evaluation value.
[0137] The image updating unit 137 calculates the gradient using the confidence calculated by the confidence calculating unit 135, and updates the image based on the gradient. In updating the image, the noise filter 164 and the sharpening filter 165 prepared in advance are used. The image updating unit 137 is used in the first training data inference method and the second training data inference method.
[0138] The analysis result display unit 138 displays the analysis result stored in the analysis result storage unit 124 on the display device 111. For example, the analysis result display unit 138 displays the estimated image on the display device 111. In addition, the information processing device 100 may output the analysis result to another output device, or may transmit the analysis result to another information processing device.
[0139] Fig.11 It is a diagram showing an example of information on probability distribution.
[0140] The VAE storage unit 123 stores a mean vector 125 , a variance-covariance matrix 126 , and a probability density upper limit 127 as information on the probability distribution of the latent space 154 .
[0141] The mean vector 125 represents the mean of the multivariate normal distribution. The mean vector 125 is the average of various vectors calculated by inputting various images into the encoder 152. The variance covariance matrix 126 is a matrix showing the variance of the multivariate normal distribution. The variance covariance matrix 126 is a square matrix with a side length equal to the dimension of the vector. The diagonal components of the variance covariance matrix 126 show the variances of each dimension calculated based on the various vectors described above. The non-diagonal components of the variance covariance matrix 126 show the covariances of two different dimensions calculated based on the various vectors described above. In addition, the vectors calculated by inputting the generated images for the variational self-encoder 151 into the encoder 152 are assumed to follow the multivariate normal distribution.
[0142] The probability density upper limit 127 is an upper limit value that is smaller than the maximum value of the probability density of the multivariate normal distribution determined by the mean vector 125 and the variance-covariance matrix 126. The probability density upper limit 127 may be specified by the user or may be automatically determined based on the determined multivariate normal distribution. For example, the probability density corresponding to the vector located at a position 3Σ (3 times the standard deviation) away from the mean is used as the probability density upper limit 127.
[0143] Fig.12 is a diagram showing an example of a vector table.
[0144] The vector table 128 is maintained by the vector selection unit 136. The vector table 128 establishes correspondence between vectors, confidence, probability density, and evaluation values. The vectors registered to the vector table 128 are vectors included in the latest vector set 161 or the vector set 166. The confidence is the confidence of a specific category calculated by the classification model 141. The probability density is the probability density in the probability distribution of the latent space 154 determined by the average vector 125 and the variance-covariance matrix 126. The evaluation value is the product of the confidence and the regularization term. The regularization term is, for example, the probability density clipped by the probability density upper limit 127. When the probability density is below the probability density upper limit 127, the probability density becomes a regularization term. When the probability density exceeds the probability density upper limit 127, the probability density upper limit 127 becomes a regularization term.
[0145] Next, the process of training data inference is described. First, the process of the fourth training data inference method described above is described. Since the third training data inference method omits the outer loop of the fourth training data inference method, the description thereof is omitted. Then, the process of the second training data inference method described above is described. Since the first training data inference method omits the outer loop of the second training data inference method, the description thereof is omitted.
[0146] Fig.13 : is a flowchart showing a first process example of training data inference.
[0147] (S10) The VAE generation unit 131 collects images of the same type as the input of the classification model 141. Examples of the types of images include facial photos, handwritten text, etc. The VAE generation unit 131 uses, for example, a crawler program that searches and collects images from the Internet.
[0148] (S11) The VAE generation unit 131 generates a variational autoencoder 151 by machine learning using the image collected in step S10. Machine learning is unsupervised learning that assigns the collected image as input and output of the variational autoencoder 151. The variational autoencoder 151 includes an encoder 152 and a decoder 153.
[0149] (S12) The VAE generation unit 131 calculates a set of vectors by inputting the image collected in step S10 to the encoder 152 generated in step S11. The dimension of the vector is, for example, 48 dimensions. The VAE generation unit 131 performs statistical processing on the set of vectors and calculates the mean vector 125 and the variance-covariance matrix 126 showing the probability distribution of the latent space 154. As the probability distribution of the vector, for example, a multivariate normal distribution is assumed.
[0150] (S13) The vector selection unit 136 determines the probability density upper limit 127. The probability density upper limit 127 is a value smaller than the maximum value of the probability density of the probability distribution determined in step S12. For example, the vector selection unit 136 calculates the probability density at a position that is a predetermined multiple of the standard deviation from the average vector 125, and adopts this probability density as the probability density upper limit 127.
[0151] (S14) The vector selection unit 136 selects an object class to be the target of the model reverse attack from among the plurality of classes for which the classification model 141 outputs confidence. The object class is specified by the user of the information processing device 100, for example.
[0152] ( S15 ) The vector selection unit 136 randomly extracts n vectors from the latent space 154 based on the probability distribution indicated by the mean vector 125 and the variance-covariance matrix 126 calculated in step S12 . For example, n=16.
[0153] (S16) The decoding unit 134 selects one vector from the n vectors.
[0154] (S17) The decoding unit 134 inputs the vector selected in step S16 to the decoder 153 generated in step S11 to convert it into an image. The confidence calculation unit 135 inputs the converted image to the classification model 141 to calculate the confidence of a plurality of categories.
[0155] (S18) The vector selection unit 136 calculates the probability density of the vector selected in step S16 based on the probability distribution of step S12. The vector selection unit 136 compares the calculated probability density with the probability density upper limit 127 determined in step S13, and determines the regularization term corresponding to the vector. When the probability density is less than the probability density upper limit 127, the regularization term is the probability density, and when the probability density exceeds the probability density upper limit 127, the regularization term is the probability density upper limit 127.
[0156] (S19) The vector selection unit 136 extracts the confidence of the object category selected in step S14 from the confidences of the multiple categories calculated in step S17. The vector selection unit 136 calculates the product of the extracted confidence and the regularization term determined in step S18, and calculates the gradient of the product of the confidence and the regularization term using the vector as a reference. For example, the gradient is calculated by slightly changing the elements of each dimension of the vector.
[0157] (S20) The vector selection unit 136 updates the vector selected in step S16 using the gradient calculated in step S19. For example, the vector selection unit 136 changes the vector by an amount obtained by multiplying the gradient by a predetermined learning rate.
[0158] (S21) The decoding unit 134 determines whether all the n vectors have been selected in step S16. If all the vectors have been selected, the process proceeds to step S22, and if there are any unselected vectors, the process returns to step S16.
[0159] Fig.14 This is a flowchart (latter half) showing an example of the first process of training data estimation.
[0160] (S22) The vector selection unit 136 determines whether the vector update of steps S16 to S21, i.e., the inner loop, has been repeated L times. For example, L=4. If the number of consecutive iterations of the vector update reaches L times, the process proceeds to step S23. If the number of consecutive iterations is less than L times, the process returns to step S16. In step S16, the n vectors are selected one by one again.
[0161] (S23) The vector selection unit 136 determines whether the vector replacement of steps S24 to S27, i.e., the outer loop, has been repeated K times or less. For example, K = 3 to 6. If the number of iterations of the vector replacement reaches K times, the process proceeds to step S28. If the number of iterations is less than K times, the process proceeds to step S24.
[0162] (S24) The vector selection unit 136 calculates an evaluation value for each of the latest n vectors. The evaluation value is the product of the confidence and the regularization term. The product of the confidence and the regularization term is calculated in the same manner as in the above-mentioned steps S17 to S19.
[0163] ( S25 ) The vector selection unit 136 sorts the latest n vectors in descending order of evaluation values based on the evaluation values calculated in step S24 .
[0164] ( S26 ) The vector selection unit 136 deletes half of the vectors (the last n / 2 vectors) having the lowest evaluation values among the latest n vectors.
[0165] (S27) The vector selection unit 136 extracts n / 2 new vectors near half of the vectors with higher evaluation values (the first n / 2 vectors) from the latent space 154. For example, the vector selection unit 136 defines a probability distribution with a smaller range (smaller standard deviation) with the first n / 2 vectors as the center. The vector selection unit 136 randomly extracts new vectors based on the probability distribution. The first n / 2 vectors are merged with the additional n / 2 vectors to prepare n vectors. Then, the process proceeds to step S16.
[0166] (S28) The vector selection unit 136 selects a vector with a high confidence level or evaluation value. It is preset whether to use the confidence level or the evaluation value as the reference value. For example, the vector selection unit 136 selects a vector with the highest confidence level or evaluation value.
[0167] (S29) The decoding unit 134 inputs the vector selected in step S28 to the decoder 153, and generates an image converted according to the selected vector as an estimated image. The estimated image is an image estimated to be a sample image corresponding to the designated class.
[0168] ( S30 ) The analysis result display unit 138 displays the estimated image on the display device 111 .
[0169] In the case of the third training data inference method, steps S23 to S27 are omitted. When the answer of step S22 is "yes", the process proceeds to step S28.
[0170] Fig.15 : is a flowchart showing an example of the second process of training data inference.
[0171] ( S40 ) The VAE generation unit 131 collects images of the same type as the input of the classification model 141 .
[0172] ( S41 ) The VAE generation unit 131 generates a variational autoencoder 151 by machine learning using the image collected in step S40 . The variational autoencoder 151 includes an encoder 152 and a decoder 153 .
[0173] (S42) The VAE generation unit 131 calculates a set of vectors by inputting the image collected in step S40 to the encoder 152 generated in step S41. The VAE generation unit 131 performs statistical processing on the set of vectors and calculates the mean vector 125 and the variance covariance matrix 126 showing the probability distribution of the latent space 154.
[0174] (S43) The vector selection unit 136 determines the probability density upper limit 127.
[0175] ( S44 ) The vector selection unit 136 selects an object category to be targeted for model reverse attack from among the plurality of categories for which the classification model 141 outputs confidence.
[0176] ( S45 ) The vector selection unit 136 randomly extracts n vectors from the latent space 154 based on the probability distribution indicated by the mean vector 125 and the variance-covariance matrix 126 calculated in step S42 . For example, n=16.
[0177] ( S46 ) The decoding unit 134 inputs the n vectors extracted in step S45 to the decoder 153 generated in step S41 , respectively, and converts them into n images.
[0178] (S47) The confidence calculation unit 135 selects one image from the n images.
[0179] ( S48 ) The confidence calculation unit 135 inputs the image selected in step S47 to the classification model 141 , and calculates the confidences of a plurality of categories.
[0180] (S49) The image updating unit 137 extracts the confidence of the object class selected in step S44 from among the confidences of the plurality of classes calculated in step S48. The image updating unit 137 calculates the gradient of the confidence based on the image. For example, the gradient is calculated by slightly changing each pixel value of the image selected in step S47.
[0181] (S50) The image updating unit 137 updates the image selected in step S47 using the gradient calculated in step S49. For example, the image updating unit 137 changes the pixel value by an amount obtained by multiplying the gradient by a predetermined learning rate. The updated image is input to the noise filter 164 to remove noise, and further input to the sharpening filter 165 for sharpening.
[0182] (S51) The confidence calculation unit 135 determines whether all n images have been selected in step S47. If all images have been selected, the process proceeds to step S52, and if there are any unselected images, the process returns to step S47.
[0183] Fig.16 This is a flowchart (latter half) showing an example of the second process of training data estimation.
[0184] (S52) The vector selection unit 136 determines whether the image update of steps S47 to S51, i.e., the inner loop, has been repeated L times. If the number of consecutive iterations of the image update reaches L times, the process proceeds to step S53. If the number of consecutive iterations is less than L times, the process returns to step S47. In step S47, n images are selected one by one again.
[0185] (S53) The vector selection unit 136 determines whether the vector replacement of steps S54 to S60 below, i.e., the outer loop, has been repeated K times. If the number of iterations of the vector replacement reaches K, the process proceeds to step S61, and if the number of iterations is less than K, the process proceeds to step S54.
[0186] ( S54 ) The encoding unit 133 inputs the latest n images to the encoder 152 generated in step S41 , respectively, and converts them into n vectors.
[0187] (S55) The vector selection unit 136 calculates the probability density of each of the n vectors converted in step S54 based on the probability distribution of step S42. The vector selection unit 136 compares the calculated probability density with the probability density upper limit 127 determined in step S43, and determines the regularization term corresponding to each of the n vectors. When the probability density is less than the probability density upper limit 127, the regularization term is the probability density, and when the probability density exceeds the probability density upper limit 127, the regularization term is the probability density upper limit 127.
[0188] (S56) The vector selection unit 136 calculates an evaluation value for each of the n vectors. The evaluation value is the product of the confidence and the regularization term calculated in step S55.
[0189] ( S57 ) The vector selection unit 136 sorts the n vectors in descending order of the evaluation values based on the evaluation values calculated in step S56 .
[0190] (S58) The vector selection unit 136 deletes half of the vectors (the last n / 2 vectors) having the lowest evaluation values among the n vectors.
[0191] (S59) The vector selection unit 136 extracts n / 2 new vectors near half of the vectors with higher evaluation values (first n / 2 vectors) from the latent space 154. The first n / 2 vectors and the additional n / 2 vectors are combined to form n vectors.
[0192] (S60) The decoding unit 134 inputs the n vectors of step S59 to the decoder 153, respectively, and converts them into n images. Then, the process proceeds to step S47.
[0193] (S61) The image updating unit 137 selects an image with a higher confidence level or evaluation value as an estimated image. It is preset whether to use the confidence level or the evaluation value as a reference value. For example, the image updating unit 137 selects an image with the highest confidence level or evaluation value.
[0194] ( S62 ) The analysis result display unit 138 displays the estimated image on the display device 111 .
[0195] In the case of the first training data inference method, steps S53 to S60 are omitted. When the answer of step S52 is "yes", the process proceeds to step S61.
[0196] According to the information processing device 100 of the second embodiment, a model reverse attack is tried on the classification model 141 that has been learned, and the degree of reproducibility of the sample image used in the machine learning of the classification model 141 is confirmed. Therefore, when the training data contains confidential information such as personal information, the attack resistance of the classification model 141 can be evaluated before the classification model 141 is made public. Therefore, it is possible to suppress the leakage of unwanted information and improve the security of the classification model 141.
[0197] In addition, a variational autoencoder 151 is generated based on an image of the same type as the input of the classification model 141, and an initial image input to the classification model 141 is generated using a decoder 153 included in the variational autoencoder 151. The vector of the input of the decoder 153 has a specific probability distribution such as a normal distribution. Therefore, by selecting a vector based on the probability distribution, a natural initial image can be generated as the input of the classification model 141. Therefore, the number of accesses to the classification model 141 required for exploration convergence can be reduced, and the possibility of finally reaching an image close to the sample image becomes higher.
[0198] In one embodiment, the exploration space is changed from the image space to the vector space, and instead of calculating the gradient of the confidence relative to the image and directly updating the image, the gradient of the confidence relative to the vector is calculated and the vector is updated. The vector space has a smaller dimension than the image space. Therefore, the number of visits to the classification model 141 can be reduced. In one embodiment, a vector with a lower evaluation value is removed from the candidate midway, and a nearby vector of a vector with a higher evaluation value is added to the candidate instead. Therefore, unnecessary exploration with a low probability of reaching the sample image can be suppressed, and the number of visits to the classification model 141 can be reduced.
[0199] In addition, in one embodiment, an index value obtained by multiplying the confidence by the probability density of a vector is used instead of the confidence itself. Therefore, it is possible to prevent the exploration of increasing the confidence from falling into a local solution and exploring unnatural images as input to the classification model 141. In addition, in one embodiment, an upper limit value of the probability density is set, and the probability density after clipping the probability density by the upper limit value is multiplied by the confidence. Therefore, it is possible to prevent the exploration of images that are too close to the average, and the possibility of reaching an image that is close to a sample image corresponding to a specific category becomes higher. As a result, it is possible to efficiently test a model reverse attack on the classification model 141 within a realistic time, and the evaluation accuracy of the attack resistance of the classification model 141 can be improved.
[0200] The above contents are merely representative of the principles of the present invention. Further, a variety of modifications and changes can be made to those skilled in the art, and the present invention is not limited to the correct structures and application examples shown and described in the above contents, and all corresponding modifications and equivalents can be regarded as the scope of the present invention based on the attached claims and their equivalents.
[0201] Description of Reference Numerals
[0202] 10 Information processing device
[0203] 11 Storage
[0204] 12 Processing Department
[0205] 13 Classification Model
[0206] 14 Conversion Model
[0207] 15 Probability Distribution
[0208] 16, 19 Eigenvalues
[0209] 17 Image Data
[0210] 18 Confidence
Claims
1. A control method, performed by a computer: A classification model and a conversion model are obtained, wherein the classification model calculates a confidence level indicating the possibility that the input image data belongs to a specific category based on the input image data, and the conversion model is a model that converts input feature values having a smaller dimension than the input image data into the input image data, and is generated so that a set of feature values corresponding to a set of image data follows a specific probability distribution, Extract the first eigenvalue based on the above specific probability distribution, The first feature value is converted into first image data using the conversion model, and the first confidence level corresponding to the first image data is calculated using the classification model. The weight coefficient is calculated using the first probability density corresponding to the above-mentioned first eigenvalue shown in the above-mentioned specific probability distribution, and the eigenvalue input to the above-mentioned conversion model is updated from the above-mentioned first eigenvalue to the second eigenvalue using the product of the above-mentioned first confidence and the above-mentioned weight coefficient, so that the confidence calculated by the above-mentioned classification model is higher than the above-mentioned first confidence.
2. The control method according to claim 1, in, The computer also generates a variational autoencoder including an encoder that converts the input image data into the input feature value, and a decoder that converts the input feature value into the input image data, and uses the decoder as the conversion model.
3. The control method according to claim 1, in, The computer further sets an upper limit value that is smaller than the maximum value of the probability density shown by the specific probability distribution. In the update to the above-mentioned second eigenvalue, when the above-mentioned first probability density is below the above-mentioned upper limit value, the above-mentioned first probability density is used as the above-mentioned weight coefficient, and when the above-mentioned first probability density exceeds the above-mentioned upper limit value, the above-mentioned upper limit value is used as the above-mentioned weight coefficient.
4. A control method, performed by a computer: A classification model and a conversion model are obtained, wherein the classification model calculates a confidence level indicating the possibility that the input image data belongs to a specific category based on the input image data, and the conversion model is a model that converts input feature values having a smaller dimension than the input image data into the input image data, and is generated so that a set of feature values corresponding to a set of image data follows a specific probability distribution, Extract multiple first eigenvalues based on the above specific probability distribution, The plurality of first feature values are converted into first image data respectively using the conversion model, and the first confidence corresponding to the first image data is calculated using the classification model. Based on the specific probability distribution and the multiple first eigenvalues, the eigenvalues input to the conversion model are updated from the multiple first eigenvalues to multiple second eigenvalues, so that the confidences calculated by the classification model are respectively higher than the first confidences. Based on the second confidences respectively calculated from the plurality of second eigenvalues, the evaluation values of the plurality of second eigenvalues are calculated. At least one second eigenvalue among the plurality of second eigenvalues is selected based on the evaluation value, and other second eigenvalues within a predetermined range from the at least one second eigenvalue are extracted and added as eigenvalues input to the conversion model.
5. An information processing device, in, have: a storage unit storing a classification model and a conversion model, wherein the classification model calculates a confidence level indicating the possibility that the input image data belongs to a specific category based on the input image data, and the conversion model is a model that converts an input feature value having a smaller dimension than the input image data into the input image data, and is generated so that a set of feature values corresponding to a set of image data follows a specific probability distribution; and A processing unit extracts a first eigenvalue based on the above-mentioned specific probability distribution, converts the above-mentioned first eigenvalue into first image data using the above-mentioned conversion model, calculates a first confidence corresponding to the above-mentioned first image data using the above-mentioned classification model, calculates a weight coefficient using a first probability density corresponding to the above-mentioned first eigenvalue shown in the above-mentioned specific probability distribution, and uses the product of the above-mentioned first confidence and the above-mentioned weight coefficient to update the eigenvalue input to the above-mentioned conversion model from the above-mentioned first eigenvalue to the second eigenvalue, so that the confidence calculated by the above-mentioned classification model is higher than the above-mentioned first confidence.
6. A storage medium storing a control program, wherein the control program causes a computer to execute: A classification model and a conversion model are obtained, wherein the classification model calculates a confidence level indicating the possibility that the input image data belongs to a specific category based on the input image data, and the conversion model is a model that converts input feature values having a smaller dimension than the input image data into the input image data, and is generated so that a set of feature values corresponding to a set of image data follows a specific probability distribution, Extract the first eigenvalue based on the above specific probability distribution, The first feature value is converted into first image data using the conversion model, and the first confidence level corresponding to the first image data is calculated using the classification model. The weight coefficient is calculated using the first probability density corresponding to the above-mentioned first eigenvalue shown in the above-mentioned specific probability distribution, and the eigenvalue input to the above-mentioned conversion model is updated from the above-mentioned first eigenvalue to the second eigenvalue using the product of the above-mentioned first confidence and the above-mentioned weight coefficient, so that the confidence calculated by the above-mentioned classification model is higher than the above-mentioned first confidence.
7. A control method, performed by a computer: extracting a value from a set of values including a plurality of values corresponding to features of a plurality of image data in a specific distribution and each of the plurality of values including fewer variables than each of the plurality of image data, according to the distribution; acquiring a confidence level of a specific classification among the confidence levels of classifications included in the classification inference result of the classification inference model when the extracted certain value is used as an input value to the classification inference model, The weight coefficient is calculated using the probability density corresponding to the above-mentioned value shown in the above-mentioned distribution, and the product of the above-mentioned confidence and the above-mentioned weight coefficient is used to generate a value in which the confidence of the above-mentioned specific classification included in the classification inference result of the above-mentioned classification inference model is higher than the above-mentioned confidence obtained when it is used as an input value to the above-mentioned classification inference model.
