Assessment device, alternative model creation device, assessment method and program
The assessment device evaluates AI models' resistance to adversarial examples and membership inference attacks by creating alternative models that simulate these threats, offering metrics for improved model robustness.
Patent Information
- Application Number
- JP2022531194
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-18
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-06-18
AI Technical Summary
Existing AI-based models are vulnerable to both adversarial examples (AEs) and membership inference attacks (MIAs), necessitating an evaluation method that assesses their resistance to both types of threats.
An assessment device and method that includes a query creation unit, MIA execution unit, and alternative model creation unit to evaluate model safety by simulating AEs and MIAs, using GANs to generate queries and create alternative models that emulate the behavior of the target model, with safety evaluation based on similarity and cost metrics.
Enables comprehensive evaluation of model safety against AEs and MIAs, providing indices like similarity, cost, and attack success rate to improve model robustness.
Smart Images

Figure 0007548307000010 
Figure 0007548307000012 
Figure 0007548307000007
Abstract
Description
[Technical field]
[0001] The present invention relates to an assessment device, an alternative model creation device, an assessment method, and a program. [Background technology]
[0002] Patent Document 1 discloses a classification device that detects unknown malware using AI (Artificial Intelligence). Specifically, the document describes a method of learning from benign communication logs that indicate that the communication logs are generated by terminals performing normal communication and communication logs that are generated by terminals infected with malware, creating a classifier, and then using the classifier to inspect unknown communication logs.
[0003] Patent Document 2 discloses a training data evaluation device capable of evaluating the contribution of training data to requirements for identifying an inference target. Specifically, the document describes dividing training data into multiple batch data, and sequentially using the multiple batch data to train a model. The training data evaluation device then stores in a training progress storage unit a model in the process of changing through training in which the batch data are sequentially applied, and information on the batch data that generated each model. Finally, the training data evaluation device applies test data to the multiple models stored in the training progress storage unit to evaluate each model, and selects batch data based on the evaluation results of each model.
[0004] A method called Adversarial Examples (AEs) is known as an attack method against the classification device using AI described in Patent Document 1 (Non-Patent Document 1). This AEs creates data that, when input to the model to be attacked, produces an output different from the expected output, causing misclassification. In particular, in the detection of malware as described in Patent Document 1, if misclassification can be caused by adding some kind of noise, this will be a major security problem, and there is a demand for the development of effective countermeasures.
[0005] Furthermore, Non-Patent Document 2 proposes a method of creating the above-mentioned AEs using a pseudo data creation technique called GAN (Generative Adversarial Network).
[0006] Algorithms for creating models that are robust against the above-mentioned AEs are also being researched. On the other hand, Non-Patent Document 3 reports that models that are robust against AEs are more likely to be successful in Membership Inference attacks (MI attacks, also known as MIA), which infer data used for training. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2019-57016 A [Patent Document 2] JP 2020-21301 A [Non-patent literature]
[0008] [Non-Patent Document 1] Grosse, Kathrin, et al., “Adversarial examples for malware detection”, European Symposium on Research in Computer Security., Springer, Cham, 2017, [online], [Retrieved May 21, 2020], Internet〈URL:https: / / link.springer.com / chapter / 10.1007 / 978-3-319-66399-9_4〉 [Non-Patent Document 2] Weiwei Hu, Ying TAN, “Generating Adversarial Malware Examples for Black-Box Attacks Based on GAN”, [online], [Retrieved May 21, 2020], Internet〈URL:https: / / arxiv.org / abs / 1702.05983〉 [Non-Patent Document 3] Liwei Song, Reza Shokri, Prateek Mittal, “Privacy Risks of Securing Machine Learning Models against Adversarial Examples”, CCS'19: Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, November 2019, Pages 241-257, [online], [Retrieved May 21, 2020], Internet〈URL:https: / / dl.acm.org / doi / 10.1145 / 3319535.3354211〉 Summary of the Invention [Problem to be solved by the invention]
[0009] The following analysis has been given by the present inventor. As described in the Background Art, there is a need to evaluate the safety of a learning model (hereinafter simply referred to as a "model") that is the core of an AI-based system. One of the evaluation items can be resistance to AEs, but if the point made in Non-Patent Document 3 is correct, it is also necessary to evaluate resistance to MI attacks.
[0010] The present invention aims to provide an assessment device, an alternative model creation device, an assessment method, and a program that can evaluate the safety of a model to be evaluated from the standpoint of both resistance to the above-mentioned AEs and resistance to MI attacks. [Means for solving the problem]
[0011] According to a first aspect, there is provided an assessment device that is accessible to an alternative model creation device including a query creation unit that creates a first query for causing the model to be evaluated to perform inference and obtain an inference result, an MIA execution unit that performs a Membership Inference attack using the inference result obtained by inputting the first query into the model to be evaluated as input, and estimates virtual training data used to train the model to be evaluated, and an alternative model creation unit that creates an alternative model that emulates the behavior of the model to be evaluated using the virtual training data, and the assessment device includes a safety evaluation unit that transmits a second query to each of the alternative model and the model to be evaluated and evaluates the safety of the model to be evaluated using the result.
[0012] According to a second aspect, there is provided an alternative model creation device including: a query creation unit that creates a first query for causing a model to be evaluated to perform inference and obtain an inference result; an MIA execution unit that performs a Membership Inference attack using the inference result obtained by inputting the first query into the model to be evaluated to create virtual training data used for training the model to be evaluated; and an alternative model creation unit that uses the virtual training data to create an alternative model that emulates the behavior of the model to be evaluated.
[0013] According to a third aspect, there is provided a method for assessing the safety of a model to be evaluated, the method comprising: a query creation unit that creates a first query for making the model to be evaluated perform inference and obtain an inference result; an MIA execution unit that performs a Membership Inference attack using an inference result obtained by inputting the first query into the model to be evaluated and estimates virtual training data used to train the model to be evaluated; and an alternative model creation unit that creates an alternative model that emulates the behavior of the model to be evaluated using the virtual training data; a computer that can access an alternative model creation device including: a query creation unit that creates a first query for making the model to be evaluated perform inference and obtain an inference result; a MIA execution unit that performs a Membership Inference attack using an inference result obtained by inputting the first query into the model to be evaluated and estimates virtual training data used to train the model to be evaluated; and an alternative model creation unit that uses the virtual training data to create an alternative model that emulates the behavior of the model to be evaluated; the computer transmits a second query to the alternative model and the model to be evaluated, respectively, and evaluates the safety of the model to be evaluated using the inference results of the alternative model and the model to be evaluated in response to the second query. The above method is linked to a specific machine, that is, a computer that can transmit the second query to the alternative model and the model to be evaluated, respectively, and receive the inference results.
[0014] According to a fourth aspect, there is provided a computer program for implementing the functions of the computer described above. This program is input to the computer device from an input device or from the outside via a communication interface, stored in a storage device, drives the processor according to a predetermined step or process, and can display the process result including an intermediate state at each stage via a display device as necessary, or can communicate with the outside via the communication interface. For example, the computer device for this purpose typically includes a processor, a storage device, an input device, a communication interface, and a display device as necessary, which are accessible to each other via a bus. Moreover, this program can be recorded on a computer-readable (non-transitive) storage medium. Effect of the Invention
[0015] According to the present invention, it is possible to evaluate the safety of a model to be evaluated from the standpoint of both resistance to the above-mentioned AEs and resistance to MI attacks. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram for explaining the operation of one embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram for explaining the operation of one embodiment of the present invention. [Figure 4] 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention. [Diagram 5] FIG. 2 is a sequence diagram illustrating an operation of the first exemplary embodiment of the present invention. [Figure 6] FIG. 11 is a block diagram showing a configuration of a second exemplary embodiment of the present invention. [Figure 7] FIG. 11 is a sequence diagram illustrating an operation of the second exemplary embodiment of the present invention. [Figure 8] FIG. 11 is a block diagram showing a configuration of a third exemplary embodiment of the present invention. [Figure 9] FIG. 13 is a block diagram showing a configuration of a fourth embodiment of the present invention. [Figure 10] FIG. 13 is a sequence diagram illustrating an operation of the fourth exemplary embodiment of the present invention. [Figure 11] FIG. 13 is a block diagram showing a configuration of a fifth exemplary embodiment of the present invention. [Figure 12] FIG. 13 is a sequence diagram illustrating an operation of the fifth exemplary embodiment of the present invention. [Figure 13] FIG. 2 is a diagram showing the configuration of a computer constituting the alternative model creation device or assessment device of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] First, an outline of one embodiment of the present invention will be described with reference to the drawings. The reference numerals in the drawings are added to each element for convenience as an example to aid in understanding, and are not intended to limit the present invention to the illustrated embodiment. The connection lines between blocks in the drawings and the like referred to in the following description include both bidirectional and unidirectional. The unidirectional arrows are used to show the flow of the main signal (data) and do not exclude bidirectionality. The program is executed via a computer device, which includes, for example, a processor, a storage device, an input device, a communication interface, and a display device as necessary. The computer device is configured to be able to communicate with devices (including computers) inside or outside the device via the communication interface, regardless of whether it is wired or wireless. The connection points of the input and output of each block in the drawing include ports or interfaces, but are not shown. In the following description, "A and / or B" is used to mean A or B, or A and B.
[0018] In one embodiment, the present invention can be realized in a configuration including an alternative model creation device 200 and an assessment device 300, each of which can access an evaluation target device 100 that holds an evaluation target model, as shown in FIG.
[0019] The alternative model creation device 200 includes a query creation unit 201, an MIA execution unit 202, and an alternative model creation unit 203. The query creation unit 201 creates a first query for making an evaluation target model perform inference and obtain an inference result. The MIA execution unit 202 inputs the first query into the evaluation target model and uses the inference result obtained as an input to perform a Membership Inference attack, thereby estimating virtual training data used to train the evaluation target model. Then, the alternative model creation unit 203 uses the virtual training data to create an alternative model that emulates the behavior of the evaluation target model.
[0020] The assessment device 300 is capable of accessing each of the alternative model creation device 200 and the evaluation target device 100 that holds the model to be evaluated. The assessment device 300 includes a safety evaluation unit 301 that transmits a second query to each of the alternative model and the model to be evaluated, and evaluates the safety of the model to be evaluated using the results.
[0021] The above-mentioned alternative model creation device 200 and assessment device 300 each operate as follows. First, the alternative model creation process by the alternative model creation device 200 will be described with reference to Fig. 2. In the following description, the model to be evaluated is represented as an evaluation target model f, and the inference result obtained by inputting a query x is represented as f(x).
[0022] First, the alternative model creating device 200 generates a first query x for making the model to be evaluated perform inference and obtaining an inference result. 0 Create a.
[0023] The alternative model creating device 200 sends a first query x to the evaluation target device 100. 0 and the evaluation target device 100 transmits the inference result f(x 0 Next, the substitution model creating device 200 obtains the inference result f(x 0 ) as input, and perform a Membership Inference attack to estimate the virtual training data used to train the model f to be evaluated. For example, the alternative model creation device 200 performs a Membership Inference attack using the first query x 0 is data used in training the model f to be evaluated. By repeating the creation of the first query and the Membership Inference attack on the inference result, the alternative model creation device 200 can obtain a set of virtual training data (virtual training data).
[0024] The alternative model creation device 200 uses the virtual training data obtained as described above to create an alternative model that emulates the behavior of the model to be evaluated. In the following description, the alternative model that emulates the behavior of the model f to be evaluated is represented as model g, and the inference result obtained by inputting a query x is represented as g(x).
[0025] Next, the evaluation of the evaluation target model f by the assessment device 300 will be described with reference to FIG. 3. The assessment device 300 assigns a second query x 1 and using the result, evaluate the safety of the model to be evaluated. Various methods can be used to evaluate the safety of the model to be evaluated. For example, the degree of agreement between the inference result g(x) and the inference result f(x) can be used as an evaluation value of the safety of the model f to be evaluated. When this degree is high, it is highly likely that at least the data used for training of the model f to be evaluated has been identified by the MIA, and it can be said that the model f to be evaluated is vulnerable to model extraction attacks (substitute model creation attacks).
[0026] Furthermore, the number of first queries required until the degree of match between the inference result g(x) and the inference result f(x) reaches a certain level can be used as an evaluation value for the safety of the model f to be evaluated. If a small number of first queries are required, it means that an alternative model with a certain level of accuracy can be created at a lower cost, and the model f to be evaluated can be said to be vulnerable to model extraction attacks (alternative model creation attacks).
[0027] As described above, according to this embodiment, it is possible to create alternative models g that emulate the behavior of the model f to be evaluated, and to evaluate the safety of the model f to be evaluated using the results obtained by inputting a second query to each of the alternative models g.
[0028] [First embodiment] Next, a first embodiment of the present invention will be described in detail with reference to the drawings. Fig. 4 is a block diagram showing the configuration of the first embodiment of the present invention. Referring to Fig. 4, an evaluation target device 100, a substitute model creation device 200, and an assessment device 300a are shown in a configuration in which they are interconnected.
[0029] The evaluation target device 100 is a device that holds a model f and provides a service. In this embodiment, the model f is the target of safety evaluation. When the evaluation target device 100 is installed in a company or a store, the connection between the evaluation target device 100 and the alternative model creation device 200, and between the evaluation target device 100 and the assessment device 300a may be the Internet.
[0030] The substitute model creating device 200 includes a query creating unit 201, an MIA executing unit 202, and a substitute model creating unit 203, and creates a substitute model that emulates the behavior of a model to be evaluated.
[0031] The query creation unit 201 creates a first query for making the model to be evaluated perform inference and obtaining an inference result. The first query may be created using the GAN used to create AEs in Non-Patent Document 2. In addition, it is preferable that the query creation unit 201 creates N queries, which is larger than the number M of virtual training data required by the substitute model creation unit 203 to create the substitute model.
[0032] The MIA execution unit 202 performs MIA using the inference result f(x) obtained by inputting the first query to the model f to be evaluated. Specifically, the MIA execution unit 202 holds a classifier that uses the inference result f(x) to identify whether x is data used in training the model f, and uses the output to calculate a score indicating whether x is data used in training the model f. By collecting data x whose score is equal to or higher than a predetermined value and its label y, or data x whose score is equal to or higher than a predetermined rank and its label y, a data set that is assumed to have been used in training the model f to be evaluated can be obtained. Hereinafter, this data set is referred to as virtual training data. As described above, when N queries are created in the query creation unit 201, the MIA execution unit 202 selects the top M virtual training data with the highest scores using the N inference results as input.
[0033] The substitute model creation unit 203 uses the virtual training data obtained in this manner to create a substitute model g that emulates the behavior of the model f to be evaluated. As a method for creating the substitute model g, various machine learning algorithms that create a model from training data can be used. Of course, if the machine learning algorithm used to create the model f can be estimated, it is preferable to use the same machine learning algorithm.
[0034] The assessment device 300a includes a safety evaluation unit 301 including a similarity calculation unit 3011. The similarity calculation unit 3011 inputs a second query to each of the alternative model g and the model f to be evaluated, and calculates the similarity between the inference results g(x) and f(x). The similarity calculation unit 3011 creates a predetermined number of second queries, and calculates the rate at which the inference results obtained by each of the second queries match as the similarity. Such a similarity can be used as an evaluation value indicating the safety of the model f to be evaluated. Note that, when the inference result of the model f to be evaluated is a score, the distance between g(x) and f(x) can be used to calculate this similarity.
[0035] Next, the operation of this embodiment will be described in detail with reference to the drawings. Fig. 5 is a sequence diagram for explaining the operation of the first embodiment of the present invention. Referring to Fig. 5, first, the alternative model creating device 200 creates a first query x 0 Then, the first query x 0 (Step S001). The evaluation target device 100 transmits the first query x to the alternative model creation device 200. 0 The inference result f(x 0 ).
[0036] The substitution model generating device 200 generates an inference result f(x 0 ), and executes a process of extracting virtual training data (step S002). The alternative model creation device 200 repeats the above process until a necessary number of pieces of virtual training data (the batch size is M) for learning the alternative model g is obtained. Specifically, the alternative model creation device 200 extracts the inference result f(x 0 ) to x 0 A score is calculated to indicate the degree to which each query is a training data for model f, and the first queries with the top M scores and their labels are extracted as virtual training data.
[0037] The replacement model creating device 200 creates a replacement model g (step S003) using the batch size M of virtual training data. With the above, the creation of the replacement model g by the replacement model creating device 200 is completed.
[0038] Next, the assessment device 300a starts to evaluate the model f to be evaluated. First, the assessment device 300 evaluates the second query x 1 and then, a second query x is generated for the evaluation target device 100 and the substitution model creation device 200. 1 (Step S004).
[0039] The evaluation target device 100 transmits a second query x to the assessment device 300a for the model f. 1 The inference result f(x 1Similarly, the alternative model creation device 200 returns a second query x to the alternative model g to the assessment device 300a. 1 The inference result g(x 1 ).
[0040] The assessment device 300a repeats the above step S004 as many times as necessary to calculate the similarity. Finally, the assessment device 300a outputs the inference result f(x 1 ) and the inference result g(x 1 ) is calculated (step S005).
[0041] The similarity p calculated in this way indicates that the behavior of the target model f is more accurately reproduced the larger its value, and therefore can be used as an index of the safety of the model f being evaluated.
[0042] [Second embodiment] Next, a second embodiment of the present invention, in which the cost for creating an alternative model g with a certain degree of accuracy is calculated as an index value indicating the safety of a model f to be evaluated, will be described in detail with reference to the drawings. Fig. 6 is a block diagram showing the configuration of the second embodiment of the present invention. The difference from the first embodiment shown in Fig. 4 is that a cost calculation unit 3012 is provided in the safety evaluation unit 301 of the assessment device 300b instead of the similarity calculation unit 3011. Since the other configurations are the same as those of the first embodiment, the following description will focus on the differences.
[0043] The cost calculation unit 3012 inputs a second query to each of the substitute model g and the model f to be evaluated, and calculates the similarity between the respective inference results g(x) and f(x). Furthermore, if the similarity does not reach a predetermined value, the cost calculation unit 3012 instructs the substitute model creation device 200 to update the substitute model g. Then, when a certain degree of similarity is obtained, the cost calculation unit 3012 calculates the creation cost of the substitute model g. The creation cost of the substitute model g can be calculated, for example, by obtaining the number of times the second query is transmitted, as well as the number of times the first query is transmitted from the substitute model creation device 200, the number of virtual training data, and the like.
[0044] Next, the operation of this embodiment will be described in detail with reference to the drawings. Fig. 7 is a sequence diagram for explaining the operation of the second embodiment of the present invention. The processes of steps S101, S102, and S103 in Fig. 7 are similar to steps S001, S002, and S003 in the first embodiment, and therefore the description will be omitted. Note that the alternative model is not created from scratch, but may be created in advance using M pieces of virtual training data, for example, as in the first embodiment.
[0045] Next, the assessment device 300b starts to evaluate the model f to be evaluated. First, the assessment device 300 evaluates the second query x 1 and then, a second query x is generated for the evaluation target device 100 and the substitution model creation device 200. 1 (Step S104).
[0046] The evaluation target device 100 transmits a second query x to the assessment device 300b for the model f. 1 The inference result f(x 1 Similarly, the alternative model creation device 200 returns a second query x to the alternative model g to the assessment device 300b. 1 The inference result g(x 1 ).
[0047] The assessment device 300b receives the inference result f(x 1) and the inference result g(x 1 ) (step S105). If the similarity p is not equal to or greater than a predetermined threshold, the assessment device 300b requests the alternative model creation device 200 to execute the processes from step S101 onwards.
[0048] When the similarity p reaches or exceeds a predetermined threshold, the assessment device 300b calculates the creation cost of a substitute model g having the predetermined similarity (step S106). The creation cost of the substitute model g can be calculated using, for example, the number of times the first and second queries are transmitted and the number of virtual training data.
[0049] The creation cost of the alternative model g calculated in this way can be used as an index value indicating the safety of the model f being evaluated, since the smaller the value, the easier it is to create an alternative model that emulates the behavior of the target model f.
[0050] [Third embodiment] The assessment device 300a of the first embodiment and the assessment device 300b of the second embodiment described above can also be realized as a single device. Fig. 8 is a block diagram showing the configuration of the third embodiment of the present invention. The difference from the first and second embodiments shown in Figs. 4 and 6 is that a similarity calculation unit 3011 and a cost calculation unit 3012 are provided in the safety evaluation unit 301c of the assessment device 300c. The basic configuration and operation are the same as those of the first and second embodiments, so a description thereof will be omitted.
[0051] In this embodiment, for example, an evaluation value a indicating the safety of a model f to be evaluated can be calculated by the following formula. a = w * (p / q + d) (1) Here, d is the number of data used in the attack, q is the number of queries used in the attack, and w is the weight.
[0052] As is clear from formula (1), the larger q+d is, the smaller a is. "Large q+d" means that the amount of data or number of queries required for an attack is large. Therefore, a in formula (1) can be used as an index value that indicates that the smaller it is, the more difficult the attack is.
[0053] In addition, the smaller the similarity p, the smaller the a in formula (1). When the similarity is small, it means that the accuracy of the alternative model g is low. In this respect, the smaller a in formula (1) can be used as an index value indicating that an attack is more difficult.
[0054] The larger the value of the weight w, the larger the value of a in formula (1). By adjusting the weight, it is possible to adjust whether the situation is favorable for an attacker. For example, there are several possible attack scenarios for the model f to be evaluated, such as being able to attack with just the output label, or being unable to attack without both the label and the score. By performing an evaluation using the above formula (1), which expresses these as weights, it becomes possible to compare different models with the same evaluation value a.
[0055] In addition, it can be said that the smaller the value of a in the above formula (1), the more difficult it is for an attacker to carry out an attack. In other words, it can be said that an attack on a model with a high a is costly. Instead of the evaluation value a, 1 / a can be used as an index value representing the cost of attacking model f.
[0056] [Fourth embodiment] Adversarial Examples (AEs) can be created using the substitute model g obtained by the substitute model creation device 200 of the first to third embodiments described above (see Non-Patent Document 1). Next, a fourth embodiment will be described in which AEs are created using the substitute model g, an attack is attempted on the evaluation target model f, and the result is output as an evaluation value.
[0057] Fig. 9 is a block diagram showing the configuration of the fourth embodiment of the present invention. The difference from the first to third embodiments shown in Fig. 4, Fig. 6 and Fig. 8 is that a target model attack unit 302 is added to an assessment device 300d in addition to a safety evaluation unit 301. Other than that, the basic configuration and operation are similar to those of the first to third embodiments, so the following explanation will focus on the differences.
[0058] The target model attacking unit 302 creates Adversarial Examples (AEs) using the substitute model g created by the substitute model creation device 200. Then, the target model attacking unit 302 transmits the AEs to the evaluation target device 100 and calculates statistics on whether the model f to be evaluated has malfunctioned. When the target model attacking unit 302 creates the AEs, the condition may be that the similarity between the model f to be evaluated and the substitute model g is equal to or greater than a predetermined threshold value.
[0059] Next, the operation of this embodiment will be described in detail with reference to the drawings. Fig. 10 is a sequence diagram for explaining the operation of the fourth embodiment of the present invention. In the following explanation, it is assumed that the creation of the replacement model has been completed, as in the first to third embodiments.
[0060] First, the assessment device 300d creates an AE (represented by x' in FIG. 10) using a substitute model g and transmits it to the evaluation target device 100 (step S201). The evaluation target device 100 returns to the assessment device 300d an inference result f(x') obtained by inputting the AE x' into the model f.
[0061] After repeatedly creating and transmitting AEs as described above, the assessment device 300d calculates the rate at which the evaluation target device 100 returns an incorrect inference result, and outputs the calculated rate as an attack success rate (step S202).
[0062] According to the fourth embodiment described above, the model f to be evaluated can be evaluated from the viewpoint of resistance to AEs in addition to the viewpoint of the similarity of the alternative model g and the creation cost. In general, if an attack by AEs is likely to be successful, it is considered that the alternative model g behaves similarly to the model f to be evaluated. Therefore, this attack success rate can be used as an index value instead of the similarity p in the first to third embodiments.
[0063] Furthermore, the manager of the model f to be evaluated updates the model f to be more robust against AEs in order to reduce the success rate of the attack. On the other hand, according to Non-Patent Document 3, a model that is robust against AEs is said to be more likely to be successful in an MI attack. This means that the MIA execution unit 202 of the replacement model creation device 200 can easily extract good quality virtual training data. As a result, the replacement model g also approaches the model f to be evaluated, and AEs with a higher attack success rate can be created. By utilizing this characteristic, in this embodiment, it is possible to request the manager of the model f to be evaluated to plan more effective measures against AEs. If the model f' to be evaluated after updating is robust against AEs but has a lower attack success rate by the assessment device 300d of this embodiment, it can be evaluated that the resistance to AEs has been improved.
[0064] [Fifth embodiment] A second cost calculation function for calculating the cost required for creating AEs can be added to the configuration of the fourth embodiment described above. Next, a fifth embodiment in which a second cost calculation function for calculating the cost required for creating AEs is added will be described. FIG. 11 is a block diagram showing the configuration of the fifth embodiment of the present invention. The difference from the fourth embodiment shown in FIG. 9 is that an attack cost calculation unit 303 is added to the assessment device 300e. The other configurations are the same as those of the fourth embodiment, so the following description will focus on the differences.
[0065] The attack cost calculation unit 303 calculates the attack success rate each time it creates an AE and transmits it to the evaluation target device 100. Furthermore, if the attack success rate is not a predetermined value, the attack cost calculation unit 303 instructs the substitute model creation device 200 to update the substitute model g. Then, when the attack success rate reaches or exceeds the predetermined value, the attack cost calculation unit 303 calculates the cost of an attack using the AEs. This cost of an attack can be calculated, similarly to the creation cost of the substitute model g in the second embodiment, by obtaining, for example, the number of times the query is transmitted, as well as the number of times the first query is transmitted from the substitute model creation device 200, the number of pieces of virtual training data, and the like.
[0066] Next, the operation of this embodiment will be described in detail with reference to the drawings. Fig. 12 is a sequence diagram for explaining the operation of the fifth embodiment of the present invention. Like the second embodiment, step S300 in Fig. 12 corresponds to the update process of the alternative model in alternative model creation device 200 (steps S101 to S103 in Fig. 7).
[0067] Next, the assessment device 300e creates an AE (represented by x' in FIG. 12) using the substitute model g and transmits it to the evaluation target device 100 (step S301). The evaluation target device 100 returns to the assessment device 300e an inference result f(x') obtained by inputting the AE x' into the model f.
[0068] The assessment device 300e calculates the rate at which the evaluation target device 100 returns an incorrect inference result (attack success rate) based on the inference result f(x') received from the evaluation target device 100 (step S302). If the attack success rate is not equal to or greater than a predetermined threshold, the assessment device 300e executes the process of step S300 to the alternative model creation device 200 and requests an update of the alternative model.
[0069] When the attack success rate reaches or exceeds a predetermined threshold, the assessment device 300e calculates the cost required for attacks using the AEs up to now (step S303).
[0070] The cost required to obtain a predetermined successful result using the AEs calculated in this way indicates that the smaller the value, the easier the attack using the AEs. Conversely, the larger the value, the more difficult the attack using the AEs. Therefore, the cost required for the attack using the AEs calculated by the assessment device 300e of this embodiment can be used as an index value indicating the safety of the model f to be evaluated.
[0071] Although each embodiment of the present invention has been described above, the present invention is not limited to the above-mentioned embodiments, and further modifications, substitutions, and adjustments can be made without departing from the basic technical idea of the present invention. For example, the system configuration, the configuration of each element, and the representation form of data, etc. shown in each drawing are examples to help understand the present invention, and the present invention is not limited to the configurations shown in these drawings.
[0072] For example, in the above embodiment, the model f to be evaluated is described as being held in the evaluation target device 100, but the model f to be evaluated may be held in another device. For example, the model f to be evaluated may be copied and held for evaluation on the side of the replacement model creation device 200.
[0073] In addition, although the application field of the present invention is not limited, from the viewpoint of ease of creating queries, the present invention is considered to be suitably applicable to cases where the model f to be evaluated is a binary classification model. One example of such a binary classification model is the malware detection model described in the Background Art.
[0074] The procedures shown in the above-described embodiment can be realized by a program that causes a computer (9000 in FIG. 13) functioning as a client to realize the functions of these devices. Such a computer is exemplified by a configuration including a CPU (Central Processing Unit) 9010, a communication interface 9020, a memory 9030, and an auxiliary storage device 9040 in FIG. 13. That is, the CPU 9010 in FIG. 13 executes a query creation program and an alternative model creation program, and performs an update process for each calculation parameter held in the auxiliary storage device 9040 or the like.
[0075] The disclosures of the above patent documents and non-patent documents are incorporated herein by reference and may be used as the basis or part of the present invention as necessary. Within the scope of the entire disclosure of the present invention (including the scope of claims), modifications and adjustments of the embodiments and examples are possible based on the basic technical ideas. Furthermore, within the scope of the disclosure of the present invention, various combinations or selections (including partial deletions) of various disclosed elements (including each element of each claim, each element of each embodiment or example, each element of each drawing, etc.) are possible. In other words, the present invention naturally includes various modifications and corrections that a person skilled in the art would be able to make according to the entire disclosure including the scope of claims and the technical ideas. In particular, with regard to the numerical ranges described in this document, any numerical value or small range included within the range should be interpreted as being specifically described even if not otherwise specified. Furthermore, the disclosures of the above cited documents may be used in part or in whole in combination with the disclosures of this document as part of the disclosure of the present invention in accordance with the spirit of the present invention as necessary, and are deemed to be included in the disclosures of this application. [Explanation of symbols]
[0076] 100 Apparatus to be evaluated 200 Alternative model creation device 201 Query Creation Section 202 MIA Executive Department 203 Alternative Model Creation Department 300, 300a~300e Assessment device 301, 301c Safety Evaluation Division 302 Target Model Attack Section 303 Attack Cost Calculation Department 3011 Similarity calculation part 3012 Cost Calculation Department 9000 Computers 9010 CPU 9020 Communication Interface 9030 Memory 9040 Auxiliary storage device
Claims
1. A query creation unit that creates a first query for causing an evaluation target model of an evaluation target device to perform inference and obtain an inference result; an MIA execution unit that estimates virtual training data used to train the model to be evaluated using an inference result obtained by inputting the first query to the model to be evaluated; an alternative model creation unit that uses the virtual training data to create an alternative model that emulates the behavior of the model to be evaluated; and having access to an alternative modeling device comprising: a safety evaluation unit that transmits a second query to the alternative model creation device and the evaluation target device to input the second query to the alternative model and the evaluation target model, respectively, and evaluates the safety of the evaluation target model using the results; An assessment device comprising a target model attack unit that uses the alternative model to create Adversarial Examples for causing the model to be evaluated to output erroneous inference results, attacks the model to be evaluated, and evaluates the model to be evaluated based on the success or failure of the attack.
2. the query creation unit creates N queries, the N queries being greater than the number M of virtual training data used by the replacement model creation unit to create the replacement model; 2. The assessment device according to claim 1, wherein the MIA execution unit is accessible to the alternative model creation device which receives the N inference results as input and selects the top M virtual training data with the highest scores.
3. The safety evaluation unit includes:
3. The assessment device of claim 1 or 2, further comprising a similarity calculation unit that calculates the similarity of the results sent to the alternative model creation device and the evaluation target device in order to input a second query to the alternative model and the model to be evaluated, respectively, and outputs the result as an evaluation value.
4. The safety evaluation unit further comprises: The assessment device of claim 3 , further comprising a cost calculation unit that calculates a cost using at least the number of data d and the number of queries q used by the similarity calculation unit to obtain a predetermined evaluation value, and outputs the cost as an evaluation value.
5. moreover, The assessment device of claim 1, further comprising an attack cost calculation unit that calculates a cost using at least the number of data d and the number of queries q used by the target model attack unit to obtain a predetermined successful result, and outputs the cost as an evaluation value.
6. a query creation unit that creates a first query for causing the model to perform inference to obtain an inference result; an MIA execution unit that estimates virtual training data used to train the model to be evaluated using an inference result obtained by inputting the first query to the model to be evaluated; an alternative model creation unit that uses the virtual training data to create an alternative model that emulates the behavior of the model to be evaluated; An alternative model creation device comprising:
7. A query creation unit that creates a first query for causing a model of an evaluation target possessed by an evaluation target device to perform inference and obtain an inference result; an MIA execution unit that estimates virtual training data used to train the model to be evaluated using an inference result obtained by inputting the first query to the model to be evaluated; a replacement model creation unit that uses the virtual training data to create a replacement model that emulates the behavior of the model to be evaluated; Transmitting a second query to the alternative model creation device and the evaluation target device to input the second query to the alternative model and the evaluation target model, respectively; evaluating safety of the model to be evaluated using inference results of the alternative model and the model to be evaluated for the second query; Using the alternative model, create Adversarial Examples for causing the model to be evaluated to output an erroneous inference result, attack the model to be evaluated, and evaluate the model to be evaluated based on the success or failure of the attack. The safety assessment methodology for the model being evaluated.
8. A query creation unit that creates a first query for causing a model of an evaluation target possessed by an evaluation target device to perform inference and obtain an inference result; an MIA execution unit that estimates virtual training data used to train the model to be evaluated using an inference result obtained by inputting the first query to the model to be evaluated; a replacement model creation unit that uses the virtual training data to create a replacement model that emulates the behavior of the model to be evaluated; A process of transmitting a second query to the alternative model creation device and the evaluation target device in order to input a second query to the alternative model and the evaluation target model, respectively; a process of evaluating safety of the model to be evaluated using inference results of the alternative model and the model to be evaluated for the second query; a process of creating Adversarial Examples using the alternative model to cause the model to be evaluated to output an erroneous inference result, attacking the model to be evaluated, and evaluating the model to be evaluated based on the success or failure of the attack; A computer recording medium on which a program to be executed by the computer is recorded.
Citation Information
Patent Citations
Classification device
JP2019057016A
Training data evaluation device, training data evaluation method, and program
JP2020021301A
Classification device, classification method, and program
JP2020046883A
Machine learning model illicitness sensing system and illicitness sensing method
WO2018216379A1
Cited By
Method and apparatus for evaluating antivirus engine
KR103001211B1
