Privacy protection technology based on adversarial generation noise

Through GanNoise technology, the pre-trained noise generation model and the joint training process are used to generate weak noise to protect the privacy of the machine learning model. It solves the problems of member inference attacks and performance damage in the existing technology, and realizes the optimization on different data sets. Effective privacy protection and performance preservation.

CN118606980APending Publication Date: 2024-09-06广州数志科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311359433.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing machine learning models are vulnerable to membership inference attacks during the training process, and existing privacy protection methods suffer from performance impairment while maintaining data accuracy and performance.

Method used

GanNoise, a privacy protection technology based on adversarial generated noise, is used to generate weak privacy noise to protect the privacy of the model through pre-training the noise generation model and the joint training process. During the training process, the member inference attack model is used to assist training and optimize the loss. function to balance privacy and performance.

Benefits of technology

It effectively mitigates membership inference attacks on different data sets, maintains the test set accuracy of the original classifier, and shows an excellent balance of privacy protection and performance protection in comparison techniques, reducing the accuracy of membership inference attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_6
    Figure FT_6
  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
Patent Text Reader

Abstract

The method is a privacy protection technology based on confrontation generation noise, a privacy mechanism is introduced to train a machine learning model to defend member reasoning attacks, the model can prove that member privacy is achieved, and prediction of the model on training data of the model and prediction of other data from the same distribution cannot be distinguished. The objective of the invention is to train a robust model which can resist the strongest member reasoning attack, has the minimum prediction error, and gives consideration to both high privacy and high practicability. Therefore, the invention designs a privacy noise generation training algorithm, so that the model can obtain the maximum gain of member reasoning defensive performance with the minimum classification loss. The privacy mechanism on the deep neural network is evaluated by using different reference data sets. Through the defense method provided by the invention, the risk of member reasoning attack can be effectively reduced through the adversarial generation noise training method, and the cost of classification errors can be ignored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer privacy protection, and specifically designs a privacy protection technology based on adversarial generated noise. Background Art

[0002] The success of machine learning (ML) relies on the availability of large-scale datasets. However, recent studies have shown that models trained on such datasets are vulnerable to privacy attacks, and privacy-preserving defense methods against these attacks are fundamental topics in computer privacy protection research and application. Although existing works have proposed various MIA defense methods, such as differential privacy and adversarial regularization, their performance is compromised compared to the original model.

[0003] Noise perturbation is a common privacy protection method that can take two forms: differential privacy and confidence perturbation. Differential privacy provides theoretical guarantees for protecting the membership privacy of individual samples, and many studies have shown its effectiveness in defending against membership inference attacks. However, implementing differential privacy can be challenging because it requires achieving an effective balance between privacy and performance. In contrast, the confidence score perturbation method successfully achieves privacy and performance protection. Jia et al. successfully defended against partial membership inference attacks by adding noise to the confidence score. Although confidence score perturbation may not provide theoretical guarantees, it is easier to implement and has been proven to be effective in practice.

[0004] Regularization techniques refer to a family of techniques used to reduce overfitting and improve the generalization ability of machine learning models. These techniques have the potential to effectively defend against membership inference attacks. Nasr et al. proposed an adversarial regularization (AR) method that utilizes regularization strategies to improve model generalization and reduce the risk of membership inference attacks. By adding adversarial examples to the training data, the model is forced to learn more powerful features that are less prone to overfitting and can better protect the privacy of the training data. This approach highlights the importance of using regularization techniques as a means of preventing privacy attacks.

[0005] Overfitting is a common challenge in machine learning models, which increases the risk of membership inference attacks. Therefore, research focuses on developing defenses that optimize the training process to reduce overfitting and mitigate the likelihood of such attacks. One innovative strategy to achieve this goal is RelaxLoss, which aims to improve model generalization and reduce the risk of membership inference attacks by leveraging a new loss function. Specifically, the RelaxLoss method incentivizes models to render RelaxLoss less sensitive to a single training instance, thereby mitigating the adverse effects of overfitting and improving the generalization performance of the model. This in turn makes the model more resilient to membership inference attacks. The RelaxLoss strategy emphasizes the importance of optimizing the training process as a means of preventing membership inference attacks.

[0006] MIA mainly uses the phenomenon that the performance of the target model on member and non-member data is significantly different to infer the attribution of data samples. Milad et al. adopted adversarial regularization as a means to alleviate overfitting in classification models. However, after anti-regularization training, the performance of the protected model decreased compared with that of the unprotected model.

[0007] Therefore, how to maintain the accuracy of the original classifier test set while mitigating membership inference attacks on the target model is a problem that needs to be solved in this application field. Summary of the invention

[0008] In response to the above challenges, the purpose of this invention is to maintain data accuracy and protect data privacy. We propose a new privacy protection technology GanNoise based on adversarial generated noise.

[0009] (1) The present invention is effective against existing attack schemes on different datasets and is comparable to most advanced MIA defense methods.

[0010] (2) The present invention can mitigate membership inference attacks on the target model while maintaining the accuracy of the original classifier test set.

[0011] The present invention first provides data noise by pre-training a noise generation model (g), and then participates in joint training through this g to continuously generate privacy noise to enable the classifier model to obtain excellent privacy protection performance. The main stages of pre-training and joint training are introduced in detail for the present invention:

[0012] (1) Pre-training of Noise Generative Model (PTG): This stage is the pre-training stage. In this stage, we need to obtain a high-quality pre-trained noise generator model g to generate data noise. The noise needs to be as weak as possible so that it will not significantly affect the classifier model training in the joint training stage. The high-quality model g will be trained using the sensitive labeled dataset D: In this stage, the model g is based on minimizing the loss L pre-g Update the parameters, and the training rounds are not less than 5 (modified based on specific data), as follows:

[0013]

[0014] Among them, x represents a private data sample.

[0015] (2) Co-training: This stage is the joint training stage, which consists of three main steps, namely NoiseGenerative Model Training with Attack Guidance (NGT-AG), Classification ModelTraining with Noise Interference (CT-NI) and Membership Inference AttackModelTraining (MIA). In one round of this training process, step NGT-AG is executed first, followed by step CT-NI, and finally MIA. The number of training rounds is no less than 50 (based on specific model and data modification). The detailed explanation of each step and related indicators is as follows:

[0016] ①NGT-AG: In this step, we need to use the privacy dataset D for training to obtain a high-quality privacy noise generator model g, which is used to generate privacy noise to train the target classifier model f. In this step, the member reasoning attack model h is required to assist in training. Its role is to provide a privacy learning guide to guide the model g to generate a data noise with privacy protection effectiveness. In this step, the model g is based on minimizing the loss L co-g Update the parameters and train E g Round. Loss function L co-g The details are as follows:

[0017]

[0018]

[0019] L co-g (g) = L cos (g)+μ·L ag (g)

[0020] Where μ is a hyperparameter used to control the privacy guidance weight. x represents a private data sample. L cos (g) is the cosine similarity loss, which is used to ensure that the noise generated by model g does not excessively affect the characteristics of the data itself; L ag (g) is the privacy guidance loss, which is used to encourage the model g to generate data noise in the direction of privacy protection.

[0021] ②CT-NI: In this step, we need to use the privacy dataset D for training to obtain a classifier model f with privacy protection performance and high classification accuracy. In this step, the noise generator model g is required to assist in training to generate privacy noise-enhanced data. In this step, model f is based on minimizing the loss L co-g Update the parameters and train E f Round. Loss function L co-f The details are as follows:

[0022]

[0023] Among them, x represents a private data sample, and y represents the classification label corresponding to the sample.

[0024] ③MIA: In this step, we need to use the privacy dataset D for training, and supplement it with a certain amount of non-privacy data consisting of a data set D' to obtain an attack model h with membership inference attack effectiveness. In this step, the noise generator model g and the target classifier model f are also required for auxiliary training. The former is used to generate noise data for auxiliary training, and the latter is used to generate entity label data for training the attack model. In this step, model h is based on minimizing the loss L co-h Update the parameters and train E h Round. Loss function L co-h The details are as follows:

[0025]

[0026]

[0027]

[0028]

[0029] Among them, x, y represent a private data sample and its label, while x', y' represent a non-private data sample and its label. mg (h) is the loss of h’s reasoning on the member data (i.e., private data) superimposed with noise, L m (h) is the loss of h’s reasoning on the member data without noise (i.e., private data), Ln-m (h) is the loss of h for reasoning about non-member data (i.e., non-private data).

[0030] ④ In this stage, it is recommended to train E in each step. g =3,E f =2, E h =1, and the recommended hyperparameter μ=5. The above indicators can be modified in different amounts according to the specific model and data to obtain better privacy protection and performance protection effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Technical logic diagram of the present invention

[0032] Figure 2 Verify data partition table

[0033] Figure 3 Verify the risk of raw data leakage of the classifier

[0034] Figure 4 Comparison of the defensive effects of four defense technologies in attack verification

[0035] Figure 5 Evaluate the member reasoning defense effect of GanNoise and comparison techniques under equivalent defense conditions

[0036] Figure 6 Evaluating the member reasoning defense effect of GanNoise and comparison techniques under unilateral defense conditions

[0037] Figure 7 , 8 Comparison of training accuracy improvement curves with and without the GanNoise classifier model DETAILED DESCRIPTION

[0038] In order to make the purpose and technical solution of the present invention clearer, the present invention is described in detail below in combination with experimental data. The experiments described in this patent are only part of the experiments of the present invention, not all of the experiments. Based on the experiments in the present invention, all other experiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Recent studies have shown that models trained on such datasets are vulnerable to privacy attacks, among which membership inference attack (MIA) poses a serious privacy risk and can infer whether a sample belongs to the training dataset of the target model. Although existing works have proposed various MIA defense methods, such as differential privacy and adversarial regularization, their performance is compromised and impractical compared to the original model. In order to maintain data accuracy and protect data privacy, we propose a new privacy protection technology GanNoise based on adversarial generated noise. Experiments show that this defense method is effective against existing attack schemes on different datasets and is effective compared to most advanced MIA defense techniques. The specific experiments are as follows:

[0040] As shown in Figure 2, in order to compare with related privacy protection technologies, a variety of classification task datasets were selected as verification data. It is worth noting that in order to fairly verify the privacy protection performance of GanNoise, in addition to the private dataset D and the non-private dataset D', we divided a part of the "verification non-member dataset" D' from the private dataset D t , this part of data is only used as non-member data to train the attack model in the defense method, but not to train the target classifier model, which ensures the independence of the verification data of the verification classifier model on the classification performance. Based on the same division method, we divide the data set D for the simulated adversary A , D A' t and D A' For CIFAR100 data (standard image classification data), we use 20,000 data points to form the private data set D used for training, and 5,000 data points to form the "validation non-member data set" D' t , and another 5000 data points constitute the non-privacy data set D', which is used to verify the classification performance of the classifier model; for Texas100 data (medical text classification data), we use 8000 data points to constitute the private data set D used for training, and 2000 data points to constitute the "verification non-member data set" D' t , and another 2000 data points constitute the non-private data set D', which is used to verify the classification performance of the classifier model; for Purchase100 data (tabular classification data), we use 20,000 data points to constitute the private data set D used for training, and 5,000 data points to constitute the "verification non-member data set" D' t , and another 5000 data sets are used to form a non-privacy data set D', which is used to verify the classification performance of the classifier model. Based on the simulated privacy leakage scenario, we need to prepare the same data partitioning for the adversary. For the three verification data sets, we have D A , D A' t and DA' Have the same data partitioning.

[0041] As shown in Figure 3, before verifying the effectiveness of privacy protection technology, we evaluate the initial performance and privacy leakage risk of the classifier model without privacy protection. We use AlexNet and DenseNet as classifiers for the CIFAR100 dataset, which are representative models of lightweight and heavyweight classifier models respectively; for the Texas100 and Purchase100 datasets, we use 3-layer and 4-layer fully connected network NN Net models as classification models respectively. In addition, to evaluate the risk of privacy leakage, we prepared four strong MIA attack methods I corr (inference of members based on the correctness of the prediction), I conf (confidence-based reasoning members), I entr (Inference Membership Based on Predicted Entropy) and I mentr (Based on predicted entropy and actual label inference members), the highest attack effectiveness among these four attack methods is used to evaluate the privacy leakage risk of the classifier model. It is worth noting that the MIA attack aims to distinguish members (privacy data) from non-members (non-privacy data). If its attack accuracy is greater than 50%, it means that the target classifier model has the risk of privacy leakage, and the closer the value is to 50%, the stronger the privacy protection effectiveness of the target classifier. After evaluation, without privacy protection, on the CIFAR100 dataset, the AlexNet model can achieve a classification accuracy of 34.5%, and has a maximum accuracy of 87.1% under MIA attacks; the DenseNet model can achieve a classification accuracy of 60.2%, and has a maximum accuracy of 81.6% under MIA attacks; on the Texas100 dataset, the NNNet model can achieve a classification accuracy of 52.5%, and has a maximum accuracy of 68.2% under MIA attacks; on the Purchase100 dataset, the NNNet model can achieve a classification accuracy of 78.2%, and has a maximum accuracy of 64.3% under MIA attacks. The above data can prove that without privacy protection, the classifier model does have a greater risk of privacy leakage. We will use this result as an evaluation benchmark to verify the privacy protection effectiveness of privacy protection technology.

[0042] As shown in Figure 4, we applied GanNoise privacy protection technology to the AlexNet model of the CIFAR100 dataset, and applied Relax Loss, AR, DP-SGD and MemGuard technologies in the same execution environment as a horizontal comparison. The comparison technology is an excellent privacy protection technology for MIA that we know of. From the perspective of classification performance evaluation, after the application of GanNoise technology, the classification performance of the target classifier was not weakened, maintaining or even slightly exceeding the baseline performance in the unprotected state, reaching 35.1%, while reducing the highest MIA attack accuracy to 55.5%. Compared with the best privacy protection technology Relax Loss, the classifier model only achieved 33.2% classification performance (loss performance 1.3%), and only reduced the highest MIA attack accuracy to 56.3%.

[0043] As shown in Figure 5, we also applied GanNoise technology and other horizontal comparison technologies to simulate the adversary to verify that even if the adversary knows the privacy protection means, it still cannot break through the protection of the threat data privacy. It can be observed from the figure that compared with the baseline performance, after applying GanNoise technology, on the CIFAR100 dataset, the AlexNet model can achieve a classification accuracy of 35.1%, and only has a maximum accuracy of 55.5% under MIA attack; the DenseNet model can achieve a classification accuracy of 57.3%, and only has a maximum accuracy of 58.1% under MIA attack; on the Texas100 dataset, the NN Net model can achieve a classification accuracy of 52.9%, and only has a maximum accuracy of 56.1% under MIA attack; on the Purchase100 dataset, the NN Net model can achieve a classification accuracy of 56.2%, and only has a maximum accuracy of 56.2% under MIA attack. Compared with other privacy protection technologies, GanNoise can achieve the optimal balance between privacy protection and performance protection.

[0044] As shown in Figure 6, we only apply GanNoise technology and other horizontal comparison technologies on our side to verify the privacy protection effectiveness when the adversary is unaware of the privacy protection means. GanNoise still maintains the same privacy protection effectiveness and excellent classification performance protection as in Figure 5, and achieves a lower MIA attack accuracy of 56.9% when the DenseNet model is applied on CIFAR100 data, and a lower MIA attack accuracy of 55.1% when the NN Net model is applied on Texas100 data.

[0045] As shown in Figures 7 and 8, we recorded and observed the growth changes of the training accuracy and verification accuracy of the classifier model after applying the GanNoise technology. Since the main cause of MIA attacks is overfitting caused by the training accuracy being much greater than the verification accuracy, this situation will cause the classifier model to respond specifically to private data, allowing the adversary to easily infer private data. As shown in Figure 7, when the GanNoise technology is not applied, the target classifier model will have a situation where the training accuracy grows rapidly while the verification accuracy grows stagnantly in the middle and late stages of training, resulting in overfitting. After applying the GanNoise technology, the training accuracy will be disturbed by privacy noise, forcing it to maintain a similar growth rate to the verification accuracy, thereby avoiding overfitting.

Claims

1. A privacy protection technology based on adversarial generated noise, GanNoise, whose technical features include: In the pre-training stage, a noise generation model is pre-trained using the privacy training data. The model accepts data samples of the privacy data and generates tiny data noise for specific data. The pre-trained model will continue to participate in joint training. In the joint training phase, a noise generation model is first trained. The model receives data samples of private data and generates privacy-preserving data noise for specific data. Secondly, a classifier model is trained. The model receives private data superimposed with privacy-preserving data noise for regularized classification training. Finally, a member inference attack model is trained to provide a privacy learning guide for the noise generation model. After the joint training is completed, a classifier model with privacy-preserving performance is returned.

2. According to claim 1, in the pre-training stage of GanNoise, the noise generation model is trained, characterized in that The randomly initialized noise generation model can be pre-trained to obtain initial weights before joint training to avoid the generation of random noise. This step will obtain a noise generation model with a certain generation quality.

3. According to claim 1, in the joint training phase of GanNoise, the noise generation model is trained, characterized in that A membership inference attack model can be used to provide a privacy learning guide for a noise generator model, and a noise generator model with a specific generation tendency can be trained to generate privacy-preserving noise. The noise model is pre-trained via the step of claim 2.

4. According to claim 1, in the joint training phase of GanNoise, a classifier model is trained, characterized in that The noise generator model in step 3 of claim 3 can be used to generate noise for training data, and the target classification model can be trained after the noise is superimposed on the data.

5. According to claim 1, in the joint training phase of GanNoise, the member reasoning attack model is trained, characterized in that The target classification model is used to generate entity labels and train a member reasoning attack model. The attack model provides a privacy learning guide for the noise generation model training in claim 3.

6. According to claim 1, for the joint training of GanNoise, it is characterized by The process will be executed progressively for at least 50 rounds. After repeated execution, a classifier model with privacy protection performance will be obtained.

7. According to claim 3, the noise data output by the noise generation model generated during the GanNoise joint training process is characterized in that It has special privacy protection capabilities and is protected by the claims of this technology.

8. According to claim 3, the noise generation model generated in the GanNoise joint training process is characterized in that It has a special privacy noise output result, which is different from the ordinary generator network model and is protected by the claims of this technology.

9. According to claim 4, the classifier model obtained by training using GanNoise technology is characterized in that It has special privacy protection capabilities, which are different from the classifier models protected by other technologies and are protected by the claims of this technology.

10. According to claim 5, the member reasoning attack model generated during the GanNoise joint training process is characterized in that It has special characteristics of being resistant to noise attacks, which may have a certain degree of impact on the classifier model produced by this technology and is protected by the claims of this technology.