Federal learning communication method and device, equipment and storage medium

By adding noise in federated learning and using security protocols to handle model updates, combined with differential privacy algorithms and real-time adjustment of noise magnitude, the problem of privacy protection and model performance balance in the existing technology is solved, and data security and privacy protection are significantly improved. Capabilities, suitable for handling highly sensitive data.

CN118586523AInactive Publication Date: 2024-09-03GUANGDONG POWER GRID CO LTD

Patent Information

Application Number
CN202410762465.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure CN118586523A
    Figure CN118586523A
Patent Text Reader

Abstract

The invention discloses a federated learning communication method and device, equipment and a storage medium. The method comprises the steps of performing model training on a local model according to private data of participants; according to a preset differential privacy algorithm, adding noise of a preset magnitude in the model update of the local model, and updating the local model according to the model update after the noise is added; the noisy model update is sent to a central server through a preset security protocol, so that the central server aggregates the received model update, then updates a global model according to the aggregated model update, and distributes the updated global model to all participants; the model performance and the privacy protection level of the global model are evaluated, and the magnitude of the noise is adjusted in real time according to the model performance and the privacy protection level obtained through evaluation. According to the invention, the data security and privacy protection capability in the data transmission and processing process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of federated learning data security and privacy technology, and in particular to a federated learning communication method, apparatus, device and storage medium. Background Art

[0002] Federated learning is a distributed machine learning method that allows multiple participants (such as mobile devices or organizations) to collaborate on training a shared model without storing or directly exchanging their respective datasets, thereby protecting data privacy.

[0003] The main problems faced by existing federated learning secure communication mechanisms based on differential privacy are: it is difficult to find a suitable balance between protecting privacy and maintaining model performance, and it is difficult to ensure absolute data security during data transmission and processing. In addition, traditional methods often lack adaptability to dynamic environments and are difficult to effectively respond to changes in the environment and data characteristics. This is particularly evident when processing highly sensitive data, which may lead to insufficient or excessive privacy protection measures, thereby affecting the practicality of the data and the accuracy of the analysis results. Summary of the invention

[0004] The present invention provides a federated learning communication method, apparatus, device and storage medium to solve the technical problems that it is difficult to ensure absolute data security during data transmission and processing in the existing federated learning secure communication mechanism based on differential privacy, and it lacks adaptability to dynamic environments.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a federated learning communication method, including:

[0006] Perform model training on the corresponding local model based on the private data of the participants;

[0007] According to a preset differential privacy algorithm, adding a preset level of noise to the model update of the local model after training, and updating the local model according to the model update after adding noise;

[0008] Sending the noisy model updates to a central server through a preset security protocol, so that the central server aggregates the received model updates, then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants;

[0009] The model performance and privacy protection level of the global model are evaluated, and the magnitude of the noise is adjusted in real time according to the evaluated model performance and privacy protection level.

[0010] As a preferred solution, the corresponding local model is trained through the following networks: convolutional neural network, recurrent neural network and deep belief network.

[0011] As a preferred solution, the differential privacy algorithm includes: Laplace algorithm and Gaussian algorithm;

[0012] When the differential privacy algorithm is the Laplace algorithm, a preset level of noise is added to the model update of the local model after training is completed in the following manner:

[0013] Δu=u+Laplace(0,λ);

[0014] Where Δu is the model update after noise addition, u is the model update without noise addition, Laplace(0,λ) is the Laplace noise, and λ is the scale parameter of the Laplace distribution.

[0015] As a preferred solution, the security protocol includes: TLS / SSL encryption communication protocol;

[0016] Before sending the noisy model update to the central server through a preset security protocol, the method further includes:

[0017] The identity of the participant is authenticated according to a preset verification mechanism, and the data integrity of the model update after the noise is added is verified; wherein the verification mechanism includes: digital signature and message authentication code.

[0018] As a preferred solution, the central server aggregates the received model updates in the following manner:

[0019]

[0020] Among them, U global is the model update after aggregation, N is the number of participants, Δu i is the noisy model update for the i-th participant.

[0021] As a preferred solution, the updated global model is distributed to all participants, including:

[0022] According to the differential privacy algorithm, a preset level of noise is added to the updated global model, and then the noisy global model is distributed to all participants.

[0023] As a preferred solution, the magnitude of the noise is adjusted in real time in the following manner:

[0024] λ t+1 =f(λ t ,E t ,P t );

[0025] Among them, λ t+1 is the noise level of the next iteration after adjustment, λ t is the noise level of the current iteration, E t is the evaluation error of the model performance of the current global model, P t Assess the loss of the current privacy protection level.

[0026] Based on the above embodiment, another embodiment of the present invention provides a federated learning communication device, including: a local model training module, a model update and noise adding module, a global model update module and a noise level adjustment module;

[0027] The local model training module is used to perform model training on the corresponding local model according to the private data of the participant;

[0028] The model update noise adding module is used to add a preset level of noise to the model update of the local model after training according to a preset differential privacy algorithm, and update the local model according to the model update after adding noise;

[0029] The global model updating module is used to send the noisy model updates to the central server through a preset security protocol, so that the central server aggregates the received model updates, and then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants;

[0030] The noise level adjustment module is used to evaluate the model performance and privacy protection level of the global model, and adjust the noise level in real time according to the evaluated model performance and privacy protection level.

[0031] Based on the above embodiments, another embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the federated learning communication method described in the above invention embodiments is implemented.

[0032] Based on the above embodiment, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the federated learning communication method described in the above invention embodiment.

[0033] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0034] The present invention provides a federated learning communication method, which performs model training on a corresponding local model according to private data of a participant; adds a preset level of noise to the model update of the local model after training according to a preset differential privacy algorithm, and updates the local model according to the noisy model update; sends the noisy model update to a central server through a preset security protocol, so that the central server aggregates the received model updates, and then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants; evaluates the model performance and privacy protection level of the global model, and adjusts the level of the noise in real time according to the evaluated model performance and privacy protection level.

[0035] Compared with the prior art, the federated learning communication method provided by the present invention adds noise to local training, securely transmits model updates through a preset security protocol, and aggregates model updates, significantly enhancing the security and privacy protection capabilities of the model. In addition, the present invention also adjusts the noise level in real time to ensure continuous optimization of privacy protection and model performance in a changing environment. It is particularly suitable for processing highly sensitive data and can provide efficient data analysis and learning capabilities while meeting strict privacy regulations, effectively balancing privacy protection and data practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a flowchart of a federated learning communication method provided by an embodiment of the present invention;

[0037] Figure 2 It is a schematic diagram of the implementation process of the federated learning secure communication mechanism of the present invention;

[0038] Figure 3 This is a schematic diagram of the structure of the adaptive differential privacy module of the present invention.

[0039] Figure 4 It is a structural diagram of a federated learning communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0042] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0044] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0045] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0046] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0047] Embodiment 1

[0048] Please refer to Figure 1, is a flow chart of a federated learning communication method provided by an embodiment of the present invention, including the following specific steps:

[0049] S1. Train the corresponding local model based on the participant’s private data;

[0050] Preferably, the corresponding local model is trained by the following networks: convolutional neural network, recurrent neural network and deep belief network.

[0051] For details, please refer to Figure 2 , which is a schematic diagram of the implementation process of the federated learning secure communication mechanism of the present invention. In view of the problems existing in the prior art, the present invention provides an optimized federated learning secure communication mechanism based on differential privacy, which specifically includes the following steps:

[0052] Step 1: Each participant independently trains a local model using its private data;

[0053] Among them, the local model training algorithms used by participants include but are not limited to convolutional neural networks (CNN), recurrent neural networks (RNN) or deep belief networks (DBN).

[0054] The training algorithm includes a variety of neural network models, such as CNN, RNN and DBN, so that the communication mechanism can support various types of machine learning models, increasing the applicability and flexibility of the system.

[0055] S2. According to a preset differential privacy algorithm, adding a preset level of noise to the model update of the local model after training, and updating the local model according to the model update after adding noise;

[0056] Preferably, the differential privacy algorithm includes: Laplace algorithm and Gaussian algorithm; when the differential privacy algorithm is the Laplace algorithm, a preset level of noise is added to the model update of the local model after training is completed in the following manner:

[0057] Δu=u+Laplace(0,λ);

[0058] Where Δu is the model update after noise addition, u is the model update without noise addition, Laplace(0,λ) is the Laplace noise, and λ is the scale parameter of the Laplace distribution.

[0059] Step 2: Before each local model update, add a predetermined amount of noise to the model update according to the differential privacy algorithm;

[0060] Specifically, the differential privacy algorithm used is the Laplace mechanism or the Gaussian mechanism, and the specific noise addition formula is:

[0061] Laplace(0,λ)orGaussian(0,σ 2 );

[0062] Among them, σ 2 is the variance of the Gaussian noise set according to the parameters of differential privacy.

[0063] The above formulas represent two different types of noise addition methods, Laplace noise and Gaussian noise, which are added to the local model update based on the principle of differential privacy.

[0064] Laplace noise is Laplace(0,λ), which is a Laplace distribution centered at 0 (mean) and scaled by λ (the scale parameter of the Laplace distribution). The probability density function of this distribution is symmetric, centered at the mean (0 in this case), and the choice of λ is usually related to the sensitivity of the data and the required privacy level.

[0065] In differential privacy, the addition of Laplace noise is intended to protect sensitive information contained in model updates, ensuring that even if the model updates are leaked, the specific information of any single data record cannot be accurately inferred. By controlling λ, the relationship between privacy protection and data utility can be balanced. A larger λ provides stronger privacy protection but may reduce the accuracy of the model.

[0066] Gaussian noise is Gaussian(0,σ 2 ), which is a value with 0 as the mean and σ 2 is the Gaussian (normal) distribution of variance. Gaussian distribution is a continuous probability distribution and is often used to process data with central limit characteristics. The choice of σ is also related to the sensitivity of the data and the requirements of privacy protection. It is usually used under the privacy budget that satisfies differential privacy.

[0067] The addition of Gaussian noise is similar to Laplace noise and is intended to protect individual privacy in model updates. It is suitable for scenarios that require more fine-grained control over the privacy-utility trade-off, especially when differential privacy is satisfied. Compared with Laplace noise, Gaussian noise can provide better data utility in some cases, especially when the data itself conforms to or approximates a normal distribution.

[0068] Based on the above two options, the communication mechanism can select the most appropriate noise type according to different application scenarios and privacy protection requirements, thereby providing a flexible and effective privacy protection solution.

[0069] The specific calculation formula for adding a predetermined amount of noise to the model update before the local model update is:

[0070] Δu=u+Laplace(0,λ);

[0071] Where Δu represents the model update after adding noise, which is the value sent to the central server for aggregation, u represents the original model update, which is usually a gradient or parameter update calculated based on the private data held by the participants, and Laplace(0,λ) represents the noise drawn from the Laplace distribution, where the distribution is centered at 0 and has λ as the scale parameter. The Laplace distribution is symmetric, and its probability density function is peaked at the center point (mean) and decays rapidly.

[0072] By adding noise to the model update, the differential privacy algorithm aims to ensure that even if the model update is obtained by an external observer, it is difficult to accurately infer the private data of any participant from it. The data privacy of the participants is effectively protected. In addition, the size of the scale parameter λ directly affects the magnitude of the noise, which in turn affects the trade-off between the strength of privacy protection and data practicality. Choosing a suitable λ value can minimize the impact on model performance while protecting privacy.

[0073] S3. Sending the noisy model updates to the central server through a preset security protocol, so that the central server aggregates the received model updates, then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants;

[0074] Preferably, the security protocol includes: TLS / SSL encrypted communication protocol; before the noisy model update is sent to the central server through the preset security protocol, it also includes: authenticating the identity of the participant according to a preset verification mechanism, and verifying the data integrity of the noisy model update; wherein the verification mechanism includes: digital signature and message authentication code.

[0075] Preferably, the central server aggregates the received model updates in the following manner:

[0076]

[0077] Among them, U global is the model update after aggregation, N is the number of participants, Δu i is the noisy model update for the i-th participant.

[0078] Preferably, distributing the updated global model to all participants includes: adding a preset level of noise to the updated global model according to the differential privacy algorithm, and then distributing the noisy global model to all participants.

[0079] Step 3: Each participant sends the noisy model update to the central server through a secure protocol;

[0080] The security protocol includes the TLS / SSL encrypted communication protocol. Before sending model updates, participants also need to perform identity authentication and data integrity verification, and the verification mechanisms used include but are not limited to digital signatures or message authentication codes.

[0081] This step involves ensuring the identity verification of participants and the integrity of data before sending model updates. This is achieved through the use of digital signatures or message authentication codes (MACs), which ensure that the data sent is indeed from the claimed sender and has not been tampered with during transmission. In addition, the entire data transmission process is protected by the TLS / SSL encrypted communication protocol, which encrypts the data transmission and prevents the data from being intercepted or eavesdropped by third parties during transmission. These measures together improve the security and privacy protection of data in the federated learning process and ensure the reliability and security of data exchange.

[0082] Step 4: The central server aggregates the received noise model updates and updates the global model;

[0083] The central server aggregates model updates using secure multi-party computing (SMC) technology to ensure that no detailed information of any single update is leaked during the aggregation process. The aggregation formula for the central server to aggregate the received noisy models to update the global model is:

[0084]

[0085] Among them, U global is the aggregated global model update, which is the average of the noisy model updates provided by all participants, is the averaging operation, N is the total number of participants, is the sum of all participants’ noisy updates.

[0086] The purpose of this step is to aggregate the model updates of all participants into a global model, so that the learning results of all participants can be integrated. At the same time, since noise has been added to the updates of each participant, the aggregation process further enhances privacy protection. The global model will then be distributed back to all participants for the next round of local training. This aggregation method ensures that even the central server cannot accurately know the data of any individual participant, thereby protecting privacy.

[0087] Step 5: The central server distributes the updated global model to all participants;

[0088] During the model distribution step, the central server also performs a secondary noise addition process on the global model to enhance the privacy protection of the model during transmission. Before distributing the global model to each participant, the central server performs a key security measure: secondary noise addition on the global model. This process involves adding noise again to the already aggregated and noisy model to further enhance the privacy protection of the model. This secondary noise addition ensures that even if the global model is intercepted by a potential attacker during transmission, it is difficult to accurately extract or infer any participant's sensitive data from the model. Through such processing, the privacy security of the model during transmission is enhanced, providing a higher level of data protection for all participants.

[0089] Step 6: Repeat Step 1 to Step 5 until the predetermined number of training rounds or model performance index is reached.

[0090] S4. Evaluate the model performance and privacy protection level of the global model, and adjust the magnitude of the noise in real time according to the evaluated model performance and privacy protection level.

[0091] Preferably, the level of the noise is adjusted in real time by:

[0092] λ t+1 =f(λ t ,E t ,P t );

[0093] Among them, λ t+1 is the noise level of the next iteration after adjustment, λ t is the noise level of the current iteration, E t is the evaluation error of the model performance of the current global model, P t Assess the loss of the current privacy protection level.

[0094] For details, please refer to Figure 3 , is a schematic diagram of the structure of the adaptive differential privacy module of the present invention. The present invention also includes an adaptive differential privacy module, which includes: a real-time monitoring unit, a dynamic noise adjustment unit and a feedback control unit. The functions of each unit are as follows:

[0095] (1) Real-time monitoring unit: dynamically adjusts the noise level based on the real-time evaluation of model performance and privacy protection level;

[0096] (2) Dynamic noise adjustment unit: realizes dynamic adjustment of noise level;

[0097] (3) Feedback control unit: Use the feedback control system to optimize the noise addition strategy.

[0098] The dynamic noise adjustment unit realizes dynamic adjustment of the noise level, and the following formula can be used:

[0099] λ t+1 =f(λ t ,E t ,P t );

[0100] Among them, λ t+1 is the noise scale of the next iteration, λ t is the noise scale of the current round, E t is the evaluation error of the current model, P t is the current privacy loss assessment.

[0101] The real-time monitoring unit is used to continuously monitor and evaluate the performance and privacy protection level of the model. This includes calculating the evaluation error E of the current model. t And privacy loss assessment P t ,The evaluation error reflects the accuracy or prediction performance of the model, while the privacy loss evaluation indicates the effectiveness of the current privacy protection.

[0102] λ t Represents the noise scale used at the tth iteration. This parameter determines the intensity of the noise added to the data or model update in the current iteration to protect privacy. The noise scale λ t Directly affects the strength of privacy protection. A larger λ t A higher value means stronger privacy protection, and more noise makes it more difficult to infer the original information from the noisy data.

[0103] Based on the real-time evaluation results, the dynamic noise adjustment unit uses a predetermined function f(λ t ,E t ,P t ) to calculate the noise scale λ to be used in the next iteration t+1 , the function design needs to take into account the trade-off between protecting privacy and maintaining data practicality, so that the system can flexibly adjust the noise level according to the current model performance and privacy requirements.

[0104] The feedback control unit in the module optimizes the noise addition strategy based on the results of dynamic adjustments and continuous evaluation feedback. This means that the system does not only adjust the noise based on a single evaluation, but continuously learns and adapts to ensure that the strategy is adjusted at any time throughout the model training process to respond to new data or environmental changes.

[0105] In summary, in view of the problems existing in the prior art, the present invention provides an optimized federated learning secure communication mechanism based on differential privacy. In the federated learning secure communication mechanism described in the present invention, each participant uses its own private data to independently train the model, ensuring that the original form of the data does not leave the local environment, reducing the risk of data leakage, and adding noise according to the differential privacy algorithm before the model update (such as weights or gradients) is sent to the central server, which helps to conceal the characteristics of individual data points and improve data privacy. Through a secure protocol such as TLS / SSL, the participant sends the noisy model update securely to the central server, ensuring the security and integrity of the data during transmission. When the central server aggregates all received noisy model updates, a new global model is calculated. This step usually involves calculating the average or other statistical methods to integrate the inputs of all participants. The updated global model is sent back to all participants for the next round of training. This process continues until the predetermined target of model performance is reached or a sufficient number of training rounds are completed.

[0106] The differential privacy-based federated learning secure communication mechanism provided by the present invention effectively balances privacy protection and data practicality through a series of innovative technical steps. By adding noise in local training, securely transmitting model updates, aggregating models using secure multi-party computing technology, and performing secondary noise processing before model distribution, the security and privacy protection capabilities of the model are significantly enhanced. In addition, the introduced adaptive differential privacy module further improves the system's adaptability to dynamic environments, and by adjusting the noise level in real time, it ensures continuous optimization of privacy protection and model performance in a changing environment. This makes the solution particularly suitable for processing highly sensitive data, and can provide efficient data analysis and learning capabilities while meeting strict privacy regulations.

[0107] Embodiment 2

[0108] Please refer to Figure 4 , is a structural diagram of a federated learning communication device provided by an embodiment of the present invention, the device comprising: a local model training module, a model update and noise adding module, a global model update module and a noise level adjustment module;

[0109] The local model training module is used to perform model training on the corresponding local model according to the private data of the participant;

[0110] The model update noise adding module is used to add a preset level of noise to the model update of the local model after training according to a preset differential privacy algorithm, and update the local model according to the model update after adding noise;

[0111] The global model updating module is used to send the noisy model updates to the central server through a preset security protocol, so that the central server aggregates the received model updates, and then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants;

[0112] The noise level adjustment module is used to evaluate the model performance and privacy protection level of the global model, and adjust the noise level in real time according to the evaluated model performance and privacy protection level.

[0113] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0114] Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0115] Embodiment 3

[0116] Accordingly, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the federated learning communication method described in the above-mentioned embodiment of the invention when executing the computer program.

[0117] The electronic device may be a computing device such as a desktop computer, a notebook, a palmtop computer, a cloud server, etc. The device may include, but is not limited to, a processor and a memory.

[0118] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and various interfaces and lines are used to connect various parts of the entire device.

[0119] Embodiment 4

[0120] Accordingly, an embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the federated learning communication method described in the above-mentioned embodiment of the invention.

[0121] The memory can be used to store the computer program, and the processor realizes various functions of the device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0122] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each method embodiment described above can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0123] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A federated learning communication method, characterized in that: include: Perform model training on the corresponding local model based on the private data of the participants; According to a preset differential privacy algorithm, adding a preset level of noise to the model update of the local model after training, and updating the local model according to the model update after adding noise; Sending the noisy model updates to a central server through a preset security protocol, so that the central server aggregates the received model updates, then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants; The model performance and privacy protection level of the global model are evaluated, and the magnitude of the noise is adjusted in real time according to the evaluated model performance and privacy protection level.

2. The federated learning communication method according to claim 1, characterized in that: The corresponding local models are trained through the following networks: convolutional neural network, recurrent neural network, and deep belief network.

3. The federated learning communication method according to claim 2, characterized in that: The differential privacy algorithms include: Laplace algorithm and Gaussian algorithm; When the differential privacy algorithm is the Laplace algorithm, a preset level of noise is added to the model update of the local model after training is completed in the following manner: Δu=u+Laplace(0,λ); Where Δu is the model update after noise addition, u is the model update without noise addition, Laplace(0,λ) is the Laplace noise, and λ is the scale parameter of the Laplace distribution.

4. The federated learning communication method according to claim 1, characterized in that: The security protocols include: TLS / SSL encryption communication protocol; Before sending the noisy model update to the central server through a preset security protocol, the method further includes: The identity of the participant is authenticated according to a preset verification mechanism, and the data integrity of the model update after the noise is added is verified; wherein the verification mechanism includes: digital signature and message authentication code.

5. The federated learning communication method according to claim 1, characterized in that: The central server aggregates the received model updates in the following manner: Among them, U global is the model update after aggregation, N is the number of participants, Δu i is the noisy model update for the i-th participant.

6. The federated learning communication method according to claim 1, characterized in that: The updated global model is distributed to all participants, including: According to the differential privacy algorithm, a preset level of noise is added to the updated global model, and then the noisy global model is distributed to all participants.

7. The federated learning communication method according to claim 1, characterized in that: The level of the noise is adjusted in real time by: l t+1 =f(λ t ,E t ,P t ); Among them, λ t+1 is the noise level of the next iteration after adjustment, λ t is the noise level of the current iteration, E t is the evaluation error of the model performance of the current global model, P t Assess the loss of the current privacy protection level.

8. A federated learning communication device, characterized in that: include: Local model training module, model update and noise addition module, global model update module and noise level adjustment module; The local model training module is used to perform model training on the corresponding local model according to the private data of the participant; The model update noise adding module is used to add a preset level of noise to the model update of the local model after training according to a preset differential privacy algorithm, and update the local model according to the model update after adding noise; The global model updating module is used to send the noisy model updates to the central server through a preset security protocol, so that the central server aggregates the received model updates, and then updates the global model according to the aggregated model updates, and distributes the updated global model to all participants; The noise level adjustment module is used to evaluate the model performance and privacy protection level of the global model, and adjust the noise level in real time according to the evaluated model performance and privacy protection level.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the federated learning communication method according to any one of claims 1 to 7 is implemented.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the federated learning communication method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Federated learning differential privacy protection method for adding noise based on Rayleigh divergence

    CN113127931A

  • Cloud side-end collaborative ubiquitous intelligent federated learning privacy protection system and method

    CN115017541A

  • Federal learning method and system for classification prediction of connection data of Internet of Vehicles terminal

    CN116227631A

Cited By

  • Federal learning-based noise data processing method and device, and medium

    CN119622818A