Learning device, learning method, and learning program

The learning device and method enhance deep learning model robustness and efficiency by using Entropy-SGD and SGLD to optimize parameters, addressing inefficiencies in conventional adversarial learning methods.

JP7571878B2Active Publication Date: 2024-10-23NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023523800
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-26
Publication Date
2024-10-23
Estimated Expiration
2041-05-26

AI Technical Summary

Technical Problem

Conventional methods for improving the robustness of deep learning models against adversarial attacks are inefficient and do not adequately enhance learning efficiency while smoothing the objective function.

Method used

A learning device and method that utilizes Entropy-SGD to calculate and optimize the objective function using stochastic gradient Langevin dynamics (SGLD) to update parameters of the deep learning model, thereby enhancing learning efficiency and robustness against adversarial attacks.

Benefits of technology

The proposed method improves the learning efficiency and robustness of deep learning models against noise and adversarial attacks by smoothing the objective function, making them more resilient to hostile inputs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571878000013
    Figure 0007571878000013
  • Figure 0007571878000014
    Figure 0007571878000014
  • Figure 0007571878000015
    Figure 0007571878000015
Patent Text Reader

Abstract

This learning device computes, by means of Entropy-SGD, an objective function when data created as an adversarial attack is input to a deep learning model. The learning device updates parameters of the deep learning model so as to optimize the objective function.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning device, a learning method, and a learning program. [Background technology]

[0002] Traditionally, deep learning and deep neural networks have been very successful in image recognition, speech recognition, and the like. For example, in image recognition using deep learning, when an image is input into a model that includes many nonlinear functions of deep learning, the model outputs a classification result of what the image depicts. In particular, convolutional networks and ReLU are commonly used in image recognition. In the following explanation, a deep neural network trained by deep learning may be simply called a deep learning model or model.

[0003] On the other hand, if a malicious attacker adds noise to the input image, small amounts of noise can easily cause a deep learning model to misclassify the image (Reference: Christian Szegedy, et al. “Intriguing properties of neural networks.” arXiv preprint: 1312.6199, 2013.). This type of attack is called an adversarial attack.

[0004] As a method for making deep learning robust against adversarial attacks, adversarial learning has been proposed, in which adversarial attacks are added as data when learning in advance (see, for example, non-patent documents 1 and 2).

[0005] Here, since the objective function (loss function) optimized in adversarial learning is not smooth, a conventional learning method using gradients may not be efficient (see, for example, Non-Patent Document 3).

[0006] In addition, as a method for improving the smoothness of objective functions in deep learning, Entropy-SGD, which uses SGLD (Reference: M. Welling and YW Teh. “Bayesian learning via stochastic gradient Langevin dynamics.” In ICML, 2011.), has been proposed (see, for example, Non-Patent Document 4). [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] Goodfellow, Ian J., Jonathon Shlens, and Christian Szegedy. “Explaining and harnessing adversarial examples.” arXiv preprint: 1412.6572 2014. [Non-Patent Document 2] Madry Aleksander, et al. “Towards deep learning models resistant to adversarial attacks.” arXivpreprint: 1706.06083, 2017. [Non-Patent Document 3] Liu, Chen, et al. “On the Loss Landscape of Adversarial Training: Identifying Challenges and How to Overcome Them.” Advances in Neural Information Processing Systems 33 (2020). [Non-Patent Document 4] Chaudhari, Pratik, et al. “Entropy-SGD: Biasing Gradient Descent into Wide Valleys.” arXivpreprint: 1611.01838 (2016). Summary of the Invention [Problem to be solved by the invention]

[0008] However, the conventional techniques have a problem in that they may not be able to improve the learning efficiency while smoothing the objective function of the adversarial learning.

[0009] For example, there is a problem that the method described in Non-Patent Document 4 may not be robust against noise. For example, Entropy-SGD described in Non-Patent Document 4 smoothes the objective function, but the learning efficiency may not be sufficiently high. [Means for solving the problem]

[0010] In order to solve the above-mentioned problems and achieve the objective, the learning device is characterized by having a calculation unit that calculates an objective function when data created as an adversarial attack is input to a deep learning model using Entropy-SGD, and an update unit that updates parameters of the deep learning model so that the objective function is optimized. Effect of the Invention

[0011] According to the present invention, it is possible to make a deep learning model robust to noise. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a diagram illustrating the overall structure of a deep learning model. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of the learning device according to the first embodiment. [Diagram 3] FIG. 3 is a diagram explaining the Entropy-SGD algorithm. [Figure 4] FIG. 4 is a diagram for explaining an algorithm according to the embodiment. [Diagram 5] FIG. 5 is a diagram for explaining an algorithm according to the embodiment. [Figure 6]Figure 6 is a flowchart showing the flow of deep learning. [Figure 7] Figure 7 is a flowchart showing the learning process using Entropy-SGD. [Figure 8] FIG. 8 is a flowchart showing the flow of the update process in learning. [Figure 9] FIG. 9 is a flowchart showing the flow of the update process according to the embodiment. [Figure 10] FIG. 10 is a flowchart showing the flow of the update process according to the embodiment. [Figure 11] FIG. 11 is a flowchart showing the flow of the update process in adversarial learning. [Figure 12] FIG. 12 is a flowchart showing the flow of an update process in adversarial learning according to an embodiment. [Figure 13] FIG. 13 is a flowchart showing the flow of an update process in adversarial learning according to the embodiment. [Figure 14] FIG. 14 is a diagram illustrating an example of a computer that executes a program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] (Deep Learning) First, the deep learning model will be described with reference to Fig. 1. Fig. 1 is a diagram illustrating an example of the overall structure of the deep learning model. In the following description, it is assumed that deep learning is executed by a learning device 10a.

[0014] As shown in Figure 1, a deep learning model has an input layer where signals enter, one or more intermediate layers that transform the signals from the input layer, and a final layer that converts the signals from the intermediate layers into outputs such as probabilities.

[0015] Fig. 6 is a flowchart showing the flow of deep learning. As shown in Fig. 6, first, the learning device 10a applies an input randomly selected from a previously prepared data set to a classifier (step S101).

[0016] Next, the learning device 10a calculates the output of the classifier, and calculates a loss function using the output and the label of the dataset (step S102).Then, the learning device 10a updates the parameters of the classifier using the gradient of the loss function (step S103).The loss function is an example of an objective function.

[0017] If the evaluation criterion is not met (step S104, No), the learning device 10a returns to step S101 and repeats the process. On the other hand, if the evaluation criterion is met (step S104, Yes), the learning device 10a ends the process.

[0018] For example, the learning device 10a updates the parameters so that the loss function becomes smaller. The loss function is usually set to a function that becomes smaller as the output of the classifier and the label match, so that the classifier can identify the input label through the learning process.

[0019] Moreover, the evaluation criterion in step S104 is, for example, whether or not a separately prepared data set can be correctly identified.

[0020] Hereinafter, in the drawings and expressions, bold capital letters represent matrices, bold lowercase letters represent column vectors, and row vectors are expressed using transpose.

[0021] Further, although image recognition using deep learning is described as an example here, the embodiment can be applied to various classification tasks other than image recognition.

[0022] For image recognition using deep learning, let x∈R C×H×W Consider the problem of recognizing an image and finding the label y of that image from M labels, where C is the channel of the image (3 channels in the case of RGB format), H is the vertical size, and W is the horizontal size.

[0023] In this case, the deep learning model repeats nonlinear functions and linear operations, and outputs the output through a function called the softmax function in the final layer. Now, the vector that is converted by the model and finally input to the softmax is z θ (x)=[z θ,1 (x),z θ,2 (x),…,z θ,M (x)] T Let us assume that.

[0024] where θ∈R d is the parameter vector of the deep learning model, and z θ (x) is called logit. The softmax function is f s (·), the output of the model is the softmax output f s (z θ (x)∈R M and the kth output is given by equation (1).

[0025]

number

[0026] The output of equation (1) represents the score for each label in class classification, and the output element with the highest score obtained by equation (2) is the recognition result of deep learning.

[0027]

number

[0028] Image recognition is a type of classification, and the model that performs the classification s (z θ (·)) is called a classifier. The parameter θ is determined by the N data sets {(x i ,y i )}, i = 1, ..., N. In this learning, we use the cross-entropy y i =argmax k [f s (z θ (x))] kWe set a loss function l(x, y, θ) that is small enough to be correctly recognized, and then optimize the average of the data as shown in equation (3) to find θ.

[0029]

number

[0030] Learning is performed by optimization based on the gradient of the loss function, and θ is found by repeatedly calculating equation (4).

[0031]

number

[0032] Here, η is a parameter called the learning rate. A more efficient method for optimizing using gradients is the Newton method, which optimizes equation (5).

[0033]

number

[0034] Furthermore, in adversarial learning to make the model robust, θ is found by optimizing equation (6).

[0035]

number

[0036] Here, B(x i ) is x i is the area of ​​distance ε centered on x', which is obtained by maximizing i is called a hostile attack.

[0037] (Entropy-SGD) Entropy-SGD is a method for improving smoothness in deep learning. For the original loss function L(x,y,θ), Entropy-SGD minimizes the loss function in equation (7).

[0038]

number

[0039] Equation (7) is expressed as the probability density function p θ is the local entropy of (θ′).

[0040]

number

[0041] The gradient of the loss function in equation (7) is expressed by equation (9).

[0042]

number

[0043] Here, Ep θ(θ′) [θ′] is the probability density function p θ is the expectation value of (θ′).

[0044] The algorithm of Entropy-SGD explained here is shown in Figure 3. Figure 3 is a diagram for explaining the algorithm of Entropy-SGD.

[0045] FIG. 7 is a flowchart showing the flow of learning using Entropy-SGD.

[0046] 7, first, the learning device 10a initializes parameters (step S201), and then updates the parameters using Entropy-SGD (step S202).

[0047] If the evaluation criterion is not met (step S203, No), the learning device 10a returns to step S202 and repeats the process. On the other hand, if the evaluation criterion is met (step S203, Yes), the learning device 10a ends the process.

[0048] Here, in lines 3 to 8 of Figure 3, we use a method called Stochastic Gradient Langevin Dynamics (SGLD) to calculate E pθ (θ')[θ'] is calculated approximately.

[0049] Fig. 8 is a flowchart showing the flow of the update process in learning. The part surrounded by the dashed line in Fig. 8 corresponds to the third to eighth lines in Fig. 3, that is, the process of calculating the expected value of θ′ by SGLD.

[0050] 8, first, the learning device 10a increments l by 1 (step S301). Then, the learning device 10a applies an input randomly selected from the data set to the discriminator (step S302).

[0051] Here, the learning device 10a calculates the gradient and p θ(θ′) and updates the average of θ′ using the sampling (step S303).

[0052] If l is equal to or less than L (step S304, Yes), the learning device 10a returns to step S301 and repeats the process. On the other hand, if l is not equal to or less than L (step S304, No), the learning device 10a updates the model parameters (step S305).

[0053] [Learning device according to an embodiment] The configuration of the learning device according to the first embodiment will be described with reference to Fig. 2. Fig. 2 is a diagram showing an example of the configuration of the learning device according to the first embodiment. The learning device 10 receives an input of a learning dataset, learns a model, and outputs a learned model.

[0054] The following describes each unit of the learning device 10. As shown in FIG.

[0055] The interface unit 11 is an interface for inputting and outputting data. For example, the interface unit 11 includes a NIC (Network Interface Card). The interface unit 11 may also include input devices such as a mouse and a keyboard, and an output device such as a display.

[0056] The storage unit 12 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), an optical disk, etc. The storage unit 12 may be a semiconductor memory in which data can be rewritten, such as a random access memory (RAM), a flash memory, or a non-volatile static random access memory (NVSRAM). The storage unit 12 stores an operating system (OS) and various programs executed by the learning device 10. The storage unit 12 also stores model information 121.

[0057] The model information 121 is information such as parameters for constructing a deep learning model (classifier). For example, the model information 121 includes weights and biases of each layer of a deep neural network. The deep learning model constructed by the model information 121 may be a trained model or may be a model before training.

[0058] The control unit 13 controls the entire learning device 10. The control unit 13 is, for example, an electronic circuit such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), or an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). The control unit 13 also has an internal memory for storing programs that define various processing procedures and control data, and executes each process using the internal memory. The control unit 13 also functions as various processing units by the operation of various programs. For example, the control unit 13 has a calculation unit 131 and an update unit 132.

[0059] As mentioned above, the loss function L(x,y,θ) of deep learning becomes a non-smooth function when performing adversarial learning, etc. In that case, gradient-based optimization is not efficient.

[0060] Therefore, in order to improve the learning efficiency while smoothing the objective function of the adversarial learning, the learning device 10 has the following configuration. That is, the calculation unit 131 calculates the objective function when data created as an adversarial attack is input to the deep learning model by Entropy-SGD. Also, the update unit 132 updates the parameters of the deep learning model so that the objective function is optimized.

[0061] The learning device 10 can perform learning according to the following embodiment 1 or embodiment 2 which is a more efficient version of embodiment 1.

[0062] Example 1 The learning device 10 estimates the variance-covariance matrix by SGLD, taking advantage of the fact that the Hessian matrix becomes a variance-covariance matrix in Entropy-SGD, and improves efficiency by multiplying the inverse matrix of the Hessian matrix as in the Newton method.

[0063] The learning device 10 calculates the Hessian matrix of Entropy-SGD. The (i, j) element of the Hessian matrix is ​​expressed by equation (10).

[0064]

number

[0065] The matrix containing the components of equation (10) is equation (11).

[0066]

number

[0067] where δ i,j is a delta function that is 1 when i=j and 0 otherwise, and I is the identity matrix. Σ θ′ is the probability density function p θ is the variance-covariance matrix of (θ′).

[0068] It is difficult to accurately obtain this variance-covariance matrix. Therefore, the learning device 10 uses SGLD in the same way as the expected value to approximate the variance-covariance matrix by the algorithm shown in the pseudo code in Fig. 4. Fig. 4 is a diagram for explaining the algorithm of the embodiment.

[0069] The learning device 10 executes E in lines 13 to 17 of FIG. pθ [θ i 'θ j ′] is calculated approximately, and E pθ [θ i 'θ j ′]-E pθ [θ i ']E pθ [θ j In line 24, the inverse Hessian matrix is ​​calculated and multiplied by the gradient. This is expected to speed up the method, similar to Newton's method.

[0070] The flow of the update process in this case is shown in Fig. 9. Fig. 9 is a flowchart showing the flow of the update process according to the embodiment. The process in Fig. 9 corresponds to the algorithm in Fig. 4.

[0071] 9, first, the learning device 10 increments l by 1 (step S401). Then, the learning device 10 applies an input randomly selected from the data set to the classifier (step S402).

[0072] Here, the learning device 10 calculates the gradient and p θ(θ′) and updates the average of θ′ using the sampling (step S403).

[0073] Furthermore, the learning device 10 updates the variance-covariance matrix using θ′ (step S404).

[0074] If l is equal to or smaller than L (Yes at step S405), the learning device 10 returns to step S401 and repeats the process.

[0075] On the other hand, if l is not equal to or smaller than L (step S405, No), the learning device 10 calculates an inverse matrix of a matrix consisting of an identity matrix and the estimated (updated) variance-covariance (step S406).Then, the learning device 10 updates the model parameters using the calculated inverse matrix (step S407).

[0076] In the first embodiment, the calculation unit 131 calculates a first matrix, which is a variance-covariance matrix of parameters according to the probability distribution used in the Entropy-SGD, by SGLD (Stochastic Gradient Langevin Dynamics). The update unit 132 updates the parameters of the deep learning model using the first matrix.

[0077] In addition, the update unit 132 updates the parameters of the deep learning model by multiplying the gradient by the inverse matrix of the first matrix, which is the Hessian matrix.

[0078] Example 2 To calculate the inverse of a matrix, it takes O(d 3), a more efficient method is to assume that the covariance is 0 and that Σ is a diagonal matrix consisting of the variances of each parameter. Then, the inverse matrix of the Hessian matrix is ​​a diagonal matrix whose (i,i) element is given by equation (12).

[0079]

number

[0080] In this case, the learning device 10 only needs to multiply each parameter by the inverse of the variance. The learning device 10 approximates a variance-covariance matrix (variance matrix) with a covariance of 0 by the algorithm shown in the pseudo code in Fig. 5. Fig. 5 is a diagram for explaining the algorithm of the embodiment.

[0081] The learning device 10 executes E in lines 11 to 13 of FIG. pθ [θ i 'θ j ′] is calculated approximately, and E pθ [θ i 'θ j ′]-E pθ [θ i ']E pθ [θ j ′] is approximated, and in line 18 the inverse of the Hessian matrix is ​​calculated and multiplied by the gradient.

[0082] The flow of the update process in this case is shown in Fig. 10. Fig. 10 is a flowchart showing the flow of the update process according to the embodiment. The process in Fig. 10 corresponds to the algorithm in Fig. 5.

[0083] 10, first, the learning device 10 increments l by 1 (step S501). Then, the learning device 10 applies an input randomly selected from the data set to the classifier (step S502).

[0084] Here, the learning device 10 calculates the gradient and p θ(θ′) and updates the average of θ′ using the sampling (step S503).

[0085] Furthermore, the learning device 10 updates the variance using θ′ (step S504).

[0086] If l is equal to or smaller than L (Yes at step S505), the learning device 10 returns to step S501 and repeats the process.

[0087] On the other hand, if l is not equal to or less than L (step S505, No), the learning device 10 calculates a vector consisting of an identity matrix and the estimated (updated) variance (step S506), and then updates the model parameters using the calculated vector (step S507).

[0088] In the second embodiment, the calculation unit 131 calculates a first matrix assuming that the covariance of a variance-covariance matrix calculated by SGLD (Stochastic Gradient Langevin Dynamics) of parameters according to the probability distribution used in the Entropy-SGD is 0. The update unit 132 updates the parameters of the deep learning model using the first matrix.

[0089] The Entropy-SGD, Example 1, and Example 2 described above are applicable to adversarial learning. In particular, by applying Example 1 and Example 2 to adversarial learning, an effect of improving learning efficiency while smoothing the objective function of adversarial learning is obtained.

[0090] 11, 12, and 13 respectively show the process of applying Entropy-SGD, Example 1, and Example 2 to adversarial learning. In these processes, adversarial attacks are created based on inputs randomly selected from the dataset.

[0091] Fig. 11 is a flowchart showing the flow of the update process in adversarial learning. As shown in Fig. 11, first, the learning device 10a increments l by 1 (step S601). Then, the learning device 10a randomly selects an input from the dataset (step S602).

[0092] Here, the learning device 10a creates an adversarial attack from the selected input (step S603), and inputs (applies) the created adversarial attack to the classifier (step S604).

[0093] Here, the learning device 10a calculates the gradient and p θ(θ′) and updates the average of θ′ using the sampling (step S605).

[0094] If l is equal to or less than L (step S606, Yes), the learning device 10a returns to step S601 and repeats the process. On the other hand, if l is not equal to or less than L (step S606, No), the learning device 10a updates the model parameters (step S607).

[0095] 12 is a flowchart showing a flow of an update process according to an embodiment in adversarial learning. As shown in FIG. 12, first, the learning device 10 increments l by 1 (step S701). Then, the learning device 10 randomly selects an input from the dataset (step S702).

[0096] Here, the learning device 10 creates an adversarial attack from the selected input (step S703), and inputs (applies) the created adversarial attack to the classifier (step S704).

[0097] Here, the learning device 10 calculates the gradient and p θ(θ′) and updates the average of θ′ using the sampling (step S705).

[0098] Furthermore, the learning device 10 updates the variance-covariance matrix using θ′ (step S706).

[0099] If l is equal to or smaller than L (Yes at step S707), the learning device 10 returns to step S701 and repeats the process.

[0100] On the other hand, if l is not equal to or less than L (step S707, No), the learning device 10 calculates the inverse matrix of the unit matrix and the matrix consisting of the estimated (updated) variance-covariance (step S708).Then, the learning device 10 updates the model parameters using the calculated inverse matrix (step S709).

[0101] 13 is a flowchart showing a flow of an update process according to an embodiment in adversarial learning. As shown in FIG 13, first, the learning device 10 increments l by 1 (step S801). Then, the learning device 10 randomly selects an input from the dataset (step S802).

[0102] Here, the learning device 10 creates an adversarial attack from the selected input (step S803), and then inputs (applies) the created adversarial attack to the classifier (step S804).

[0103] Here, the learning device 10 calculates the gradient and p θ(θ′) and updates the average of θ′ using the sampling (step S805).

[0104] Furthermore, the learning device 10 updates the variance using θ′ (step S806).

[0105] Here, if l is equal to or smaller than L (step S807, Yes), the learning device 10 returns to step S801 and repeats the process.

[0106] On the other hand, if l is not equal to or less than L (step S807, No), the learning device 10 calculates a vector consisting of an identity matrix and the estimated (updated) variance (step S808), and then updates the model parameters using the calculated vector (step S809).

[0107] [Advantages of the First Embodiment] As described above, the calculation unit 131 calculates the objective function by Entropy-SGD when data created as an adversarial attack is input to the deep learning model. The update unit 132 updates the parameters of the deep learning model so that the objective function is optimized. This allows the learning device 10 to improve the learning efficiency while smoothing the objective function of the adversarial learning.

[0108] In addition, the calculation unit 131 calculates a first matrix, which is a variance-covariance matrix of parameters according to the probability distribution used in the Entropy-SGD, by SGLD (Stochastic Gradient Langevin Dynamics). The update unit 132 updates the parameters of the deep learning model using the first matrix. This allows the learning device 10 to improve the learning efficiency of adversarial learning.

[0109] The calculation unit 131 calculates a first matrix assuming that the covariance of a variance-covariance matrix calculated by SGLD (Stochastic Gradient Langevin Dynamics) of parameters according to the probability distribution used in Entropy-SGD is 0. The update unit 132 updates the parameters of the deep learning model using the first matrix. This allows the learning device 10 to further improve the learning efficiency of adversarial learning.

[0110] The update unit 132 updates the parameters of the deep learning model by multiplying the gradient by the inverse matrix of the first matrix, which is the Hessian matrix. This enables the learning device 10 to smooth the gradient.

[0111] [System configuration, etc.] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of them can be functionally or physically distributed or integrated in any unit depending on various loads, usage conditions, etc. Furthermore, each processing function performed by each device can be realized in whole or in any part by a CPU (Central Processing Unit) and a program analyzed and executed by the CPU, or can be realized as hardware using wired logic.

[0112] Furthermore, among the processes described in this embodiment, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified.

[0113] [program] In one embodiment, the learning device 10 can be implemented by installing a program that executes the above learning process as package software or online software on a desired computer. For example, the above program can be executed by an information processing device, causing the information processing device to function as the learning device 10. The information processing device here includes desktop and notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone Systems), as well as slate terminals such as PDAs (Personal Digital Assistants).

[0114] The learning device 10 can also be implemented as a server device that provides services related to the above-mentioned processing to a client, the client being a terminal device used by a user. For example, the server device is implemented as a server device that provides a service that uses a dataset as input and outputs a trained deep learning model. In this case, the server device may be implemented as a web server or as a cloud that provides services related to the above-mentioned processing by outsourcing.

[0115] 14 is a diagram showing an example of a computer that executes a program. The computer 1000 includes, for example, a memory 1010 and a CPU 1020. The computer 1000 also includes a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0116] The memory 1010 includes a read only memory (ROM) 1011 and a random access memory (RAM) 1012. The ROM 1011 stores a boot program such as a basic input output system (BIOS). The hard disk drive interface 1030 is connected to a hard disk drive 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.

[0117] The hard disk drive 1090 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. That is, a program that defines each process of the learning device 10 is implemented as a program module 1093 in which computer-executable code is written. The program module 1093 is stored, for example, in the hard disk drive 1090. For example, a program module 1093 for executing processes similar to those of the functional configuration of the learning device 10 is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).

[0118] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes the processing of the above-described embodiment.

[0119] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (such as a local area network (LAN) or wide area network (WAN)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070. [Explanation of symbols]

[0120] 10 Learning Device 11 Interface section 12 Storage section 13 Control section 121 Model Information 131 Calculation Department 132 Update Department

Claims

1. A calculation unit that calculates a variance-covariance matrix of parameters according to a probability distribution used in Entropy-SGD, which calculates an objective function when data created as an adversarial attack is input to a deep learning model; An update unit that updates parameters of the deep learning model using the variance-covariance matrix so that the objective function is optimized; A learning device comprising:

2. The first matrix, which is the variance-covariance matrix, is calculated by SGLD (Stochastic Gradient Langevin Dynamics); The learning device according to claim 1 , wherein the update unit updates parameters of the deep learning model using the first matrix.

3. The calculation unit calculates a first matrix assuming that the covariance of a variance-covariance matrix calculated by SGLD (Stochastic Gradient Langevin Dynamics) of parameters according to a probability distribution used in Entropy-SGD is 0; The learning device according to claim 1 , wherein the update unit updates parameters of the deep learning model using the first matrix.

4. The learning device according to claim 2 or 3, wherein the update unit updates parameters of the deep learning model by multiplying a gradient by an inverse matrix of the first matrix, which is a Hessian matrix.

5. A learning method performed by a learning device, comprising: A calculation step of calculating a variance-covariance matrix of parameters according to a probability distribution used in Entropy-SGD, which calculates an objective function when data created as an adversarial attack is input to a deep learning model; an updating step of updating parameters of the deep learning model using the variance-covariance matrix so as to optimize the objective function; A learning method comprising:

6. A learning program for causing a computer to function as the learning device according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Learning device, learning method, and learning program

    JP2021022316A

  • Learning device, learning method, and learning program

    WO2020235011A1