Adversarial data detection device and adversarial data detection method

The adversarial data detection system generates multiple noise-added versions of data to detect adversarial inputs accurately, ensuring security by analyzing evaluation value biases, addressing the vulnerability of known detection methods.

JP7564074B2Active Publication Date: 2024-10-08HITACHI LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing adversarial data detection methods are not secure against attackers who know the detection method, allowing adversarial data to evade detection.

Method used

An adversarial data detection system that generates multiple extended versions of evaluation target data by adding noise, calculates evaluation values, and determines hostility based on the bias of these values, using a combination of first and second detection methods to ensure high accuracy even when the attacker is aware of the detection method.

Benefits of technology

The system effectively detects adversarial data with high precision and maintains security by identifying patterns in evaluation value changes, even when the attacker is informed about the detection method, thereby preventing false judgments by AI systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007564074000001
    Figure 0007564074000001
  • Figure 0007564074000002
    Figure 0007564074000002
  • Figure 0007564074000003
    Figure 0007564074000003
Patent Text Reader

Abstract

To detect hostile data with high accuracy even under a situation where an attacker knows information about a method for detecting the hostile data, and thus maintain safety.SOLUTION: A hostile data detector holds evaluation target data and a model that outputs an evaluation value when data is input; inputs evaluation target data into the model to calculate an evaluation value of the evaluation target data; adds different noises to the evaluation target data to generate a plurality of extended evaluation target data; updates the extended evaluation target data by adding noise to each of the plurality of extended evaluation target data until the evaluation value of the extended evaluation target data does not match the evaluation value of the evaluation target data; and determines whether or not the evaluation target data is hostile data, based on the deviation of the evaluation values of the updated extended evaluation target data.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an adversarial data detection device and an adversarial data detection method. [Background technology]

[0002] As artificial intelligence (AI) becomes more widespread in various fields such as finance, medicine, and manufacturing, the number of situations in which AI handles sensitive information is increasing. Meanwhile, attacks that exploit vulnerabilities specific to AI have been reported.

[0003] One example of an attack that exploits vulnerabilities specific to AI is the Adversarial Example (AE) attack, in which tiny noise that humans cannot notice is added to data, causing the AI ​​to make a false judgment. In the following, data with tiny noise added will be referred to as adversarial data, and throwing adversarial data at an AI will also be referred to as an AE attack.

[0004] As a countermeasure against AE attacks, a technology has been proposed that detects AE attacks by capturing the process leading up to the generation of adversarial data and the characteristics of the adversarial data. Non-Patent Document 1 is a background technology for detecting AE attacks. The technology described in Non-Patent Document 1 detects AE attacks by utilizing changes in the output result when random minute noise is added to input data. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Jingyi Wang and 3 others, “Detecting Adversarial Samples for Deep Neural Networks through Mutation Testing.”, [online], NIPS May 2018, [Retrieved March 26, 2021], Internet<https: / / arxiv.org / pdf / 1805.05010.pdf> Summary of the Invention [Problem to be solved by the invention]

[0006] The technology for detecting AE attacks in Non-Patent Document 1 is not sufficiently secure in a situation where an attacker knows information about a detection method for adversarial data, and the attacker can intentionally generate adversarial data that evades the detection described in Non-Patent Document 1. Therefore, one aspect of the present invention detects adversarial data with high accuracy even in a situation where an attacker knows information about a detection method for adversarial data, thereby maintaining security. [Means for solving the problem]

[0007] In order to solve the above problem, one aspect of the present invention employs the following configuration: An adversarial data detection device includes a processor and a memory, the memory holds evaluation target data and a model that outputs an evaluation value when data is input, the processor inputs the evaluation target data to the model, calculates an evaluation value of the evaluation target data, adds different noises to the evaluation target data to generate a plurality of extended evaluation target data, and executes a first determination process based on the plurality of extended evaluation target data, and in the first determination process, updates the extended evaluation target data by adding noise to each of the plurality of extended evaluation target data until the evaluation value of the extended evaluation target data does not match the evaluation value of the evaluation target data, and determines whether the evaluation target data is adversarial data based on a bias in the evaluation value of each of the updated extended evaluation target data. Effect of the Invention

[0008] According to one aspect of the present invention, even in a situation where an attacker has knowledge of methods for detecting adversarial data, it is possible to detect adversarial data with high accuracy, thereby maintaining security.

[0009] Problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a block diagram illustrating a configuration example of an adversarial data detection system according to a first embodiment. [Diagram 2] 4 is a block diagram showing an example of the hardware configuration of a noise addition server in the first embodiment. FIG. [Diagram 3] FIG. 2 is a block diagram showing an example of a hardware configuration of an evaluation server according to the first embodiment. [Figure 4] 4 is a block diagram showing an example of a hardware configuration of a detection server according to the first embodiment. FIG. [Diagram 5] 2 is a block diagram illustrating an example of a hardware configuration of a data sending terminal according to the first embodiment. [Figure 6] FIG. 11 is a sequence diagram illustrating an example of an adversarial data detection process in the first embodiment. [Figure 7] 13 is a flowchart illustrating an example of an extended evaluation target data update process in the first embodiment. [Figure 8] 11 is a flowchart illustrating an example of a hostile data determination process in the first embodiment. [Figure 9] FIG. 2 is an explanatory diagram illustrating an example of an overview of the hostile data detection process in the first embodiment. [Figure 10] FIG. 11 is a sequence diagram illustrating an example of an adversarial data detection process in the second embodiment. [Figure 11] 13 is a flowchart illustrating an example of a hostile data determination process in the second embodiment. [Figure 12] FIG. 13 is an explanatory diagram illustrating an example of input and output data of the adversarial data detection system in the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. In this embodiment, the same components are generally designated by the same reference numerals, and repeated description will be omitted. It should be noted that this embodiment is merely an example for realizing the present invention, and does not limit the technical scope of the present invention. This embodiment describes a system that determines whether data received from a data sender is data generated by an AE (Adversarial Example) attack, and transmits a processing result to a data recipient according to the determination result. EXAMPLES

[0012] 1 is a block diagram showing an example of the configuration of an adversarial data detection system. The adversarial data detection system includes, for example, a data sending terminal 400 that holds evaluation target data, a noise adding server 100 that adds noise to the evaluation target data, an evaluation server 200 that calculates an evaluation value for the evaluation target data, a detection server 300 that determines whether the evaluation target data is data subjected to an AE attack, and a data receiving terminal 500 that receives the evaluation value for the evaluation target data.

[0013] Detailed configurations of the data sending terminal 400, the noise adding server 100, the evaluation server 200, the detection server 300, and the data receiving terminal 500 will be described later. The data sending terminal 400, the noise adding server 100, the evaluation server 200, the detection server 300, and the data receiving terminal 500 transmit and receive information to and from each other via a network 600 such as the Internet.

[0014] In addition, some or all of the devices included in the adversarial data detection system may be integrated. For example, at least some of the noise addition server 100, the evaluation server 200, and the detection server 300 may be integrated, or the data sending terminal 400 and the data receiving terminal 500 may be integrated.

[0015] 2 is a block diagram showing an example of the hardware configuration of the noise addition server 100. The noise addition server 100 is composed of a computer having a processor (CPU) 101, an auxiliary storage device 102, a memory 103, a display device 105, an input / output interface 106, and a communication interface 107, which are connected to each other by an internal signal line 104 such as a bus.

[0016] The processor 101 executes a program stored in the memory 103. The memory 103 includes a ROM, which is a non-volatile, non-temporary storage element, and a RAM, which is a volatile storage element. The ROM stores immutable programs (e.g., BIOS) and the like. The RAM is a high-speed, volatile storage element such as a DRAM (Dynamic Random Access Memory), and temporarily stores the programs executed by the processor 101 and data used when the programs are executed.

[0017] The auxiliary storage device 102 is a large-capacity, nonvolatile, non-transient storage device such as a magnetic storage device (HDD) or a flash memory (SSD), and stores the programs executed by the processor 101 and data used when the programs are executed. That is, the programs are read from the auxiliary storage device 102, loaded into the memory 103, and executed by the processor 101.

[0018] The input / output interface 106 is an interface to which a keyboard, a mouse, etc. are connected and which receives input from an operator. The input / output interface 106 is also an interface to which a display device 105, a printer, etc. are connected and which outputs the results of program execution in a format that can be viewed by the operator. The display device 105 displays the results of program execution output from the input / output interface 106.

[0019] The communication interface 107 is a network interface device that controls communication with other devices in accordance with a predetermined protocol. The communication interface 107 may also include a serial interface such as a Universal Serial Bus (USB).

[0020] A part or all of the programs executed by the processor 101 may be provided to the noise addition server 100 from a removable medium (CD-ROM, flash memory, etc.) which is a non-transitory storage medium readable by a computer, or from an external computer equipped with a non-transitory storage device connected via a network 600, and stored in a non-volatile auxiliary storage device 102 which is a non-transitory storage medium. For this reason, the noise addition server 100 may have an interface for reading data from a removable medium. This also applies to the evaluation server 200, the detection server 300, the data transmitting terminal 400, and the data receiving terminal 500.

[0021] The noise addition server 100 is a computer system configured on one physical computer or on multiple logically or physically configured computers, and may operate in separate threads on the same computer, or may operate on a virtual computer constructed on multiple physical computer resources. The same applies to the evaluation server 200, the detection server 300, the data sending terminal 400, and the data receiving terminal 500.

[0022] The processor 101 includes, for example, a data extension unit 111 and a noise addition unit 112. For example, the processor 101 functions as the data extension unit 111 by operating according to a data extension program loaded into the memory 103, and functions as the noise addition unit 112 by operating according to a noise addition program loaded into the memory 103.

[0023] The data extension unit 111 generates extended evaluation target data by, for example, adding noise to the evaluation target data. The noise addition unit 112 updates the extended evaluation target data by adding noise to the extended evaluation target data.

[0024] 3 is a block diagram showing an example of the hardware configuration of the evaluation server 200. The evaluation server 200 is composed of a computer having a processor (CPU) 201, an auxiliary storage device 202, a memory 203, a display device 205, an input / output interface 206, and a communication interface 207, which are connected to each other by an internal signal line 204 such as a bus.

[0025] The hardware description of the processor 201, auxiliary storage device 202, memory 203, internal signal line 204, display device 205, input / output interface 206, and communication interface 207 is similar to the hardware description of the processor 101, auxiliary storage device 102, memory 103, internal signal line 104, display device 105, input / output interface 106, and communication interface 107, so the description will be omitted.

[0026] The processor 201 includes an evaluation unit 211. For example, the processor 201 functions as the evaluation unit 211 by operating according to an evaluation program loaded in the memory 203. The evaluation unit 211 calculates evaluation values ​​for the evaluation target data and the extended evaluation target data.

[0027] 4 is a block diagram showing an example of the hardware configuration of the detection server 300. The detection server 300 is configured by a computer having a processor (CPU) 301, an auxiliary storage device 302, a memory 303, a display device 305, an input / output interface 306, and a communication interface 307, which are connected to each other by an internal signal line 304 such as a bus.

[0028] The hardware description of the processor 301, auxiliary storage device 302, memory 303, internal signal line 304, display device 305, input / output interface 306, and communication interface 307 is similar to the hardware description of the processor 101, auxiliary storage device 102, memory 103, internal signal line 104, display device 105, input / output interface 106, and communication interface 107, so the description will be omitted.

[0029] The processor 301 includes a first detection unit 311 and a second detection unit 312. For example, the processor 301 functions as the first detection unit 311 by operating according to a first detection program loaded in the memory 303, and functions as the second detection unit 312 by operating according to a second detection program loaded in the memory 303.

[0030] The first detection unit 311 makes a final determination as to whether the evaluation target data is hostile data (whether the data is subject to an AE attack). The second detection unit 312 determines whether the evaluation target data is hostile data or has the possibility of being hostile data, and requests the first detection unit 311 to make a final determination when determining that the data is the possibility of being hostile data. Note that the processor 301 of the first embodiment does not need to include the second detection unit 312.

[0031] 5 is a block diagram showing an example of the hardware configuration of the data sending terminal 400. The data sending terminal 400 is composed of a computer having a processor (CPU) 401, an auxiliary storage device 402, a memory 403, a display device 405, an input / output interface 406, and a communication interface 407, which are connected to each other by an internal signal line 404 such as a bus.

[0032] The hardware description of the processor 401, auxiliary storage device 402, memory 403, internal signal line 404, display device 405, input / output interface 406, and communication interface 407 is similar to the hardware description of the processor 101, auxiliary storage device 102, memory 103, internal signal line 104, display device 105, input / output interface 106, and communication interface 107, so the description will be omitted.

[0033] The auxiliary storage device 402 of the data sending terminal 400 holds the evaluation target data 421. The evaluation target data 421 may be stored in the memory 403 of the data sending terminal 400.

[0034] An example of the hardware configuration of the data receiving terminal 500 is similar to the example of the hardware configuration of the data sending terminal 400 in FIG. 5, so a description thereof will be omitted.

[0035] 6 is a sequence diagram showing an example of the hostile data detection process. First, the data sending terminal 400 sends evaluation target data to the noise-added server 100 (S601). Image data is an example of the evaluation target data.

[0036] The data extension unit 111 generates a plurality of extended evaluation target data by performing data extension on the received evaluation target data (S602). An example of the process of step S602 will be described. For example, a parameter n indicating the number of extended evaluation target data to be generated is set in advance and stored in the memory 103. The data extension unit 111 generates, for example, n different types of noise and adds each of the n types of noise to one evaluation target data, thereby generating n pieces of extended evaluation target data. The noise generated by the data extension unit 111 is, for example, a numerical vector with the same number of dimensions as the evaluation target data. In addition, the data extension unit 111 generates noise according to a predetermined probability distribution such as a Gaussian distribution.

[0037] The noise addition unit 112 and the evaluation unit 211 communicate with each other to calculate an evaluation value for the evaluation target data, calculate an evaluation value for the extended evaluation target data, add noise to the extended evaluation target data generated in step S602, and calculate an evaluation value for the extended evaluation target data with noise added (S603).

[0038] For example, the noise addition unit 112 updates each of the n pieces of extended evaluation target data by generating and adding different noise to each of the n pieces of extended evaluation target data, and the evaluation unit 211 calculates an evaluation value for each of the n pieces of extended data after updating. Note that the noise addition unit 112 may generate noise according to a predetermined probability distribution such as a Gaussian distribution, a uniform distribution, or a Laplace distribution, or may generate noise that intentionally changes the evaluation value calculated by the evaluation unit 211. As the noise that intentionally changes the evaluation value, for example, noise generated by a method similar to that used for generating noise when creating adversarial data is used.

[0039] In this embodiment, the evaluation unit 211 calculates, as an evaluation value, a class obtained by inputting the updated n pieces of extended evaluation target data into a trained model generated using deep learning, for example. Note that the trained model may be a trained model with improved robustness by training data that has been subjected to processing such as resizing and padding when performing deep learning. Note that this trained model is stored in advance in the memory 203, for example.

[0040] The update process for each of the n pieces of extended evaluation target data in step S603 and the calculation process for the evaluation value for each of the n pieces of extended evaluation target data after the update are repeated until a predetermined condition is satisfied. The evaluation unit 211 transmits the evaluation value for each piece of extended evaluation target data finally calculated in step S603 to the detection server 300 (S604). The details of the processes in steps S603 and S604 will be described later with reference to FIG. 7.

[0041] The first detection unit 311 uses the evaluation value received in step S604 to determine whether the evaluation target data transmitted in step S601 is hostile data (S605). Details of the process in step S605 will be described later with reference to FIG.

[0042] When the first detection unit 311 determines that the evaluation target data is hostile data (S605: Yes), it does not transmit the evaluation value of the evaluation target data to the data transmitting terminal 400, and transmits a notification (determination result: reject) indicating refusal to transmit the evaluation value to the data transmitting terminal 400 (S606). When the first detection unit 311 determines that the evaluation target data is not hostile data (S605: No), it transmits the evaluation value of the evaluation target data to the data receiving terminal 500 (S607), and the hostile data detection process ends.

[0043] In addition, if the first detection unit 311 determines in step S803 that the evaluation target data is hostile data, in step S606, it may not send a notification (determination result: reject) to the data sending terminal 400 indicating that the transmission of the evaluation value is rejected, but may send the evaluation value of each of the extended evaluation target data finally calculated in step S603 to the data receiving terminal 500.

[0044] 7 is a flowchart showing an example of the extended evaluation target data update process in steps S603 and S604. The evaluation unit 211 calculates an evaluation value Eval of the evaluation target data D received in step S601 (S701). That is, the evaluation unit 211 calculates the class of the evaluation target data D obtained by inputting the evaluation target data D to the trained model as the evaluation value Eval.

[0045] The evaluation unit 211 executes the following steps S702 to S705 for each of i=1,...,n in order from i=1. n} in D i Evaluation value AEEval i(S702). The evaluation unit 211 calculates Eval=AEEval i It is determined whether the above is the case (S703).

[0046] The evaluation unit 211 performs the following: Eval=AEEval i If it is determined that the noise is equal to or larger than the threshold (S703: Yes), the noise adding unit 112 i By adding noise to D i (S704), return to step S702, and the updated D i The method of adding noise in step S704 may be the same as or different from the method of adding noise in step S602.

[0047] The evaluation unit 211 performs the following: Eval=AEEval i If it is determined that the value is not the same as the evaluation value AEEval calculated in the most recent step S902 (S703: No), i is stored in, for example, the memory 203 (S705), the value of i is incremented, and the process returns to step S902.

[0048] Note that Eval=AEEval i This means that the class of the evaluation target data D and D i This shows that the class of Eval is consistent with that of AEEval, that is, the class has not changed even though noise was added to D. i The fact that it is not true is due to the class of the evaluation target data D and D i This indicates that the class of D does not match that of D, i.e., noise has been added to D and the class has changed.

[0049] In addition, the evaluation unit 211 is D i Even if the process of step S704 is performed a predetermined number of times or more, Eval=AEEval i If it is determined that this D i The process of steps S702 to S704 for this D i, i may be incremented, or an error may be transmitted to the data transmitting terminal 400 to terminate the adversarial data detection process.

[0050] When the process of step S705 is completed for each of i=1, . . . , n, the evaluation unit 211 evaluates the AEEval1, . . . , AEEval n is transmitted to the detection server 300 (S604), and the extended evaluation target data update process is completed.

[0051] 8 is a flowchart illustrating an example of the hostile data determination process in steps S604 and S605. The first detection unit 311 calculates the evaluation values ​​{AEEval1, ..., AEEval n} (S604). n The frequency Num of the most frequent value in the group of evaluation values ​​consisting of the above is calculated (S801).

[0052] The first detection unit 311 determines whether the value obtained by dividing Num by the number of data n is greater than a predetermined threshold q (S802). The threshold q is, for example, stored in advance in the memory 303. When the first detection unit 311 determines that the value obtained by dividing Num by the number of data n is greater than the predetermined threshold q (S802: Yes), it determines that the evaluation target data is hostile data (S803) and ends the hostile data determination process.

[0053] If the first detection unit 311 determines that the value obtained by dividing Num by the number of data n is equal to or less than a predetermined threshold q (S802: No), it determines that the data to be evaluated is not hostile data (S804) and terminates the hostile data determination process.

[0054] In the example of FIG. 8, the first detection unit 311 detects AEEval1, . . . , AEEval nIn this paper, we use the frequency Num of the most frequent value in the evaluation value group consisting of AEEval1,...,AEEval n An index other than Num may be used as long as it indicates the bias of the first detection unit 311. For example, the first detection unit 311 detects AEEval1, . . . , AEEval n The sum of the frequencies of the top n evaluation values ​​in the evaluation value group consisting of AEEval1, . . . , AEEval n The variance in the number of data output by each may be used to detect adversarial data.

[0055] An example of the above-mentioned distribution will be described. The first detection unit 311 detects AEEval1, . . . , AEEval n The frequency of the evaluation values ​​included in the evaluation value group consisting of AEEval1 to AEEval2 is calculated, and the variance of the calculated frequencies is calculated. For example, assume that the number of extended evaluation target data is 10, and the evaluation value of the extended evaluation target data can be either 0 or 1. 10 Assume that the values ​​of are all 1. In this case, the frequency of an evaluation value of 0 is 0, and the frequency of an evaluation value of 1 is 10. In this case, the first detection unit 311 calculates, for example, (average) = (number of extended evaluation target data) / (number of values ​​that can be taken as evaluation values) (i.e., calculates 10 / 2 = 5), and calculates (average - frequency) for each value that can be taken as an evaluation value. 2- Calculate (i.e., (5-0) 2 =25 and (5-10) 2 = 25, and calculated ((average) - frequency) 2 The first detection unit 311 calculates the sum of the variances divided by the number of pieces of extended evaluation target data (i.e., (25+25) / 10=5) as the variance. If the first detection unit 311 determines that the calculated variance is equal to or smaller than a predetermined threshold r, it determines that the evaluation target data is not hostile data, and if the first detection unit 311 determines that the calculated variance is greater than the predetermined threshold r, it determines that the evaluation target data is hostile data.

[0056] Fig. 9 is an explanatory diagram showing an example of an outline of the adversarial data detection process. In the example of Fig. 9, an example will be described in which the evaluation target data is an image. When a human sees the image, the human recognizes that the image is an image of a cat, but when the evaluation unit 211 inputs the image into the model, the human erroneously recognizes that the image is an image of a horse. In other words, the evaluation target data in Fig. 9 is adversarial data.

[0057] In this case, the image that is the data to be evaluated looks like an image of a cat to humans, so if noise is added to the image that is the data to be evaluated, the classification result when the image with the noise added is input into the model is likely to be an image of a cat.

[0058] The data extension unit 111 generates a plurality of images (extended evaluation target data) by adding different noises to the images (S602). The noise addition unit 112 adds noise to each of the plurality of images until the evaluation value by the evaluation unit 211 (i.e., the classification result output when the image is input to the model) changes (S603).

[0059] The first detection unit 311 calculates an index (Num) indicating the bias of the evaluation value after the change, and if it determines that the bias is large, it determines that the data to be evaluated is hostile data (because it is believed that when various noises are added to the image of a horse, which is hostile data, it will change into the original image, which is an image of a cat).

[0060] In the example of Figure 9, if the threshold value q is 0.5, three of the four evaluation values ​​after the change are images of a cat, and therefore Num / n = 3 / 4 > 0.5, so the first detection unit 311 determines that the data to be evaluated is hostile data.

[0061] As described above, the adversarial data detection system of this embodiment can detect adversarial data with high accuracy and small computational complexity through the above-mentioned processing. When adversarial data is input to the model, it outputs an evaluation value different from that of normal data, but the adversarial data is likely to be data created by adding artificial small noise to normal data. Therefore, it can be expected that if noise is continued to be added to the adversarial data, it will tend to return to data that outputs the evaluation value of the original normal data. In other words, if the evaluation value of the expanded evaluation target data after the change is the same at a high rate, it is considered that the expanded evaluation target data having the same evaluation value has returned to normal data, and the adversarial data detection system of this embodiment uses this property to determine whether the evaluation target data is adversarial data.

[0062] Specifically, as described above, the adversarial data detection system of this embodiment continues to add noise to the extended evaluation target data until the evaluation value of the extended evaluation target data changes, and determines whether the evaluation target data is adversarial data based on the bias of the evaluation value after the change. Therefore, even if an attacker has information about the detection method of this embodiment, or has information about a model and generates adversarial data in which the output result of the model does not change even if a small amount of noise is added a small number of times, it is possible to detect with high accuracy whether the evaluation target data is adversarial data, and thus to maintain security.

[0063] Furthermore, in step S603, the noise adding unit 112 may add noise generated from the same algorithm to each extended evaluation target data, such as generating noise according to a Gaussian distribution each time, or may add noise generated from different algorithms to different extended evaluation target data, such as adding noise according to a Gaussian distribution to D1 and adding noise according to a uniform distribution to D2. Furthermore, in step S603, the calculation of the evaluation value of the evaluation target data transmitted from the detection server 300 to the data receiving terminal 500 may be performed in advance in step S602, or may be performed immediately before step S613 (which may be performed at any timing after step S601 and before step S613). EXAMPLES

[0064] In this embodiment, another example of the adversarial data detection process will be described. In the adversarial data detection process of this embodiment, the adversarial data detection system determines whether the evaluation target data is adversarial data based on the evaluation value for the extended evaluation target data that is first generated by adding noise to the evaluation target data (first determination), and if it determines that the evaluation target data is adversarial data, it further executes the determination process (second determination) of steps S603 to S607 described in the first embodiment.

[0065] Fig. 10 is a sequence diagram showing an example of the adversarial data detection process. The differences from Fig. 6 will be mainly described. Following step S602, the data extension unit 111 transmits the generated extended evaluation target data and evaluation target data to the evaluation server 200 (S1001).

[0066] The evaluation unit 211 calculates an evaluation value for each of the evaluation target data and the extended evaluation target data received in step S1001 (S1002). The evaluation unit 211 transmits the evaluation value calculated in step S1002 to the detection server 300 (S1003). The second detection unit 312 uses the evaluation value received in step S1003 to determine whether the evaluation target data is hostile data or not (S1004). Details of the process in step S1004 will be described later with reference to FIG. 11.

[0067] When the second detection unit 312 determines that the evaluation target data is hostile data (S1004: Yes), it does not transmit the evaluation value of the evaluation target data to the data transmission terminal 400, and transmits a notification (determination result: reject) indicating that the transmission of the evaluation value is rejected to the data transmission terminal 400 (S1005), and the hostile data detection process ends. When the second detection unit 312 determines that the data is not likely to be hostile data (S1004: No), it transmits a notification (determination result: accept) indicating that the data is to proceed to the second determination (and / or that the evaluation target data is not likely to be hostile data) to the noise addition server 100 (S1006), and the processes of steps S603 to S607 (second determination) are performed, and the hostile data detection process ends.

[0068] In addition, D i D calculated in the first step S702 for each (i=1, . . . , n) i Since the evaluation value of is the same as the evaluation value of each of the extended evaluation target data calculated in step S1002, D i The processing of step S702 may be omitted the first time for each of (i=1, . . . , n).

[0069] 11 is a flowchart showing an example of the hostile data determination process (second determination) in step S1004. The second detection unit 312 calculates an evaluation value Eval for the evaluation target data and an evaluation value {Eval1, ..., Eval n} (S1003). The second detection unit 312 receives Eval ≠ Eval iThe number Num of extended evaluation target data where (i=1, ..., n) is obtained (S1101). The second detection unit 312 determines that the value obtained by dividing Num by the number n of extended evaluation target data is smaller than a predetermined threshold p (S1102). Note that the threshold p is stored in advance in the memory 303, for example.

[0070] If the second detection unit 312 determines that the value obtained by dividing Num by the number n of extended evaluation target data is smaller than a predetermined threshold p (S1102: Yes), it determines that the evaluation target data is hostile data (S1103) and ends the hostile data determination process. If the second detection unit 312 determines that the value obtained by dividing Num by the number n of extended evaluation target data is equal to or larger than the predetermined threshold p (S1102: No), it determines that the evaluation target data may not be hostile data (S1104) and ends the hostile data determination process.

[0071] In step S1102, the second detection unit 312 uses the ratio of the number of pieces of extended evaluation target data with different evaluation values ​​for detection, but may use other indices for detection. For example, in step S1102, the second detection unit 312 may count the amount of change in the evaluation value of each piece of extended evaluation target data from the evaluation value of the evaluation target data, and use the average of the amount of change instead of Num.

[0072] Adversarial data is likely to be data created by adding artificially small noise to normal data, and therefore is likely to be data close to the boundary where the evaluation value output by the model changes. In other words, when the evaluation target data is adversarial data, the evaluation value of the extended evaluation target data in which noise is added to the evaluation target data is likely to be different from the evaluation value of the evaluation target data. Therefore, the adversarial data detection system of this embodiment can efficiently detect adversarial data by determining whether the evaluation target data is adversarial data based on the proportion of extended evaluation target data whose evaluation value differs from that of the evaluation target data in the process of FIG. 11.

[0073] In the above example, if the first judgment determines that the data to be evaluated is adversarial data, the adversarial data detection system makes a final judgment as to whether the data to be evaluated is adversarial data by the second judgment. However, if the second judgment determines that the data to be evaluated is adversarial data, the adversarial data detection system may make a final judgment as to whether the data to be evaluated is adversarial data by the first judgment.

[0074] As described above, the adversarial data detection system of this embodiment can detect adversarial data more safely and with higher accuracy by using two detection methods to capture different properties of the data to be evaluated. EXAMPLES

[0075] This embodiment describes an example of a use case of the adversarial data detection system. Fig. 12 is an explanatory diagram showing an example of input / output data of the adversarial data detection system. In the example of Fig. 12, the evaluation target data is a medical image, and the adversarial data detection system determines whether the subject of the medical image is sick, and if so, the type of disease the subject suffers from, based on the medical image.

[0076] In step S601, the data transmission terminal 400 transmits a medical image to the noise addition server 100. In step S605, when the detection server 300 determines that the medical image is hostile data, in step S606, it transmits a report indicating that to the data transmission terminal 400.

[0077] If the detection server 300 determines in step S605 that the medical image is not hostile data, in step S607, it transmits the evaluation result for the medical image (a classification result indicating whether the subject is sick or not, and if so, the type of illness) to the data receiving terminal 500.

[0078] The present invention is not limited to the above-mentioned embodiment, and various modifications are included. For example, the above-mentioned embodiment has been described in detail to easily explain the present invention, and is not necessarily limited to those including all of the configurations described. It is also possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. It is also possible to add, delete, or replace a part of the configuration of each embodiment with another configuration.

[0079] In addition, the above-mentioned configurations, functions, processing units, processing means, etc. may be realized in part or in whole by hardware, for example, by designing them as integrated circuits. In addition, the above-mentioned configurations, functions, etc. may be realized in software by a processor interpreting and executing a program that realizes each function. Information such as the program, table, file, etc. that realizes each function can be stored in a memory, a recording device such as a hard disk or SSD (Solid State Drive), or a recording medium such as an IC card, SD card, or DVD.

[0080] In addition, the control lines and information lines shown are those that are considered necessary for the explanation, and not all control lines and information lines in the product are necessarily shown. In reality, it can be considered that almost all components are connected to each other. [Explanation of symbols]

[0081] 100 Noise adding server, 200 Evaluation server, 300 Detection server, 400 Data sending terminal, 500 Data receiving terminal, 101 Processor, 102 Auxiliary storage device, 103 Memory, 107 Communication interface, 111 Data expansion unit, 112 Noise adding unit, 201 Processor, 202 Auxiliary storage device, 203 Memory, 207 Communication interface, 211 Evaluation unit, 301 Processor, 302 Auxiliary storage device, 303 Memory, 307 Communication interface, 311 First detection unit, 312 Second detection unit, 401 Processor, 402 Auxiliary storage device, 403 Memory, 407 Communication interface

Claims

1. 1. An adversarial data detection device, comprising: A processor and a memory, The memory holds evaluation target data and a model that outputs an evaluation value when the data is input, The processor, inputting the evaluation target data into the model to calculate an evaluation value of the evaluation target data; Adding different noises to the evaluation target data to generate a plurality of extended evaluation target data; Executing a first determination process based on the plurality of extended evaluation target data; In the first determination process, updating the extended evaluation target data by adding noise to each of the plurality of extended evaluation target data until the evaluation value of the extended evaluation target data does not match the evaluation value of the evaluation target data; An adversarial data detection device that determines whether the evaluation target data is adversarial data based on the bias of the evaluation values ​​of each of the updated extended evaluation target data.

2. 2. The adversarial data detection apparatus of claim 1, The processor determines that the evaluation target data is hostile data when the frequency of the most frequent evaluation value of each of the updated extended evaluation target data among the number of the multiple extended evaluation target data is greater than a predetermined threshold.

3. 2. The adversarial data detection apparatus of claim 1, The processor, inputting each of the plurality of extended evaluation target data into the model, and calculating an evaluation value for each of the plurality of extended evaluation target data; execute a second determination process for determining whether the evaluation target data is likely to be non-hostile data based on a rate of agreement between the evaluation value of each of the plurality of extended evaluation target data and the evaluation value of the evaluation target data; The adversarial data detection device executes the first determination process when it is determined that the evaluation target data is likely not adversarial data.

4. 4. The adversarial data detection apparatus of claim 3, The processor determines that the evaluation target data is likely not hostile data when the rate at which the evaluation values ​​of each of the multiple extended evaluation target data match the evaluation value of the evaluation target data is less than a predetermined threshold.

5. 2. The adversarial data detection apparatus of claim 1, An adversarial data detection device, wherein the noise added in generating the plurality of extended evaluation target data and the noise added in updating the plurality of extended evaluation target data include at least one of noise following a predetermined probability distribution and noise generated to manipulate the evaluation value.

6. 2. The adversarial data detection apparatus of claim 1, The model is a trained model generated by deep learning, or a trained model obtained by training data that has been subjected to processing including at least one of resizing and padding when deep learning is performed. Adversarial data detection device.

7. An adversarial data detection method by an adversarial data detection device, comprising: The adversarial data detection device includes a processor and a memory; The memory holds evaluation target data and a model that outputs an evaluation value when the data is input, The adversarial data detection method includes: The processor inputs the evaluation target data into the model and calculates an evaluation value of the evaluation target data; The processor adds different noises to the evaluation target data to generate a plurality of extended evaluation target data; The processor executes a first determination process based on the plurality of extended evaluation target data; In the first determination process, The processor adds noise to each of the plurality of extended evaluation target data to update the extended evaluation target data until the evaluation value of the extended evaluation target data does not match the evaluation value of the evaluation target data; The method for detecting hostile data, wherein the processor determines whether the evaluation target data is hostile data based on a bias in the evaluation value of each piece of updated extended evaluation target data.

8. 8. The method of claim 7, further comprising: The method for detecting adversarial data, wherein the processor determines that the evaluation target data is adversarial data if the frequency of the most frequent evaluation value of each of the updated extended evaluation target data among the number of the multiple extended evaluation target data is greater than a predetermined threshold.

9. 8. The method of claim 7, further comprising: The processor inputs each of the plurality of extended evaluation target data into the model and calculates an evaluation value for each of the plurality of extended evaluation target data; The processor executes a second determination process to determine whether the evaluation target data is likely to be non-adversarial data based on a rate at which the evaluation value of each of the plurality of extended evaluation target data matches the evaluation value of the evaluation target data; The method for detecting adversarial data, wherein the processor executes the first determination process when the processor determines that the evaluation target data is likely not adversarial data.

10. 10. The method of claim 9, further comprising: The method for detecting hostile data, wherein the processor determines that the evaluation target data is likely not hostile data when the rate at which the evaluation values ​​of each of the plurality of extended evaluation target data match the evaluation value of the evaluation target data is less than a predetermined threshold.

11. 8. The method of claim 7, further comprising: An adversarial data detection method, wherein the noise added in generating the multiple extended evaluation target data and the noise added in updating the multiple extended evaluation target data include at least one of noise following a predetermined probability distribution and noise generated to manipulate the evaluation value.

12. 8. The method of claim 7, further comprising: The adversarial data detection method, wherein the model is a trained model generated by deep learning, or a trained model obtained by training data that has been subjected to processing including at least one of resizing and padding when deep learning is performed.

Citation Information

Patent Citations

  • Filter generation device, estimation device, facial authentication system, filter generation method, and recording medium

    WO2021131029A1

  • Detection device, detection method, and detection program

    WO2021161423A1