A privacy protection federated learning method based on generative adversarial image transformation

By generating adversarial image transformation models to transform local datasets into encrypted images while maintaining consistent class labels, the problem of gradient reconstruction attacks in federated learning is solved, achieving efficient privacy protection and model accuracy.

CN115563631BActive Publication Date: 2026-11-24UNIV OF SCI & TECH OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211179790.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2026-11-24
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

In existing federated learning methods, analyzing the gradients of local models with shared parameters can easily reconstruct local datasets, leading to insufficient protection of local user data privacy.

Method used

A generative adversarial image transformation model is used to transform the original images in the local dataset into encrypted images, while maintaining consistent class labels in the encrypted images. The local model is trained and the encrypted gradients are uploaded to prevent gradient reconstruction attacks.

Benefits of technology

It achieves a good balance between the accuracy of the global model in federated learning and the performance of user data privacy protection, effectively preventing data leakage and improving privacy protection performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115563631B_ABST
    Figure CN115563631B_ABST
Patent Text Reader

Abstract

This invention discloses a privacy-preserving federated learning method based on generative adversarial image transformation (GAP), comprising: Step 11, local users share a GAP model and a local model structure and initialize parameters; Step 12, training the GAP model using a local dataset to convert the original images in the local dataset into encrypted images while preserving image category labels; Step 13, training and updating the local model using the encrypted images and corresponding category labels, and uploading the encrypted gradients of the trained local model to a server; Step 14, the server aggregates the encrypted gradients uploaded by the local user and updates the global model; Step 15, the local user downloads the updated global model from the server and verifies its accuracy using a local encrypted image set to see if it exceeds a preset value. If yes, the privacy-preserving federated learning training process is complete; otherwise, steps 13 and 14 are repeated. This method effectively balances the accuracy of the federated learning global model and the performance of user data privacy protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of federated learning, and more particularly to a privacy-preserving federated learning method based on generative adversarial image transformation. Background Technology

[0002] Federated learning allows multiple local users to jointly train a global model by sharing parameters with a server, avoiding the direct sharing of raw data from local datasets with the server and thus protecting the privacy of local user data to some extent. However, existing gradient-based reconstruction attacks can reconstruct the raw data in local datasets with high quality by analyzing the gradients of the local model as shared parameters, posing a significant challenge to the privacy protection of local user data.

[0003] In view of this, the present invention is hereby proposed. Summary of the Invention

[0004] The purpose of this invention is to propose a privacy-preserving federated learning method based on generative adversarial image transformation, which can prevent the reconstruction of original data in local datasets by analyzing the gradients of local models as shared parameters, thus protecting the privacy of local user data and solving the technical problems existing in the prior art.

[0005] The objective of this invention is achieved through the following technical solution:

[0006] A privacy-preserving federated learning method based on generative adversarial image transformation includes the following steps:

[0007] Step 11: The local user shares the network structure of the generative adversarial image transformation model and the local model and initializes the model parameters of the two models;

[0008] Step 12: The local user trains a generative adversarial image transformation model based on the local dataset, and uses the trained generative adversarial image transformation model to transform the original images in the local dataset into encrypted images, while keeping the category labels of the encrypted images consistent with the category labels of the original images.

[0009] Step 13: The local user trains a local model based on the encrypted image and the corresponding encrypted image category label, completes the local model update, and uploads the trained local model's encrypted gradient as a shared parameter to the server.

[0010] Step 14: The server aggregates the encrypted gradients uploaded by local users who participated in the global model update, and completes the global model update.

[0011] Step 15: The local user communicates globally with the server, downloads the updated global model from the server, and uses the local encrypted image set to verify whether the accuracy of the global model is greater than the preset threshold. If yes, proceed to step 16; otherwise, repeat steps 13 and 14.

[0012] Step 16: Complete the privacy protection federal learning training process.

[0013] Compared with existing technologies, the privacy-preserving federated learning method based on generative adversarial image transformation proposed in this invention has the following advantages:

[0014] By sharing the network structure of the generative adversarial image transformation model and the local model with local users, and training the generative adversarial image transformation model based on the local dataset, the original images in the local dataset are transformed into encrypted images for federated learning training. The training features of the original images are preserved in the encrypted images, thereby achieving a good balance between the accuracy of the global model of federated learning and the performance of user data privacy protection. This effectively solves the problem of local user image data privacy leakage during the federated learning training process. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 A flowchart illustrating a privacy-preserving federated learning method based on generative adversarial image transformation, provided for an embodiment of the present invention.

[0017] Figure 2 This is a schematic diagram illustrating the image privacy protection performance against gradient-based reconstruction attacks provided in an embodiment of the present invention. (a) shows the original images, from left to right: an image of a frog, an image of a deer, an image of a ship, an image of a bird, an image of a cat, and an image of a car. (b) shows the reconstructed images of each original image without using privacy protection methods. (c) shows the reconstructed images of each original image using a privacy-preserving federated learning method based on block scrambling. (d) shows the reconstructed images of each original image using a privacy-preserving federated learning method based on pixel transformation and channel scrambling. (e) shows the reconstructed images of each original image using a privacy-preserving federated learning method based on an automatic transformation strategy. (f) shows the reconstructed images of each original image using the privacy-preserving federated learning method based on generative adversarial image transformation proposed in this invention. Detailed Implementation

[0018] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the specific content of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments, which do not constitute a limitation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present invention.

[0019] First, the following explanations are provided for the terms that may be used in this article:

[0020] The term "and / or" means that either or both can be achieved simultaneously. For example, X and / or Y means that it includes both "X" or "Y" as well as the three cases of "X and Y".

[0021] The terms "comprising," "including," "containing," "having," or other similar semantic descriptions should be interpreted as non-exclusive inclusion. For example, including a technical feature element (such as raw material, component, ingredient, carrier, dosage form, material, size, part, component, mechanism, device, step, process, method, reaction conditions, processing conditions, parameter, algorithm, signal, data, product or article of manufacture, etc.) should be interpreted as including not only the expressly listed technical feature element, but also other technical feature elements that are not expressly listed and are well-known in the art.

[0022] The term "composed of" excludes any technical features not expressly listed. When used in a claim, it closes the claim to exclude all technical features other than those expressly listed, except for associated conventional impurities. If the term appears only in a clause of a claim, it limits the claim to the elements expressly listed in that clause; elements recited in other clauses are not excluded from the overall claim.

[0023] Unless otherwise explicitly specified or limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this document according to the specific circumstances.

[0024] The terms “center,” “longitudinal,” “lateral,” “length,” “width,” “thickness,” “upper,” “lower,” “front,” “back,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” “outer,” “clockwise,” and “counterclockwise” indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience and simplification of description and do not imply that the device or component referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this document.

[0025] The following is a detailed description of a privacy-preserving federated learning method based on generative adversarial image transformation proposed in this invention. Contents not described in detail in the embodiments of this invention are prior art known to those skilled in the art. Where specific conditions are not specified in the embodiments of this invention, they are performed according to conventional conditions in the art or conditions recommended by the manufacturer. Reagents or instruments used in the embodiments of this invention, unless otherwise specified by the manufacturer, are all commercially available conventional products.

[0026] like Figure 1 As shown in the figure, an embodiment of the present invention provides a privacy-preserving federated learning method based on generative adversarial image transformation, which includes the following steps:

[0027] Step 11: The local user shares the network structure of the generative adversarial image transformation model and the local model and initializes the model parameters of the two models;

[0028] Step 12: The local user trains a generative adversarial image transformation model based on the local dataset, and uses the trained generative adversarial image transformation model to transform the original images in the local dataset into encrypted images, while keeping the category labels of the encrypted images consistent with the category labels of the original images.

[0029] Step 13: The local user trains a local model based on the encrypted image and the corresponding encrypted image category label, completes the local model update, and uploads the trained local model's encrypted gradient as a shared parameter to the server.

[0030] Step 14: The server aggregates the encrypted gradients uploaded by local users who participated in the global model update, and completes the global model update.

[0031] Step 15: The local user communicates globally with the server, downloads the updated global model from the server, and uses the local encrypted image set to verify whether the accuracy of the global model is greater than the preset threshold. If yes, proceed to step 16; otherwise, repeat steps 13 and 14.

[0032] Step 16: Complete the privacy protection federal learning training process.

[0033] In step 11 of the method, the local user initializes the model parameters of the adversarial image transformation model and the local model based on the Gaussian distribution.

[0034] In step 11 of the method, the network structure for generating the adversarial image transformation model includes:

[0035] Encryption networks and discriminative networks;

[0036] The encryption network comprises, in sequence, a first convolutional layer with a kernel size of 4, a first batch normalization layer, a second convolutional layer with a kernel size of 4, a second batch normalization layer, a third convolutional layer with a kernel size of 4, a third batch normalization layer, a fourth convolutional layer with a kernel size of 4, a fourth batch normalization layer, a first transposed convolutional layer with a kernel size of 4, a fifth batch normalization layer, a second transposed convolutional layer with a kernel size of 4, a sixth batch normalization layer, a third transposed convolutional layer with a kernel size of 4, a seventh batch normalization layer, and a fourth transposed convolutional layer with a kernel size of 4.

[0037] The activation functions following the first, second, third, fourth, fifth, sixth, and seventh batch normalization layers are all... function;

[0038] The activation function after the fourth transposed convolutional layer is: function;

[0039] The input to the first convolutional layer of this encryption network is a 32×32 feature map with 3 channels. The fourth transposed convolutional layer then... Output all the way;

[0040] The discriminant network includes a first convolutional layer with a kernel size of 4, a first batch normalization layer, a second convolutional layer with a kernel size of 4, a second batch normalization layer, a third convolutional layer with a kernel size of 4, a third batch normalization layer, and a fourth convolutional layer with a kernel size of 4, which are connected in sequence.

[0041] The third batch normalization layer is followed by a fully connected layer;

[0042] The activation functions after the first batch normalization layer, the second batch normalization layer, and the third batch normalization layer are all... function;

[0043] The activation function after the fourth convolutional layer is the Sigmoid function;

[0044] The first convolutional layer of the discriminative network takes a 32×32 feature map with 3 channels as input, the fourth convolutional layer has a sigmoid output, and the third batch normalization layer has a fully connected layer output.

[0045] In step 11 of the method, the network structure of the local model includes:

[0046] The layers are connected in sequence: a first convolutional layer with a kernel size of 4, a first batch normalization layer, a second convolutional layer with a kernel size of 4, a second batch normalization layer, a third convolutional layer with a kernel size of 4, a third batch normalization layer, and a fully connected layer.

[0047] The activation functions after the first batch normalization layer, the second batch normalization layer, and the third batch normalization layer are all... function;

[0048] The first convolutional layer of this local model takes a 32×32 feature map with 3 channels as input, and after the third batch normalization layer, there is a fully connected layer as output.

[0049] In step 12 of the method, the local user trains a generative adversarial image transformation model based on the local dataset in the following manner, and uses the trained generative adversarial image transformation model to transform the original images in the local dataset into encrypted images while maintaining the category labels of the encrypted images, including:

[0050] Step 121: The local user constructs an original image set from the original images in their local dataset. The target image set is obtained by performing block partitioning and block scrambling operations on all images in the original image set. .

[0051] Step 122: Define the generative adversarial loss function in the local user-defined generative adversarial image transformation model. for:

[0052] (1);

[0053] in, Indicates an encrypted network; Indicates the discriminant network; Represents the original set of images The original image in the image, Represents the set of target images The transformed image in the generative adversarial loss function; In the middle, discriminant network The output is a Sigmoid output, and the original image is transformed into a transformed image through an encrypted network.

[0054] Step 123: Local user-defined classification loss function in the generative adversarial image transformation model. for:

[0055] (2);

[0056] in, Represents the original set of images The number of original images in the data; Represents the original set of images The number of original image categories; This represents the set of true class labels for the original images in the local dataset; This represents the set of predicted class labels obtained by passing the original image through the fully connected layer of the discriminant network; This indicates that the transformed image corresponds to the first... The actual category label of the class; This indicates that the transformed image corresponds to the first... Predicted category label for the class.

[0057] Step 124, the local user uses the original image set Target image set Real category tag set and predicted category label set Alternating training of the encryption network and the discriminant network is represented as follows:

[0058] (3);

[0059] This requires alternating training of the encryption network and the discriminant network until the number of update rounds of the generative adversarial image transformation model reaches a preset threshold. Up to now, the original image Generate encrypted images using a trained encryption network. The encrypted image is the final state of the transformed image after the encryption network and the discriminant network have been trained.

[0060] In step 13 of the method, the local user trains a local model based on the encrypted image and the corresponding encrypted image category label in the following manner to complete the local model update, and uses the encrypted gradient of the trained local model as a shared parameter for uploading to the server, including:

[0061] For common Local users Execute federated learning local model updates for each local user Having includes A local dataset of original images The local model update is represented as:

[0062] (4);

[0063] in, For the first A local user obtains a local model by downloading global model parameters from the server; For the first A local encrypted image collection for each local user; Encrypted image and real category labels constitute; To generate a classification loss function in an adversarial image transformation model and ;No. Encrypted gradients of a local model trained by a local user As a shared parameter used for uploading to the server.

[0064] In step 14 of the method, the global model update is represented as:

[0065] (5);

[0066] in, It is in the Global model parameters during sub-global communication; It is in the Global model parameters during sub-global communication; It is a global model update of the learning rate; This is the number of encrypted images for all local users; It is in the The first global communication Local model encryption gradients for each local user.

[0067] In step 15 of the above method, the local user and the server conduct the first... During the next global communication, all local users download the updated global model from the server. All users use a locally encrypted image collection Validate the global model The accuracy of the global model obtained by all users is greater than the preset threshold. Then, step 16 is executed, which completes the privacy-preserving federated learning training process. Otherwise, steps 13 and 14 are repeated.

[0068] In summary, the privacy-preserving federated learning method based on generative adversarial image transformation provided by this invention constructs a generative adversarial image transformation model composed of an encryption network and a discriminant network. This model transforms the original images in the local dataset into encrypted images for federated learning training, while preserving the training features of the original images in the encrypted images. This achieves a good balance between the accuracy of the global federated learning model and the performance of user data privacy protection.

[0069] To more clearly demonstrate the technical solution and its effects proposed in this invention, a privacy-preserving federated learning method based on generative adversarial image transformation provided by this invention will be described in detail below with specific embodiments.

[0070] Example 1

[0071] This invention provides a privacy-preserving federated learning method based on generative adversarial image transformation, achieving a good balance between the accuracy of the global federated learning model and the performance of user data privacy protection. Figure 1 As shown, the method mainly includes the following steps:

[0072] Step 11: The local user shares the network structure of the generative adversarial image transformation model and the local model and initializes the model parameters of the two models;

[0073] The generative adversarial image transformation model includes an encryption network and a discriminant network. The local user initializes the model parameters of the generative adversarial image transformation model and the local model according to a Gaussian distribution. Table 1 shows the network structure of the generative adversarial image transformation model, where the input to the encryption network and the discriminant network is a color image of size 32×32.

[0074] Table 2 shows the network structure of the local model, whose input is a 32×32 color image. In Tables 1 and 2, For convolution operations with a kernel size of 4, For transposed convolution operations with a kernel size of 4 For batch normalization operations, For fully connected layer operations, , and Activation functions in deep learning The number of channels is of The feature map shows that the discriminant network has both Sigmoid and FC outputs.

[0075] Table 1. Network structure of the generative adversarial image transformation model

[0076]

[0077] Table 2 Network Structure of the Local Model

[0078]

[0079] Step 12: The local user trains a generative adversarial image transformation model based on the local dataset, and uses the trained generative adversarial image transformation model to transform the original images in the local dataset into encrypted images, while keeping the category labels of the encrypted images consistent with the category labels of the original images.

[0080] The preferred implementation of step 12 is as follows:

[0081] Step 121: The local user constructs an original image set from the original images in their local dataset. The target image set is obtained by performing block partitioning and block scrambling operations on all images in the original image set. .

[0082] Step 122: Define the generative adversarial loss function in the local user-defined generative adversarial image transformation model. , represented as:

[0083] (1);

[0084] in, Indicates an encrypted network. Indicates the discriminant network, Represents the original set of images The image in Represents the set of target images The image in the image. In the generative adversarial loss function. In the middle, discriminant network The output is a Sigmoid output. The original image can be transformed into a transformed image through an encrypted network.

[0085] Step 123: Local user-defined classification loss function in the generative adversarial image transformation model. , represented as:

[0086] (2);

[0087] in, Represents the original set of images The number of images in Represents the original set of images The number of image categories in the image. This represents the set of true class labels for the original images in the local dataset. This represents the set of predicted class labels obtained by passing the fully connected (FC) output of the discriminant network over the original image. This indicates that the transformed image corresponds to the first... The actual category label of the class, This indicates that the transformed image corresponds to the first... Predicted category label for the class.

[0088] Step 124, the local user uses the original image set Target image set Real category tag set and predicted category label set Alternating training of the encryption network and the discriminant network is represented as follows:

[0089] (3);

[0090] This requires alternating training of the encryption network and the discriminant network until the number of update rounds of the generative adversarial image transformation model reaches a threshold. Up to now, the original image Generate encrypted images using a trained encryption network. The encrypted image is the final state of the image after the encryption and discriminant networks have been trained.

[0091] Step 13: The local user trains a local model based on the encrypted image and the corresponding encrypted image category label, completes the local model update, and uploads the trained local model's encrypted gradient as a shared parameter to the server.

[0092] In step 13, for the common Local users Execute federated learning local model updates for each local user Having includes A local dataset of original images The local model update is represented as:

[0093] (4);

[0094] in, For the first A local user obtains a local model by downloading global model parameters from the server. For the first A local encrypted image collection for each local user. Encrypted image and real category labels constitute, To generate a classification loss function in an adversarial image transformation model and . No. Encrypted gradients of a local model trained by a local user As a shared parameter used for uploading to the server.

[0095] Step 14: The server aggregates the encrypted gradients uploaded by local users who participated in the global model update, and completes the global model update.

[0096] In step 14, the global model update is represented as follows:

[0097] (5);

[0098] in, It is in the Global model parameters during sub-global communication It is in the Global model parameters during sub-global communication It is a global model update of the learning rate. This is the number of encrypted images for all local users. It is in the The first global communication Local model encryption gradients for each local user.

[0099] Step 15: The local user communicates globally with the server, downloads the updated global model from the server, and uses the local encrypted image set to verify whether the accuracy of the global model is greater than the preset threshold. If yes, proceed to step 16; otherwise, repeat steps 13 and 14.

[0100] In step 15, the first... During the next global communication, all local users download the updated global model from the server. All users use a locally encrypted image collection Validate the global model If the accuracy is greater than a preset threshold, proceed to step 16; otherwise, repeat steps 13 and 14.

[0101] Step 16: Complete the privacy protection federal learning training process.

[0102] This invention proposes a privacy-preserving federated learning method based on generative adversarial image transformation. By constructing a generative adversarial image transformation model consisting of an encryption network and a discriminant network, the original images in the local dataset are transformed into encrypted images for federated learning training. The training features of the original images are preserved in the encrypted images, thereby achieving a good balance between the accuracy of the global federated learning model and the performance of user data privacy protection.

[0103] To test the global model accuracy and privacy protection performance of the privacy-preserving federated learning method based on generative adversarial image transformation proposed in this invention, the proposed method is compared with three other privacy-preserving federated learning methods. These three methods are denoted as A, B, and C. A is a privacy-preserving federated learning method based on block scrambling, B is a privacy-preserving federated learning method based on pixel transformation and channel scrambling, and C is a privacy-preserving federated learning method based on an automatic transformation strategy.

[0104] To test global model accuracy and privacy performance, the MNIST and CIFAR-10 datasets were used, with stochastic gradient descent as the basic model optimization algorithm. The number of local users was set to 5, the number of global communication rounds to 3, the number of local model update rounds to 10, the size of the randomly sampled dataset to 64, and the learning rate to 0.01. To test privacy performance, the server used a gradient-based reconstruction attack to steal local user data, and the peak signal-to-noise ratio (PSNR) of the reconstructed image, calculated with reference to the original image, was used to measure the privacy performance of the corresponding method.

[0105] Table 3 Global model accuracy of different privacy-preserving federated learning methods

[0106]

[0107] Table 3 shows the global model accuracy of different privacy-preserving federated learning methods. The privacy-preserving federated learning method based on generative adversarial image transformation proposed in this invention achieves the highest global model accuracy. Figure 2 The diagram illustrates the image privacy protection performance against gradient-based reconstruction attacks. The privacy-preserving federated learning method based on generative adversarial image transformation proposed in this invention exhibits the lowest peak signal-to-noise ratio in the reconstructed image, demonstrating that the method of this invention possesses the highest privacy protection performance.

[0108] Those skilled in the art will understand that all or part of the processes in the methods of the embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0109] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims. The information disclosed in the background section is intended only to enhance the understanding of the overall background technology of the present invention and should not be construed as an admission or implication in any way that such information constitutes prior art known to those skilled in the art.

Claims

1. A privacy-preserving federated learning method based on generative adversarial image transformation, characterized in that, Includes the following steps: Step 11: The local user shares the network structure of the generative adversarial image transformation model and the local model and initializes the model parameters of the two models; Step 12: The local user trains a generative adversarial image transformation model based on the local dataset, and uses the trained generative adversarial image transformation model to transform the original images in the local dataset into encrypted images, while keeping the category labels of the encrypted images consistent with the category labels of the original images. In step 12, the local user trains a generative adversarial image transformation model based on the local dataset in the following manner, and uses the trained generative adversarial image transformation model to transform the original images in the local dataset into encrypted images while maintaining the category labels of the encrypted images, including: Step 121: The local user constructs an original image set from the original images in their local dataset. The target image set is obtained by performing block partitioning and block scrambling operations on all images in the original image set. ; Step 122: Define the generative adversarial loss function in the local user-defined generative adversarial image transformation model. for: (1); in, Indicates an encrypted network. Indicates the discriminant network, Represents the original set of images The image in Represents the set of target images The image in the image; in the generative adversarial loss function In the middle, discriminant network The output is a Sigmoid output; the original image can generate a transformed image through an encryption network; Step 123: Define the classification loss function in the generative adversarial image transformation model locally. , represented as: (2); in, Represents the original set of images The number of original images in the data; Represents the original set of images The number of original image categories; This represents the set of true class labels for the original images in the local dataset; This represents the set of predicted class labels obtained by passing the original image through the fully connected layer of the discriminant network; This indicates that the transformed image corresponds to the first... The actual category label of the class; This indicates that the transformed image corresponds to the first... Predicted category label for the class; Step 124, the local user uses the original image set Target image set Real category tag set and predicted category label set Alternating training of the encryption network and the discriminant network is represented as follows: (3); This requires alternating training of the encryption network and the discriminant network until the number of update rounds of the generative adversarial image transformation model reaches a threshold. Up to now, the original image Generate encrypted images using a trained encryption network. The encrypted image is the final state of the transformed image after the encryption network and discriminant network have been trained. Step 13: The local user trains a local model based on the encrypted image and the corresponding encrypted image category label, completes the local model update, and uploads the trained local model's encrypted gradient as a shared parameter to the server. Step 14: The server aggregates the encrypted gradients uploaded by local users who participated in the global model update, and completes the global model update. Step 15: The local user communicates globally with the server, downloads the updated global model from the server, and uses the local encrypted image set to verify whether the accuracy of the global model is greater than the preset threshold. If yes, proceed to step 16; otherwise, repeat steps 13 and 14. Step 16: Complete the privacy protection federal learning training process.

2. The privacy-preserving federated learning method based on generative adversarial image transformation according to claim 1, characterized in that, In step 11, the local user initializes the model parameters of the adversarial image transformation model and the local model based on the Gaussian distribution.

3. A privacy-preserving federated learning method based on generative adversarial image transformation according to claim 1 or 2, characterized in that, In step 11, the network structure for generating the adversarial image transformation model includes: Encryption networks and discriminative networks; among them, The encryption network comprises, in sequence, a first convolutional layer with a kernel size of 4, a first batch normalization layer, a second convolutional layer with a kernel size of 4, a second batch normalization layer, a third convolutional layer with a kernel size of 4, a third batch normalization layer, a fourth convolutional layer with a kernel size of 4, a fourth batch normalization layer, a first transposed convolutional layer with a kernel size of 4, a fifth batch normalization layer, a second transposed convolutional layer with a kernel size of 4, a sixth batch normalization layer, a third transposed convolutional layer with a kernel size of 4, a seventh batch normalization layer, and a fourth transposed convolutional layer with a kernel size of 4. The activation functions following the first, second, third, fourth, fifth, sixth, and seventh batch normalization layers are all... function; The activation function after the fourth transposed convolutional layer is: function; The input to the first convolutional layer of this encryption network is a 32×32 feature map with 3 channels. The fourth transposed convolutional layer then... Output all the way; The discriminant network includes a first convolutional layer with a kernel size of 4, a first batch normalization layer, a second convolutional layer with a kernel size of 4, a second batch normalization layer, a third convolutional layer with a kernel size of 4, a third batch normalization layer, and a fourth convolutional layer with a kernel size of 4, which are connected in sequence. The third batch normalization layer is followed by a fully connected layer; The activation functions after the first batch normalization layer, the second batch normalization layer, and the third batch normalization layer are all... function; The activation function after the fourth convolutional layer is the Sigmoid function; The first convolutional layer of the discriminative network takes a 32×32 feature map with 3 channels as input, the fourth convolutional layer has a sigmoid output, and the third batch normalization layer has a fully connected layer output.

4. A privacy-preserving federated learning method based on generative adversarial image transformation according to claim 1 or 2, characterized in that, In step 11, the network structure of the local model includes: The layers are connected in sequence: a first convolutional layer with a kernel size of 4, a first batch normalization layer, a second convolutional layer with a kernel size of 4, a second batch normalization layer, a third convolutional layer with a kernel size of 4, a third batch normalization layer, and a fully connected layer. The activation functions after the first batch normalization layer, the second batch normalization layer, and the third batch normalization layer are all... function; The first convolutional layer of this local model takes a 32×32 feature map with 3 channels as input, and after the third batch normalization layer, there is a fully connected layer as output.

5. A privacy-preserving federated learning method based on generative adversarial image transformation according to claim 1 or 2, characterized in that, In step 13, the local user trains a local model based on the encrypted image and its corresponding encrypted image category label in the following manner to complete the local model update, and uses the encrypted gradient of the trained local model as a shared parameter for uploading to the server, including: For common Local users Execute federated learning local model updates for each local user Having includes A local dataset of original images The local model update is represented as: (4); in, For the first A local user obtains a local model by downloading global model parameters from the server; For the first A local encrypted image collection for each local user; Encrypted image and real category labels constitute; To generate a classification loss function in an adversarial image transformation model and ;No. Encrypted gradients of a local model trained by a local user As a shared parameter used for uploading to the server.

6. A privacy-preserving federated learning method based on generative adversarial image transformation according to claim 1 or 2, characterized in that, In step 14, the global model update is represented as follows: (5); in, It is in the Global model parameters during sub-global communication; It is in the Global model parameters during sub-global communication; It is a global model update of the learning rate; This is the number of encrypted images for all local users; It is in the The first global communication The local model encryption gradient for each local user.

7. A privacy-preserving federated learning method based on generative adversarial image transformation according to claim 1 or 2, characterized in that, In step 15, the local user and the server conduct the first... During the next global communication, all local users download the updated global model from the server. All users use a locally encrypted image collection Validate the global model If the accuracy of the global model obtained by all users is greater than the preset threshold, then step 16 is executed; otherwise, steps 13 and 14 are repeated.

Citation Information

Patent Citations

  • Federal continuous learning training method based on memory playback and differential privacy

    CN115081532A