Differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multi-modal federated learning
Through the performance evaluation method of differential privacy defense mechanism for cross-domain heterogeneous multi-modal federated learning, the problem of privacy leakage risk in federated learning is solved. Through modal feature fusion and gradient leakage attack model, multi-dimensional performance evaluation is achieved and reduced It reduces the risk of privacy leakage and is suitable for multi-modal federated learning tasks.
Patent Information
- Application Number
- CN202410594123.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
AI Technical Summary
Existing federated learning technology has privacy leakage risks in data privacy protection and lacks effective defense mechanisms. Especially in cross-domain heterogeneous multi-modal scenarios, the defense performance evaluation method is single and insufficient.
A performance evaluation method of differential privacy defense mechanism for cross-domain heterogeneous multi-modal federated learning is designed. By acquiring cross-domain data sets, building a federated learning model, configuring modal feature fusion, identifying gradient leakage attack risks, and locally Noise is added to model training to build a differential privacy defense mechanism and evaluate defense performance in multiple dimensions.
This method can comprehensively evaluate the performance of different differential privacy mechanisms, help users choose appropriate mechanisms, and reduce the risk of privacy leaks. It is suitable for federated learning tasks and image and text data sets.
Smart Images

Figure CN118536154A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of multimodal federated learning, differential privacy, and big data technology, and in particular to a differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning. Background Art
[0002] Federated learning is a popular distributed machine learning technology. It has received more attention as people attach more and more importance to data security and privacy. Although federated learning can avoid exposing local data to third parties and has a natural protection for local data and customer privacy, current research shows that federated learning still has the risk of privacy leakage, and corresponding privacy defense technologies have also emerged. However, the current methods for evaluating defense performance under various mechanisms are relatively simple. In the past, the data privacy of federated learning participants was at risk of leakage, and no effective technical means were used to protect the data. Summary of the invention
[0003] The purpose of the present invention is to solve the above problems and to design a performance evaluation method for differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning.
[0004] The present invention provides a differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning, and the differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning comprises the following steps:
[0005] Obtain data sets in cross-domain heterogeneous scenarios, build federated learning tasks and federated learning models, divide them into clients and central servers, configure modal feature fusion, and obtain multimodal federated learning models in cross-domain heterogeneous scenarios;
[0006] Obtain gradient leakage attacks in multimodal federated learning models, determine gradient leakage risks, and select simulated attack models for different modal data;
[0007] Add noise to the gradients of data sets under different tasks during local model training to build differential privacy defenses with different mechanisms;
[0008] A multi-dimensional performance evaluation of the differential privacy defense mechanism is conducted from three aspects: the cost of model quality under defense, the reconstruction success rate, and the reconstruction quality.
[0009] Optionally, in a first implementation of the present invention, the step of obtaining a data set in a cross-domain heterogeneous scenario, building a federated learning task and a federated learning model, configuring modal feature fusion, and obtaining a multimodal federated learning model in a cross-domain heterogeneous scenario includes:
[0010] The MultimodalGasData dataset and the multimodal-sentiment-data dataset are used for cross-domain heterogeneous federated learning training, and the two datasets are divided respectively by Dirichlet probability distribution;
[0011] Obtain a single-task multimodal federated learning model that is compatible with cross-domain heterogeneous multimodal federated learning models built based on federated averaging and federated stochastic gradient descent algorithms;
[0012] Determine the validity of modal data, identify features and train encoders. Through the modal feature autoencoder method, the client projects data of different modalities into the same dimension, and then uses the encoded data for subsequent federated learning training to configure modal feature fusion.
[0013] Optionally, in a second implementation of the present invention, the multimodal federated learning model for obtaining a single task is compatible with a cross-domain heterogeneous multimodal federated learning model constructed based on a federated average and a federated stochastic gradient descent algorithm, including:
[0014] In the single-task multimodal federated learning model, the federated learning task is to optimize the global model parameters that converge to the central server so that the average value of the loss functions of multiple clients is minimized. The formula is as follows:
[0015]
[0016] where y i is the label or result of the target dataset, and f is used to calculate the input data x i , the predicted label or predicted result of the model when the model parameter is w, m is the number of clients participating in federated learning, and the target dataset result yi and the predicted result f(x i ;w) loss.
[0017] Optionally, in a third implementation of the present invention, obtaining a gradient leakage attack in a multimodal federated learning model, determining a gradient leakage risk, and selecting a simulated attack model for data of different modalities include:
[0018] In the multimodal federated learning model, when the client shares the gradient with the central server, there is a risk that the attacker can eavesdrop on the gradient and obtain the target client's label and data information, reconstruct the original image, reconstruct the original data, and select the risk of gradient leakage attack;
[0019] A gradient leakage attack model is used to simulate attacks on the target federated learning. A fake input sample and a fake label of the same size as the real data are randomly generated to obtain a fake model gradient.
[0020] The goal of the gradient leakage attack model attack is to generate the same false gradient as the original model, and then restore the original data.
[0021] Optionally, in a fourth implementation of the present invention, the use of a gradient leakage attack model to simulate an attack on a target federated learning includes:
[0022] The gradient leakage attack model is used to simulate attacks on the target federated learning, attacking image data, text data, and other experimental data respectively;
[0023] For image data, the attacker first steals the image gradient data shared by the client to the server, generates a random virtual image of the same size as the original image through the decoder, calculates the virtual gradient under the same local model, and continuously optimizes the random image according to the distance between the original and virtual gradients until the distance between the two reaches convergence, completing the image reconstruction;
[0024] For text data, attackers usually use a masked language model. The language model first preprocesses discrete words into embeddings. The attacker then applies a gradient leakage attack to the embedding space to minimize the gradient distance between the virtual embedding and the real embedding. After the optimization is completed, the original word is derived by reversely looking up the closest entry in the embedding matrix. When the gradient leakage attack is completed, there are few mismatches due to ambiguity in tokenization, but the main content has been completely leaked, completing the text reconstruction.
[0025] For other real number data, the attacker obtains the gradient data and randomly generates virtual data of the same size, generates virtual gradients in the same local model, and reconstructs the data by optimizing the distance between the two gradients until the distance is minimized.
[0026] Optionally, in a fifth implementation of the present invention, adding noise to the gradients of data sets under different tasks under local model training to construct differential privacy defenses of different mechanisms includes:
[0027] Based on localized differential privacy, the gradients of data sets under different tasks under local model training are obtained;
[0028] Four mechanisms, namely Laplace mechanism, Gaussian mechanism, exponential mechanism and random response mechanism, are used to add noise to the client output gradient respectively:
[0029] Build differential privacy defense with different mechanisms.
[0030] Optionally, in a sixth implementation of the present invention, the Gaussian mechanism includes: adding noise to the client output gradient under the privacy budget and global sensitivity, and the formula is as follows:
[0031] A(x)=f(x)+N(0,σ2 )
[0032]
[0033] Where f(x) is the target gradient to be noised, A(x) is the transmission gradient after noised, N(0,σ 2 ) represents random noise that satisfies the normal distribution, with a mean of 0 and a variance of σ 2 .
[0034] Optionally, in a seventh implementation of the present invention, the differential privacy defense mechanism is evaluated in multiple dimensions from three aspects: cost of model quality under defense, reconstruction success rate, and reconstruction quality, including:
[0035] In terms of the cost of model quality under defense, the global model accuracy cost, global model convergence cost, and multimodal federated learning communication cost are selected as indicators to reflect the cost of adding differential privacy to the federated learning model.
[0036] In terms of reconstruction success, we selected reconstruction accuracy, label theft success rate, and theft cost to reflect the difficulty of attackers stealing local data.
[0037] The reconstruction quality aspect also includes reconstructed image quality, real number data quality, and text data quality;
[0038] The aspect of reconstructed image quality is used to select peak signal-to-noise ratio, learning-perceived image block similarity, attacker task-based evaluation and semantic quality-based evaluation, reflecting the quality of the attacker's reconstruction of local image data as indicators;
[0039] Regarding the quality of real data, the normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data, and the angle between the real vector of the reconstructed data and the real vector of the original data is used to judge the similarity of the vectors;
[0040] Regarding the text data quality, the words are mapped to real number vectors, which are converted into text data quality, and the text data quality is evaluated.
[0041] Optionally, in an eighth implementation of the present invention, in terms of real data quality, the normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data, and the angle between the real vector of the reconstructed data and the real vector of the original data is used to judge the similarity of the vectors, including:
[0042] The normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data. The formula is as follows:
[0043]
[0044] in is the mean of the original real vector, and are the real number vectors corresponding to the original data and the reconstructed data respectively, and n is the number of reconstructed data;
[0045] The similarity of the vectors is determined by the angle between the real vector of the reconstructed data and the real vector of the original data. The smaller the angle, the closer the cosine value is to 1, and the higher the similarity. The formula is as follows:
[0046]
[0047] Among them, A i and B i are the multidimensional real number vectors corresponding to the original data and the reconstructed data respectively, and n is the number of reconstructed data.
[0048] In the technical solution provided by the present invention, a data set in a cross-domain heterogeneous scenario is obtained, a federated learning task and a federated learning model are built, which are divided into a client and a central server, and modal feature fusion is configured to obtain a multimodal federated learning model in a cross-domain heterogeneous scenario; a gradient leakage attack in the multimodal federated learning model is obtained, the gradient leakage risk is determined, and a simulation attack model for different modal data is selected; noise is added to the gradient of the data set under different tasks under local model training, and differential privacy defenses of different mechanisms are constructed; a multi-dimensional performance evaluation of the differential privacy defense mechanism is performed from three aspects: the cost of model quality under defense, the success rate of reconstruction, and the quality of reconstruction; the evaluation method of the differential privacy mechanism added for gradient leakage can comprehensively consider the advantages and disadvantages of the defense performance under different differential privacy mechanisms, which helps users choose the added differential privacy mechanism, thereby reducing the risk of privacy leakage, and can be generally applicable to federated learning tasks and image text data sets. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.
[0050] Figure 1 A schematic diagram of a first embodiment of a method for evaluating the performance of a differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a multimodal federated learning model for a differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning provided by an embodiment of the present invention;
[0052] Figure 3 A diagram showing the composition framework of the Split-AE autoencoder for the differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning provided in an embodiment of the present invention;
[0053] Figure 4 Schematic diagram of a gradient leakage attack model for a performance evaluation method of a differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0055] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 A schematic diagram of a first embodiment of a method for evaluating the performance of a differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning provided by an embodiment of the present invention, the method specifically comprises the following steps:
[0056] Step 101, obtain a data set in a cross-domain heterogeneous scenario, build a federated learning task and a federated learning model, which are divided into a client and a central server, configure modal feature fusion, and obtain a multimodal federated learning model in a cross-domain heterogeneous scenario;
[0057] A specific embodiment of the present invention also includes using a MultimodalGasData dataset and a multimodal-sentiment-data dataset to perform cross-domain heterogeneous federated learning training, and dividing the two datasets respectively by Dirichlet probability distribution;
[0058] Obtain a single-task multimodal federated learning model that is compatible with cross-domain heterogeneous multimodal federated learning models built based on federated averaging and federated stochastic gradient descent algorithms;
[0059] Determine the validity of modal data, identify features and train encoders. Through the modal feature autoencoder method, the client projects data of different modalities into the same dimension, and then uses the encoded data for subsequent federated learning training to configure modal feature fusion.
[0060] Cross-domain refers to the diversification of source domains of different client data sets. The domains here include not only specific domains such as spatiotemporal domain, business domain, user domain, but also abstract domains such as knowledge domain. Heterogeneity in federated learning is divided into three types: data space heterogeneity, statistical heterogeneity, and system heterogeneity. This patent is aimed at statistical heterogeneity, that is, considering the non-independent and identically distributed (Non-IID) of different client data sets. The MultimodalGasData dataset and the multimodal-sentiment-data dataset are used for cross-domain heterogeneous federated learning training respectively.
[0061] The MultimodalGasData dataset provides data detected by seven different gas sensors and corresponding images taken by a thermal camera, and creates four categories of datasets: no gas, perfume, smoke, perfume and smoke. This dataset contains image modalities and sensor data (i.e. real data) modalities, which can be used for gas leak detection tasks in industrial scenarios.
[0062] The Multimodal-sentiment-data dataset provides images and accompanying comments, as well as corresponding positive and negative sentiment labels. This dataset contains image modalities and text modalities, which can be used for sentiment analysis and classification tasks, and can help reduce the burden on Internet company auditors.
[0063] In order to realize the Non-IID scenario characteristics of comprehensive heterogeneous data sets, the two data sets are divided respectively by the Dirichlet probability distribution expressed by the following formula:
[0064]
[0065] See also Figure 2 , configure federated learning tasks and federated learning models, and adopt a single-task multimodal federated learning model. In the single-task multimodal federated learning model, it includes the client part and the central server part, where the client part includes the original data, modal data encoding, and encoded data. The federated learning task is to optimize the global model parameters that converge to the central server so that the average value of the loss functions of multiple clients is minimized. The formula is as follows:
[0066]
[0067] where y i is the label or result of the target dataset, and f is used to calculate the input data x i , the predicted label or predicted result of the model when the model parameter is w, m is the number of clients participating in federated learning, and the target dataset result yi and the predicted result f(x i ;w) loss.
[0068] The model is compatible with the Federated Average (FedAVG) and Federated Stochastic Gradient Descent (FedSGD) algorithms. The pseudo code for the cross-domain heterogeneous multimodal single-task federated learning model is as follows:
[0069]
[0070] When configuring modal feature fusion, in the multimodal federated learning scenario, there will be problems with modal differences and missing modalities: Assume that client A's own dataset is , and the model parameters obtained by local training are ; client B's own dataset is , and the model parameters obtained by training are . If the original data is not cross-modally processed, because the data dimensions and meanings of client A's dataset and client B's dataset are different, the model parameters obtained by training their own datasets are too different. That is, client A lacks the ability to recognize client B's modal data. Clients A and B cannot understand each other's model information.
[0071] In addition, in actual deployment scenarios, the local data of each client may be affected by factors such as noise and interference during the collection process, causing the collected data to be lost or damaged and lose valid information. Therefore, it is also necessary to clean and eliminate modal data that does not contain valid information based on correlation analysis.
[0072] Through the modal feature autoencoder method, the client can project data of different modalities into the same dimension, and then use the encoded data for subsequent federated learning training.
[0073] The modal feature fusion adopted includes the following two steps:
[0074] Here we take client A as an example
[0075] (1) Determine the validity of modal data. Perform a Spearman correlation test on the original modal data and data labels of client A, and remove the original data that has no correlation.
[0076] The Spearman correlation coefficient is a type of rank correlation coefficient. It has fewer data requirements and is suitable for calculating correlations with large amounts of data. It is calculated using the following formula:
[0077]
[0078]
[0079] RS i is the Spearman coefficient of the i-th modal data and data label of client A, n is the number of labels of client A; d (i,k) is the rank difference of the kth data, which is calculated by calculating the data x of the i-th mode (A,i) The rank and data labels y A , and calculate the difference of the corresponding k-th data. Φ is the cumulative distribution function of the standard normal distribution.
[0080] When p i When <0.05, the modal data is considered valid, otherwise the modal data is discarded.
[0081] (2) Identify features and train the encoder. Use Split AutoEncoder (Split-AE) to identify relevant features of data in different modalities and use them in the subsequent training of the federated learning model. Split-AE can extract features of data in multiple modalities during the training process, and can generate corresponding data representations of other modalities based on the encoding values and classified label values calculated by the encoder for data of a certain modality.
[0082] See also Figure 3 ,Split-AE autoencoder is mainly composed of encoder, classifier and decoder. The encoder converts the input data into one-dimensional data after neural network calculation, the classifier learns and classifies the data encoded by the encoder, and the decoder reconstructs the data of each modality according to the encoded data and the classification label.
[0083] Taking client A with two modal data, image and text, as an example, Ec and Es are two encoders that encode image and text data (text data has been converted into real data through word embedding) respectively, and map the input data to two potential space branches. Both encoders are composed of five one-dimensional convolutional networks, the first four layers are activated by the linear function ReLU, and the last layer is activated by the hyperbolic tangent function. Finally, each encoder obtains a one-dimensional vector Zc and Zs, and finally obtains the encoded vector Z.
[0084] DIV1 and DIV2 are two classifiers, and different algorithms (such as random forest, SVM kernel function, etc.) can be used to classify the encoded results to verify whether the encoded values obtained by the encoder can represent the characteristics of the original data.
[0085] The decoder D consists of a four-layer fully connected neural network. Its input value includes the data encoded by the encoder and the local data label of the client. The first three layers are activated using the linear function ReLU, and the last layer is used to generate reconstructed image and text data.
[0086] The loss function LOSS of the autoencoder is derived from the following formula:
[0087] LOSS=L recon +αL C +βL S
[0088]
[0089] L C =ERR(DIV1),L S =ERR(DIV2)
[0090] The purpose of autoencoder training is to minimize the loss function LOSS. recon is the error between the reconstructed data of the coded value and the original modal data, L C , L S is the error rate between the classification results of classifiers 1 and 2 and the actual results. α and β are two hyperparameters used to adjust the order of magnitude of the three data so that the impact of the three indicators on the autoencoder loss function LOSS is not too different.
[0091] Step 102, obtaining a gradient leakage attack in a multimodal federated learning model, determining a gradient leakage risk, and selecting a simulation attack model for different modal data;
[0092] Specific embodiments of the present invention also include that in a multimodal federated learning model, when a client shares a gradient with a central server, there is a risk of an attacker eavesdropping on the gradient and obtaining the target client label and data information, reconstructing the original image, and reconstructing the original data, among which the risk of gradient leakage attack is selected;
[0093] See also Figure 4 , a gradient leakage attack model is used to simulate attacks on the target federated learning, by randomly generating a fake input sample and a fake label of the same size as the real data, and obtaining a fake model gradient;
[0094] The gradient leakage attack model is used to simulate attacks on the target federated learning, attacking image data, text data, and other experimental data respectively;
[0095] For image data, the attacker first steals the image gradient data shared by the client to the server, generates a random virtual image of the same size as the original image through the decoder, calculates the virtual gradient under the same local model, and continuously optimizes the random image according to the distance between the original and virtual gradients until the distance between the two reaches convergence, completing the image reconstruction;
[0096] For text data, attackers usually use a masked language model. The language model first preprocesses discrete words into embeddings. The attacker then applies a gradient leakage attack to the embedding space to minimize the gradient distance between the virtual embedding and the real embedding. After the optimization is completed, the original word is derived by reversely looking up the closest entry in the embedding matrix. When the gradient leakage attack is completed, there are few mismatches due to ambiguity in tokenization, but the main content has been completely leaked, completing the text reconstruction.
[0097] For other real number data, the attacker obtains the gradient data and randomly generates virtual data of the same size, generates virtual gradients in the same local model, and reconstructs the data by optimizing the distance between the two gradients until the distance is minimized.
[0098] The goal of the gradient leakage attack model attack is to generate the same false gradient as the original model, and then restore the original data.
[0099] Step 103, adding noise to the gradients of data sets under different tasks under local model training to build differential privacy defenses with different mechanisms;
[0100] A specific embodiment of the present invention also includes obtaining the gradient of data sets under different tasks under local model training based on localized differential privacy;
[0101] Four mechanisms, namely Laplace mechanism, Gaussian mechanism, exponential mechanism and random response mechanism, are used to add noise to the client output gradient respectively:
[0102] Gaussian mechanism adds noise to the client output gradient under the privacy budget and global sensitivity. The formula is as follows:
[0103] A(x)=f(x)+N(0,σ 2 )
[0104]
[0105] Where f(x) is the target gradient to be noised, A(x) is the transmission gradient after noised, N(0,σ 2 ) represents random noise that satisfies the normal distribution, with a mean of 0 and a variance of σ 2 .
[0106] Build differential privacy defense with different mechanisms.
[0107] Step 104, performing a multi-dimensional performance evaluation of the differential privacy defense mechanism from three aspects: cost of model quality under defense, reconstruction success, and reconstruction quality;
[0108] The specific embodiment of the present invention also includes, in terms of the cost of the model quality under defense, selecting the global model accuracy cost, the global model convergence cost and the multimodal federated learning communication cost, reflecting the cost of adding differential privacy to the federated learning model as an indicator;
[0109] (1) Global model accuracy cost dacc: When the model is trained to convergence using different differential privacy defense mechanisms, the decline rate of the global model accuracy acc' compared with the acc without using the defense mechanism:
[0110]
[0111] (2) Global model convergence cost dep: The growth rate of the iteration round epoch' when the model is trained to convergence when the differential privacy defense mechanism is used is compared with the epoch growth rate when the defense mechanism is not applied:
[0112]
[0113] (3) Communication cost dcc of multimodal federated learning: The growth rate of the communication time cc between the client and the server when the differential privacy defense mechanism is used compared with cc' when the defense mechanism is not applied:
[0114]
[0115] Since the communication and computational cost base of multimodal federated learning in cross-domain heterogeneous scenarios is large, after adding a defense mechanism to the propagation gradient, its cost will also increase exponentially with the number of tasks. Therefore, this patent also uses the communication time between the client and the server and the number of model convergence times as the cost evaluation of the quality of the differential privacy model.
[0116] The better the privacy protection of multimodal federated learning, the lower the model accuracy, the longer the convergence iteration rounds, and the longer the communication time. The three costs are combined according to the empirical weights:
[0117]
[0118] Among them, λ1, λ2, and λ3 are empirical parameters with a value range of [0,1]. The smaller the cost combined with the parameter value, the lower the cost of the differential privacy mechanism for federated learning.
[0119] In terms of reconstruction success, we selected reconstruction accuracy, label theft success rate, and theft cost to reflect the difficulty of attackers stealing local data.
[0120] (1) Reconstruction accuracy ACC: The reconstruction convergence rate of different differential privacy defense mechanisms under the DLG stealing method is determined based on the loss function value in the reconstruction process.
[0121] (2) Label stealing success rate Label: The success rate of successfully obtaining the original data label by DLG stealing, that is, the degree of protection of the label under different differential privacy defense mechanisms.
[0122] (3) Theft cost N: The ratio of the iteration rounds that meet the reconstruction convergence condition and the number of times that the differential defense mechanism is not used, which represents the computational cost of successful theft by DLG under different conditions.
[0123] In cross-domain heterogeneous scenarios, attackers have multiple goals when stealing gradients, and there are different restoration costs between datasets under different tasks. This patent uses the number of iterations of the attacker reconstructing images, texts or other real data, that is, the theft cost, as a cross-domain indicator between datasets to measure the difficulty of attackers stealing cross-domain datasets.
[0124] Determine the reconstruction success weights μ1, μ2, μ3 based on experience and combine the following three indicators:
[0125]
[0126] The third item is the computational cost of successful reconstruction, which also affects the success rate to a certain extent, that is, it limits the possibility of attack success under the premise of limiting the attacker's cost. The larger the success rate index, the easier it is for the multimodal federated learning dataset under the differential privacy defense mechanism to be leaked.
[0127] The reconstruction-oriented quality also includes the reconstructed image quality, the real number data quality, and the text data quality;
[0128] Regarding the quality of reconstructed images, it is used to select peak signal-to-noise ratio, learning-perceived image block similarity, attacker task-based evaluation, and semantic quality-based evaluation, reflecting the quality of the attacker's reconstruction of local image data as indicators;
[0129] (1) Peak signal-to-noise ratio (PSNR): The quality of the reconstructed image is expressed by the ratio of the mean square error (MSE) between the reconstructed image and the original image and the maximum pixel value MaxI in the image. The unit of PSNR is dB. The larger the value, the less image distortion. Generally speaking, a PSNR higher than 40dB indicates that the image quality is almost the same as the original image. Figure 1 Applicable scenarios include some data set recognition learning that focuses on image pixel accuracy, such as traffic data conversion into image classification and fingerprint recognition, which are difficult for human eyes to recognize.
[0130]
[0131]
[0132] x i and are the values of the i-th pixel of the original image and the reconstructed image respectively, and B is the pixel size.
[0133] (2) Learned Perceptual Image Patch Similarity (LPIPS): Uses deep features trained by models such as the Visual Geometry Group (VGG) to measure the perceptual similarity between the DLG reconstructed image and the original image. Applicable scenarios include face recognition, part recognition, cargo recognition, behavior recognition, and other learning processes that require reducing human intervention.
[0134] (3) Evaluation based on attacker’s task: The attacker’s purpose of restoring the image is not only to achieve consistency with human visual perception, but also to collect various sensitive information contained in the image. Based on the attacker’s purpose of stealing the image, the model is trained on the successfully stolen dataset and the original dataset, and the prediction results are compared. The image restoration quality is measured by calculating the decrease in the accuracy of the prediction results. For example, in the LFW (Labeled Faces in the Wild) dataset based on face recognition, there may be multiple purposes, such as classifying gender or race.
[0135] (4) Evaluation based on semantic quality: There are cases where there are large losses in some reconstruction processes, such as large-area defects, distortions, blurs, etc. Although the evaluation is very poor in terms of pixels and visual perception, once the key features are retained, there is still the possibility of image information leakage. The image semantic segmentation technology is adopted, and the deep convolution model is used as a feature extractor. While reducing the image resolution, it also reduces the negative impact of image loss. Finally, the success rate of classification learning is calculated based on the results of semantic segmentation. It is suitable for some high-precision scenarios with high privacy requirements for data sets.
[0136] Regarding the quality of real data, the normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data, and the angle between the real vector of the reconstructed data and the real vector of the original data is used to judge the similarity of the vectors.
[0137] (1) Normalized root mean square error (NRMSE): The normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data. The formula is as follows:
[0138]
[0139] in is the mean of the original real vector, and are the real number vectors corresponding to the original data and the reconstructed data respectively, and n is the number of reconstructed data;
[0140] (2) Evaluation based on cosine distance: The angle between the real vector of the reconstructed data and the real vector of the original data is used to judge the similarity of the vectors. The smaller the angle, the closer the cosine value is to 1, and the higher the similarity is. The formula is as follows:
[0141]
[0142] Among them, A i and B i are the multidimensional real vectors corresponding to the original data and the reconstructed data respectively, and n is the number of reconstructed data.
[0143] Regarding the quality of text data, the words are mapped to real number vectors and converted into text data quality. The quality of text data is evaluated using the method oriented to the quality of real number data.
[0144] There are two mapping methods:
[0145] (1) Direct encoding method. A unique codeword is selected for each word in the data set, and then the quality of the reconstructed text Err is calculated by calculating the bit error rate between the reconstructed codeword and the original codeword. The principle of this method is relatively simple, but because the similarity between words is not considered, the evaluation effect is quite different from actual human perception.
[0146]
[0147] (2) Map real number vectors through word vector database method. By loading the high-quality word vector database that has been published by industry and academia, query the real number mapped to each word, and use the method of steps 5-4 to evaluate the reconstruction effect of the text data quality.
[0148] For English data, there are already databases obtained by Google based on word2vec and databases released by Facebook based on the FastText project. For Chinese data, there are already AI Lab word vector databases released by Tencent.
[0149] Through the implementation of the above scheme, the performance evaluation method of differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning can comprehensively consider the advantages and disadvantages of defense performance under different differential privacy mechanisms, which helps users choose the added differential privacy mechanism, thereby reducing the risk of privacy leakage. It can be generally applicable to federated learning tasks and image-text datasets.
[0150] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A performance evaluation method for differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning, characterized by: The performance evaluation method of the differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning includes the following steps: Obtain data sets in cross-domain heterogeneous scenarios, build federated learning tasks and federated learning models, divide them into clients and central servers, configure modal feature fusion, and obtain multimodal federated learning models in cross-domain heterogeneous scenarios; Obtain gradient leakage attacks in multimodal federated learning models, determine gradient leakage risks, and select simulated attack models for different modal data; Add noise to the gradients of data sets under different tasks during local model training to build differential privacy defenses with different mechanisms; A multi-dimensional performance evaluation of the differential privacy defense mechanism is conducted from three aspects: the cost of model quality under defense, the reconstruction success rate, and the reconstruction quality.
2. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as described in claim 1 is characterized in that: The method of obtaining a data set in a cross-domain heterogeneous scenario, building a federated learning task and a federated learning model, configuring modal feature fusion, and obtaining a multimodal federated learning model in a cross-domain heterogeneous scenario includes: The MultimodalGasData dataset and the multimodal-sentiment-data dataset are used for cross-domain heterogeneous federated learning training, and the two datasets are divided respectively by Dirichlet probability distribution; Obtain a single-task multimodal federated learning model that is compatible with cross-domain heterogeneous multimodal federated learning models built based on federated averaging and federated stochastic gradient descent algorithms; Determine the validity of modal data, identify features and train encoders. Through the modal feature autoencoder method, the client projects data of different modalities into the same dimension, and then uses the encoded data for subsequent federated learning training to configure modal feature fusion.
3. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as described in claim 2 is characterized in that: The multimodal federated learning model for obtaining a single task is compatible with a cross-domain heterogeneous multimodal federated learning model constructed based on the federated average and federated stochastic gradient descent algorithms, including: In the single-task multimodal federated learning model, the federated learning task is to optimize the global model parameters that converge to the central server so that the average value of the loss functions of multiple clients is minimized. The formula is as follows: where y i is the label or result of the target dataset, and f is used to calculate the input data x i , the predicted label or predicted result of the model when the model parameter is w, m is the number of clients participating in federated learning, and the target dataset result yi and the predicted result f(x i ;w) loss.
4. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as claimed in claim 1 is characterized in that: The step of obtaining a gradient leakage attack in a multimodal federated learning model, determining a gradient leakage risk, and selecting a simulation attack model for different modal data includes: In the multimodal federated learning model, when the client shares the gradient with the central server, there is a risk that the attacker can eavesdrop on the gradient and obtain the target client's label and data information, reconstruct the original image, reconstruct the original data, and select the risk of gradient leakage attack; A gradient leakage attack model is used to simulate attacks on the target federated learning. A fake input sample and a fake label of the same size as the real data are randomly generated to obtain a fake model gradient. The goal of the gradient leakage attack model attack is to generate the same false gradient as the original model, and then restore the original data.
5. The method for evaluating the performance of a differential privacy defense mechanism for cross-domain heterogeneous multimodal federated learning as claimed in claim 4, characterized in that: The gradient leakage attack model is used to simulate the attack on the target federated learning, including: The gradient leakage attack model is used to simulate attacks on the target federated learning, attacking image data, text data, and other experimental data respectively; For image data, the attacker first steals the image gradient data shared by the client to the server, generates a random virtual image of the same size as the original image through the decoder, calculates the virtual gradient under the same local model, and continuously optimizes the random image according to the distance between the original and virtual gradients until the distance between the two reaches convergence, completing the image reconstruction; For text data, attackers usually use a masked language model. The language model first preprocesses discrete words into embeddings. The attacker then applies a gradient leakage attack to the embedding space to minimize the gradient distance between the virtual embedding and the real embedding. After the optimization is completed, the original word is derived by reversely looking up the closest entry in the embedding matrix. When the gradient leakage attack is completed, there are few mismatches due to ambiguity in tokenization, but the main content has been completely leaked, completing the text reconstruction. For other real number data, the attacker obtains the gradient data and randomly generates virtual data of the same size, generates virtual gradients in the same local model, and reconstructs the data by optimizing the distance between the two gradients until the distance is minimized.
6. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as claimed in claim 1, characterized in that: The method adds noise to the gradients of data sets under different tasks under local model training to build differential privacy defenses with different mechanisms, including: Based on localized differential privacy, the gradients of data sets under different tasks under local model training are obtained; Four mechanisms, namely Laplace mechanism, Gaussian mechanism, exponential mechanism and random response mechanism, are used to add noise to the client output gradient respectively: Build differential privacy defense with different mechanisms.
7. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as claimed in claim 6, characterized in that: The Gaussian mechanism comprises: Add noise to the client output gradient under the privacy budget and global sensitivity, the formula is as follows: A(x)=f(x)+N(0,σ 2 ) Where f(x) is the target gradient to be noised, A(x) is the transmission gradient after noised, N(0,σ 2 ) represents random noise that satisfies the normal distribution, with a mean of 0 and a variance of σ 2 .
8. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as claimed in claim 1, characterized in that: The differential privacy defense mechanism is evaluated in multiple dimensions from three aspects: the cost of model quality under defense, reconstruction success rate, and reconstruction quality. The evaluation includes: In terms of the cost of model quality under defense, the global model accuracy cost, global model convergence cost, and multimodal federated learning communication cost are selected as indicators to reflect the cost of adding differential privacy to the federated learning model. In terms of reconstruction success, we selected reconstruction accuracy, label theft success rate, and theft cost to reflect the difficulty of attackers stealing local data. The reconstruction-oriented quality aspect also includes reconstructed image quality, real number data quality, and text data quality; The aspect of reconstructed image quality is used to select peak signal-to-noise ratio, learning-perceived image block similarity, attacker task-based evaluation and semantic quality-based evaluation, reflecting the quality of the attacker's reconstruction of local image data as indicators; Regarding the quality of real data, the normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data, and the angle between the real vector of the reconstructed data and the real vector of the original data is used to judge the similarity of the vectors; Regarding the text data quality, the words are mapped to real number vectors, which are converted into text data quality, and the text data quality is evaluated.
9. The differential privacy defense mechanism performance evaluation method for cross-domain heterogeneous multimodal federated learning as claimed in claim 8, characterized in that: In terms of real data quality, the normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data, and the angle between the real vector of the reconstructed data and the real vector of the original data is used to judge the similarity of the vectors, including: The normalized root mean square error between the reconstructed real data vector and the original real data vector is used to represent the quality of the reconstructed real data. The formula is as follows: in is the mean of the original real vector, y i and are the real number vectors corresponding to the original data and the reconstructed data respectively, and n is the number of reconstructed data; The similarity of the vectors is determined by the angle between the real vector of the reconstructed data and the real vector of the original data. The smaller the angle, the closer the cosine value is to 1, and the higher the similarity. The formula is as follows: Among them, A i and B i are the multidimensional real number vectors corresponding to the original data and the reconstructed data respectively, and n is the number of reconstructed data.
Citation Information
Cited By
Heart sound-electrocardio multi-modal fusion detection method based on federated learning
CN119770055A
Wireless multi-modal federated learning system for modal heterogeneous users
CN120529414A
