Learning device, trained model generation method, computation device, computation method, and program

By determining pruning positions in neural network edges to zero, the method addresses the increased storage issue in adversarial sample robustness, achieving enhanced robustness with reduced capacity.

JP7559953B2Active Publication Date: 2024-10-02NEC CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023534535
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-15
Publication Date
2024-10-02
Estimated Expiration
2041-07-15

AI Technical Summary

Technical Problem

Existing methods for enhancing robustness against adversarial samples in machine learning, such as PEDM, lead to an increase in the number of parameters and storage capacity requirements.

Method used

A method involving a pruning position determining unit that sets the weights of specific edges in a neural network model to zero, creating multiple weak learners from a single model to enhance robustness while reducing storage needs.

Benefits of technology

Enhances robustness against adversarial samples while minimizing the increase in storage capacity by generating multiple weak learners from a single model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559953000006
    Figure 0007559953000006
  • Figure 0007559953000007
    Figure 0007559953000007
  • Figure 0007559953000008
    Figure 0007559953000008
Patent Text Reader

Abstract

In the present invention, a candidate identification unit determines a plurality of candidate patterns related to pruning positions of edges of a neural network model. A pruning position determination unit determines patterns of two or more pruning positions among the plurality of candidate patterns on the basis of training data comprising a set of input samples and output samples, such that the output samples are outputted when the input samples have been inputted to the neural network model to which the weights of the edges related to the pruning positions among the edges of the neural network model are set to zero.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a learning device, a method for generating a trained model, a computing device, a computing method, and a program. [Background technology]

[0002] In machine learning, a known attack technique is called Adversarial Examples, which induces misclassification by adding a predetermined amount of noise to input data. This technique calculates noise based on the computational tendencies of a trained model so that the features of the data to be misclassified are similar. A known technique is called PEDM (Promoting Ensemble Diversity Method), which uses multiple neural network models to make robust predictions against adversarial examples (see, for example, Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Tianyu Pang, Taufik Xu, Chao Du, Ning Chen, Jun Zhu. “Improving Adversarial Robustness via Promoting Ensemble Diversity” ICML, 2019 Summary of the Invention [Problem to be solved by the invention]

[0004] Because PEDM uses multiple neural network models, the number of parameters increases in proportion to the number of neural network models used, which means that the memory capacity required for calculations increases in proportion to the number of neural network models used. An example of the objective of the present disclosure is to provide a learning device, a method for generating a trained model, a computing device, a computing method, and a program that can increase robustness against adversarial samples and suppress an increase in memory capacity, in order to solve the above-mentioned problems. [Means for solving the problem]

[0005] According to a first aspect of the present invention, a learning device includes a reaping position determination unit that determines a plurality of patterns relating to the reaping positions of edges of a neural network model, and the reaping position determination unit determines the plurality of patterns based on learning data that is a set of input samples and output samples so that the output sample is output when the input sample is input to an edge of the neural network model in which the weight of the edge relating to the reaping position is set to zero.

[0006] According to a second aspect of the present invention, a program causes a computer to execute a step of determining a plurality of patterns relating to the cutting positions of edges of a neural network model, based on learning data which is a set of input samples and output samples, such that the output sample is output when the input sample is input to an edge of the neural network model in which the weight of the edge relating to the cutting position is set to zero.

[0007] According to a third aspect of the present invention, a method for determining pruning positions includes a step of determining a plurality of patterns relating to pruning positions of edges of a neural network model, based on training data which is a set of input samples and output samples, such that the output sample is output when the input sample is input to an edge of the neural network model in which a weight of the edge relating to the pruning position is set to zero.

[0008] According to a fourth aspect of the present invention, a calculation device includes a pruning position identification unit that determines a plurality of patterns relating to the pruning positions of edges of a trained neural network model, and a calculation unit that calculates, for each of the plurality of patterns, a representative value of each output data obtained by inputting input data into a partial model in which the weight of the edges of the trained neural network model relating to the pruning positions indicated by the patterns is set to zero.

[0009] According to a fifth aspect of the present invention, a calculation method includes the steps of determining a plurality of patterns relating to the cutting positions of edges of a trained neural network model, and for each of the plurality of patterns, calculating a representative value of each output data obtained by inputting input data into a partial model in which the weight of the edges of the trained neural network model relating to the cutting positions indicated by the pattern is set to zero.

[0010] According to a sixth aspect of the present invention, a program causes a computer to execute the steps of determining a plurality of patterns relating to the pruning positions of edges of a trained neural network model, and for each of the plurality of patterns, calculating a representative value of each output data obtained by inputting input data into a partial model in which the weight of the edges of the trained neural network model relating to the pruning positions indicated by the pattern is set to zero. [Effects of the Invention]

[0011] According to at least one of the above aspects, it is possible to improve robustness against adversarial samples and suppress an increase in storage capacity. [Brief explanation of the drawings]

[0012] [Figure 1] 1 is a schematic block diagram showing the configuration of an authentication system according to a first embodiment. [Figure 2] FIG. 2 is a diagram illustrating the configuration of a classification model learned by the learning device according to the first embodiment. [Figure 3A]4 is a flowchart (part 1) showing a feature model learning method performed by the learning device according to the first embodiment. [Figure 3B] 10 is a flowchart (part 2) showing a feature model learning method performed by the learning device according to the first embodiment. [Figure 4] 4 is a flowchart showing an authentication method performed by the authentication device according to the first embodiment. [Figure 5] 10 is a flowchart showing a feature model learning method performed by a learning device according to a second embodiment. [Figure 6] FIG. 1 is a schematic block diagram showing the basic configuration of a learning device. [Figure 7] FIG. 2 is a schematic block diagram showing the basic configuration of a computing device. [Figure 8] FIG. 1 is a schematic block diagram illustrating the configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0013] First Embodiment <<Authentication system configuration>> Hereinafter, the embodiments will be described in detail with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of an authentication system 1 according to the first embodiment. The authentication system 1 includes a learning device 10 and an authentication device 20. The learning device 10 learns parameters of a feature extraction model so that when biometric data is input, the device outputs features of the biometric data. Examples of biometric data include facial images, vein images, fingerprint data, and voice data. The feature extraction model is represented by a machine learning model such as a neural network. The authentication device 20 uses a feature extraction model (trained model) having parameters trained by the learning device 10 to authenticate a user based on biometric data. Note that, although the authentication system 1 according to the first embodiment includes the learning device 10 and the authentication device 20 as separate devices, this is not limiting. For example, in the authentication system 1 according to other embodiments, the authentication device 20 may have the functions of the learning device 10.

[0014] Configuration of learning device 10 The authentication system 1 according to the first embodiment configures K weak learners for ensemble learning by cutting edges of the classification model M0 in different patterns. That is, the authentication system 1 according to the first embodiment uses partial models of the classification model M0 as weak learners.

[0015] The learning device 10 includes a classification model storage unit 11, a dataset acquisition unit 12, a reaping position determination unit 13, a calculation unit 14, a perturbation generation unit 15, an update unit 16, a model extraction unit 17, and an output unit 18.

[0016] The classification model storage unit 11 stores a classification model M0 configured by a neural network. FIG. 2 is a configuration diagram of the classification model M0 trained by the learning device 10 according to the first embodiment. As shown in FIG. 2, the classification model M0 includes an input layer M01, an intermediate layer M02, and an output layer M03. The input layer M01 outputs input biometric data as a vector to the intermediate layer M02. The intermediate layer M02 is configured by a neural network with two or more layers and has one or more fully connected layers. The intermediate layer M02 may be configured by a CNN (Convolutional Neural Network). The intermediate layer M02 converts the vector input from the input layer M01 into a low-dimensional feature vector and outputs it to the output layer M03. The feature vector is an example of a feature. The output layer M03 converts the feature vector input from the intermediate layer M02 into a P-dimensional vector indicating the posterior probability of the person represented by the feature vector. The classification model storage unit 11 also stores a score used to determine the cutting position for each edge of the classification model M0. The initial value of the score is determined by a random number. The classification model storage unit 11 stores the score for each edge as many times as the number of ensembles K.

[0017] The dataset acquisition unit 12 acquires a training dataset in which biometric data, which is an input sample, is associated with person labels, which are output samples. The person labels are represented by a P-dimensional one-hot vector, where P is the number of people in the dataset.

[0018] The calculation unit 14 calculates an output vector by inputting input data to a partial model in which the edges of the classification model M0 are masked by the mask vector generated by the cutting position determination unit 13.

[0019] The perturbation generation unit 15 calculates a perturbation vector for generating an adversarial sample based on the partial model. The perturbation vector is a vector that is added to input data to change the element with the largest value among the vectors output by the partial model. The perturbation vector can be generated, for example, using the PGD Attack method described in Reference 1 (Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, Adrian Vladu, “Towards Deep Learning Models Resistant to Adversarial Attacks”, ICLR 2018).

[0020] The reaping position determination unit 13 determines a pattern of reaping positions for edges related to the fully connected layer of the intermediate layer M02 based on the score of each edge stored in the classification model storage unit 11. Specifically, the reaping position determination unit 13 generates K mask vectors that mask the edges of the classification model M0 based on a predetermined reaping rate. The mask vector is a vector having elements corresponding to the edges of the classification model M0. Of all the elements of the mask vector, the value of the element corresponding to the reaping rate is 0, and the values ​​of the other elements are 1.

[0021] The update unit 16 uses the learning dataset acquired by the dataset acquisition unit 12 to train the parameters of the classification model M0 so that, when biometric data is input to the classification model M0, a P-dimensional vector indicating the posterior probability of a person corresponding to the biometric data is output. In addition, the update unit 16 updates the score of each edge stored in the classification model storage unit 11.

[0022] The model extraction unit 17 extracts a partial model consisting of an input layer M01 and an intermediate layer M02 from the classification model M0 trained by the update unit 16 as a feature extraction model. The output unit 18 outputs the feature extraction model extracted by the model extraction unit 17 and the multiple mask vectors determined by the reaping position determination unit 13 to the authentication device 20. The output may be performed by communication via a network or the like, or may be performed via a portable storage device.

[0023] 《Learning Method》 3A and 3B are flowcharts showing a feature model learning method performed by the learning device 10 according to the first embodiment. The data set acquisition unit 12 of the learning device 10 acquires a data set prepared in advance from a database (not shown) (step S1). The reaping position determination unit 13 determines a score s for determining the reaping position of an edge based on a random number. ij The initial value of is generated and recorded in the classification model storage unit 11 (step S2). Here, the subscript i of the score indicates the number of the weak learner, and j indicates the number of the edge. That is, i is a natural number equal to or less than the number of ensembles K, and j is a natural number equal to or less than the total number of edges N.

[0024] The calculation unit 14 selects each pair of input and output samples included in the data set acquired in step S1 (step S3), and executes the following process of step S4 for each selected pair.

[0025] The calculation unit 14 inputs the input sample selected in step S3 to the classification model M0 and calculates an output vector (step S4).

[0026] The update unit 16 calculates a first loss function L1 based on the following equation (1) using the output vectors calculated for the multiple input samples and the multiple weak learners (step S5).

[0027]

number

[0028] In equation (1), D represents a set of datasets. θ represents a classification model M0. x represents an input sample. y represents an output sample. f(θ, x) represents an output vector obtained by inputting data x into model θ. That is, in the first embodiment, the first loss function L1 is a cross-entropy error.

[0029] The update unit 16 updates the parameters of the classification model M0 stored in the classification model storage unit 11 so as to reduce the calculated first loss function L1 (step S6). In this way, the update unit 16 can train the parameters of the classification model M0 so that, when biometric data is input to the classification model M0, a P-dimensional vector indicating the posterior probability of a person corresponding to the biometric data is output.

[0030] The update unit 16 determines whether the parameter update process of the classification model M0 has been executed a predetermined first number of epochs (step S7). If the number of executions of the parameter update process of the classification model M0 is less than the first number of epochs (step S7: NO), the learning device 10 returns the process to step S3 and repeats the parameter update process.

[0031] On the other hand, if the number of executions of the parameter update process of the classification model M0 reaches the first epoch number (step S7: YES), the reaping position determination unit 13 generates K mask vectors in which the top k% of elements of the score are set to 1 and the remaining elements are set to 0 (step S8). That is, the reaping position determination unit 13 generates K mask vectors in which the i-th score s of each edge is set to 1 and the remaining elements are set to 0 (step S8). i0 -s iNThe values ​​of are extracted, and a mask vector in which the top k% of elements are set to 1 and the remaining elements are set to 0 is generated as the mask vector for generating the i-th weak learner.

[0032] The learning device 10 selects the generated mask vectors one by one (step S9) and performs the following processing of steps S10 to S13 for each selected mask vector. The calculation unit 14 applies the mask vector selected in step S9 to the classification model M0 trained by the processing of steps S3 to S7, and generates a weak learner in which the transfer functions of some edges in the intermediate layer M02 are replaced with zero (step S10). That is, the calculation unit 14 prunes the edges of the intermediate layer M02.

[0033] The calculation unit 14 selects each pair of input and output samples included in the acquired data set (step S11), and executes the following processing from step S12 to step S13 for each selected pair. Note that the processing from step S11 to step S13 may be executed as a batch process.

[0034] The calculation unit 14 inputs the input sample selected in step S11 to the weak learner generated in step S10 and calculates an output vector (step S12). The perturbation generation unit 15 generates a perturbation vector based on the weak learner generated in step S12 and the input sample selected in step S11 (step S13).

[0035] The update unit 16 calculates a second loss function L2 based on the following equation (2) using the output vectors and perturbation vectors calculated for the multiple input samples and the multiple weak learners (step S14).

[0036]

number

[0037] In equation (2), M k denotes the set of mask vectors with pruning rate k. nindicates the error criterion function expressed by the following equation (2): L d denotes the diversity criterion function expressed by the following equation (3).

[0038]

number

[0039]

number

[0040] In equation (4), θ1,...θ K denotes a weak learner. ∇f(θ, x) denotes a perturbation vector for the combination of model θ and data x. That is, in the first embodiment, the diversity criterion function L d represents the average value of the cosine distance between the perturbation vectors of weak learners. d is an evaluation criterion for updating the score of each edge so that the difference in the calculation results for each pattern of reaping positions becomes larger. One example of a method for expressing the magnitude of the difference in the calculation results is the distance of the calculation results.

[0041] The update unit 16 updates the score for each weak learner by adding the score for an edge whose second loss function L2 has a negative slope and subtracting the score for an edge whose second loss function L2 has a positive slope (step S15). This increases the score for an edge that reduces the second loss function L2. The score update can be performed based on the edge-popup algorithm described in Reference 2 (Vivek Ramanujan, Mitchell Wortsman, Aniruddha Kembhavi, Ali Farhadi, Mohammad Rastegari, “What's Hidden in a Randomly Weighted Neural Network?”, CVPR 2020), for example.

[0042] The update unit 16 determines whether the score update process has been executed a predetermined second number of epochs (step S16). If the score update process has been executed less than the second number of epochs (step S16: NO), the learning device 10 returns the process to step S8 and repeats the generation of the mask vector and the score update process.

[0043] On the other hand, if the number of executions of the score update process reaches the second epoch number (step S16: YES), the model extraction unit 17 extracts a partial model consisting of the input layer M01 and the intermediate layer M02 from the classification model M0 stored in the classification model storage unit 11 as a feature extraction model (step S17). The pruning position determination unit 13 generates K mask vectors in which the top k% of elements of the scores stored in the classification model storage unit 11 are set to 1 and the remaining elements are set to 0 (step S18). The output unit 18 outputs the feature extraction model extracted in step S17 and the mask vector generated in step S18 to the authentication device 20 (step S19). Note that the weak learner is discarded when the learning process ends.

[0044] <Configuration of authentication device 20> Referring to FIG. 1, the authentication device 20 includes a user data storage unit 21, a model acquisition unit 22, an extracted model storage unit 23, a biometric data acquisition unit 24, a weak learner generation unit 25, a feature extraction unit 26, a similarity calculation unit 27, and an authentication unit 28.

[0045] The user data storage unit 21 stores the account data of a user in association with the biometric data of the user. The model acquisition unit 22 acquires a trained feature extraction model and K mask vectors from the learning device 10. The extraction model storage unit 23 stores the trained feature extraction model and K mask vectors acquired by the model acquisition unit 22.

[0046] The biometric data acquisition unit 24 acquires biometric data to be authenticated from a sensor or the like provided in the authentication device 20. The weak learner generation unit 25 generates K weak learners by masking the edges of the feature extraction model with the mask vector stored in the extraction model storage unit 23. In other words, the weak learner generation unit 25 is an example of a pruning position determination unit that determines the pruning position of the edges of the feature extraction model.

[0047] The feature extraction unit 26 uses each generated weak learner to extract sub-feature vectors from the biometric data stored in the user data storage unit 21 and the biometric data acquired by the biometric data acquisition unit 24. The feature extraction unit 26 obtains a feature vector by calculating the element average of the sub-feature vectors obtained from each weak learner.

[0048] The similarity calculation unit 27 calculates the similarity between two feature vectors. Examples of similarity measures include L2 distance, cosine similarity, and PLDA (Probabilistic Linear Discriminant Analysis).

[0049] The authentication unit 28 authenticates whether or not the user is a user stored in the user data storage unit 21, based on the similarity calculated by the similarity calculation unit 27. If the authentication unit 28 determines that the user is a user stored in the user data storage unit 21, it returns the account data of the user.

[0050] Authentication method 4 is a flowchart showing an authentication method performed by the authentication device 20 according to the first embodiment. It is assumed that, prior to execution of the authentication method, the model acquisition unit 22 acquires a trained feature extraction model and K mask vectors from the learning device 10 and stores them in the extraction model storage unit 23.

[0051] The biometric data acquisition unit 24 of the authentication device 20 acquires biometric data from a sensor or the like connected to the authentication device 20 (step S21). The weak learner generation unit 25 applies K mask vectors to the feature extraction model stored in the extraction model storage unit 23, respectively, and generates K weak learners in which the transfer functions of some edges are replaced with zero (step S22).

[0052] The feature extraction unit 26 calculates K sub-feature vectors by inputting the biometric data acquired in step S21 to the K weak learners generated in step S22 (step S23). The feature extraction unit 26 calculates a feature vector by finding the element average of the K sub-feature vectors (step S24).

[0053] Next, the authentication device 20 selects each user stored in the user data storage unit 21 (step S25), and executes steps S26 to S28 described below.

[0054] First, the feature extraction unit 26 calculates K sub-feature vectors by inputting the biometric data associated with the user selected in step S25 to the K weak learners generated in step S23 (step S26). The feature extraction unit 26 calculates a feature vector by averaging the elements of the K sub-feature vectors (step S27). Next, the similarity calculation unit 27 calculates the similarity between the feature vector calculated in step S24 and the feature vector calculated in step S27 (step S28).

[0055] The authentication unit 28 calculates the similarity between the acquired biometric data and each user stored in the user data storage unit 21, and then determines whether any of the calculated similarities exceeds a predetermined authentication threshold (step S29). If all similarities are equal to or less than the authentication threshold (step S29: NO), the authentication unit 28 determines that authentication using the biometric data acquired in step S21 has failed (step S30), and ends the process.

[0056] On the other hand, if at least one similarity exceeds the authentication threshold (step S29: YES), the authentication unit 28 identifies the user with the highest similarity (step S31) and outputs the account data of that user (step S32). Note that the weak learner is discarded when the authentication process is completed.

[0057] Actions and Effects As described above, the authentication system 1 according to the first embodiment can generate multiple weak learners capable of extracting features in the same manner as the feature extraction model by masking one feature extraction model at different positions. This is because the learning device 10 updates the parameters of the classification model M0 so that an output sample is output when an input sample is input to a weak learner with some edges removed from the classification model M0. Because features can be extracted by ensemble computation of K weak learners, the authentication system 1 according to the first embodiment can be said to have high robustness against adversarial samples. Furthermore, because the K weak learners in the first embodiment are generated from one feature extraction model, the authentication system 1 only needs to store one feature extraction model. Therefore, the authentication system 1 according to the first embodiment can suppress an increase in storage capacity despite being capable of ensemble computation using K weak learners.

[0058] The data size of a model obtained by the method described in Non-Patent Document 1, which uses ensemble learning to improve robustness against adversarial samples, is 32×P×K. In contrast, the data size of the classification model M0 according to the first embodiment is 32×P. P indicates the number of parameters of one model, and K indicates the number of models. This is because one parameter is expressed as a 32-bit float. In other words, the data size of the classification model M0 according to the first embodiment can be reduced to 1 / K of the data size of the method described in Non-Patent Document 1.

[0059] Second Embodiment The authentication system 1 according to the first embodiment first learns the parameters of the classification model M0 and then learns the score to generate a mask vector. In contrast, the authentication system according to the second embodiment learns the parameters and score of the classification model M0 in parallel.

[0060] 《Learning Method》 FIG. 5 is a flowchart showing a feature model learning method performed by the learning device 10 according to the second embodiment. The data set acquisition unit 12 of the learning device 10 acquires a data set prepared in advance from a database (not shown) (step S41). The reaping position determination unit 13 determines a score s for determining the reaping position of an edge based on a random number. ij and records it in the classification model storage unit 11 (step S42). Next, the harvesting position determination unit 13 generates K mask vectors in which the top k% of elements in the score are set to 1 and the remaining elements are set to 0 (step S43).

[0061] The learning device 10 selects the generated mask vectors one by one (step S44), and executes the following processes from step S45 to step S48 for each selected mask vector. The calculation unit 14 applies the mask vector selected in step S44 to the classification model M0 stored in the classification model storage unit 11, and generates a weak learner in which the transfer functions of some edges in the intermediate layer M02 are replaced with zero (step S45).

[0062] The calculation unit 14 selects each pair of input and output samples included in the acquired data set (step S46), and executes the following processes from step S47 to step S48 for each selected pair. Note that the processes from step S46 to step S48 may be executed as batch processing.

[0063] The calculation unit 14 inputs the input sample selected in step S46 to the weak learner generated in step S45 and calculates an output vector (step S47). The perturbation generation unit 15 generates a perturbation vector based on the weak learner generated in step S45 and the input sample selected in step S46 (step S48).

[0064] The update unit 16 calculates the third loss function L3 based on the following formula (5) using the output vectors and perturbation vectors calculated for the multiple input samples and multiple weak learners (step S49). n denotes the error criterion function expressed by equation (3) in the first embodiment. ddenotes the diversity criterion function expressed by equation (4) of the first embodiment.

[0065]

number

[0066] The update unit 16 updates the parameters of the classification model M0 stored in the classification model storage unit 11 so as to reduce the calculated loss function L (step S50). At this time, the update unit 16 updates the classification model M0 instead of the weak learner. In this way, the update unit 16 can learn the parameters of the classification model M0 so that, when biometric data is input to the weak learner, a P-dimensional vector indicating the posterior probability of a person corresponding to the biometric data is output.

[0067] Furthermore, the update unit 16 updates the score for each weak learner by adding the score for an edge whose loss function has a negative slope and subtracting the score for an edge whose loss function has a positive slope (step S51). As a result, the score for an edge that reduces the loss function becomes higher.

[0068] The update unit 16 determines whether the parameter update process of the classification model M0 has been performed a predetermined number of epochs (step S52). If the number of times the parameter update process of the classification model M0 has been performed is less than the predetermined number of epochs (step S52: NO), the learning device 10 returns the process to step S43 and repeats the generation of the mask vector and the parameter update process.

[0069] On the other hand, if the number of times the parameter update process for the classification model M0 has been executed reaches a predetermined number of epochs (step S52: YES), the model extraction unit 17 extracts a partial model consisting of the input layer M01 and the intermediate layer M02 from the classification model M0 stored in the classification model storage unit 11 as a feature extraction model (step S53). The reaping position determination unit 13 generates K mask vectors in which the top k% of elements of the scores stored in the classification model storage unit 11 are set to 1 and the remaining elements are set to 0 (step S54). The output unit 18 outputs the feature extraction model extracted in step S53 and the mask vector generated in step S54 to the authentication device 20 (step S55). Note that the weak learner is discarded when the learning process ends.

[0070] Authentication method The authentication method performed by the authentication device 20 according to the second embodiment is the same as that of the first embodiment.

[0071] Actions and Effects Thus, according to the authentication system 1 of the second embodiment, as in the first embodiment, by masking one feature extraction model at different positions, it is possible to generate multiple weak learners that can extract features in the same way as the feature extraction model.

[0072] Other Embodiments Although one embodiment has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design modifications are possible. That is, in other embodiments, the order of the above-described processes may be changed as appropriate. Furthermore, some processes may be executed in parallel.

[0073] Although the learning device 10 and the authentication device 20 according to the above-described embodiment are configured by separate computers, in other embodiments they may be realized by a single computer.

[0074] Although the authentication device 20 according to the above-described embodiment performs authentication processing based on the similarity of features extracted by a feature extraction model, this is not limiting. For example, the authentication device 20 according to another embodiment may perform authentication processing based on the output of the classification model M0. Furthermore, in the above-described embodiment, a computing device using a trained model is applied to the authentication device 20 that performs biometric authentication, but this is not limiting. For example, the computing device according to another embodiment may be a device that performs processing other than biometric authentication, such as a device that inputs data other than biometric data, such as a product image, and determines whether the product is genuine.

[0075] The learning device 10 according to the embodiment described above updates the parameters of the classification model M0 and determines the reaping position, but this is not limiting. For example, the learning device 10 according to another embodiment may determine the reaping position for an existing, trained classification model M0 without performing the learning process for the classification model M0.

[0076] Furthermore, although the learning device 10 according to the above-described embodiment determines the reaping positions based on the scores, this is not limiting. For example, the learning device 10 according to another embodiment may determine K mask vectors by randomly selecting mask vectors from a set of mask vectors with a reaping rate of k% and searching for a combination that reduces the error function shown in equation (2).

[0077] The learning device 10 according to the embodiment described above uses the diversity criterion function shown in Equation (4) to update the parameters of the classification model M0 so as to increase the difference between the calculation results for each reaping position pattern, but this is not limited to this. For example, the learning device 10 according to another embodiment may use a loss function that increases the distance between vectors in which the correct labels are masked, among the calculation results obtained by a weak learner. In other words, the learning device 10 may update the parameters of the classification model M0 without calculating a perturbation vector.

[0078] The authentication device 20 according to the embodiment described above performs an ensemble operation using K mask vectors generated by the learning device 10, but is not limited to this. For example, the authentication device 20 according to another embodiment may perform an ensemble operation using K mask vectors that are arbitrarily determined.

[0079] <Basic configuration> FIG. 6 is a schematic block diagram showing the basic configuration of the learning device 010. In the above embodiment, the learning device 10 shown in FIG. 1 has been described as one embodiment of the learning device 010, but the basic configuration of the learning device 010 is as shown in FIG. That is, the learning device 010 has a reaping position determination unit 011 as a basic component.

[0080] The reaping position determination unit 011 determines a plurality of patterns relating to the reaping positions of edges of the neural network model. Based on learning data which are pairs of input samples and output samples, the reaping position determination unit 011 determines a plurality of patterns so that an output sample is output when an input sample is input to an edge of the neural network model in which the weight of the edge relating to the reaping position is set to zero. The reaping position determination unit 011 corresponds to the reaping position determination unit 13.

[0081] This allows the learning device 010 to improve robustness against adversarial samples and suppress an increase in storage capacity.

[0082] FIG. 7 is a schematic block diagram showing the basic configuration of the arithmetic unit 020. As shown in FIG. In the above embodiment, the authentication device 20 shown in FIG. 1 has been described as one embodiment of the arithmetic device 020, but the basic configuration of the arithmetic device 020 is as shown in FIG. That is, the calculation device 020 basically comprises a reaping position determination unit 021 and a calculation unit 022.

[0083] The pruning position determination unit 021 determines a plurality of patterns of pruning positions of edges of the trained model. The pruning position determination unit 021 corresponds to the weak learner generation unit 25. The calculation unit 022 calculates a representative value of each output data obtained by inputting input data to a partial model in which the weight of the edge of the trained neural network model corresponding to the cutting position indicated by each pattern is set to zero for each of the multiple patterns. The calculation unit 022 corresponds to the feature extraction unit 26.

[0084] This allows the calculation device 020 to increase robustness against adversarial samples and suppress an increase in storage capacity.

[0085] <Computer Configuration> FIG. 8 is a schematic block diagram illustrating the configuration of a computer according to at least one embodiment. The computer 90 includes a processor 91 , a main memory 93 , a storage 95 , and an interface 97 . The above-described learning device 10 and authentication device 20 are implemented in a computer 90. The operations of the above-described processing units are stored in the form of a program in a storage 95. A processor 91 reads the program from the storage 95, loads it into a main memory 93, and executes the above-described processing in accordance with the program. The processor 91 also allocates storage areas in the main memory 93 corresponding to the above-described storage units in accordance with the program. Examples of the processor 91 include a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), and a microprocessor.

[0086] The program may be for realizing some of the functions to be performed by the computer 90. For example, the program may be combined with other programs already stored in storage or implemented in other devices to perform the functions. In other embodiments, the computer 90 may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, some or all of the functions realized by the processor 91 may be realized by the integrated circuit. Such an integrated circuit is also an example of a processor.

[0087] Examples of storage 95 include a magnetic disk, a magneto-optical disk, an optical disk, and a semiconductor memory. Storage 95 may be an internal medium directly connected to the bus of computer 90, or an external medium connected to computer 90 via interface 97 or a communication line. Furthermore, when this program is distributed to computer 90 via a communication line, computer 90 that receives the program may load the program into main memory 93 and execute the above-described processing. In at least one embodiment, storage 95 is a non-transitory tangible storage medium.

[0088] The program may also be a program for realizing some of the above-described functions. Furthermore, the program may be a so-called differential file (differential program) that realizes the above-described functions in combination with another program already stored in storage 95. [Explanation of symbols]

[0089] 1...Authentication system 10...Learning device 11...Classification model storage unit 12...Data set acquisition unit 13...Harvesting position determination unit 14...Calculation unit 15...Perturbation generation unit 16...Update unit 17...Model extraction unit 18...Output unit 20...Authentication device 21...User data storage unit 22...Model acquisition unit 23...Extraction model storage unit 24...Biometric data acquisition unit 25...Weak learner generation unit 26...Feature extraction unit 27...Similarity calculation unit 28...Authentication unit 90...Computer 91...Processor 93...Main memory 95...Storage 97...Interface

Claims

1. A reaping position determination unit that determines a plurality of patterns related to reaping positions of edges of a neural network model, based on learning data that is a pair of an input sample and an output sample, so that the output sample is output when the input sample is input to an edge of the neural network model in which a weight of the edge related to the reaping position is set to zero. A learning device comprising:

2. an update unit that updates parameters of the neural network model based on the learning data so that the output sample is output when the input sample is input; Equipped with The reaping position determination unit determines the plurality of patterns based on the neural network model in which the parameters have been updated. The learning device according to claim 1 .

3. The reaping position determination unit determines the plurality of patterns such that the output sample is output when the input sample is input to an edge of the neural network model in which a weight of an edge related to the reaping position is set to zero, and a difference between the calculation results for each pattern becomes large. The learning device according to claim 1 or 2.

4. On the computer, A step of determining a plurality of patterns relating to the cutting positions of edges of a neural network model, based on learning data which is a set of input samples and output samples, such that the output sample is output when the input sample is input to an edge of the neural network model in which a weight of the edge relating to the cutting position is set to zero. A program for executing the above.

5. A step of determining a plurality of patterns relating to edge pruning positions of a neural network model by a computer, the step of determining the plurality of patterns based on learning data which is a set of input samples and output samples, such that the output sample is output when the input sample is input to an edge of the neural network model in which a weight of the edge relating to the pruning position is set to zero. A pruning position determination method comprising:

6. a pruning position determination unit that determines a plurality of patterns relating to pruning positions of edges of the trained neural network model; a calculation unit that calculates, for each of the plurality of patterns, a representative value of each output data obtained by inputting input data into a partial model in which a weight of an edge related to a reaping position indicated by the pattern among edges of the trained neural network model is set to zero; A computing device comprising:

7. The pruning position determination unit obtains the plurality of patterns determined by the pruning position determination method according to claim 5 . The computing device according to claim 6.

8. The calculation unit inputs the input data to a partial model obtained by removing a subsequent layer of the trained neural network model, thereby obtaining a feature quantity of the input data as the output data. The computing device according to claim 6 or 7.

9. A step of a computer determining a plurality of patterns relating to edge pruning positions of a trained neural network model; a step in which the computer inputs input data into a partial model in which a weight of an edge related to a reaping position indicated by the pattern among edges of the trained neural network model is set to zero for each of the plurality of patterns, and calculates a representative value of each output data obtained by inputting the input data into the partial model; The calculation method includes:

10. On the computer, determining a plurality of patterns of edge pruning positions of the trained neural network model; a step of inputting input data to a partial model in which a weight of an edge related to a cutting position indicated by the pattern among the edges of the trained neural network model is set to zero for each of the plurality of patterns, and calculating a representative value of each output data obtained by inputting input data to the partial model; A program for executing.

Citation Information

Patent Citations

  • Neural network model pruning method and system based on adaptive batch standardization

    CN111222629A

  • Neural network compression method for remote sensing image target detection

    CN112488070A

  • Federated learning model poisoning detection method based on block chain

    CN112671746A

  • Compression of deep neural networks with proper use of mask

    US20180046915A1

  • System and method for training a neural network

    US20180300629A1