Anti-collusion Byzantine robust privacy protection federated learning optimization method
By adopting the malicious gradient screening mechanism Randomcos and the collusion-resistant Byzantine robust aggregation strategy in federated learning, and using homomorphic encryption and secret sharing technology, the problem that existing solutions cannot take into account both data privacy and model robustness is solved. Effectively resist poisoning and inference attacks and protect data privacy.
Patent Information
- Application Number
- CN202410775302.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Under the assumption that participating training entities may collude, existing federated learning solutions cannot take into account data privacy and model robustness. Especially in the face of poisoning and inference attacks, existing defense methods have limitations in security and efficiency. .
Using the malicious gradient screening mechanism Randomcos and the anti-collusion Byzantine robust aggregation strategy, through homomorphic encryption and secret sharing technology, the client performs random perturbations before uploading local gradients, and uses cosine similarity to screen malicious clients to ensure data privacy. and model robustness.
Under the assumption that entities may collude, it effectively balances data privacy and model robustness, resists poisoning and inference attacks, improves the security and efficiency of federated learning solutions, and prevents poisoning attacks by malicious clients and semi-honest servers. Reasoning attack.
Smart Images

Figure CN118690406A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of federated learning and privacy protection, and specifically relates to an anti-collusion Byzantine robust privacy protection federated learning optimization method. Background Art
[0002] Federated Learning (FL) is a distributed machine learning paradigm. It allows clients to complete model training locally, without sharing local data with the central server, and only shares local gradients to generate global gradients. Since it avoids clients from directly sharing local data and effectively protects data privacy, it has gradually become one of the basic technologies for training sensitive tasks and is widely used in medical image analysis, financial risk control, and autonomous driving. Although federated learning has promoted the development of data privacy protection, it still faces the threat of poisoning and reasoning attacks.
[0003] Federated learning has a distributed nature, and each client has the right to upload local gradients and update the global model. Therefore, it is extremely vulnerable to poisoning attacks by malicious clients. Poisoning attacks are initiated by malicious clients, which manipulate the convergence direction of the global model by providing incorrect training data or local gradients. Ultimately, it affects the model learning results, reduces model performance, and causes prediction errors. In response to poisoning attacks, some studies have proposed a defense method based on aggregation rules, which detects malicious clients by designing aggregation rules and reduces the harm of poisoning attacks. However, malicious clients may use carefully designed malicious local gradients to evade detection. In addition, some research works use trusted verification datasets to screen malicious clients. First, the central server uses the trusted verification dataset to calculate the trusted local gradient. Then, the central server compares the cosine similarity between the local gradient uploaded by the client and the trusted gradient to screen malicious clients and resist poisoning attacks. However, such schemes rely on unrealistic prior knowledge, which limits the practical application of such schemes.
[0004] In addition to poisoning attacks, federated learning is also threatened by inference attacks during model training. Although the client only shares local gradients and does not directly share data during the training process, through in-depth analysis of local gradients, the semi-honest server can perform inference attacks and derive part of the client's training data. To resist inference attacks, some studies have designed federated learning schemes based on secure multi-party computing, which can securely aggregate global gradients without exposing local gradients. However, secure multi-party computing brings huge communication overhead. In addition, differential privacy is also a widely used method that protects data privacy by adding random noise to local gradients, but noise affects model accuracy. In order to protect data privacy without affecting model accuracy, some studies have used the ciphertext computability characteristics of homomorphic encryption, and the central server can securely aggregate local gradient ciphertexts, effectively maintaining data privacy.
[0005] At present, although there are some defense measures against poisoning and reasoning attacks, most studies can only defend against one of the attacks, and it is challenging to defend against both attacks at the same time. Because, on the one hand, in order to protect data privacy and resist reasoning attacks, local gradients are generally encrypted or noisy to ensure that local gradients are indistinguishable; on the other hand, existing defense measures against poisoning attacks tend to use the similarity between local gradients to screen malicious gradients. This requires ensuring that local gradients are distinguishable in order to obtain similarity information between local gradients. In order to resist poisoning and reasoning attacks at the same time, a scheme proposes to use the Pearson correlation coefficient to screen malicious clients and adopt a dual-server architecture to perform secure calculations without revealing the privacy of local gradients. Among them, the trusted server has a private key and can decrypt the intermediate parameters. Therefore, the security of this scheme is based on the strong assumption that the confidentiality of the key will not be destroyed. Once the trusted server is damaged by the adversary, it is very likely to cause key leakage, thereby leading to privacy leakage. On this basis, the researchers proposed a privacy protection strategy based on double trapdoor homomorphic encryption, which prevents the leakage of keys and local gradients based on the double trapdoor homomorphic encryption mechanism to ensure data privacy.
[0006] Although the above schemes can resist poisoning and reasoning attacks at the same time, they cannot take into account both model robustness and data privacy under the assumption that entities participating in federated learning training may collude. Because the above schemes require the use of two semi-honest servers for collaborative computing, the effectiveness of the schemes is based on the strong assumption that the two servers do not collude with each other. Although some scholars have proposed the use of compressed sensing technology to protect data privacy, and only a single server is needed to screen malicious clients and resist poisoning attacks. But the security of this scheme is also based on the strong assumption that the server and the client will not collude. However, in practice, the entities participating in federated learning training may be malicious, and there is a security risk of collusion to steal data privacy. To this end, researchers designed an Auditable Byzantine-robustnessFL (ABFL) scheme that can resist collusion between entities participating in federated learning training. However, this scheme requires each client to provide a trusted data set for malicious gradient detection. Since the data distribution of the trusted data set needs to match the training data of the client, this compromises data privacy to a certain extent.
[0007] In summary, existing solutions cannot balance data privacy and model robustness under the assumption that entities participating in federated learning training may collude. Summary of the invention
[0008] The purpose of this invention is to propose a collusion-resistant Byzantine robust privacy-preserving federated learning optimization method to solve the problem that existing solutions cannot balance data privacy and model robustness under the assumption that entities participating in federated learning training may collude, so as to improve the security of existing federated learning solutions.
[0009] To achieve the above purpose, the technical solution adopted by the present invention is:
[0010] A collusion-resistant Byzantine robust privacy-preserving federated learning optimization method is composed of a malicious gradient screening mechanism Randomcos and a collusion-resistant Byzantine robust aggregation strategy, which specifically includes the following steps:
[0011] Step 1: The key generation center sends the secret shares of the homomorphic encryption public key and private key (pk, sk i );
[0012] Step 2: In the tth training iteration, client C i Using local dataset D i Perform model training to obtain local gradients
[0013] Step 3: The client converts the local gradient Randomly select a random number r before uploading to the central server i ,calculate
[0014] Step 4: The client uses the public key pk to encrypt Upload R i and To the central server;
[0015] Step 5: The central server uses the malicious gradient screening mechanism Randomcos to calculate the cosine similarity of the local gradient without knowing the local gradient plaintext, screen out malicious clients, and resist poisoning attacks;
[0016] Step 6: assign different weights to local gradients according to cosine similarity, and use homomorphic encryption properties to denoise local gradients before weighted aggregation;
[0017]
[0018] In steps 5 and 6, the local gradients are first weighted according to the cosine similarity calculated by the malicious gradient screening mechanism Randomcos, and then the local gradients are weighted aggregated using the weights. Homomorphic encryption is used during the aggregation process to ensure data privacy.
[0019] Step 7: The central server aggregates local gradients in the encrypted state to generate global gradients;
[0020] In steps 1 and 7, secret sharing technology is used to split the private key. When the client updates the model, it needs to collaborate in decryption to resist collusion attacks between servers or clients and enhance the privacy of the federated learning solution.
[0021] In step 8, the client downloads the global gradient ciphertext from the central server and collaboratively decrypts it to update the local model.
[0022] The anti-collusion Byzantine robust privacy-preserving federated learning optimization method proposed in the present invention uses the malicious gradient screening mechanism Randomcos and uses random numbers to perturb the local gradient, which can effectively protect the privacy of the local gradient.
[0023] The present invention proposes an anti-collusion Byzantine robust privacy-preserving federated learning optimization method, in which the malicious gradient screening mechanism Randomcos first requires the clients participating in the federated learning training to select different random numbers to blind the local gradients, and then the central server uses the blinded local gradients to calculate the cosine similarity, screen malicious gradients, resist poisoning attacks, and ensure the robustness of the model.
[0024] Compared with the existing solutions, the beneficial effects of the present invention are:
[0025] 1) Under the assumption that entities participating in federated learning training may collude, it is possible to balance data privacy and model robustness.
[0026] 2) In order to protect data privacy, the present invention uses the client to randomly select random numbers to perturb the local gradient, which can effectively protect the local gradient. In addition, by using the ciphertext computable property of homomorphic encryption, the semi-honest central server can denoise the local gradient without knowing the random number information, thereby ensuring the correct aggregation of the global gradient.
[0027] 3) In order to take into account the robustness of the model, the present invention screens malicious clients by calculating the cosine similarity of the disturbed local gradient. In order to resist possible collusion attacks between entities participating in federated learning training, first, each client selects a different random number to add noise to the local gradient. Even if the malicious client and the semi-honest central server collude, they cannot obtain the random number of the honest client, and thus cannot restore the true local gradient, thereby protecting the data privacy of the honest client. Secondly, the private key is divided, and a single client cannot complete the decryption. Only when all clients cooperate can decryption be performed, further resisting collusion attacks between entities. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of a Byzantine robust privacy-preserving federated learning optimization method that is resistant to collusion according to the present invention.
[0029] Figure 2This is a comparison chart of the attack success rates of target poisoning attacks under different malicious client ratios of the present invention, where a and b represent 20% and 30% malicious clients respectively.
[0030] Figure 3 This is a comparison chart of the source class accuracy and overall accuracy of the target poisoning attack under different malicious client ratios of the present invention, where a and b represent 20% and 30% malicious clients respectively.
[0031] Figure 4 This is a comparison chart of the overall accuracy of non-target poisoning attacks under different malicious client ratios of the present invention, where a, b, and c represent 20%, 30%, and 40% malicious clients, respectively. DETAILED DESCRIPTION
[0032] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementations. The following examples or drawings are used to illustrate the present invention, but do not limit the scope of the present invention.
[0033] The present invention proposes a Byzantine robust privacy-preserving federated learning optimization method that is resistant to collusion, which consists of a malicious gradient screening mechanism Randomcos and a Byzantine robust aggregation strategy that is resistant to collusion, and specifically includes the following steps:
[0034] Step 1: The key generation center sends the secret shares of the homomorphic encryption public key and private key (pk, sk i );
[0035] Step 2: In the tth training iteration, client C i Using local dataset D i Perform model training to obtain local gradients
[0036] Step 3: The client converts the local gradient Randomly select a random number r before uploading to the central server i ,calculate
[0037] Step 4: The client uses the public key pk to encrypt Upload R i and To the central server;
[0038] Step 5: The central server uses the malicious gradient screening mechanism Randomcos to calculate the cosine similarity of the local gradient without knowing the local gradient plaintext, screen out malicious clients, and resist poisoning attacks;
[0039] Step 6: assign different weights to local gradients according to cosine similarity, and use homomorphic encryption properties to denoise local gradients before weighted aggregation;
[0040]
[0041] Step 7: The central server aggregates local gradients in the encrypted state to generate global gradients;
[0042] In step 8, the client downloads the global gradient ciphertext from the central server and collaboratively decrypts it to update the local model.
[0043] The proposed anti-collusion Byzantine robust privacy-preserving federated learning optimization method consists of the following entities: a key generation center (KGC), a central server (CS), n clients C i , i∈[1,n], as shown in the attached Figure 1 The specific functions of each entity are as follows:
[0044] Key Generation Center: The Key Generation Center KGC is responsible for i Generate public and private key secret sharing (pk, sk i ).
[0045] Central Server: The central server CS is responsible for receiving all C i The uploaded local gradients are then filtered out without revealing the privacy of the gradients to resist poisoning attacks, and finally the filtered gradients are aggregated to obtain a global gradient.
[0046] Client: Client C i Client C is an individual or organization with certain computing power, who collaborates to train a unified model under the coordination of the central server CS. i Own a private dataset D i , the present invention assumes that all C i All data are independent and identically distributed.
[0047] The federated learning training process of the present invention includes three stages: system initialization, security training, and robust aggregation. The detailed steps are as follows:
[0048] (1) System initialization
[0049] At this stage, KGC first generates homomorphic encryption public and private keys (pk, sk) for encrypting and decrypting gradients. Then, KGC uses secret sharing technology to split sk and generate a secret share sk of the private key sk for each client. i, (i∈[1,n]). All shares satisfy that any less than t shares cannot reveal any information about the secret sk, and any not less than t shares can restore the original secret sk, where t≤n. Considering the overall performance, the present invention adopts efficient additive secret sharing, where t=n. Finally, the central server CS generates the initial model parameters ω of the federated learning 0 , and encrypt the global gradient ciphertext using pk Sent to each client. The detailed calculation process is as follows:
[0050] First, KGC executes the algorithm Setup(1 λ )→(pk,sk i ) i∈[1,n] With safety parameter 1 λ As input, output public parameters PP{q, E, G}, where E is defined in a finite field The elliptic curve on the elliptic curve, C is the q-order base point of the elliptic curve. Then the key generation center KGC selects sk and calculates
[0051] pk=sk·G
[0052] Let sk = s and randomly generate n-1 random numbers x i , where i∈[1,n-1], as n-1 secret shares. Then, calculate the nth secret share:
[0053]
[0054] Let x i =sk i As the secret share, let S be the set of secret shares {sk 1 ,sk 2 ,…,sk n}, for each secret quorum S i = {sk i Then, the key generation center KGC publishes pk and sends S i To each client.
[0055] Finally, the central server CS randomly generates the initial global model ω of federated learning (0) And encrypt and send to each client x||y represents the direct concatenation of byte strings or bit strings x and y, H(·) is the cryptographic hash function, The encryption process is as follows:
[0056] (a) Calculate the elliptic curve point A = [h] pk, where h = 1. If A is a point at infinity, report an error and exit;
[0057] (b) Select a random number Calculate c 1 =[k]G=(x 1 ,y 1 ), [k]pk=(x 2 ,y 2 );
[0058] (c) Calculate c 2 =[ω (0) ]G+[k]pk;
[0059] (d) Calculate c 3 =H(x 2 ||ω (0) ||y 2 );
[0060] (e) Output ciphertext [ω (0) ] pk =(c 1 ||c 2 ||c 3 );
[0061] (2) Safety training
[0062] In the tth round of training, each client C i Receive the encrypted global model After that, the clients first collaborate to decrypt, n clients mutually confirm their online status, and t clients online at the same time collaborate to decrypt The decryption process is as follows:
[0063] (a) Verify c 1 Whether it satisfies the elliptic curve equation. If not, an error is reported and the system exits.
[0064] (b) Calculate the elliptic curve point S = [h]c 1 , where h = 1. If s is a point at infinity, an error is reported and the program exits.
[0065] (c) t clients share their respective secret shares and calculate
[0066]
[0067] (d) After the client cooperates to recover the private key, it performs the decryption operation and uses the Baby Step Giant Step (BSGS) algorithm to obtain the (t-1) ]G recoveryω (t-1) ;
[0068] [sk]c 1 =(x 2 ,y 2), [ω (t-1) ]G=c 2 -[sk]c 1
[0069] After decryption is completed, the client uses local data D i Train the model and use the Stochastic Gradient Descent (SGD) method to calculate the local gradient
[0070]
[0071] (3) Robust aggregation
[0072] When the client trains to obtain local gradients The client generally adopts the method of encrypting local gradients to protect the privacy of local data. However, the encrypted local gradients provide convenience for poisoning attacks by malicious clients. Malicious local gradients are more difficult to detect after being encrypted. In order to screen malicious gradients, resist poisoning attacks, and enhance the robustness of federated learning schemes without leaking the privacy of gradients, the present invention designs a malicious gradient screening protocol Randomcos based on cosine similarity. Compared with the traditional malicious gradient screening mechanism based on cosine similarity, Randomcos can screen malicious gradients without leaking the privacy of gradients; compared with the scheme that also uses cosine similarity to screen malicious gradients in privacy-preserving federated learning, Randomcos can directly use the cosine similarity calculated without additional processing. The specific process of Randomcos is as follows:
[0073] First, client C i Randomly select a random number r i , (i∈[1,n]); then, client C i Multiply the selected random number by the local gradient obtained in this round of training The local gradient is perturbed by random numbers to protect the privacy of the local gradient.
[0074]
[0075] Secondly, client C i R is transmitted through a secure channel (such as Transport Layer Security, TSL) i Sent to the central server CS, transmitted through a secure channel to ensure R i Security during transmission, to prevent powerful malicious attackers from stealing R i The central server CS receives R iIt is used to calculate the cosine similarity between local gradients. The specific calculation process is as follows:
[0076]
[0077] For each client C i , the central server CS uses Randomcos to calculate the cosine similarity between it and the previous round of global gradients, and uses it as the client C i credibility score.
[0078] Score i =cos (i,j)
[0079] Finally, the central server CS assigns different weights to each client according to its credibility score. Since the similarity between malicious local gradients and benign local gradients is low, benign local gradients can be distinguished from malicious local gradients by cosine similarity. The higher the credibility score of a local gradient, the more similar the local gradient is to the global gradient of the previous round, and the more likely the local gradient is to be a benign local gradient, and the greater the weight assigned to it. The more dissimilar the malicious local gradient is to the global gradient of the previous round, the lower the credibility score is, and the smaller the corresponding weight is. Finally, when the central server CS performs weighted aggregation, the influence of the malicious local gradient is smaller. In this way, the present invention resists poisoning attacks and improves the robustness of the federated learning scheme when encountering poisoning attacks.
[0080]
[0081] (4) After calculating the weights of different clients, the central server CS needs to perform weighted aggregation on the local gradients uploaded by the clients to form a global model.
[0082] First, client C i It is necessary to use the homomorphic encryption public key pk to encrypt the inverse of the random number it chooses Upload to the central server CS. Because in the malicious gradient screening stage, the central server CS obtains the local gradient with random numbers uploaded by each client. In the weighted aggregation process, the random numbers need to be eliminated to avoid affecting the global model. The present invention uses the characteristics of homomorphic encryption to eliminate random numbers. The specific process is as follows:
[0083] The central server CS receives Post-calculation According to the properties of homomorphic encryption, random numbers can be effectively eliminated, and finally the central server CS obtains the local gradient ciphertext. Since the central server CS has no decryption capability, it cannot decrypt and steal the local gradient plaintext information. When the semi-honest server colludes with the client, as long as the number of clients that collude with the central server CS does not exceed the threshold set by the present invention in the private key secret sharing stage, the colluding central server CS and the client cannot decrypt the gradient ciphertext. Therefore, the present invention can complete aggregation without leaking gradient privacy and can resist collusion attacks within a certain range.
[0084]
[0085] After eliminating the random numbers, the central server CS performs weighted aggregation on the local gradients and calculates the global model. The specific process is as follows:
[0086]
[0087] Finally, the central server CS sends the global model ciphertext [ω (t) ] pk The data is sent to each client. The client repeats steps (2), (3), and (4) until the training reaches the preset number of rounds or the model reaches the preset accuracy.
[0088] Comparative experiment:
[0089] The present invention is compared with FedAvg and Shieldfl schemes. FedAvg is the original algorithm of federated learning, while Shieldfl is a paper published in 2022 in the top international journal "IEEE Transactions on Information Forensics and Security" in SCI Zone 1.
[0090] In order to verify the superiority of the present invention, two standard models of poisoning attacks were constructed in this experiment, namely, targeted attack and non-target attack.
[0091] (1) Target poisoning attack: Target poisoning attack will mislead the specified data from source class i to target class j, and ensure that other classes are not affected. In order to simulate the target poisoning attack, the data with label 0 in the malicious client training data is relabeled as label 4 for training the malicious local gradient.
[0092] (2) Non-target poisoning attack: The purpose of non-target poisoning attack is to reduce the prediction accuracy of all classes. In order to simulate non-target poisoning attack, the training data labels of malicious clients are relabeled, and each source class label i is relabeled as ni-1, where n is the total number of data labels.
[0093] For target poisoning attacks, this experiment uses overall test accuracy, attack success rate (Attack Success Rate, ASR) and source class test accuracy to evaluate the performance of the present invention. The purpose of the target poisoning attack is to reduce the prediction accuracy of the source class while ensuring that other classes remain unchanged. Therefore, the correct implementation of the target poisoning attack is ensured by measuring the overall test accuracy. When the source class data in the test data is classified as the target class by the global model, the attack is judged to be successful. The attack success rate represents the proportion of test inputs that are successfully attacked. A lower ASR indicates that the model has a strong defense capability against target poisoning attacks. In addition to the attack success rate, the source class test accuracy can also directly reflect whether the model can effectively resist the target poisoning attack. The higher the source class test accuracy, the more the model can correctly identify the category, thereby proving that the solution can effectively defend against target poisoning attacks.
[0094] For non-target poisoning attacks, this experiment uses the overall test accuracy to evaluate the performance of the present invention. The higher the overall test accuracy, the better the defense effect of the model against non-target poisoning attacks.
[0095] First, the experiment evaluates the attack success rate of target poisoning attacks under different malicious client ratios. Figure 2 It can be seen that the Fedavg solution has a high attack success rate under different malicious client ratios, which means that Fedavg is basically unable to resist target poisoning attacks, and the model performance will be damaged when attacked. This proves the importance of studying how to resist poisoning attacks. Figure 2 It can be seen that under different malicious client ratios, the ASR of the present invention is around 0.1, maintaining a relatively low state, and is lower than Shieldfl. This proves that the performance of the present invention in resisting target poisoning attacks is better than Shieldfl.
[0096] In addition to the attack success rate ASR, the experiment also measured the source class prediction accuracy and overall test accuracy under different malicious client ratios. Figure 3 Global represents the overall test accuracy, and the others represent the source class test accuracy obtained under different aggregation methods. Figure 3 It can be seen that the source class test accuracy of the present invention is higher than that of the Fedavg solution and is similar to the overall test accuracy, from which it can be inferred that the present invention can effectively resist target poisoning attacks.
[0097] And as the proportion of malicious clients increases, the source class test accuracy of the present invention is always around 0.9. However, as the proportion of malicious clients increases, the source class test accuracy of Shieldfl decreases. This is because in the present invention, the local gradient of each client is directly calculated with the global gradient for cosine similarity, and then the local gradients are weighted and aggregated according to these similarities. Therefore, even if there are malicious clients, their local gradients are quite different from the global gradients, so the weights assigned to malicious clients in the weighted aggregation process are relatively small. The impact of malicious clients on the global model is relatively small, and the source class test accuracy can be maintained at a high level.
[0098] But in Shieldfl, it first calculates the cosine similarity between the global model update and the gradient of each client. Then, based on these similarities, a client is selected as a malicious client. Next, the cosine similarity of the gradients of other clients is calculated with the gradients of the malicious client, and the gradients are weighted and aggregated according to these similarities. Such operations are intended to minimize the impact of malicious clients on the global model while retaining the contribution of normal clients. However, when the proportion of malicious clients increases, this method may lead to misjudgment and loss of normal client gradients due to its complex processing strategy, thereby reducing the source class test accuracy when the proportion of malicious clients increases. Since the present invention is simpler and more direct, when the number of malicious clients increases, it is also ensured as much as possible that the source class test accuracy is not reduced.
[0099] For non-target poisoning attacks, the experiment evaluates the performance of the solution by measuring the overall accuracy of the model. Figure 4 This is a comparison chart of the overall accuracy of different schemes under the ratio of malicious clients of 20%-40%. It can be seen from the figure that compared with the Shieldfl scheme, the effectiveness and stability of the present invention are better than Shieldfl. When the ratio of malicious clients is 20%, the overall accuracy of Shieldfl and the present invention is similar, close to 0.9, which is much higher than the defenseless Fedavg scheme. This also proves that the present invention and the Shieldfl scheme have excellent defense effects against non-target poisoning attacks.
[0100] As the proportion of malicious clients increases, the overall accuracy of the Fedavg method decreases significantly. When the proportion of malicious clients is greater than or equal to 30%, the overall accuracy of the present invention and the Shieldfl solution also decreases slightly. This is because as the proportion of malicious clients increases, the number of malicious gradients increases during the federated learning training process, and the convergence direction of the global model is disturbed by a large number of malicious gradients, resulting in a decrease in overall accuracy. However, the overall accuracy of the present invention can still be maintained at around 0.8, and will not change dramatically with the increase in the number of iterations, demonstrating the effectiveness and stability of the solution. When the proportion of malicious clients reaches 40%, the overall accuracy of the Shieldfl solution is maintained at around 0.6 with the increase in the number of iterations, which is higher than 0.5 of the Fedavg solution, but lower than 0.8 of the present invention. This proves that Shieldfl can defend against non-target poisoning attacks, but its defense performance is lower than that of the present invention.
[0101] The above contents are merely examples and explanations of the concept of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.
Claims
1. A collusion-resistant Byzantine robust privacy-preserving federated learning optimization method, It is characterized in that It consists of the malicious gradient screening mechanism Randomcos and the anti-collusion Byzantine robust aggregation strategy, which specifically includes the following steps: Step 1: The key generation center sends the secret shares of the homomorphic encryption public key and private key (pk, sk i ); Step 2: In the tth training iteration, client C i Using local dataset D i Perform model training to obtain local gradients Step 3: The client converts the local gradient Randomly select a random number r before uploading to the central server i ,calculate Step 4: The client encrypts r using the public key pk i -1 , upload R i and [r i -1 ] pk To the central server; Step 5: The central server uses the malicious gradient screening mechanism Randomcos to calculate the cosine similarity of the local gradient without knowing the local gradient plaintext, screen out malicious clients, and resist poisoning attacks; Step 6: assign different weights to local gradients according to cosine similarity, and use homomorphic encryption properties to denoise local gradients before weighted aggregation; Step 7: The central server aggregates local gradients in the encrypted state to generate global gradients; In step 8, the client downloads the global gradient ciphertext from the central server and collaboratively decrypts it to update the local model.
2. The optimization method according to claim 1, It is characterized in that In steps 5 and 6, the local gradients are first weighted according to the cosine similarity calculated by the malicious gradient screening mechanism Randomcos, and then the local gradients are weighted aggregated using the weights. Homomorphic encryption is used during the aggregation process to ensure data privacy.
3. The optimization method according to claim 1, It is characterized in that In steps 1 and 7, secret sharing technology is used to split the private key. When the client updates the model, it needs to collaborate in decryption to resist collusion attacks between central servers or clients and enhance the privacy of the federated learning solution.
4. The optimization method according to any one of claims 1 to 3, It is characterized in that The malicious gradient screening mechanism Randomcos is used to perturb the local gradient with random numbers, which can effectively protect the privacy of local gradients.
5. The optimization method according to any one of claims 1 to 3, It is characterized in that The malicious gradient screening mechanism Randomcos first requires the clients participating in the federated learning training to select different random numbers to blind the local gradients. Then the central server uses the blinded local gradients to calculate the cosine similarity, screen out malicious gradients, resist poisoning attacks, and ensure the robustness of the model.
Citation Information
Patent Citations
Federal learning method capable of protecting user data privacy and resisting Byzantine attack
CN114239862A
Federal machine learning method and system considering robustness and privacy protection
CN117828627A
Byzantine robust federated learning method and system based on CKKS homomorphic encryption
CN117857012A
Efficient privacy protection federated learning method and device for defending poisoning attack
CN118094618A
Method and apparatus for privacy and trust enhancing sharing of data for collaborative analytics
US20150161398A1
Cited By
Cross-domain intelligent monitoring method and system based on Byzantine robustness privacy protection federated learning
CN119903547A
Federal learning hybrid attack data security defense system and method
CN119961922A
Robust federated learning method and system based on chaotic encryption and dual-server enabling
CN119995819A
Defense method for non-independent identically distributed grouping aggregation attack based on federal learning
CN120257291A
