A privacy-preserving method for tracking and revoking unreliable users in federated learning

By introducing trusted agent verification and key destruction mechanisms into privacy-preserving federated learning, the problem of unreliable users affecting the accuracy of the global model is solved, user dynamic updates and privacy protection are realized, and the security and practicality of federated learning are improved. .

CN114186202BActive Publication Date: 2024-09-24UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111543609.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-09-24
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

In privacy-preserving federated learning, the cloud server cannot directly detect the quality of model parameters uploaded by users, resulting in low-quality parameters from unreliable users that reduce the accuracy of the global model, and there is a risk of privacy data leakage.

Method used

By introducing trusted agents into the privacy-preserving federated learning framework of homomorphic encryption, the global model parameters are verified, unreliable users are tracked, and their access rights are revoked through key destruction to achieve dynamic updates of users.

Benefits of technology

It effectively improves the security and practicality of federated learning, ensures the protection of user privacy, and improves the accuracy of the global model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114186202B
    Figure CN114186202B
Patent Text Reader

Abstract

The present invention discloses a method for tracking and revoking unreliable users in privacy-preserving federated learning. The model parameters uploaded by users are identified through the model parameter verification mechanism of a trusted agent, thereby tracking unreliable users. In addition, the access rights of unreliable users are revoked by using key destruction, thereby realizing dynamic updating of users in privacy-preserving federated learning. The method can effectively improve the security and practicality of federated learning.
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 an unreliable user tracking and revocation method in privacy-preserving federated learning. Background Art

[0002] In the era of big data, deep learning has been widely used in many fields such as speech recognition, computer vision, and healthcare, and has shown excellent performance. Federated learning, as an emerging machine learning framework, can aggregate parameters based on distributed training of local models to form a more powerful deep neural network model. Federated learning requires a large amount of data support to train a high-accuracy deep neural network model. However, private data containing user habits, contact information, and business secrets face potential leakage risks during the federated learning process.

[0003] In the privacy-preserving federated learning framework based on homomorphic encryption, the model parameters exchanged between users and cloud servers are encrypted using homomorphic encryption technology, which can effectively ensure that the user's local privacy data is not stolen by the cloud server. However, the cloud server cannot directly detect the quality of the model parameters uploaded by the user, so the low-quality model parameters uploaded by unreliable users will reduce the accuracy of the global model. Summary of the invention

[0004] The purpose of the present invention is to provide a method for tracking and revoking unreliable users in privacy-preserving federated learning, which ensures that unreliable users can be effectively tracked without leaking user privacy information, and the access rights of unreliable users can be revoked to achieve dynamic update of users.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A method for tracking and revoking unreliable users in privacy-preserving federated learning, comprising:

[0007] The user and the cloud server update the global model parameters under the privacy-preserving federated learning framework based on homomorphic encryption, and the updated global model parameters are transmitted by the cloud server to the trusted agent;

[0008] The trusted agent verifies the global model parameters updated in the current round using its own model parameters updated in the current round. If the verification fails, it indicates that there is an unreliable user. If the verification passes, the global model parameters are continued to be updated.

[0009] When there are unreliable users, the trusted agent and the cloud server verify the local model parameters updated by the relevant users in the current round based on the ID values ​​of the users, and track down the unreliable users;

[0010] The trusted agent destroys the key of the unreliable user to achieve access right revocation and user dynamic update.

[0011] It can be seen from the technical solution provided by the present invention that the model parameters uploaded by the user are identified through the model parameter verification mechanism of the trusted agent, so as to track unreliable users. In addition, the access rights of unreliable users are revoked by using key destruction, so as to realize dynamic update of users in privacy-preserving federated learning. This method can effectively improve the security and practicality of federated learning. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 1 A flowchart of a method for tracking and revoking unreliable users in privacy-preserving federated learning provided by an embodiment of the present invention;

[0014] Figure 2 A timing diagram of model parameter initialization in a privacy-preserving federated learning framework based on homomorphic encryption provided in an embodiment of the present invention;

[0015] Figure 3 A curve diagram showing the relationship between the global model accuracy and the number of training rounds when an unreliable user exists, provided in an embodiment of the present invention;

[0016] Figure 4 A schematic diagram of the principles of a trusted agent and a cloud server tracking an unreliable user provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0018] First, the terms that may be used in this article are explained as follows:

[0019] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0020] The following is a detailed description of an unreliable user tracking and revocation method in a privacy-preserving federated learning provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field. If no specific conditions are specified in the embodiments of the present invention, they shall be carried out according to the conventional conditions in the field or the conditions recommended by the manufacturer.

[0021] like Figure 1 As shown in FIG. 1 , a method for tracking and revoking unreliable users in privacy-preserving federated learning mainly includes the following steps:

[0022] In step 1, the user and the cloud server update the global model parameters under the privacy-preserving federated learning framework based on homomorphic encryption, and the updated global model parameters are transmitted from the cloud server to the trusted agent.

[0023] Step 2: The trusted agent verifies the global model parameters updated in the current round using its own model parameters updated in the current round. If the verification fails, it indicates that there is an unreliable user; if the verification passes, the global model parameter update continues.

[0024] Step 3: When there are unreliable users, the trusted agent and the cloud server verify the local model parameters updated by the relevant users in the current round based on the ID values ​​of the users, and track down the unreliable users.

[0025] Step 4: The trusted agent destroys the key of the unreliable user to revoke access rights and dynamically update the user.

[0026] The above solution of the embodiment of the present invention uses the model parameter verification mechanism of the trusted agent to identify the model parameters uploaded by the user, thereby tracking unreliable users. In addition, the access rights of unreliable users are revoked by using key destruction, thereby realizing dynamic update of users in privacy-preserving federated learning. This method can effectively improve the security and practicality of federated learning.

[0027] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, a method for tracking and revoking unreliable users in privacy-preserving federated learning provided by an embodiment of the present invention is described in detail below with reference to a specific embodiment.

[0028] 1. System parameter initialization.

[0029] like Figure 2 The figure shows the timing diagram of model parameter initialization in the privacy-preserving federated learning framework with homomorphic encryption.

[0030] The main steps of system parameter initialization include:

[0031] 1) The trusted agent generates the encryption key Key for homomorphic encryption public and decryption key Key private , use the local dataset of the trusted agent to train the global model and initialize the global model parameters θ, and the initialized global model parameters are recorded as θ0.

[0032] 2) Encrypt the initialized global model parameter θ0 with the encryption key Key public encryption:

[0033] E(θ0)=Enc(Key public ,θ0)

[0034] Among them, Enc is the encryption algorithm in homomorphic encryption.

[0035] 3) When the trusted agent receives the user's model update request, the trusted agent establishes an independent and secure communication channel between the user and the cloud server, and then sends the encryption key Key public and decryption key Key private Send it to the user, and send the encrypted initialized global model parameter data E(θ0) to the cloud server and inform the cloud server of the user's ID value; wherein the global model of the trusted agent and the local model of each user are the same deep neural network model.

[0036] 2. Users and cloud servers update global model parameters under the privacy-preserving federated learning framework based on homomorphic encryption.

[0037] User{Client i |i=1,2,...,N} and the cloud server perform global model parameter {θ k |k=0,1,...,m} update, where i represents the user Client i ID value, k represents the round number, and m represents the maximum update round number; the preferred implementation method of this stage is as follows:

[0038] 1. The user obtains the encrypted global model parameters of the previous round of updates from the cloud server, decrypts the global model parameters of the previous round of updates to update the local model parameters, performs model training, and then encrypts the model parameters of the current round of updates and transmits them to the cloud server; specifically:

[0039] 1) The user obtains the encrypted global model parameter E(θ) of the last round of update k ) and then use the decryption key Key provided by the trusted agent private Decrypted, expressed as:

[0040] θ k =Dec(Key private ,E(θ k ))

[0041] Among them, Dec is the decryption algorithm in homomorphic encryption, θ k Represents the global model parameters of the last update.

[0042] 2) The user uses the global model parameters θ updated in the previous round k Update the local model parameters and use the local data set to train the local model to obtain the local model gradient for the current round of training After negation, multiply it by the learning rate α, and then use the encryption key Key provided by the trusted agent public After encryption, it is transmitted to the cloud server through a secure communication channel. The encryption process is expressed as:

[0043]

[0044] If the current round is the first round (ie, k+1=1), the global model parameters updated in the previous round are the global model parameters θ0 initialized by the trusted agent.

[0045] 2. The cloud server aggregates the encrypted model parameters of the current round update transmitted by all users to obtain the encrypted global model parameters of the current round update.

[0046] The aggregation process is expressed as:

[0047]

[0048] Where N represents the number of users participating in the model update, E(θ k+1 ) represents the encrypted global model parameters updated in the current round.

[0049] 3. The cloud server sends the aggregation completion message to all users and sends the aggregated encrypted global model parameter E(θ k+1 ) is sent to the trusted agent. After receiving the aggregation completion message, the user downloads the updated encrypted global model parameter E(θ k+1), start the next round of global model training and parameter update, that is, repeat 1 to 3 of this stage until the global model converges (for example, the number of update rounds reaches the maximum number of update rounds m) or receive a message from the trusted agent to suspend training.

[0050] 3. The trusted agent uses its own model parameters updated in the current round to verify the global model parameters updated in the current round to determine whether there are unreliable users.

[0051] Due to the unreliable user {Attacker = Client j |j=1,2,...,N} upload low-quality model parameters to the cloud server Furthermore, the cloud server cannot judge the quality of uploaded model parameters, resulting in reduced global model accuracy. Therefore, the trusted agent needs to detect low-quality model parameters.

[0052] In order to illustrate the impact of unreliable users on the accuracy of the global model, a test was conducted in the Windows 10 operating system and the PyTorch deep learning framework. The test used the well-known handwritten digit recognition dataset MNIST and defined the learning rate of the model training as α. Figure 3 The relationship between the global model accuracy and the number of training rounds when there are unreliable users is shown in the figure. The left part is set to α = 0.001, the right part is set to α = 0.005, and the batch size of the data is 32, 64, 128, and 200 respectively. Figure 3 It can be seen that as the number of training rounds increases, the impact of unreliable users on the accuracy of the global model increases, and the accuracy of the global model shows a downward trend or even fails to converge. Therefore, it is necessary to track unreliable users and revoke their access rights to ensure the accuracy of the global model and improve the security and practicality of federated learning.

[0053] In the embodiment of the present invention, the trusted agent, like other users, will train the local model and obtain updated model parameters. It does not exchange parameters with the cloud server during its own training. At the same time, it will be tested through the local data set test after training, and the accuracy of each round will be recorded. Therefore, in the embodiment of the present invention, after each round of training, the global model parameters updated in the current round are verified based on the trusted agent using its own model parameters updated in the current round. The preferred implementation of this stage is as follows:

[0054] 1. After each round of training, the trusted agent uses its own model parameters updated in the current round and the global model parameters updated in the current round to test on the local data set to obtain two accuracy rates.

[0055] Referring to the previous introduction, the current round is round k+1, and the trusted agent receives the encrypted updated global model parameter E(θ k+1 ), and after decryption, the updated global model parameter θ of the current round is obtained k+1 , using the global model parameters θ updated in the current round k+1 Test on local data set to get accuracy At the same time, the trusted agent uses its own updated model parameters in the current round to test the local data set to obtain the accuracy

[0056] 2. Compare the difference between the two accuracy rates to determine whether there are unreliable users.

[0057] If the accuracy Significantly less than the accuracy If the difference exceeds a threshold value, such as 10%, the verification fails and it is considered that there is an unreliable user. A parameter update pause message is sent to the cloud server and the user to detect low-quality model parameters. Not significantly less than the accuracy (ie the difference does not exceed a threshold value, such as 10%), then after verification, it is considered that there is no unreliable user at present, and the parameter update introduced in the aforementioned second stage can be continued.

[0058] It should be noted that the present invention does not limit the specific size of the threshold. In actual applications, the user can determine the size of the threshold based on actual conditions or experience or multiple experiments.

[0059] 4. Trusted proxies and cloud servers perform unreliable user tracking.

[0060] If it is determined through the method introduced in the third stage that an unreliable user currently exists, the trusted agent and the cloud server verify the local model parameters updated by the relevant users in the current round based on the ID values ​​of each user, and track down the unreliable users. The specific principle is as follows: the cloud server establishes an unreliable user range based on the range of all current users, and aggregates the model parameters updated in the current round by all users within the unreliable user range based on the ID values ​​of each user. The trusted agent uses its own model parameters updated in the current round and the aggregated model parameters to test the local data set to obtain two accuracy rates. Based on the difference between the two accuracy rates, it is determined whether the unreliable user is within the current unreliable user range. The cloud server then updates the current unreliable user range based on the judgment result of the trusted agent until the unreliable user range only contains unreliable users.

[0061] like Figure 4 As shown, the preferred implementation of this stage is as follows:

[0062] Step S1: The cloud server updates the number of users N=2 according to the participating model u (u is a positive integer), establish an unreliable user range, including three variables, namely the initial variable low, the median variable mid and the terminal variable high:

[0063]

[0064] In step S2, the cloud server aggregates the model parameters updated in the current round by users whose user ID values ​​are in the range [low, mid], expressed as:

[0065]

[0066] Among them, E(θ k ) represents the encrypted global model parameters of the last update, represents the model parameters updated by the encrypted user in the current round, i represents the user's ID value; E(θ k ' +1 ) represents the model parameters updated by the user in the current round within the encrypted range [low, mid].

[0067] Step S3: The trusted agent sends E(θ k ' +1 ) to decrypt, and use the model parameters updated in the current round and the global parameters obtained by decryption to test on the local data set respectively. The two accuracy rates obtained are and If the accuracy Less than accuracy If the value of the unreliable user exceeds the threshold, the unreliable user is considered to be in the range [low, mid], and a Boolean variable msg = true is sent to the cloud server; otherwise, the unreliable user is not in the range [low, mid], and a Boolean variable msg = false is sent to the cloud server; the verification principle of this part is the same as that of the third stage mentioned above.

[0068] Step S4, the cloud server adjusts the unreliable user range according to the Boolean variable msg∈{true,false} sent by the trusted agent, including:

[0069] Reset variable scope:

[0070]

[0071] That is: if msg = false, the cloud server sets the variable low to mid + 1, and if msg = true, the cloud server sets the variable high to mid;

[0072] And reset the variable mid:

[0073]

[0074] According to the updated unreliable user range, steps S2, S3 and S4 are re-executed, that is, the model parameters of the current round of updates of the relevant users are re-aggregated through step S2, and then verified through step S3 to determine whether the unreliable user Attacker is among the users participating in the aggregation, and the range variables low and mid are updated according to the judgment result through step S4 until the ID value of the unreliable user is tracked, that is, the variable low = high.

[0075] 5. Destroy the keys of unreliable users to revoke access rights and dynamically update users.

[0076] The preferred implementation of this stage is as follows:

[0077] 1. The trusted agent regenerates the encryption key and decryption key of homomorphic encryption and sends them to all users except the unreliable user (Attacker = Client). j ) and revoke the secure communication channel between the unreliable user and the cloud server to revoke the access rights of the unreliable user;

[0078] 2. The trusted agent sends a parameter update start message to the cloud server and all users except the unreliable user, ends the unreliable user tracking, and re-updates the model parameters.

[0079] The above scheme of the embodiment of the present invention ensures that unreliable users can be effectively tracked and their access rights can be revoked to achieve dynamic update of users without leaking their privacy information. The security of the above scheme is guaranteed by homomorphic encryption technology, that is, users without decryption keys cannot obtain global model parameters, so the privacy information of users is effectively protected.

[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0081] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for tracking and revoking unreliable users in privacy-preserving federated learning, characterized by: include: The user and the cloud server update global model parameters under a privacy-preserving federated learning framework based on homomorphic encryption, and the updated global model parameters are transmitted by the cloud server to the trusted agent; The trusted agent verifies the global model parameters updated in the current round using its own model parameters updated in the current round. If the verification fails, it indicates that there is an unreliable user. If the verification is passed, the global model parameter update will continue; When there are unreliable users, the trusted agent and the cloud server verify the local model parameters updated by the relevant users in the current round based on the ID values ​​of each user to track down the unreliable users; The trusted agent destroys the key of the unreliable user to revoke access rights and dynamically update users; Before users and cloud servers update global model parameters in the privacy-preserving federated learning framework based on homomorphic encryption, they also need to initialize system parameters. The relevant steps include: The trusted agent generates the encryption key Key for homomorphic encryption public and decryption key Key private , use the local dataset of the trusted agent to train the global model and initialize the global model parameters θ, the initialized global model parameters are recorded as θ0; The initialized global model parameter θ0 is encrypted with the key Key public encryption: E(θ0)=Enc(Key p ublic,θ0) Among them, Enc is the encryption algorithm in homomorphic encryption; When the trusted agent receives the user's model update request, the trusted agent establishes an independent and secure communication channel between the user and the cloud server, and then sends the encryption key Key public and decryption key Key private Send it to the user, and send the encrypted initialized global model parameter data E(θ0) to the cloud server and inform the cloud server of the user's ID value; wherein the global model of the trusted agent and the local model of each user are the same deep neural network model; The user and the cloud server update global model parameters under a privacy-preserving federated learning framework based on homomorphic encryption, and the updated global model parameters are transmitted from the cloud server to the trusted agent, including: The user obtains the encrypted global model parameters of the previous round of updates from the cloud server, decrypts the global model parameters of the previous round of updates, updates the local model parameters, and performs model training. The model parameters of the current round of updates are then encrypted and transmitted to the cloud server. If the current round is the first round, the global model parameters of the previous round of updates are the global model parameters initialized by the trusted agent. The cloud server aggregates the encrypted model parameters of the current round update transmitted by all users, obtains the encrypted global model parameters of the current round update, and transmits the encrypted global model parameters of the current round update to the trusted agent.

2. The method for tracking and revoking unreliable users in privacy-preserving federated learning according to claim 1, characterized in that: The user obtains the encrypted global model parameters of the previous round of updates from the cloud server, decrypts the global model parameters of the previous round of updates to update the local model parameters, performs model training, and then encrypts the model parameters of the current round of updates and transmits them to the cloud server, including: The user obtains the encrypted global model parameter E(θ k ) and then use the decryption key Key provided by the trusted agent private Decrypted, expressed as: i k =Dec(Key private ,E(θ k )) Among them, Dec is the decryption algorithm in homomorphic encryption, θ k represents the global model parameters updated in the last round, k = 0, 1, ..., k represents the number of rounds; The user uses the global model parameters θ updated in the previous round k Update the local model parameters and perform training to obtain the local model gradient for the current round of training After negation, multiply it by the learning rate α, and then use the encryption key Key provided by the trusted agent public After encryption, it is transmitted to the cloud server. The encryption process is expressed as: Among them, Enc is the encryption algorithm in homomorphic encryption.

3. The method for tracking and revoking unreliable users in privacy-preserving federated learning according to claim 2, characterized in that: The cloud server aggregates the encrypted model parameters of the current round update transmitted by all users, and obtains the encrypted global model parameters of the current round update expressed as: Among them, N represents the number of users participating in the model update, i represents the user's ID value, E(θ k+1 ) represents the encrypted global model parameters of the current round update.

4. The method for tracking and revoking unreliable users in privacy-preserving federated learning according to claim 1, characterized in that: The trusted agent verifies the global model parameters updated in the current round using its own model parameters updated in the current round, including: The trusted agent uses its own model parameters updated in the current round and the global model parameters updated in the current round to test on the local data set respectively to obtain two accuracy rates. If the difference between the two accuracy rates exceeds a threshold, the verification fails; if the difference between the two accuracy rates does not exceed the threshold, the verification passes.

5. The method for tracking and revoking unreliable users in privacy-preserving federated learning according to claim 1, 2, or 3, wherein: The trusted agent and the cloud server verify the local model parameters updated by the relevant users in the current round based on the ID value of each user, and track out unreliable users including: The cloud server establishes an unreliable user range based on the range of all current users, aggregates the model parameters of all users in the unreliable user range that are updated in the current round based on the ID value of each user, and the trusted agent uses its own model parameters updated in the current round and the aggregated model parameters to test on the local data set to obtain two accuracy rates. Based on the difference between the two accuracy rates, it is determined whether the unreliable user is within the current unreliable user range. The cloud server then updates the current unreliable user range based on the judgment result of the trusted agent until the unreliable user range only contains unreliable users.

6. The method for tracking and revoking unreliable users in privacy-preserving federated learning according to claim 5, characterized in that: The cloud server establishes an unreliable user range based on the range of all current users, aggregates the model parameters of all users in the unreliable user range in the current round based on the ID value of each user, and the trusted agent uses its own model parameters updated in the current round and the aggregated model parameters to test on the local data set to obtain two accuracy rates. Based on the difference between the two accuracy rates, it is determined whether the unreliable user is in the current unreliable user range. The cloud server then updates the current unreliable user range based on the judgment result of the trusted agent until the unreliable user range only includes unreliable users including: Step S1: The cloud server updates the number of users N=2 according to the participation model u , u is a positive integer, and an unreliable user range is established, including three variables, namely the initial variable low, the median variable mid, and the terminal variable high: In step S2, the cloud server aggregates the model parameters updated in the current round for users whose user ID values ​​are in the range [low, mid], expressed as: Among them, E(θ k ) represents the encrypted global model parameters of the last update, Represents the encrypted model parameters updated by the user in the current round, and i represents the user's ID value; Step S3: The trusted agent sends E(θ k ' +1 ) to decrypt, and use the model parameters updated in the current round and the global parameters obtained by decryption to test them on the local data set respectively, and the two accuracy rates obtained are and If the accuracy Less than accuracy If the value of the unreliable user exceeds the threshold, the unreliable user is considered to be in the range [low, mid], and a Boolean variable msg = true is sent to the cloud server; otherwise, the unreliable user is not in the range [low, mid], and a Boolean variable msg = false is sent to the cloud server. Step S4: the cloud server adjusts the unreliable user range according to the Boolean variable msg∈{true,false} sent by the trusted agent, including: Reset variable scope: That is: if msg = false, the cloud server sets the variable low to mid + 1; if msg = true, the cloud server sets the variable high to mid; And reset the variable mid: According to the updated unreliable user range, step S2, step S3 and step S4 are re-executed until the variable low=high.

7. The method for tracking and revoking unreliable users in privacy-preserving federated learning according to claim 1, characterized in that: Destroying the key of an unreliable user to achieve access rights revocation and user dynamic update includes: The trusted proxy regenerates the homomorphic encryption key and decryption key and sends them to all users except the unreliable user. At the same time, it revokes the secure communication channel between the unreliable user and the cloud server, thus revoking the unreliable user's access rights. In addition, the trusted agent sends a parameter update start message to the cloud server and all users except the unreliable user, ends the unreliable user tracking, and re-updates the model parameters.