Inference device, learning device, machine learning system, inference method, learning method, and program

A multi-device system with overfitted models and a pseudo-attacker distinguishes between training and non-training data, enhancing MI attack resistance and accuracy in machine learning models.

JP7563589B2Active Publication Date: 2024-10-08NEC CORP
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing machine learning models are vulnerable to Membership Inference (MI) attacks, which can leak confidential information from learned parameters, and existing countermeasures either introduce noise affecting inference results or face a trade-off between accuracy and attack resistance.

Method used

Implement a system with multiple inference devices trained on different subsets of the learning data, including one overfitted model, to distinguish between training and non-training data, using a pseudo-attacker to determine data membership based on inference results.

Benefits of technology

The system enhances resistance to MI attacks while maintaining high inference accuracy by utilizing distinct inference devices for trained and non-trained data, eliminating the trade-off between accuracy and resistance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563589000009
    Figure 0007563589000009
  • Figure 0007563589000010
    Figure 0007563589000010
  • Figure 0007563589000011
    Figure 0007563589000011
Patent Text Reader

Abstract

An inference device according to the present embodiment comprises: a first learning unit (601) that generates a first inferencer by means of machine learning using first learning data; a data division unit (602) that generates n (n being an integer of at least 2) sets of divided data by dividing the first learning data into n sets; an inferencer generation unit (603) that generates n learning data generation inferencers by means of machine learning using data that excludes one set of divided data from the first learning data; a learning data generation unit (604) that generates second learning data by inputting the aforementioned one set of divided data into each of the n learning data generation inferencers; and a second learning unit (605) that generates a second inferencer by means of machine learning using the second learning data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This disclosure relates to machine learning. [Background technology]

[0002] Non-Patent Documents 1 and 2 disclose a Membership Inference attack (MI attack) that leaks confidential information (e.g., customer information, trade secrets, etc.) used in learning from learned parameters of machine learning. For example, Non-Patent Document 1 discloses a method of MI attack under the condition that the inference algorithm is accessible. MI attacks are carried out by utilizing a phenomenon called "overlearning" in machine learning. Overlearning is a phenomenon in which machine learning over-fits to data used in learning. Overlearning causes the output tendency to differ when data used in learning is input as input to the inference algorithm and when data that is not used in learning is input. An attacker in an MI attack exploits this difference in tendency to determine whether the data at hand is used for learning or not.

[0003] Non-Patent Document 4 discloses a method called MemGuard, which performs a process to mislead an attacker's classifier as a countermeasure against black-box attacks under the condition that the learned parameters of the inference algorithm to be attacked are unknown.

[0004] Non-Patent Document 5 discloses a learning algorithm that is resistant to MI attacks. Specifically, Non-Patent Document 5 uses an arbitrary known machine learning inference algorithm f and a classifier h that identifies whether data input to f is data used in learning f. Then, each parameter is trained adversarially to improve the inference accuracy of the inference algorithm f and its resistance to MI attacks. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Reza Shokri, Marco Stronati, Congzheng Song, Vitaly Shmatikov: “Membership Inference Attacks Against Machine Learning Models”, IEEE Symposium on Security and Privacy 2017: 3-18, [online], [Retrieved April 19, 2021], Internet〈URL:https: / / arxiv.org / pdf / 1610.05820.pdf〉 [Non-Patent Document 2] Ahmed Salem, Yang Zhang, Mathias Humbert, Pascal Berrang, Mario Fritz, Michael Backes: “ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses onMachine Learning Models”, Network and Distributed System Security Symposium 2019, [online], [Retrieved April 19, 2021], Internet〈URL:https: / / arxiv.org / abs / 1806.01246〉 [Non-Patent Document 3] L. Song and P. Mittal. “Systematic Evaluation of Privacy Risks of Machine Learning Models”, USENIX Security Symposium 2021, [online], [Retrieved April 19, 2021], Internet〈URL:https: / / arxiv.org / abs / 2003.10595〉 [Non-Patent Document 4] Jinyuan Jia, Ahmed Salem, Michael Backes, Yang Zhang, Neil Zhenqiang Gong, “MemGuard:Defending against Black-Box Membership Inference Attacks via Adversarial Examples”, ACM SIGSAC Conference on Computer and Communications Security 2019: 259-274, [online], [Retrieved April 19, 2021], Internet〈URL:https: / / arxiv.org / pdf / 1909.10594.pdf〉 [Non-Patent Document 5] Milad Nasr, Reza Shokri, Amir Houmansadr, “Machine Learning with Membership Privacy using Adversarial Regularization”, ACM SIGSAC Conference on Computer and Communications Security 2018: 634-646, [online], [Retrieved April 19, 2021], Internet〈URL:https: / / arxiv.org / pdf / 1807.05852.pdf〉 Summary of the Invention [Problem to be solved by the invention]

[0006] In machine learning, the data used for learning (also called training data) may contain confidential information such as customer information or trade secrets. MI attacks may result in the leakage of confidential information used for learning from the learned parameters of machine learning. For example, an attacker who illegally obtains the learned parameters may be able to infer the learned data. Or, even if the learned parameters have not been leaked, an attacker may be able to predict the learned parameters by repeatedly accessing the inference algorithm. Then, the training data may be predicted from the predicted learned parameters.

[0007] In addition, the method of Non-Patent Document 4 provides protection by adding noise to the inference result. Therefore, there is a problem in that the inference result is affected by noise regardless of the protection performance.

[0008] In Non-Patent Document 5, there is a trade-off between accuracy and attack resistance. Specifically, a parameter is set that determines the degree of the trade-off between accuracy and attack resistance. Therefore, there is a problem in that it is difficult to improve both accuracy and attack resistance.

[0009] An object of the present disclosure is to provide an inference device, a learning device, a machine learning system, an inference method, a learning method, and a recording medium that are highly resistant to MI attacks and have high accuracy. [Means for solving the problem]

[0010] The inference device according to the present disclosure includes a first inference device generated by machine learning using first learning data and performing inference when input data is not the first learning data, a second inference device generated by machine learning using second learning data different from the first learning data and performing inference when input data is the first learning data, a third inference device generated by machine learning using the first learning data and by overlearning more than the machine learning used to generate the first inference device, and a pseudo-attack device that determines whether the input data is the first learning data based on the inference result of the third inference device.

[0011] The learning device according to the present disclosure includes a first learning unit that generates a first inference device through machine learning using first learning data, a data division unit that generates n sets of divided data by dividing the first learning data into n (n is an integer greater than or equal to 2), an inference device generation unit that generates n inference devices for generating learning data through machine learning using data obtained by excluding one set of divided data from the first learning data, a learning data generation unit that generates second learning data by inputting the one set of divided data excluded by the machine learning of the inference device generation unit to each of the n inference devices for generating learning data, and a second learning unit that generates a second inference device through machine learning using the second learning data.

[0012] In the inference method disclosed herein, a first inference device generated by machine learning using first learning data makes an inference when input data is not the first learning data, a second inference device generated by machine learning using second learning data different from the first learning data makes an inference when input data is the first learning data, a third inference device generated by machine learning using the first learning data and by overlearning more than the machine learning used to generate the first inference device makes an inference based on the input data, and a pseudo attack device determines whether the input data is the first learning data based on the inference result of the third inference device.

[0013] The learning method disclosed herein generates a first inference device by machine learning using first learning data, generates n sets of split data by dividing the first learning data into n (n is an integer greater than or equal to 2), generates n inference devices for generating learning data by machine learning using data obtained by excluding one set of split data from the first learning data, generates second learning data by inputting the one set of split data excluded in the machine learning to each of the n inference devices for generating learning data, and generates a second inference device by machine learning using the second learning data.

[0014] A computer-readable medium according to the present disclosure is a computer-readable medium having stored thereon a program for causing a computer to execute an inference method, the inference method comprising the steps of: a first inference device generated by machine learning using first learning data, making an inference when input data is not the first learning data; a second inference device generated by machine learning using second learning data different from the first learning data, making an inference when input data is the first learning data; a third inference device generated by machine learning using the first learning data and by overlearning more than the machine learning used to generate the first inference device, making an inference based on the input data; and a pseudo-attack device determining whether the input data is the first learning data based on the inference result of the third inference device.

[0015] A computer-readable medium according to the present disclosure is a computer-readable medium having stored thereon a program for causing a computer to execute a learning method, the learning method including: generating a first inference device by machine learning using first learning data; dividing the first learning data into n (n is an integer greater than or equal to 2) pieces of divided data to generate n sets of divided data; generating n inference devices for generating learning data by machine learning using data obtained by excluding one set of divided data from the first learning data; generating second learning data by inputting the one set of divided data excluded in the machine learning used to generate the inference device for generating learning data into each of the n inference devices for generating learning data; and generating a second inference device by machine learning using the second learning data. Effect of the Invention

[0016] According to the present disclosure, it is possible to provide an inference device, a learning device, a machine learning model, an inference method, a learning method, and a computer-readable medium that are highly resistant to MI attacks and have high accuracy. [Brief description of the drawings]

[0017] [Figure 1] FIG. 1 is a block diagram showing a configuration of an inference device according to the present disclosure. [Diagram 2]4 is a flowchart showing the operation of the inference device. [Diagram 3] FIG. 1 is a block diagram showing a configuration of a machine learning system including a learning device. [Figure 4] 4 is a flowchart showing the operation of the learning device. [Diagram 5] 4 is a flowchart showing the operation of a learning section of the inference device H. [Figure 6] FIG. 13 is a block diagram showing a learning device according to another embodiment. [Figure 7] FIG. 2 is a diagram illustrating a hardware configuration of the device according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] An inference device according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the configuration of the inference device 10. The inference device 10 generates output data 28 or output data 29 by performing inference on input data 20. In other words, the inference result when the inference device 10 performs inference based on the input data 20 becomes the output data 28 or output data 29. For example, the inference device 10 can be a classifier that performs image classification. In this case, the inference device 10 outputs a score vector indicating the probability that the inference device 10 falls into each class.

[0019] The inference device 10 includes an inference device G, a pseudo attacker I, an inference device F, and an inference device H. The inference device G, the pseudo attacker I, the inference device F, and the inference device H are machine learning models generated by machine learning. The inference devices F, H, and G are machine learning algorithms using a convolutional neural network (CNN) or the like. The parameters of the inference devices F, H, and G correspond to the weights or bias values ​​of the convolution layer, pooling layer, and fully connected layer of the CNN. When the inference devices G, F, and H are classifiers that perform image classification or the like, they output score vectors similar to those of the inference device 10.

[0020] Similarly, the pseudo attacker I is a machine learning algorithm using a convolutional neural network (CNN) or the like. The parameters of the pseudo attacker I correspond to the weights or bias values ​​of the convolutional layer, pooling layer, and fully connected layer of the CNN.

[0021] The inference device F is a machine learning model generated by machine learning using first learning data (hereinafter also referred to as member data). The inference device F performs inference based on input data 20. The inference device F outputs an inference result inferred from the input data 20 as output data 28. The inference device F is also referred to as a first inference device.

[0022] The inference device H is a machine learning model generated by machine learning using second learning data (hereinafter also referred to as second training data). The second learning data is non-learning data (also referred to as non-member data) that is not the first learning data used in the machine learning of the inference device F. In other words, the second learning data used in the machine learning to generate the inference device H is different from the first learning data used in the machine learning to generate the inference device F. The data included in the first learning data does not overlap with the data included in the second learning data. The inference device H is also referred to as the second inference device.

[0023] The inferencer G is a machine learning model generated by machine learning using the first learning data. In other words, the data used for the machine learning of the inferencer G is the same as the data used for the machine learning of the inferencer F. The inferencer G is also referred to as a third inferencer. The learning methods of the inferencers F, H, and G will be described later.

[0024] The pseudo attacker I identifies whether the input data 20 is the first learning data or not based on the inference result output from the inferencer G. The pseudo attacker I determines whether the input data is member data or non-member data. Then, it outputs the identification result to the inferencer H and the inferencer F.

[0025] Furthermore, the pseudo attacker I can use an attack using modified entropy in Non-Patent Document 3. In this case, the modified entropy of the inference machine G for the data (x, y) is expressed by the following formula (1).

number

[0026] Note that Mentr is modified emtropy. x is the input data for the pseudo attacker I, and y is its label. G(x) is the inference result of the inference machine G for the input data x. Therefore, identification is performed based on the score vector indicating the probability of each label. If Mentr is greater than the threshold τ, (x, y) becomes the first training data (member data). If Mentr is smaller than the threshold τ, (x, y) becomes non-training data (non-member data) that is not the first training data.

[0027] When the input data 20 is the first learning data (member data), the inference device H performs inference based on the input data. That is, the inference result of the inference device H is output as output data 29. When the input data 20 is non-learning data (non-member data) that is not the first learning data (member data), the inference device F performs inference based on the input data. That is, the inference result of the inference device F is output as output data 28.

[0028] In this way, inference is made by inference device F or inference device H depending on the identification result of pseudo attack device I. Note that when a pseudo attack is made on inference device F, inference device G is not required. In this case, pseudo attack device I identifies whether or not the input data 20 is the first learning data based on the inference result of inference device F.

[0029] In a machine learning device, the output tendency of an inference device differs between training data (learning data) used in training (machine learning) and non-training data (non-learning data) that is not used. Attackers exploit this difference in the output tendency of the inference device to attack machine learning models. For example, it is expected that the inference accuracy of the inference device will be significantly higher for input data used in training compared to input data not used in training. Therefore, an attacker can infer the training data by comparing the inference accuracy.

[0030] In contrast, in this embodiment, the inferencers used during training (machine learning) and during inference are different. That is, with respect to the input data (first learning data) used to train inferencer F, the inference result of inferencer F is not output during inference. Also, with respect to the input data (second learning data) used to train inferencer H, the inference result of inferencer H is not output during inference. That is, when the input data 20 of inference device 10 is member data, inference device H outputs the inference result as output data 29. When the input data 20 of inference device 10 is non-member data, inference device F outputs the inference result as output data 29.

[0031] Therefore, it is possible to improve resistance to MI attacks. Also, unlike Non-Patent Document 5, there is no trade-off between MI attack resistance and inference accuracy, so it is possible to improve inference accuracy.

[0032] Furthermore, the first learning data used to train inference device G and the first learning data used to train inference device F are completely identical. Inference device G is a machine learning model that has been overtrained using the first learning data. Inference device G is generated by machine learning using the first learning data, and is generated by overtraining compared to the machine learning used to generate inference device F.

[0033] This allows the pseudo attacker I to properly determine whether the input data 20 is the first learning data or not. In other words, since the inference device G has low resistance to MI attacks, the pseudo attacker I can identify the input data 20 with high identification accuracy. As described above, the inference device G is an over-learned machine learning model. Therefore, when the input data 20 is member data (first learning data), the inference accuracy of the inference device G becomes extremely high. On the other hand, when the input data is non-member data, the inference accuracy of the inference device G becomes low.

[0034] In this way, the inference accuracy of inference device G varies greatly depending on whether the input data 20 is member data or non-member data. When the input data 20 is member data, the inference accuracy of inference device G is higher than that of inference device F. Conversely, when the input data 20 is non-member data, the inference accuracy of inference device G is lower than that of inference device F. Therefore, by comparing the inference accuracy of inference device G, pseudo attack device I can properly identify the input data 20.

[0035] Next, an inference method in the inference device 10 will be described with reference to Fig. 2. Fig. 2 is a flowchart showing the processing in the inference device 10.

[0036] First, it is determined whether or not to use the inference device G (S201). For example, the user may select whether or not to use the inference device G. When the inference device 10 accepts the user's selection, it determines whether or not to use the inference device G in accordance with the selection. Alternatively, whether or not to use the inference device G may be determined in accordance with the system in which the inference device 10 is implemented.

[0037] When the inference device G is used (Yes in S201), the input data 20 is input to the inference device G. That is, the inference device G performs inference based on the input data 20 (S202). When the inference device G is not used (No in S201), the input data 20 is input to the inference device F (S203). That is, the inference device F performs inference based on the input data 20.

[0038] Next, the output of reasoner F or reasoner G is input to pseudo-attacker I (S204). That is, when reasoner G is used (Yes in S201), the inference result of reasoner G is input to pseudo-attacker I. On the other hand, when reasoner G is not used (No in S201), the inference result of reasoner F is input to pseudo-attacker I.

[0039] The pseudo attacker I determines whether the input data 20 is the first learning data or not from the inference result of the inferencer F or the inferencer G (S205). That is, the pseudo attacker I performs inference using the inference result of the inferencer F or the inferencer G as input. As described above, the pseudo attacker I can perform inference based on the inference accuracy and score vector of the inferencer F or the inferencer G. This allows the pseudo attacker I to appropriately determine whether the input data 20 is the first learning data (member data).

[0040] If the input data 20 is the first learning data (Yes in S205), the input data 20 is input to the inference device H, and the inference device H performs inference (S206). If the input data 20 is not the first learning data (No in S205), the input data 20 is input to the inference device F, and the inference device F performs inference (S207). In this manner, the process ends.

[0041] In this way, the inference device 10 selectively uses the inference device F or the inference device H depending on whether the input data 20 is first learning data (member data). That is, when the input data 20 is member data, the inference device H performs inference based on the input data 20. When the input data 20 is non-member data, the inference device F performs inference based on the input data 20. Therefore, the inference device 10 has high resistance to MI attacks and can perform inference with high inference accuracy.

[0042] Next, machine learning (training) for generating the inference device 10 will be described with reference to FIG. 3. FIG. 3 is a block diagram showing the configuration of a machine learning system including the learning device 100. The learning device 100 includes a data generating unit 200 and three learning units 121 to 123. The data generating unit 200 generates learning data for the inference device H. Furthermore, learning data T is prepared in advance for the machine learning of the inference device 10. That is, the learning device 100 performs machine learning based on the learning data T.

[0043] The learning data T is the first learning data described above, and is a data group including a plurality of pieces of data. When performing supervised learning, the learning data T is a data set with a correct answer label (teacher data). The learning data T includes a plurality of input data, and each input data is associated with a correct answer label. Of course, machine learning is not limited to supervised learning.

[0044] The learning unit 121 performs machine learning to generate an inference device F using the learning data T. The learning unit 121 trains the inference device F based on the learning data T. The machine learning in the learning unit 121 can use various techniques such as supervised learning. Since the machine learning in the learning unit 121 can use a known technique, a description thereof will be omitted. The learning unit 121 performs machine learning using all data included in the learning data T. In the machine learning, for example, the parameters of each layer in the deep learning model are optimized. As a result, the inference device F is generated.

[0045] The learning unit 123 performs machine learning to generate an inference device G using the learning data T. The learning unit 123 trains the inference device G based on the learning data T. The machine learning in the learning unit 123 can use various techniques such as supervised learning. Since the machine learning in the learning unit 123 can use a known technique, a description thereof will be omitted. The learning unit 123 performs machine learning using all data included in the learning data T. In the machine learning, for example, the parameters of each layer in the deep learning model are optimized. As a result, the inference device G is generated.

[0046] Here, the inferencers F and G can be machine learning models having the same layer structure. The learning unit 123 then generates the inferencer G by overlearning the machine learning model using the learning data T. The learning unit 123 can intentionally generate an inferencer G that has low resistance to MI attacks by overlearning the machine learning model on the learning data T.

[0047] For example, the learning unit 123 performs learning with a number of epochs at which the classification accuracy for the learning data T becomes sufficiently stable. The learning unit 123 performs machine learning with a higher number of epochs than the learning unit 121. In other words, the learning unit 123 performs overlearning by repeatedly using data included in the learning data T. In the learning unit 123, the number of iterations of one piece of data is greater than the number of iterations of the learning unit 121. The learning unit 123 performs machine learning with a number of iterations greater than the number of iterations of the learning unit 121. Of course, the inference unit F and the inference unit G may be machine learning models with different layer configurations.

[0048] The data generation unit 200 generates second learning data (training data) to be used for machine learning of the inference unit H. The data generation unit 200 divides F1 to F2 into second learning data (training data) and F3 into second learning data (training data) and F4 into second learning data (training data) and F5 into second learning data (training data) and F6 into second learning data (training data) and F7 into second learning data (training data) and F8 into second learning data (training data) and n The learning unit 202 includes learning units 202-1 to 202-n and a learning data storage unit 250.

[0049] The data division unit 220 divides the learning data T into n pieces (n is an integer equal to or greater than 2). Here, the n-divided learning data is divided into divided data T1 to T n In other words, the data division unit 220 divides the learning data T into n sets of divided data T1 to T n If the training data T is a single data set, the split data T1 to T n As will be described later, each of the divided data T1 to T n Each of these is an inference unit F1 to F n This is the input data.

[0050] Split data T1~Tn It is preferable that the data sets included in the divided data T1 do not overlap with each other. For example, the data included in the divided data T2 to T n It is preferable that the divided data T n The data included in is split data T1 to T n-1 It is preferable that the ion exchange rate is not included in the

[0051] Split data T1~T n It is preferable to divide the number of data items included in each data set into n equally. In other words, the data dividing unit 220 divides the learning data set T into n equally. Therefore, the divided data sets T1 to T n The divided data T1 to T n The number of pieces of data included in the learning data T is not limited to being equal, and may be different. Data division section 220 outputs a part of the divided data extracted from learning data T to learning sections 202-1 to 202-n.

[0052] The data generating unit 200 generates divided data T1 to T n The learning data T\T1 is extracted from the training data T and input to the training unit 202-1 of F1. The learning data T\T1 is a difference set obtained by removing the divided data T1 from the training data T. In other words, the learning data T\T1 of F1 is n The data generating unit 200 generates learning data T\T1 by removing the divided data T1 from the learning data T.

[0053] The learning unit 202-1 of F1 performs machine learning to generate an inference device F1 using the learning data T\T1. The learning unit 202-1 trains the inference device F1 based on the learning data T\T1. The machine learning in the learning unit 202-1 can use various methods such as supervised learning. Since the machine learning in the learning unit 202-1 can use a known method, a description is omitted. The learning unit 202-1 performs machine learning using all data included in the learning data T\T1. In the machine learning, for example, the parameters of each layer in the deep learning model are optimized. In this way, the inference device F1 is generated.

[0054] The data generation unit 200 inputs the divided data T1 to the inference unit F1. The learning data storage unit 250 of the inference unit H stores the output of the inference unit F1 as learning data for H. That is, the inference result of the inference unit F1 is stored in a memory or the like as learning data for the inference unit H. The learning data for the inference unit H includes the inference result of the inference unit F1 when the divided data T1 is input to the inference unit F1. In this way, the learning data used when learning the inference unit F1 and the input data used when inferring are different data.

[0055] F n The learning unit 202-n of n Using the inference engine F n The learning unit 202-n performs machine learning to generate the learning data T\T n Based on this, the reasoner F n The learning unit 202-n can use various techniques such as supervised learning for the machine learning. Since the machine learning of the learning unit 202-n can use a known technique, the description will be omitted. The learning unit 202-n trains learning data T n Machine learning is performed using all the data contained in the deep learning model. In machine learning, for example, the parameters of each layer in the deep learning model are optimized. This allows the inference machine F n is generated.

[0056] The data generating unit 200 generates the divided data T n The inference engine F n The learning data storage unit 250 of the inference unit H inputs the n The output of the inference engine F is stored as training data for H. n The inference result is stored in a memory or the like as learning data for the inference device H. The learning data for the inference device H includes the divided data T n The inference engine F n When input to the inference machine F n In this way, the inference result of the inference machine F n The learning data used during learning is different from the input data used during inference.

[0057] In addition, using i (i is an arbitrary integer between 1 and n), inference units F1 to F n The machine learning in can be generalized as follows. The data generation unit 200 receives the entire set of learning data T. The data division unit 220 divides the learning data T into n sets (n subsets) and generates the divided data T i The learning unit of the data generation unit 200 generates learning data T\T i Using this, the inference machine F i Machine learning is used to infer the following. i The learning data used for machine learning is T1 to T i-1 ,T i+1 ~T n The inference machine F i is the split data T i The learning data storage unit 250 performs inference based on the inference unit F i The inference results are stored as learning data.

[0058] In this way, the inference units F1 to F n F1 to F2 are training data generating units that generate second training data. n The learning units 202-1 to 202-n are inference units F1 to F n The inference units F1 to F n can be machine learning models with similar layer structures. That is, the inferencers F1 to F n The learning units 202-1 to 202-n each have the same number of layers, nodes, edges, etc. Then, the learning units 202-1 to 202-n use different learning data to train inference units F1 to F n In other words, the reasoners F1 to F n are machine learning models generated using different training data. n is a machine learning model that performs image classification, etc., similar to inferencers F, G, and H. In this case, inferencers F1 to F n outputs a score vector similar to that of the inference machine H.

[0059] The learning data storage unit 250 of the inference unit H stores inference units F1, F2, . . . F i , F n-1 , F n The learning data storage unit 250 stores the inference results of the inference units F1 to F2 as learning data. n The input data to the inference device H and the inference result may be stored in correspondence with each other. The learning data stored in the learning data storage unit 250 of the inference device H becomes the second learning data, as described above. Therefore, in the following description, the learning data stored in the learning data storage unit 250 of the inference device H will also be simply referred to as the second learning data. The second learning data becomes a data set shown in the following formula (2).

number

[0060] The learning unit 122 of the inference device H performs machine learning to generate the inference device H using the second learning data. The learning unit 122 trains the inference device H based on the second learning data. The machine learning in the learning unit 122 can use various techniques such as supervised learning. Since the machine learning in the learning unit 122 can use a known technique, a description thereof will be omitted. The learning unit 122 performs machine learning using all data included in the second learning data. In the machine learning, for example, the parameters of each layer in the deep learning model are optimized. In this way, the inference device H is generated.

[0061] For example, the divided data T i The inference result F for the input data x contained in i The learning unit 122 performs supervised learning using (x) as the correct label. When input data x is input to the inference device H, the inference result output from the inference device H is represented by the following formula (3).

number

[0062] In this manner, in this embodiment, the data generating unit 200 includes the inference units F1 to F nBased on the output of the inferencers F1 to F2, the inferencer H generates learning data. n The distilled model is generated using the output of the inference units F1 to F n The learning data storage unit 250 extracts some information from the learning data T. n The information extracted in is used as training data to train the inference machine H. Therefore, the inference machine H can achieve high accuracy with a simple model.

[0063] The learning method according to this embodiment will be described below with reference to Fig. 4. Fig. 4 is a flowchart showing the learning method according to this embodiment.

[0064] First, the learning unit 121 of the inference device F trains the inference device F (S401). Here, the learning unit 121 of the inference device F trains the inference device F using the universal set of learning data T. In this way, the inference device F is generated. Next, the inference device 10 determines whether or not to use the inference device G (S402). Here, similar to step S201, the inference device 10 makes the determination by accepting a selection input from a user or the like.

[0065] When inference device G is to be used (Yes in S402), the learning unit 123 generates inference device G by overlearning it from inference device F (S403). That is, inference device G is trained using the universal set of learning data T. Furthermore, the learning unit 123 trains inference device G so that the learning of inference device G is overlearned compared to the learning of inference device F. In this way, inference device G is generated.

[0066] When the inference device G is not used (No in S402), or when the machine learning of the inference device G is completed, the data generation unit 200 generates learning data for the inference device H (S404). The process of step S404 will be described in detail with reference to Fig. 5. Fig. 5 is a flowchart showing the process of generating learning data for the inference device H.

[0067] The data division unit 220 divides the learning data T into n (S501). That is, the data division unit 220 divides the divided data T1 to T n The learning units 202-1 to 202-n generate the divided data T1 to T n n inference machines F1 to F n That is, the learning unit of the data generating unit 200 learns T\T i Using this, the inference machine F i Machine learning is used.

[0068] The data generation unit 200 includes n inference units F1 to F n The split data that was not used in the training of each inference machine F1 to F n (S503). That is, the data generating unit 200 inputs the divided data T i The inference engine F i In other words, the inference engine F i In order to make the input data for learning and the input data for inference different, i Divide data into T i For example, F i The divided data T removed by machine learning in the learning unit 202-i i The inference engine F i Enter in.

[0069] Reasoner F1~F n The output of the inference unit F is stored in the learning data storage unit 250 as learning data for the inference unit H (S504). i is an inference engine F i The split data T removed from the machine learning to generate i The learning data storage unit 250 performs inference based on the inference unit F i The inference result is stored as learning data for the inference device H. This completes the generation of the learning data.

[0070] Returning to the explanation of Fig. 4, the learning unit 122 trains the inference device H using the second learning data (S405). The learning unit 122 reads out the learning data stored in the learning data storage unit 250 and uses it for machine learning of the inference device H. In this way, the inference device H is generated. In this manner, the learning device 100 generates the inference devices F, G, and H. Note that if the inference device G is not used, the generation process of the inference device G is omitted.

[0071] The inference device 10 is designed so that the output when non-member data is input to the inference device F is indistinguishable from the output when member data is input to the inference device H. In the inference device 10, the gap between the classification accuracy (inference accuracy) for training data and the classification accuracy (inference accuracy) for non-training data is reduced. This makes it possible to prevent information about the training data from being leaked to an attacker performing an MI attack.

[0072] Furthermore, if the pseudo attacker I is the one with the highest known attacking power, it is possible to reduce misallocation between inferencers F and H. In addition, an inferencer G that has been created by separately overlearning is used as the pseudo attack target. In this way, it is possible to further reduce misallocation of input data x. Furthermore, unlike an attacker in a black box setting, the pseudo attacker I can perform a white box attack, and therefore can perform a more powerful attack. In other words, since the pseudo attacker I can access the parameters of inferencer F or inferencer G, it can distinguish between member data and non-member data with high accuracy.

[0073] According to the above method, it is possible to generate an inference device 10 that is highly resistant to MI attacks and has high accuracy. When the input data x is inferred to be non-member data during inference, the inference result F(x) is output as is, so there is almost no deterioration in accuracy.

[0074] Other embodiments 6 is a block diagram showing a learning device 600 according to another embodiment. The learning device 600 includes a first learning unit 601, a data dividing unit 602, an inference device generating unit 603, a learning data generating unit 604, and a second learning unit 605.

[0075] The first learning unit 601 generates a first inference device by machine learning using the first learning data. The data dividing unit 602 divides the first learning data into n (n is an integer equal to or greater than 2) to generate n sets of divided data. The inference device generating unit 603 generates n inference devices for generating learning data by machine learning using data obtained by removing one set of divided data from the first learning data. The learning data generating unit 604 generates second learning data by inputting the one set of divided data removed by the machine learning of the inference device generating unit 603 to the n inference devices for generating learning data. The second learning unit 605 generates a second inference device by machine learning using the second learning data. This makes it possible to realize a machine learning model that is highly resistant to MI attacks and has high accuracy.

[0076] In the above embodiment, each element of the machine learning system can be realized by a computer program. That is, the inference unit F, the inference unit G, the inference unit H, the pseudo attack unit I, the learning units 121 to 123, the data generation unit 200, etc. can be realized by a computer program. In addition, the inference unit F, the inference unit G, the inference unit H, the pseudo attack unit I, the learning units 121 to 123, the data generation unit 200, etc. do not have to be a single physical device, and may be distributed across multiple computers.

[0077] Next, a hardware configuration of the machine learning system according to the embodiment will be described. Fig. 7 is a block diagram showing an example of a hardware configuration of the machine learning system 700. As shown in Fig. 7, the machine learning system 700 includes, for example, at least one memory 701, at least one processor 702, and a network interface 703.

[0078] The network interface 703 is used to communicate with other devices via a wired or wireless network. The network interface 703 may include, for example, a network interface card (NIC). The machine learning system 700 transmits and receives data via the network interface 703. The machine learning system 700 may acquire training data T via the network interface.

[0079] The memory 701 is configured by a combination of volatile memory and non-volatile memory. The memory 701 may include storage located remotely from the processor 702. In this case, the processor 702 may access the memory 701 via an input / output interface (not shown).

[0080] The memory 701 is used to store software (computer programs) including one or more instructions to be executed by the processor 702. When the machine learning system 700 includes the inference device 10, the memory 701 may store the inference devices F, G, H, and I. When the machine learning system 700 includes the learning device 100, the memory 701 may store the learning units 121 to 123, the data generation unit 200, and the like.

[0081] The program includes a set of instructions (or software code) that, when loaded into a computer, causes the computer to perform one or more functions described in the embodiments. The program may be stored in a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, the computer-readable medium or tangible storage medium includes random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disc (DVD), Blu-ray® disk or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may be transmitted on a transitory computer-readable medium or communication medium. By way of example and not limitation, the transitory computer-readable medium or communication medium includes electrical, optical, acoustic, or other forms of propagated signals.

[0082] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. (Appendix 1) a first inference device that is generated by machine learning using first learning data and performs inference when input data is not the first learning data; a second reasoner that is generated by machine learning using second learning data different from the first learning data and that performs inference when input data is the first learning data; a third reasoner generated by machine learning using the first learning data and by overlearning more than the machine learning used to generate the first reasoner; and a pseudo attack device that determines whether the input data is the first learning data based on an inference result of the third inference device. (Appendix 2) When the input data is x, the label of the input data x is y, and the output result of the third inference device is G(x), the pseudo attack device: Mentr is calculated based on the following formula (1):

number

number

number

[0083] The present disclosure is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit and scope of the present disclosure. [Explanation of symbols]

[0084] 10 Reasoning device 20 Input Data 28 Output Data 29 Output Data T training data T1~T n Split Data 100 Learning Device 121 Learning Department 122 Learning Department 123 Learning Department 200 Data Generation Department 220 Data division section 202-1 F1 Learning Section 202-n F n Learning Department 250 Learning data storage unit F reasoner H reasoner G reasoner I Pseudo Attack Vehicle

Claims

1. A first inference device that is generated by machine learning using first learning data and performs inference when input data is not the first learning data; a second reasoner that is generated by machine learning using second learning data different from the first learning data and that performs inference when input data is the first learning data; a third reasoner generated by machine learning using the first learning data and by overlearning more than the machine learning for generating the first reasoner; and a pseudo-attack device that determines whether the input data is the first learning data based on an inference result of the third inference device.

2. When the input data is x, the label of the input data x is y, and the output result of the third inference unit is G(x), the pseudo attack unit: Mentr is calculated based on the following formula (1): [0010] The inference device according to claim 1 , further comprising: determining whether the data is the first learning data based on the Mentr.

3. a first learning unit that generates a first inference device by machine learning using first learning data; a data division unit that divides the first learning data into n sets of divided data (n is an integer equal to or greater than 2); an inference generator generating unit that generates n inference generators for generating training data by machine learning using data obtained by excluding one set of divided data from the first training data; a learning data generation unit that generates second learning data by inputting the set of divided data removed by the machine learning of the inference unit to n inference units for generating learning data; A learning device comprising: a second learning unit that generates a second inference device by machine learning using the second learning data.

4. The learning device according to claim 3 , further comprising: a third learning unit that generates a third inference device by using the first learning data to perform overlearning more than the first learning unit.

5. A learning device according to claim 4; A machine learning system comprising: the inference device according to claim 1 or 2.

6. A first inference device generated by machine learning using first learning data, which performs inference when input data is not the first learning data, a second inference device generated by machine learning using second learning data different from the first learning data, performing inference when input data is the first learning data; a third reasoner, which is generated by machine learning using the first learning data and is generated by overlearning more than the machine learning for generating the first reasoner, performs inference based on the input data; an inference method, wherein a pseudo attacker determines whether the input data is the first training data based on an inference result of the third inference device.

7. When the input data is x, the label of the input data x is y, and the output result of the third inference device is G(x), the pseudo-attack device: Mentr is calculated based on the following formula (1): [0025] The inference method according to claim 6 , further comprising determining whether the data is the first learning data based on the Mentr.

8. generating a first inference device by machine learning using the first learning data; Dividing the first learning data into n (n is an integer equal to or greater than 2) pieces of data to generate n sets of divided data; generating n inference devices for generating training data by machine learning using data obtained by removing one set of divided data from the first training data; generating second learning data by inputting the set of divided data removed in the machine learning for generating the learning data generation inference device to n pieces of the learning data generation inference devices, respectively; generating a second reasoner by machine learning using the second training data.

9. A program for causing a computer to execute an inference method, The inference method includes: a first inference device generated by machine learning using the first learning data performs inference when input data is not the first learning data; a second inference device generated by machine learning using second learning data different from the first learning data, performing inference when input data is the first learning data; a third reasoner, which is generated by machine learning using the first learning data and is generated by overlearning more than the machine learning for generating the first reasoner, performs inference based on the input data; A pseudo-attacker determines whether the input data is the first learning data based on the inference result of the third inferencer. program.

10. A program for causing a computer to execute a learning method, The learning method includes: generating a first inference device by machine learning using the first learning data; Dividing the first learning data into n (n is an integer equal to or greater than 2) pieces of data to generate n sets of divided data; generating n inference devices for generating training data by machine learning using data obtained by removing one set of divided data from the first training data; generating second learning data by inputting the set of divided data removed in the machine learning for generating the learning data generation inference device to n pieces of the learning data generation inference devices, respectively; generating a second reasoner by machine learning using the second training data; program.

Citation Information

Patent Citations

  • Method and system for obtaining joint training model based on privacy protection

    CN111931216A

  • Peters

    US2021A