System, method and program for supporting measures against adversarial attack

The adversarial attack countermeasure system enhances AI model robustness evaluation by generating and refining adversarial samples with varied patterns, addressing the limitations of existing methods in assessing natural-looking attacks.

JP2024154761APending Publication Date: 2024-10-31HITACHI SOFTWARE ENG
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023068791
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-19
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing methods for evaluating the robustness of AI models against adversarial attacks generate adversarial samples with minimal visual differences, failing to adequately assess the models' resilience to attacks that appear natural to humans.

Method used

An adversarial attack countermeasure system that includes an attack encoder, noise addition unit, generator, inference unit, identification unit, and parameter updating mechanism to generate and evaluate adversarial samples with varied attack patterns, optimizing the system to produce realistic and effective attacks.

Benefits of technology

The system supports comprehensive evaluation of AI model robustness against diverse attack patterns, ensuring effective countermeasures by iteratively refining the attack generation and evaluation processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154761000001_ABST
    Figure 2024154761000001_ABST
Patent Text Reader

Abstract

To support measures against adversarial attacks with various attack patterns for an inference model.SOLUTION: A system for supporting measures against adversarial attacks includes: an attack encoder which encodes attack embedding from an original image; a noise adding unit which adds random noise to the attack embedding output from the attack encoder; a generator which generates an attack image to attack an inference model using the attack embedding with the random noise added thereto; an inference unit which performs inference on the attack image using the inference model, to obtain an inference result; a distinction unit which distinguishes the attack image from the original image to calculate a distinction result; a loss calculation unit which calculates a training loss which is a loss for training the attack image on the basis of the inference result and the distinction result; and a parameter update unit which updates the attack encoder, the generator, and the distinction unit on the basis of the training loss.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a technique for supporting countermeasures against hostile attacks. [Background technology]

[0002] In recent years, since the emergence of deep neural networks (DNNs), applications using AI (Artificial Intelligence) have increased dramatically. Hereinafter, applications using AI are also referred to as AI applications. AI models used in AI applications perform well when inputting normal data, but are vulnerable to adversarial attacks and may cause misclassification or false positives. Therefore, it is important to evaluate the robustness of AI applications against adversarial attacks before releasing them in real applications, especially in fields that require high security such as autonomous driving and surveillance systems.

[0003] Non-Patent Document 1 discloses a method for evaluating the robustness of an AI model that classifies or detects images. The method disclosed in Non-Patent Document 1 generates adversarial samples by adding noise that cannot be recognized by humans to images using a parameter-free strategy, performs classification or detection on the adversarial samples using an AI model to be evaluated, and evaluates the robustness of the AI ​​model based on the accuracy of the classification or detection.

[0004] Patent Document 1 describes a method for generating adversarial samples using a generative adversarial network (GAN). The method described in Patent Document 1 generates adversarial samples that involve visual changes. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] International Publication No. WO2020 / 165935 [Non-patent literature]

[0006] [Non-Patent Document 1] Reliable Evaluation of Adversarial Robustness with an Ensemble of Diverse Parameter-free Attacks, Francesco Croce and Matthias Hein, ICML 2020 Summary of the Invention [Problem to be solved by the invention]

[0007] In evaluating the robustness of an AI model, it is preferable to use adversarial samples with various types of features, regardless of whether they can be recognized by the human eye. However, the method disclosed in Non-Patent Document 1 generates adversarial samples whose visual features are relatively small compared to the original image, and uses them to evaluate the robustness of the AI ​​model. Therefore, it is not possible to appropriately evaluate the robustness of the AI ​​model against attacks using images that are not unnatural to humans despite having obvious differences in visual features from the original image.

[0008] Patent Document 1 describes a method for generating adversarial samples that have visual features different from those of an original image. The method described in Patent Document 1 may overcome the lack of attack patterns in the method disclosed in Non-Patent Document 1 as described above. However, the method in Patent Document 1 tends to generate adversarial samples of the simplest attack pattern that can be successfully attacked, and does not generate adversarial samples of diverse attack patterns.

[0009] One objective of the present disclosure is to provide technology that supports countermeasures against adversarial attacks with various attack patterns on AI models. [Means for solving the problem]

[0010] An adversarial attack countermeasure support system according to one aspect included in the present disclosure includes an attack encoder that encodes an attack embedding from an original image, a noise adding unit that adds random noise to the attack embedding output from the attack encoder, a generator that generates an attack image for attacking an inference model using the attack embedding with the random noise added, an inference unit that performs inference on the attack image using the inference model and obtains an inference result, a discrimination unit that discriminates between the attack image and the original image and calculates the discrimination result, a loss calculation unit that calculates a training loss, which is a loss for training the attack image based on the inference result and the discrimination result, and a parameter update unit that updates the attack encoder, the generator, and the discrimination unit based on the training loss. Effect of the Invention

[0011] According to one aspect of the present disclosure, it is possible to assist in evaluating the robustness of an AI model against attack images with a variety of attack patterns. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a block diagram of a computer system according to the present embodiment. [Diagram 2] FIG. 2 is a block diagram of an attack generation model learning unit. [Diagram 3] FIG. 2 is a block diagram of an attack image generation unit. [Figure 4] FIG. 2 is a block diagram of the AI ​​model robustness evaluation unit. [Diagram 5] 13 is a flowchart showing the operation of the AI ​​model robustness evaluation unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the present invention is not limited to the embodiment. In addition, in the description of the drawings, the same parts are given the same reference numerals and the description will be omitted as appropriate.

[0014] <Hardware configuration> The apparatus used in the present embodiment may be realized by applying a software program to any suitable computer system.

[0015] FIG. 1 is a block diagram of a computer system according to this embodiment.

[0016] The computer system 300 has, as its main components, one or more processors 302, memory 304, a terminal interface 312, a storage interface 314, an I / O (input / output) device interface 316, and a network interface 318. These components are interconnected via a memory bus 306, an I / O bus 308, a bus interface section 309, and an I / O bus interface section 310.

[0017] Processor 302 may include one or more general purpose programmable central processing units (CPUs) 302A and 302B. For example, computer system 300 may include multiple processors. As another example, computer system 300 may include a single CPU. Processor 302 is a device that executes instructions stored in memory 304 and may include an on-board cache (not shown).

[0018] The memory 304 may include a randomly accessible semiconductor memory, a storage device, a volatile storage medium, or a non-volatile storage medium for storing data and programs. The memory 304 may store all or part of the software programs, software modules, and data structures that realize the functions of each unit described below. For example, the memory 304 may store software modules that realize the functions of the attack generation model learning unit 340, the attack image generation unit 350, and the AI ​​model robustness evaluation unit 360. The constituent units of each unit and the software modules may not be the same. For example, multiple units may be realized by one software module, or one unit may be realized by multiple software modules.

[0019] In one embodiment, the attack generation model learning unit 340, the attack image generation unit 350, and the AI ​​model robustness evaluation unit 360 may be implemented in part or in whole in hardware using semiconductor devices, chips, logic gates, circuits, circuit cards, and / or other physical hardware devices instead of or in addition to a processor-based system in which a processor executes a software program that realizes the functions of the attack generation model learning unit 340, the attack image generation unit 350, and the AI ​​model robustness evaluation unit 360. In one embodiment, the attack generation model learning unit 340, the attack image generation unit 350, and the AI ​​model robustness evaluation unit 360 may include data other than instructions or descriptions of a software program. In one embodiment, a camera, sensor, or other data input device (not shown) may be provided to directly communicate with the bus interface unit 309, the processor 302, or other hardware of the computer system 300. Details of the attack generation model learning unit 340, the attack image generation unit 350, and the AI ​​model robustness evaluation unit 360 will be described below with reference to FIGS. 2, 3, and 4.

[0020] Computer system 300 may include a bus interface unit 309 that provides communication between processor 302, memory 304, display system 324, and I / O bus interface unit 310. I / O bus interface unit 310 may be coupled to an I / O bus 308. Various inputs and outputs are coupled to I / O bus 308 to enable data transfer. I / O bus interface unit 310 may communicate via I / O bus 308 with multiple I / O interface units (312, 314, 316, and 318), commonly known as I / O processors (IOPs) or I / O adapters (IOAs).

[0021] The display system 324 is a system that performs processing to display images on a display device 326 and may include a display controller and / or display memory (not shown). The display controller can provide both video and audio data to the display device 326. The display system 324 may be connected to a display device 326, such as a stand-alone display screen, a television, a tablet, or a handheld device.

[0022] Computer system 300 may also include one or more sensors, or other devices (not shown) configured to collect data and provide the data to processor 302. For example, computer system 300 may include biometric sensors to collect heart rate data, stress level data, etc., environmental sensors to collect humidity data, temperature data, pressure data, etc., and motion sensors to collect acceleration data, movement data, etc. Other types of sensors may also be used.

[0023] The I / O interface units (312, 314, 316, and 318) provide functions for communicating with various storage or I / O devices. For example, the terminal interface 312 can be attached to user I / O devices 320, such as user output devices such as a video display device, a speaker television, and the like, and user input devices such as a keyboard, a mouse, a keypad, a touchpad, a trackball, a button, a light pen, or other pointing device. A user may use the user interface to input input data or instructions to the user I / O devices 320 and the computer system 300 by operating the user input devices, and to receive output data from the computer system 300. The user interface may be displayed on a display device, played through a speaker, or printed through a printer, for example, via the user I / O devices 320.

[0024] The storage interface 314 may be attached to one or more disk drives or direct access storage device 322 (usually a magnetic disk drive storage device, but may also be an array of disk drives or other storage devices configured to appear as a single disk drive). In one embodiment, the storage device 322 may be implemented as any secondary storage device. Contents of the memory 304 may be stored in the storage device 322 and retrieved from the storage device 322 as needed. The I / O device interface 316 may provide an interface to other I / O devices such as printers, fax machines, etc. The network interface 318 may provide a communications path to allow the computer system 300 and other devices to communicate with each other. This communications path may be, for example, a network 330.

[0025] In one aspect, computer system 300 may be a device that receives requests from other computer systems (clients) without a direct user interface, such as a multi-user mainframe computer system, a single-user system, or a server computer, etc. In other embodiments, computer system 300 may be a desktop computer, a portable computer, a laptop, a tablet computer, a pocket computer, a telephone, a smartphone, or any other suitable electronic device.

[0026] Next, the attack generation model learning unit 340 according to this embodiment will be described with reference to FIG.

[0027] FIG. 2 is a block diagram of the attack generation model learning unit 340.

[0028] The attack generation model learning unit 340 includes an attack encoder 103 , a noise adding unit 105 , a generator 107 , a discriminator 110 , a loss calculator 111 , and a parameter updater 112 .

[0029] An original image 101 and a class condition c 102 are input to an attack encoder 103. The original image 101 is an original image in a training dataset used to generate an AI model to be attacked. The AI ​​model is an inference model that detects objects from an image or classifies images. The original image 101 may be subjected to several processes such as image inversion, cropping, and rotation to perform data expansion before being input to the attack encoder. The class condition c 102 is information indicating a class to be attacked. Hereinafter, the class to be attacked may be called a target class. The target class is, in other words, a class that the AI ​​model misdetects or misclassifies due to an attack. The target class may be any class into which the AI ​​model can classify an image, or may be a class indicating a background that is not classified. The attack encoder 103 is a CNN (convolutional neural network) that maps the original image 101 to a feature vector called an attack embedding e 104, and encodes the image representation of the original image 101, the class condition c 102, and an attack strategy suitable for the original image 101 into a vector. The attack encoder 103 generates, for example but not limited to, an attack embedding e 104 of an attack pattern that is most suitable for the input original image 101 and class condition c 102. The most suitable attack pattern is an attack pattern that is most likely to be successful.

[0030] The noise adding unit 105 adds multiple random noises ε 106 to the attack embedding e 104 generated by the attack encoder 103. The random noises ε may have a uniform distribution or a Gaussian distribution, but are not limited to these. The multiple attack embeddings in which different random noises ε 106 are added to the attack embedding e 104 are input to the generator 107.

[0031] The generator 107 receives the class condition c 102 and multiple attack embeddings as input, generates multiple attack images G(e, c, ε) 108, and outputs the multiple attack images 108 to the classification unit 110. The generator 107 is a CNN that decodes the attack embeddings into the attack images 108.

[0032] The inference unit 109 has an AI model of the target of attack, and detects objects from images or classifies images using the AI ​​model, and obtains the detection or classification results. Hereinafter, the detection or classification results may be referred to as inference results. The identification unit 110 identifies the attack image 108 and the original image 101, and obtains the identification results. Identification is a visual distinction made by the human eye. Hereinafter, the identification results between the attack image 108 and the original image 101 may be referred to as identification results.

[0033] The loss calculation unit 111 calculates a loss for evaluating the attack image 108 based on the inference result by the inference unit 109 and the classification result by the classification unit 110. The parameter update unit 112 updates parameters of the attack encoder 103, the generator 107, and the classification unit 110 so as to optimize the loss calculated by the loss calculation unit 111. Details of the calculation of the loss by the loss calculation unit 111 and the update of the parameters by the parameter update unit 112 will be described below.

[0034] The attack image 108 is a slightly modified version of the original image 101. However, it is not desirable to make the image completely different from the original image 101. Therefore, in order to limit the difference between the original image 101 and the attack image 108 to an appropriate range, the loss L is calculated as shown in Equation (1). dif Design the loss L dif The first loss is a loss for restricting the difference between the original image 101 and the attack image 108 to an appropriate range M. Hereinafter, the loss L dif This is sometimes called the first loss.

[0035]

number

[0036] Next, the generator 107 and the classifier 110 compete against each other in a two-player minimax game, as in a typical GAN. The classifier 110 tries to correctly classify the original image 101 and the attack image 108. Meanwhile, the generator 107 tries to trick the classifier 110 by generating a more realistic and high-quality attack image 108. To do this, the loss L G and loss L GAN are designed as shown in the following equations (2) and (3), respectively. Hereinafter, the loss L GAN This is sometimes called the second loss.

[0037]

number

[0038]

number

[0039] Next, it can be determined whether the attack has been successful or not from the inference result of object detection or image classification for the attack image 108 in the inference unit 109. For example, if the AI ​​model is a model for a classification task, it can be determined that the attack has been successful if the AI ​​model erroneously classifies the attack image 108 into the target class indicated in the class condition c. Also, if the AI ​​model is a model for a detection task, it can be determined that the attack has been successful if the AI ​​model erroneously detects an object of the target class from the attack image 108. Therefore, the loss L AI is designed as shown in equation (4). Hereafter, loss L AI This is sometimes called the third loss.

[0040]

number

[0041] Next, from the inference result AI(G(e,c,ε),c) by the AI ​​model for multiple attack images G(e,c,ε), the attack image G(e,c,ε) that is closest to the successful attack among the multiple attack images G(e,c,ε) is selected. + ) is selected. For example, the attack image G(e,c,ε + ) and update the attack encoder 103 to encode a better attack embedding e. e is designed as shown in equation (5). Hereafter, the loss L e This is sometimes called the fourth loss.

[0042]

number

[0043] The loss calculation unit 111 calculates the overall loss L shown in formula (6) from the loss functions of the first, second, third, and fourth losses described above, using the hyperparameters ω1, ω2, and ω3 each representing a different weight. Hereinafter, the loss L may be referred to as the training loss.

[0044]

number

[0045] When the learning of calculating the training loss and updating the parameters is repeated multiple times until a predetermined termination condition is met, the attack encoder 103 is trained to encode an appropriate attack embedding e 104 and make the attack successful. As the termination condition, for example, a threshold may be set for the accuracy of the inference result, or an upper limit may be set for the number of iterations. Then, the generator 107 is trained to generate high-quality and realistic attack images 108. Also, the discriminator 110 is trained to distinguish between an actual image and the generated attack image 108. The attack encoder 103 and the trained generator 107 thus trained are used in the attack image generator 350. Also, the trained attack encoder 103, the trained generator 107, and the trained discriminator 110 are used in the AI ​​model robustness evaluation unit 360.

[0046] Next, the attack image generation unit 350 will be described with reference to FIG.

[0047] 3 is a block diagram of the attack image generation unit 350. Referring to FIG. 3, the attack image generation unit 350 includes an attack encoder 103 and a generator 107.

[0048] The attack encoder 103 and the generator 107 are trained by the attack generation model learning unit 340. The original image 201 is an original image for generating an attack image 204. The class condition c 202 is information indicating a target class of an attack. The target class of the class condition c 202 may be the same as the target class indicated in the class condition c 102 used in the attack generation model learning unit 340. The attack encoder 103 can encode an optimal attack embedding e 203 for the original image 201 and the class condition c 202. The generator 107 can generate a high-quality and realistic attack image 204 based on the attack embedding e 203.

[0049] Next, the AI ​​model robustness assessment unit 360 will be described with reference to FIG.

[0050] To evaluate an AI model, first, an attack image is generated using a trained attack encoder and a trained generator, the generated attack image is input to the AI ​​model to be evaluated, and an inference result is obtained from the AI ​​model. In general, the accuracy of the inference result, such as the precision rate and recall rate, is used as the evaluation criterion. However, evaluation using this evaluation method is highly dependent on the capabilities of the generator. In other words, how well the generator is trained has a significant impact on the evaluation results. All parameters in the generator network can be obtained by training, but the number of iterations of the training is determined by humans based on experience. Therefore, how well the generator can be trained depends on human experience and capabilities.

[0051] In contrast, in this embodiment, the number of iterations of fine-tuning (training) of the generator is used as an evaluation criterion for the robustness of the AI ​​model. Specifically, an attack image 404 is generated using a pre-trained generator 107, and if an attack fails with the attack image 404, fine-tuning (training) of the generator 107 is repeated until an attack image 404 that is successful in the attack can be generated. Then, the number of iterations of fine-tuning until the attack is successful is recorded as an evaluation result 406 of the AI ​​model. Since it can be said that the more the number of iterations of fine-tuning, the less susceptible the AI ​​model is to attacks, the number of iterations of fine-tuning becomes an evaluation criterion for robustness that indicates how robust the AI ​​model is.

[0052] Fig. 4 is a block diagram of the AI ​​model robustness evaluation unit 360. Referring to Fig. 4, the AI ​​model robustness evaluation unit 360 includes the attack encoder 103, the generator 107, an evaluation unit 405, a discrimination unit 110, a loss calculation unit 407, and a parameter update unit 408. Note that the AI ​​model robustness evaluation unit 360 does not have a function equivalent to the noise addition unit 105 that adds random noise ε 106.

[0053] The original image 401 is an original image for generating an attack image 404 used in the evaluation. The class condition c 402 is information indicating a target class of an attack in the evaluation. The target class of the class condition c 402 may be the same as the target class indicated in the class condition c 102 used in the attack generation model learning unit 340.

[0054] The attack encoder 103 and the discrimination unit 110 are trained by the attack generation model learning unit 340. The generator 107 is trained by the attack generation model learning unit 340 in the initial state.

[0055] The loss calculation unit 307 calculates the fine-tuning loss L shown in Equation (7) from the loss functions of the first, second, and third losses described above using the hyperparameters ω1 and ω2 representing the weights. ft Calculate.

[0056]

number

[0057] The evaluation unit 405 includes an AI model to be evaluated, and detects objects from the attack image 404 or classifies the attack image 404 using the AI ​​model, and if the inference result indicates that the attack has failed, it repeats training of the generator 107 by the loss calculation unit 407 and the parameter update unit 408 and obtaining an inference result by the AI ​​model until the attack is successful. After evaluating the attack image 404 based on all the original images 401, the evaluation unit 405 calculates the average accuracy of the inference results and the number of iterations, and outputs them as the evaluation result 406.

[0058] Next, the flow of operations of the AI ​​model robustness assessment unit 360 will be described with reference to FIG.

[0059] FIG. 5 is a flowchart showing the operation of the AI ​​model robustness assessment unit 360.

[0060] First, necessary information including the original image 401 and the class condition 402 in the evaluation data set is input to the AI ​​model robustness evaluation unit 360 (step s11).

[0061] Next, within the AI ​​model robustness evaluation unit 360, the attack encoder 103 and the generator 107 generate an attack embedding 403 and an attack image 404 such that a given original image 401 is misdetected or misclassified into the target class indicated in the class condition 402 (step S12).

[0062] Next, the evaluation unit 405 inputs the generated attack image 404 into the AI ​​model and obtains an inference result by the AI ​​model (step s13). Then, the evaluation unit 405 compares the inference result with the target class indicated in the class condition 402 to determine whether the attack is successful or not (step s14).

[0063] If the attack is successful, the evaluation unit 405 reflects the inference result in the evaluation result 406 (step s15). If the attack is unsuccessful, the loss calculation unit 407 calculates the fine-tuning loss L based on the formula (7). ft (step s16), and the parameter update unit 408 calculates the fine-tuning loss L ft Based on this, the parameters of the generator 107 are updated (step s17), the number of iterations is incremented by 1, and the process returns to step s12. The AI ​​model robustness evaluation unit 360 considers steps s16, s17, s12, and s13 as an example of an update process, and repeats the update process until the attack is successful. If the attack is ultimately successful, the evaluation unit 405 reflects the inference result and the number of iterations in the evaluation result 406 (step s15).

[0064] Although the embodiments of the present invention have been described above, the present invention is not limited to the embodiments shown here, and these embodiments may be used in combination or some configurations may be changed within the scope of the technical concept of the present invention. In addition, some or all of the above embodiments include the following items. However, the present invention is not limited to the following items.

[0065] (Item 1) The adversarial attack countermeasure support system includes an attack encoder that encodes an attack embedding from an original image, a noise adding unit that adds random noise to the attack embedding output from the attack encoder, a generator that generates an attack image for attacking an inference model using the attack embedding with the random noise added, an inference unit that performs inference on the attack image using the inference model and obtains an inference result, a discrimination unit that discriminates between the attack image and the original image and calculates the discrimination result, a loss calculation unit that calculates a training loss, which is a loss for training the attack image based on the inference result and the discrimination result, and a parameter update unit that updates the attack encoder, the generator, and the discrimination unit based on the training loss.

[0066] This allows the parameters of the attack encoder and generator to be updated based on the evaluation of attacks using attack images that use attack embeddings with added random noise, and improves the attack images, making it possible to assist in the evaluation of the robustness of AI models against attack images with a variety of attack patterns.

[0067] (Item 2) In the adversarial attack countermeasure support system described in item 1, the loss calculation unit calculates a first loss to limit the difference between the original image and the attack image to a predetermined range, calculates a second loss to cause the classification unit to correctly identify the original image and the attack image and the generator to erroneously identify the original image and the attack image, calculates a third loss to increase the possibility that an attack against an inference by the inference model will be successful, calculates a fourth loss to reduce the distance between an attack embedding to which no random noise has been added of an attack image to which the attack is likely to be successful and an attack embedding to which random noise has been added, and calculates the training loss by summing the first loss, the second loss, the third loss, and the fourth loss with a predetermined weighting.

[0068] This makes it possible to assist in evaluating the robustness of AI models against attack images with a variety of attack patterns.

[0069] (Item 3) The adversarial attack countermeasure support system according to item 2 further includes an attack image generation unit that generates an attack image using the attack encoder and the generator obtained by repeating the calculation of the training loss by the loss calculation unit and the update of the attack encoder, the generator, and the identification unit by the parameter update unit until a predetermined termination condition is satisfied. This makes it possible to generate an attack image that is likely to be successful in attacking an inference model.

[0070] (Item 4) In the adversarial attack countermeasure support system described in item 3, the system further includes a robustness evaluation unit that repeats a series of update processes, including inputting an attack image generated by the attack image generation unit into the inference model to obtain an inference result, discriminating between the attack image and an original image to calculate an identification result, calculating a fine-tuning loss, which is a loss for fine-tuning the attack image based on the inference result and the identification result, updating the generator based on the fine-tuning loss if the attack is not successful based on the inference result, inputting an attack image generated using the updated generator into the inference model to obtain an inference result and an identification result, until the attack is successful, and outputs the number of iterations of the update process as an evaluation result of the inference model.

[0071] According to this method, the generator is repeatedly updated until the attack is successful, and the number of iterations is used as the evaluation result, so that robustness can be evaluated in a manner that does not depend on the capabilities of the generator.

[0072] (Item 5) In the adversarial attack countermeasure support system described in item 4, the robustness evaluation unit calculates the fine-tuning loss by summing the first loss, the second loss, and the third loss with a predetermined weighting. This makes it possible to appropriately evaluate robustness based on the number of iterations of the update process until an attack on an inference model is successful through an appropriate update process. [Explanation of symbols]

[0073] 103...attack encoder, 105...noise adding unit, 107...generator, 109...inference unit, 110...identification unit, 111...loss calculation unit, 112...parameter update unit, 300...computer system, 302...processor, 304...memory, 306...memory bus, 308...I / O bus, 309...bus interface unit, 310...I / O bus interface unit, 312...terminal interface, 314...storage interface, 316...I / O device interface, 316...device interface, 318...network interface, 320...I / O device, 322...storage device, 324...display system, 326...display device, 330...network, 340...attack generation model learning unit, 350...attack image generation unit, 360...AI model robustness evaluation unit, 405...evaluation unit 406: evaluation result, 407: loss calculation unit, 408: parameter update unit

Claims

1. an attack encoder that encodes an attack embedding from an original image; a noise adding unit that adds random noise to the attack embedding output from the attack encoder; A generator that generates an attack image for attacking an inference model using the attack embedding to which the random noise is added; an inference unit that performs inference on the attack image using the inference model and obtains an inference result; a classification unit that classifies the attack image and the original image and calculates a classification result; a loss calculation unit that calculates a training loss, which is a loss for training the attack image, based on the inference result and the classification result; a parameter updater that updates the attack encoder, the generator, and the discriminator based on the training loss; A support system for countering hostile attacks.

2. The loss calculation unit is Calculating a first loss for limiting a difference between the original image and the attack image to a predetermined range; Calculating a second loss in which the classifier tries to correctly classify the original image and the attack image and the generator tries to incorrectly classify the original image and the attack image; Calculating a third loss to attempt to increase the likelihood of a successful attack against an inference by the inference model; Calculating a fourth loss for reducing the distance between an attack embedding to which no random noise has been added and an attack embedding to which random noise has been added of the attack image to which the attack is likely to be successful; calculating the training loss by summing the first loss, the second loss, the third loss, and the fourth loss with a predetermined weighting; The hostile attack countermeasure support system according to claim 1 .

3. and an attack image generation unit that generates an attack image using the attack encoder and the generator obtained by repeating the calculation of the training loss by the loss calculation unit and the update of the attack encoder, the generator, and the discrimination unit by the parameter update unit until a predetermined termination condition is satisfied. The hostile attack countermeasure support system according to claim 2.

4. a robustness evaluation unit that repeats a series of update processes, including inputting an attack image generated by the attack image generation unit into the inference model to obtain an inference result, discriminating between the attack image and an original image to calculate a discrimination result, calculating a fine-tuning loss, which is a loss for fine-tuning the attack image based on the inference result and the discrimination result, updating the generator based on the fine-tuning loss if the attack is not successful based on the inference result, inputting an attack image generated by the updated generator into the inference model to obtain an inference result and a discrimination result, until the attack is successful, and outputs the number of iterations of the update process as an evaluation result of the inference model. The hostile attack countermeasure support system according to claim 3.

5. the robustness evaluation unit calculates the fine-tuning loss by summing the first loss, the second loss, and the third loss with a predetermined weighting; The hostile attack countermeasure support system according to claim 4.

6. The computer The attack encoder encodes the attack embedding from the original image. adding random noise to the attack embedding output from the attack encoder; A generator generates an attack image for attacking the inference model using the attack embedding to which the random noise has been added; Performing inference on the attack image using the inference model to obtain an inference result; A discrimination unit discriminates between the attack image and the original image and calculates a discrimination result; Calculating a training loss, which is a loss for training the attack image, based on the inference result and the classification result; updating the attack encoder, the generator, and the discriminator based on the training loss; A method for supporting countermeasures against adversarial attacks.

7. The attack encoder encodes the attack embedding from the original image. adding random noise to the attack embedding output from the attack encoder; A generator generates an attack image for attacking the inference model using the attack embedding to which the random noise has been added; Performing inference on the attack image using the inference model to obtain an inference result; A discrimination unit discriminates between the attack image and the original image and calculates a discrimination result; Calculating a training loss, which is a loss for training the attack image, based on the inference result and the classification result; updating the attack encoder, the generator, and the discriminator based on the training loss. A program to be executed by a computer to assist in countering hostile attacks.

Citation Information

Patent Citations

  • Model creation device, model creation method, computer program, and recording medium

    WO2020165935A1