Verifiable privacy protection federal learning method

By using verifiable privacy protection methods in federated learning, generating one-way mapping functions and encryption technologies, the problem of privacy leakage in traditional learning methods is solved, the security protection of user information and the verification of aggregation results are achieved, ensuring information security. and the stability of the training process.

CN118607664AActive Publication Date: 2024-09-06GUILIN UNIV OF ELECTRONIC TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410716388.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Traditional machine learning methods can easily cause privacy leaks when processing sensitive data, especially in fields such as medical systems. Hospitals are unwilling to share patient data, and clear text processing brings serious privacy leak risks.

Method used

Using a verifiable privacy-preserving federated learning method, a one-way mapping function, public key and private key are generated through a trusted organization. The user uses the public key to encrypt the gradient function value and sends it to the server. The server performs decryption request and aggregation model verification, combined with distribution The Paillier cryptosystem and homomorphic encryption technology ensure information security and resist collusion attacks between servers and users.

Benefits of technology

This enables users to verify the correctness of the aggregation results returned by the server without relying on a trusted third party, protect user information security, prevent privacy leaks, and ensure the integrity of the training process under the network fault-tolerance mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607664A
    Figure CN118607664A
Patent Text Reader

Abstract

The invention relates to the technical field of privacy protection, in particular to a verifiable privacy protection federated learning method, which comprises the following steps that: a trusted mechanism generates a one-way mapping function, a public key and a private key, sends the one-way mapping function, the public key and the private key to a user, and sends the public key to a server; the user sends the ciphertext and the gradient function value to the server, and the server obtains an encrypted gradient ciphertext; and the server sends a decryption request to a preset online user, and sends the gradient function value to the user verification aggregation model. According to the method, the irreversible one-way mapping function is constructed, so that the user can independently verify the correctness of the aggregation result returned by the server under the condition that a trusted third party is not needed. By adopting a distributed Paillier cryptosystem and a homomorphic encryption technology, the information security of a user in a transmission stage is protected, and collusion attacks between a server and a small part of users can be resisted at the same time, so that the problem that privacy leakage is easily caused by a traditional learning method is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of privacy protection technology, and in particular to a verifiable privacy protection federated learning method. Background Art

[0002] In the current information age, big data and artificial intelligence have become important forces driving business development and innovation. In recent years, machine learning has played an important role in many fields such as medical prediction, autonomous driving, and image recognition. Machine learning requires a large amount of data, which is often obtained from users. However, this data may be sensitive data or contain some personal privacy information. For example, in the medical system, hospitals may be reluctant to share patients' medical data with cloud servers because of the privacy of patients. In addition, since traditional machine learning is generally performed in plain text, this also brings serious risks of privacy leakage. Summary of the invention

[0003] The purpose of the present invention is to provide a verifiable privacy-preserving federated learning method, aiming to solve the problem that traditional learning methods are prone to privacy leakage.

[0004] To achieve the above object, the present invention provides a verifiable privacy-preserving federated learning method, comprising the following steps:

[0005] The trusted institution generates a one-way mapping function, a public key and a private key, and sends the one-way mapping function, the public key and the private key to the user, and sends the public key to the server;

[0006] The user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext;

[0007] The server sends a decryption request to a preset online user, and sends the gradient function value to a user verification aggregation model.

[0008] The trusted institution generates a one-way mapping function, a public key and a private key, sends the one-way mapping function, the public key and the private key to the user, and sends the public key to the server, including:

[0009] Parameter initialization;

[0010] The trusted institution initializes the model parameters to generate a one-way mapping function;

[0011] The trusted institution generates the public key and the private key for each user and sends them to the user, and sends the public key to the server.

[0012] The parameter initialization includes global weight, learning rate and training rounds.

[0013] The user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext, including:

[0014] Each user uses the public key to calculate the ciphertext and the gradient function value;

[0015] Each user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext.

[0016] The server sends a decryption request to a preset online user, and sends the gradient function value to a user verification aggregation model, including:

[0017] After the server sends a decryption request to a preset online user, the selected user sends a decryption share to the server, and the server calculates a decryption aggregation result;

[0018] The server calculates a one-way function value of an aggregated gradient and sends the gradient function value to a user to verify the aggregated model.

[0019] A verifiable privacy-preserving federated learning method of the present invention comprises the following steps: a trusted institution generates a one-way mapping function, a public key and a private key, and sends the one-way mapping function, the public key and the private key to a user, and sends the public key to a server; the user sends a ciphertext and a gradient function value to a server, and the server obtains an encrypted gradient ciphertext; the server sends a decryption request to a preset online user, and sends the gradient function value to a user verification aggregation model. The present invention constructs an irreversible one-way mapping function so that the user can independently verify the correctness of the aggregation result returned by the server without the need for a trusted third party. The distributed Paillier cryptographic system and homomorphic encryption technology are used to protect the information security of users in the transmission stage, and can resist collusion attacks between the server and a small number of users, thereby solving the problem that traditional learning methods are prone to privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a flow chart of a verifiable privacy-preserving federated learning method provided by the present invention.

[0022] Figure 2It is a flowchart in which a trusted organization generates a one-way mapping function, a public key and a private key, sends the one-way mapping function, the public key and the private key to a user, and sends the public key to a server.

[0023] Figure 3 The flowchart is that the user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext.

[0024] Figure 4 It is a flowchart in which the server sends a decryption request to a preset online user and sends the gradient function value to a user verification aggregation model. DETAILED DESCRIPTION

[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0026] See also Figures 1 to 4 , the present invention provides a verifiable privacy-preserving federated learning method, comprising the following steps:

[0027] S1 The trusted institution generates a one-way mapping function, a public key and a private key, and sends the one-way mapping function, the public key and the private key to the user, and sends the public key to the server;

[0028] S11 parameter initialization;

[0029] The parameter initialization includes global weight, learning rate and training rounds.

[0030] Specifically, parameter generation: parameter initialization includes global weight ω, learning rate Training round epoch, security parameter L, and the single mapping function h required for verification. Assume that all participants have the same ω, and epoch.

[0031] S12 The trusted institution initializes the model parameters to generate a one-way mapping function;

[0032] Specifically, the TA (trusted authority) randomly generates two prime numbers p′ and q′, then calculates p=2p′+1, q=2q′+1, and then generates an RSA modulus N=Pq, and gcd(N, ψ(N))=1.

[0033] S13: The trusted institution generates the public key and the private key for each user and sends them to the user, and sends the public key to the server.

[0034] Specifically, TA (trusted authority) randomly selects Calculate m = p′q′, disguise m as θ = mβ mod N, and calculate Because λ(N 2 )=lcm(ψ(p 2 ),φ(q 2 ))=2Nm, so pick a random number There is x 2Nm =1mod N 2 .

[0035] Public key pk = (N, G, θ), where G = N + 1, private key SK = βm. Split the private key SK = βm: TA (trusted authority) selects t random numbers a1, a2, ..., a t ∈{0,1,…,Nm-1}, then generate the polynomial fx=βm+a1x+…+a t x t- 1 modNm, and finally send the private key f(n) to each participant through a secure channel

[0036] S2 user sends the ciphertext and gradient function value to the server, and the server obtains the encrypted gradient ciphertext;

[0037] S21 Each user uses the public key to calculate the ciphertext and the gradient function value;

[0038] Specifically, each user Encrypt your own gradient, for the gradient g n =[g n1 ,g n2 ,…,g nm ], choose a random number Calculate the ciphertext using the public key pk And the gradient function value

[0039] S22 Each user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext.

[0040] Specifically, each user P n Send ciphertext Enc pk g n And the gradient function value hsum(g n ) to the cloud server, which broadcasts the received gradient function value And aggregate the ciphertext to get the encrypted gradient ciphertext

[0041]

[0042] S3: The server sends a decryption request to a preset online user, and sends the gradient function value to a user verification aggregation model.

[0043] S31 After the server sends a decryption request to a preset online user, the selected user sends a decryption share to the server, and the server calculates a decryption aggregation result;

[0044] Specifically, for the ciphertext c, the cloud server randomly selects t users to send requests. Let the numbers of the selected participants form a set S, and the selected participants P n (n∈S) calculate the decryption share Send to the cloud server, which can calculate the aggregated results

[0045]

[0046] in,

[0047] S32: The server calculates the one-way function value of the aggregation gradient and sends the gradient function value to the user to verify the aggregation model.

[0048] Specifically, each user Receive the gradient function value broadcast by the cloud server And calculate Then according to the aggregation result g returned by the server * ,calculate If h(sum(g' * ))==h(sum(g * )), then enter the next round of training, otherwise, ask the server to re-aggregate the results.

[0049] Server (CS):

[0050] The cloud server is semi-malicious, that is, it will try to collude with some users to infer the privacy information of other participants. It may also deceive consumers by reducing the gradient aggregation of one or more users for its own benefit in order to save costs. In addition, it will honestly execute the protocol. The main work of the cloud server is to aggregate the gradients uploaded by users, broadcast the gradient function values ​​uploaded by users to all users, decrypt the aggregated results and send them to users. The cloud server is required to know nothing except the encrypted ciphertext and the final aggregated result.

[0051] Trusted Authority (TA):

[0052] TA (Trusted Authority) is absolutely authoritative and trustworthy. It will not collude with any party and will not leak any user's parameters. Its main work is to initialize the model parameters, generate a one-way mapping function, and generate public and private keys for each user. Then the function and public-private key pair are sent to the user, and the public key is sent to the cloud server. After that, it will go offline unless there is a dispute.

[0053] Users:

[0054] The user is the data owner. Each user sends its encrypted local gradient and calculated gradient function value to the cloud server during each iteration, and cooperates with the cloud server to decrypt the aggregated result. Finally, each user verifies the aggregated result returned by the server.

[0055] Beneficial effects:

[0056] (1) Considering semi-malicious cloud servers, a secure, lightweight and verifiably privacy-preserving federated learning scheme is constructed while protecting user privacy.

[0057] (2) Through distributed Paillier cryptographic systems and threshold homomorphic encryption technologies, user information security can be protected even if the server colludes with a small number of users.

[0058] (4) Consider the fault-tolerance mechanism. Even if a small number of users are unable to upload complete local data due to network or other reasons, it will not affect the overall training process.

[0059] What is disclosed above is only a preferred embodiment of a verifiable privacy-preserving federated learning method of the present invention. Of course, this cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A verifiable privacy-preserving federated learning method, characterized in that: The following steps are involved: The trusted institution generates a one-way mapping function, a public key and a private key, and sends the one-way mapping function, the public key and the private key to the user, and sends the public key to the server; The user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext; The server sends a decryption request to a preset online user, and sends the gradient function value to a user verification aggregation model.

2. A verifiable privacy-preserving federated learning method as claimed in claim 1, characterized in that: The trusted institution generates a one-way mapping function, a public key and a private key, sends the one-way mapping function, the public key and the private key to the user, and sends the public key to the server, including: Parameter initialization; The trusted institution initializes the model parameters to generate a one-way mapping function; The trusted institution generates the public key and the private key for each user and sends them to the user, and sends the public key to the server.

3. A verifiable privacy-preserving federated learning method as claimed in claim 2, characterized in that: The parameter initialization includes global weight, learning rate and training rounds.

4. A verifiable privacy-preserving federated learning method as claimed in claim 3, characterized in that: The user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext, including: Each user uses the public key to calculate the ciphertext and the gradient function value; Each user sends the ciphertext and the gradient function value to the server, and the server obtains the encrypted gradient ciphertext.

5. A verifiable privacy-preserving federated learning method as claimed in claim 4, characterized in that: The server sends a decryption request to a preset online user, and sends the gradient function value to a user verification aggregation model, including: After the server sends a decryption request to a preset online user, the selected user sends a decryption share to the server, and the server calculates a decryption aggregation result; The server calculates a one-way function value of an aggregated gradient and sends the gradient function value to a user to verify the aggregated model.

Citation Information

Patent Citations

  • Verifiable lightweight privacy protection federated learning system and method

    CN114785510A

  • Verifiable privacy protection federated learning method based on linear homomorphic hash and signcryption

    CN116049897A

  • Verifiable privacy protection federated learning method and system

    CN116467736A

  • Verifiable federated learning method based on BLS signature and gradient rarefaction

    CN117035063A

  • Searchable encrypted data sharing method and system based on blockchain and homomorphic encryption

    US20220368545A1