A Federated Learning Model Training Method
By adopting semi-asynchronous federated learning model training method in the federated learning system, combining period aggregation time and model weighted aggregation processing, the problem of model convergence in a heterogeneous device environment is solved, and the rapid convergence and efficient training of federated learning models are achieved.
Patent Information
- Application Number
- CN202411211689.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In the environment of heterogeneous equipment, the model convergence accuracy decreases, and there are differences in the calculation time overhead, resulting in unstable convergence of the training model and prolongs the total time.
The semi-asynchronous federated learning model training method is adopted, and the periodic aggregation time is set, combined with model weighted aggregation processing, and the weighted aggregation parameters are regulated using the delay discount factor and the cosine similarity factor to alleviate the influence of heterogeneity.
In the heterogeneous device environment, the federated learning model is realized, the training efficiency and data utilization are improved, and the bottleneck node delay of the synchronous aggregation strategy is avoided and the global model skewed of the fully asynchronous aggregation strategy is avoided.
Smart Images

Figure CN119135689B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of distributed intelligent computing, and specifically relates to a federated learning model training method. Background Art
[0002] As edge devices continue to improve their storage and computing capabilities, federated learning technology has been proposed to release computing power from traditional centralized cloud intelligence to end-side edge intelligence while protecting client data privacy. Specifically, federated learning technology can achieve collaborative model training between local devices and cloud server devices, ensuring that data does not leave the client, preventing the leakage of user privacy data.
[0003] However, in the process of using the prior art, the inventors found that the prior art has at least the following problems:
[0004] In the actual application of existing federated learning technology, the federated learning system has various degrees of heterogeneity in the statistical distribution of data and the computing power configuration of the end-side devices. Among them, the heterogeneity of the types and quantities of data on the end-side devices will cause the model convergence accuracy to decrease, and the heterogeneity of the computing power configuration of the end-side devices will cause the computing time overhead of different end-side devices to differ. This heterogeneity will produce bottleneck nodes under the classic synchronous aggregation strategy, destroying the reliability of the training model convergence and prolonging the total time of the single-step global model aggregation update.
[0005] Therefore, how to alleviate the negative impact of client data and device heterogeneity on system training accuracy and speed during the training of the federated learning system, and achieve efficient, stable and effective model training and aggregation, is an urgent problem that needs to be solved in applying federated learning to practice. Summary of the invention
[0006] The present invention aims to solve the above technical problems at least to a certain extent, and provides a method for training a federated learning model.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] In a first aspect, the present invention provides a method for training a federated learning model, which is executed based on a federated learning system, wherein the federated learning system includes a central server and a plurality of local clients respectively connected to the central server in communication; the method includes:
[0009] The central server receives the federated learning model training task and sets the initial global model according to the federated learning model training task , and then the initial global model The model to be trained is broadcasted to multiple local clients; the central server obtains the number of local clients K , initialize the delay status value of all local clients ( ) and training status values ( ), and set the periodic aggregation duration ;
[0010] Any local client receives the central server at ( ) round of training, and according to its t Round training status value Perform local model training; as described in any local client t Round training status value , then any local client based on the local data set The model to be trained is t round of local model training; as described in the first round of local model training of any local client t Round training status value , then any local client continues the unfinished local model training; wherein, , T The central server broadcasts the total number of rounds of the model to be trained;
[0011] In the t Before the end of the periodic aggregation duration of the round of training, any local client has completed the first t round of local model training, then its first t+ 1 round of training status value Set to 1 to t+ 1 round delay status value Set to 0 and complete the t The training model obtained after the round of local model training is uploaded to the central server; in the t After the periodic aggregation time of the round of training ends, if any local client fails to complete the t round of local model training, then its first t+ 1 round of training status value Set it to 0 and t+ 1 round delay status value Set to ;
[0012] The central server receives the t All training models in round 1 training are divided into tThe weight aggregation parameters are set based on the specified information of the local client of the round of training, and the weight aggregation parameters are used to train the first t All training models received in the round are subjected to model weighted aggregation processing to obtain the updated global model ;
[0013] The central server determines the updated global model Is it converged? If so, the updated global model as the trained global model, and end the federated learning model training task; if not, then update the updated global model The model is broadcasted to multiple local clients as a model to be trained.
[0014] In one possible design, any local client t Round training status value , any local client based on the local data set The model to be trained is t During the round of local model training, after completing the m The intermediate local model obtained after the local round of training is:
[0015] ;
[0016] In the formula, Indicates that the central server received by any local client is in ( ) The model to be trained is broadcasted during the training round; represents the learning rate when any local client performs local model training; F k () is the preset local loss function of federated learning; Represents the gradient calculation symbol; Indicates -1 The intermediate local model obtained after the local round of training; Indicates that any local client m Local data used by the local round.
[0017] In one possible design, any local client t Round training status value , when any local client continues to perform unfinished local model training, after completing the m The intermediate local model obtained after the local round of training is:
[0018] ;
[0019] In the formula, The initial global model represents the model being trained by any of the local clients.
[0020] In one possible design, any local client completes the t The training model obtained after a round of local model training is:
[0021] ;
[0022] In the formula, M Indicates the total number of local rounds of local model training performed by any local client; Indicates that any local client is based on a local data set The model to be trained is t During the round of local model training, after completing the M The intermediate local model obtained after the local round of training; Indicates that any local client continues to perform unfinished local model training. M The intermediate local model obtained after the local round of training.
[0023] In one possible design, the central server t The weight aggregation parameters are set based on the specified information of the local client of the round of training, and the weight aggregation parameters are used to train the first t All training models received in the round are subjected to model weighted aggregation processing to obtain the updated global model ,include:
[0024] The central server obtains the completion of the first t The local model update value after the round of local model training, and the central server t -1 round of model weighted aggregation processing of the global model update value, and calculate the cosine similarity factor between the local model update value and the global model update value;
[0025] The central server is configured to execute the following operations according to the first t Round delay status value S k ( t ), calculate that any local client completes the t The delay discount factor of the training model obtained after a round of local model training;
[0026] The central server calculates the weight aggregation parameter of any local client according to the cosine similarity factor and the delay discount factor;
[0027] The central server performs a weight aggregation based on the weight aggregation parameter. tAll training models received in the round are subjected to model weighted aggregation processing to obtain the updated global model .
[0028] In one possible design, the cosine similarity factor between the local model update value and the global model update value is:
[0029] ;
[0030] In the formula, , complete the first t The local model update value after a round of local model training; , for the central server in t -Global model update value of 1 round of model weighted aggregation processing; Representation vector and vector The cosine of the angle between .
[0031] In one possible design, the delay discount factor is:
[0032] ;
[0033] In the formula, The preset expiration tolerance.
[0034] In a possible design, the weight aggregation parameter of any local client is:
[0035] ;
[0036] In the formula, is a cosine similarity factor between the local model update value and the global model update value; is the delay discount factor; and are the preset weight values respectively.
[0037] In one possible design, the updated global model for:
[0038] ;
[0039] In the formula, , indicating that the central server is in t The sequence number set of local clients corresponding to all training models received in the round; p k is a weight aggregation parameter of any of the local clients.
[0040] In a second aspect, the present invention provides an electronic device, comprising:
[0041] a memory for storing computer program instructions; and,
[0042] A processor is used to execute the computer program instructions to complete the operation of the federated learning model training method as described in any one of the above.
[0043] In a third aspect, the present invention provides a computer program product, comprising a computer program or instructions, which, when executed by a computer, implements the federated learning model training method as described in any one of the above.
[0044] The beneficial effects of the present invention are:
[0045] The present invention discloses a method for training a federated learning model, which can effectively deal with the negative impact of the heterogeneity of client data and computing power configuration commonly found in federated learning systems on the system training efficiency. It can fully utilize the characteristics of cloud-edge collaborative training in the distributed computing process based on the training model uploaded by the local client to achieve rapid convergence of the global model in the federated learning model training task. Specifically, during the implementation of the present invention, by setting the periodic aggregation time , and adopts a semi-asynchronous federated learning model training method to construct a semi-asynchronous federated learning aggregation solution with a fixed time period, which can solve the impact of bottleneck node delay in the synchronous federated aggregation strategy in the device heterogeneous environment, and also prevent the global model from being skewed due to frequent uploading of local models by some devices in the fully asynchronous federated aggregation strategy; in addition, in the environment of unbalanced computing power of the federated learning system, the present invention ensures that the data in all local clients can participate in the model training when the global training time is fixed through a semi-asynchronous aggregation method, thereby effectively improving the data utilization rate in the local clients participating in the training in the federated learning system and improving the convergence accuracy of the model training.
[0046] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 is a flow chart of the federated learning model training method in Example 1;
[0048] Figure 2 is a flow chart of the model weighted aggregation process in Example 1;
[0049] Figure 3 is a schematic diagram of the training time period during the application of Example 1;
[0050] Figure 4 It is a schematic diagram of the test results of the federated learning model training method in Example 1. DETAILED DESCRIPTION
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0052] Embodiment 1:
[0053] This embodiment discloses a federated learning model training method, which is executed based on a federated learning system, wherein the federated learning system includes a central server and a plurality of local clients respectively connected to the central server in communication; Figure 1 As shown, the method may include but is not limited to the following steps:
[0054] S1. The central server receives the federated learning model training task and sets the initial global model according to the federated learning model training task , and then the initial global model The model to be trained is broadcasted to multiple local clients; specifically, in this embodiment, the central server can set an initial global neural network model for a specific deep neural network model training task, which is not limited here. In this embodiment, after the local client receives the initial global model After that, the central server can send a confirmation message to the local client so that the local client can participate in the model training task. The central server obtains the number of local clients. K , that is, the number of local clients participating in the federated learning training, initialize the delay state value of all local clients ( ) and training status values ( ), and set the periodic aggregation duration Specifically, in this embodiment, the central server agrees on the periodic aggregation duration according to the overall situation of all local clients. .
[0055] S2. Any local client ( ) receives the central server at the ( ) round of training broadcasts the model to be trained, that is, receives the first t Wheel global model , and according to its tRound training status value Perform local model training; as described in any local client t Round training status value , then any local client based on the local data set The model to be trained is t round of local model training; as described in the first round of local model training of any local client t Round training status value , then any local client continues the unfinished local model training, that is, continues to complete the training in the first t The local model training tasks that have not been completed before the round starts; among them, , T The total number of rounds of the model to be trained broadcasted by the central server, that is, the total number of training rounds when the federated learning model training task is completed.
[0056] Specifically, in step S2, any local client t Round training status value , any local client based on the local data set The model to be trained is t During the round of local model training, after completing the m The intermediate local model obtained after the local round of training is:
[0057] ;
[0058] In the formula, Indicates that the central server received by any local client is in ( ) The model to be trained is broadcasted during the training round; represents the learning rate when any local client performs local model training; F k () is the preset local loss function of federated learning; Represents the gradient calculation symbol; Indicates -1 The intermediate local model obtained after the local round of training; Indicates that any local client m Local data used by the local round.
[0059] In this embodiment, the total number of local rounds for any local client to perform local model training can be preset as M , that is, the number of rounds of local stochastic gradient descent training required for any local client to perform a model update process locally; where m=1,2,…, M .
[0060] In step S2, any local client t Round training status value , when any of the local clients continues to perform the unfinished local model training, assuming that any of the local clients performs the first m The local round of training is in t Within the periodic aggregation duration of the round of training, any local client completes the first m The intermediate local model obtained after the local round of training is:
[0061] ;
[0062] In the formula, The initial global model represents the model being trained by any of the local clients.
[0063] It should be noted that, at this time, it is assumed that any local client performs the m The local round of training is in t The training cycle aggregation duration is within the training cycle aggregation duration.
[0064] S3. t Before the end of the periodic aggregation duration of the round of training, any local client has completed the first t round of local model training, then its first t+ 1 round of training status value Set to 1 to t+ 1 round delay status value Set to 0 and complete the t The training model obtained after the round of local model training is uploaded to the central server; in the t After the periodic aggregation time of the round of training ends, if any local client fails to complete the t round of local model training, then its first t+ 1 round of training status value Set it to 0 and t+ 1 round delay status value Set to .
[0065] Specifically, in step S3, any local client completes the t The training model obtained after a round of local model training is:
[0066] ;
[0067] In the formula, M Indicates the total number of local rounds of local model training performed by any local client; Indicates that any local client is based on a local data set The model to be trained is t During the round of local model training, after completing the M The intermediate local model obtained after the local round of training, that is, the local model to be uploaded after the local client that has not fallen behind has completed the local partial update; Indicates that any local client continues to perform unfinished local model training. M The intermediate local model obtained after the local round of training, that is, the one that falls behind in the global training The local client of the round completes the local local update and uploads the local model with outdated information.
[0068] S4. The central server receives t All training models of the round of training, that is, completing the first t The receiving task of the training model in round 1 is based on the participation in t The weight aggregation parameters are set based on the specified information of the local client of the round of training, and the weight aggregation parameters are used to train the first t All training models received in the round are subjected to model weighted aggregation processing to obtain the updated global model .
[0069] Specifically, in step S4, Figure 2 As shown, the central server participates in t The weight aggregation parameters are set based on the specified information of the local client of the round of training, and the weight aggregation parameters are used to train the first t All training models received in the round are subjected to model weighted aggregation processing to obtain the updated global model ,include:
[0070] S401. The central server obtains the completion of the first t The local model update value after the round of local model training, and the central server t -1 round of model weighted aggregation processing of the global model update value, and calculate the cosine similarity factor between the local model update value and the global model update value.
[0071] In step S401, the cosine similarity factor between the local model update value and the global model update value is:
[0072] ;
[0073] In the formula, , complete the first t The local model update value after a round of local model training; , for the central server in t-Global model update value of 1 round of model weighted aggregation processing; Representation vector and vector The cosine of the angle between .
[0074] S402. The central server receives the first t Round delay status value S k ( t ), calculate that any local client completes the t The training model obtained after a round of local model training The delay discount factor.
[0075] In step S402, the delay discount factor is:
[0076] ;
[0077] In the formula, It is a preset expiration tolerance, which is used to adjust the tolerance limit of the expiration degree of the training model uploaded by any local client during the model weighted aggregation processing.
[0078] S403. The central server calculates a weight aggregation parameter of any local client according to the cosine similarity factor and the delay discount factor.
[0079] In step S403, the weight aggregation parameter of any local client is:
[0080] ;
[0081] In the formula, is a cosine similarity factor between the local model update value and the global model update value; is the delay discount factor; and are preset weight values, which are used to adjust the influence of delay discount factor and model similarity on aggregation weight. For example, Set to 0.5, Set to 0.5.
[0082] S404. The central server performs the weight aggregation based on the weight aggregation parameters. t All training models received in the round are subjected to model weighted aggregation processing to obtain the updated global model .
[0083] In step S404, the updated global model for:
[0084] ;
[0085] In the formula, , indicating that the central server is in t The sequence number set of local clients corresponding to all training models received in the round; p k is a weight aggregation parameter of any of the local clients.
[0086] Based on the above steps S401 to S404, this embodiment takes into account the delay information of the training model uploaded by the local client during the configuration of the weight aggregation parameters of the model weighted aggregation processing, and adjusts the aggregation weight of the model uploaded by the lagging local client by introducing the delay discount factor of the training model and the cosine similarity factor of the model, thereby alleviating the negative impact of the expired training model information on the convergence of the global model.
[0087] S5. The central server determines the updated global model Is it converged? If so, the updated global model as the trained global model, and end the federated learning model training task; if not, then update the updated global model The training model is broadcasted to multiple local clients. Specifically, in this embodiment, the central server obtains the updated global model. After that, the updated global model is tested using the preset test data set. Perform a performance convergence test to determine the updated global model Whether to converge.
[0088] This embodiment can effectively deal with the negative impact of the heterogeneity of client data and computing power configuration commonly found in federated learning systems on the system training efficiency. It can fully utilize the characteristics of cloud-edge collaborative training in the distributed computing process based on the training model uploaded by the local client to achieve rapid convergence of the global model in the federated learning model training task. Specifically, during the implementation of this embodiment, by setting the periodic aggregation time , and adopts a semi-asynchronous federated learning model training method to construct a semi-asynchronous federated learning aggregation solution with a fixed time period, which can solve the impact of bottleneck node delay in the synchronous federated aggregation strategy in the device heterogeneous environment, and also prevent the global model from being skewed due to frequent uploading of local models by some devices in the fully asynchronous federated aggregation strategy; in addition, in the environment of unbalanced computing power of the federated learning system, this embodiment uses a semi-asynchronous aggregation method to ensure that the data in all local clients can participate in the model training when the global training time is fixed, thereby effectively improving the data utilization rate in the local clients participating in the training in the federated learning system and improving the convergence accuracy of the model training.
[0089] As an example, Figure 3 A schematic diagram of the training time period of the method in the present embodiment during application is given. In addition, the method proposed in the present embodiment is tested in combination with specific data, and the process is as follows:
[0090] Get the MNIST dataset (MNIST stands for Mixed National Institute of Standards and Technology database. The MNIST dataset is a binary image dataset used to train various image processing systems and is widely used in training and testing in machine learning). The MNIST dataset consists of 60,000 28*28 grayscale images. There are 10 categories in total, and each category consists of 6,000 handwritten digital images. The dataset is divided into 100 clients using Dirichlet distribution, so that the datasets between different local clients meet the non-independent and identically distributed assumption (Non-IID). In order to evaluate and verify the performance of the method proposed in this embodiment in terms of training accuracy and training speed, the currently popular classic federated learning aggregation algorithm FedAvg and the fully asynchronous federated learning algorithm FedAsync are used as benchmark test models, and the iteration of the machine learning loss function with the number of rounds is used as the evaluation indicator of the model. The test results are as follows: Figure 4 shown.
[0091] based on Figure 4 From the test results shown, it can be seen that this embodiment realizes the aggregation and update of the federated learning model by adopting a semi-asynchronous aggregation strategy starting from a fixed time period, prevents the bottleneck phenomenon of client devices by introducing an asynchronous mechanism, realizes the effectiveness of distributed intelligent computing by weighted aggregation based on the delay discount factor and the cosine similarity factor of the model, and ensures the rapid convergence of the model under data heterogeneity. This mechanism fully improves the participation of local clients in the training process and the data utilization rate in the federated learning system.
[0092] Embodiment 2:
[0093] Based on Embodiment 1, this embodiment discloses an electronic device, which may be a smart phone, a tablet computer, a laptop computer, or a desktop computer, etc. The electronic device may be called a user terminal, a portable terminal, a desktop terminal, etc. The electronic device includes:
[0094] a memory for storing computer program instructions; and,
[0095] A processor is used to execute the computer program instructions to complete the operations of the federated learning model training method as described in any one of Example 1.
[0096] Embodiment 3:
[0097] Based on any one of Examples 1 to 2, this embodiment discloses a computer program product, including a computer program or instructions, which, when executed by a computer, implements the federated learning model training method as described in any one of Example 1.
[0098] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for training a federated learning model, characterized in that: Based on a federated learning system, the federated learning system includes a central server and a plurality of local clients respectively connected to the central server in communication; the method includes: The central server receives the federated learning model training task and sets the initial global model w according to the federated learning model training task. g (1), and then the initial global model w g (1) Broadcast and publish to multiple local clients as a model to be trained; the central server obtains the number of local clients K and initializes the delay state value s of all local clients k (1) = 0 (k = 1, ..., K) and training state value b k (1) = 0 (k = 1, ..., K), and set the periodic aggregation time T0; Any local client receives the model to be trained broadcasted by the central server during the tth (t=1, ..., T)th round of training, and uses its tth round training state value b k (t) Perform local model training; as described above, the t-round training state value b of any local client k (t) = 1, then any local client based on the local data set The model to be trained is trained for the tth round of local model training; the tth round of training state value b of any local client k (t) = 0, any local client continues the unfinished local model training; wherein k = 1, ..., K, T is the total number of rounds of the central server broadcasting the model to be trained; Before the end of the period aggregation time of the t-th round of training, if any local client has completed the t-th round of local model training, then its t+1-th round of training state value b k (t+1) is set to 1, and its t+1th round delay state value s k (t+1) is set to 0, and the training model obtained after completing the tth round of local model training is uploaded to the central server; after the period aggregation time of the tth round of training ends, if any of the local clients fails to complete the tth round of local model training, its t+1th round training state value b k (t+1) is set to 0, and its t+1th round delay state value s k (t+1) is set to s k (t+1)=s k (t)+1; The central server receives all training models of the tth round of training, sets weight aggregation parameters according to the specified information of the local clients participating in the tth round of training, and performs model weighted aggregation processing on all training models received in the tth round based on the weight aggregation parameters to obtain an updated global model w g (t+1); The central server determines the updated global model w g (t+1) whether it converges, if so, the updated global model w g (t+1) is used as the trained global model and the federated learning model training task is terminated; if not, the updated global model w g (t+1) is broadcasted to multiple local clients as a model to be trained; The training state value b of the tth round of any local client k (t)=1, any local client based on the local data set When the model to be trained is subjected to the t-th round of local model training, the intermediate local model obtained after completing the m-th local round of training is: In the formula, w g (t) represents the model to be trained broadcasted and sent by the central server during the tth (t=1, ..., T) round of training and received by any local client; η represents the learning rate of any local client during local model training; F k () is the preset local loss function of federated learning; Represents the gradient calculation symbol; represents the intermediate local model obtained after the τ-1th local round of training; represents the local data used by any local client in the mth local round; The training state value b of the tth round of any local client k (t)=0, when any local client continues to perform the unfinished local model training, the intermediate local model obtained after completing the mth local round of training is: In the formula, w g (ts k (t)) represents the initial global model of the model being trained by any of the local clients.
2. A federated learning model training method according to claim 1, characterized in that: The training model obtained after any local client completes the tth round of local model training is: Wherein, M represents the total number of local rounds of local model training performed by any local client; Indicates that any local client is based on a local data set When the to-be-trained model is subjected to the t-th round of local model training, an intermediate local model obtained after completing the M-th local round of training; It indicates the intermediate local model obtained after completing the Mth local round of training when any local client continues the unfinished local model training.
3. A federated learning model training method according to claim 1, characterized in that: The central server sets weight aggregation parameters according to the specified information of the local clients participating in the tth round of training, and performs model weighted aggregation processing on all training models received in the tth round based on the weight aggregation parameters to obtain the updated global model w g (t+1), including: The central server obtains the local model update value of any local client after completing the tth round of local model training, and the global model update value of the central server in the t-1th round of model weighted aggregation processing, and calculates the cosine similarity factor between the local model update value and the global model update value; The central server determines the delay state value S of the tth round of any local client. k (t), calculating the delay discount factor of the training model obtained after any local client completes the tth round of local model training; The central server calculates the weight aggregation parameter of any local client according to the cosine similarity factor and the delay discount factor; The central server performs model weighted aggregation processing on all training models received in the tth round according to the weight aggregation parameter to obtain an updated global model w g (t+1).
4. A federated learning model training method according to claim 3, characterized in that: The cosine similarity factor between the local model update value and the global model update value is: In the formula, The local model update value after any local client completes the tth round of local model training; Δw g (t) = w g (t)-w g (t-1) is the global model update value of the central server in the t-1th round of model weighted aggregation processing; Θ(a, b) represents the cosine value of the angle between vector a and vector b.
5. A federated learning model training method according to claim 3, characterized in that: The delay discount factor is: Where Ω is the preset expiration tolerance.
6. A federated learning model training method according to claim 3, characterized in that: The weight aggregation parameters of any local client are: p k =θ k (t)+βr k (t); In the formula, θ k (t) is the cosine similarity factor between the local model update value and the global model update value; r k (t) is the delay discount factor; α and β are preset weight values respectively.
7. A federated learning model training method according to claim 3, characterized in that: The updated global model w g (t+1) is: In the formula, represents the set of serial numbers of local clients corresponding to all training models received by the central server in round t; p k is a weight aggregation parameter of any of the local clients.
Citation Information
Patent Citations
Semi-asynchronous federal learning method and system
CN115115064A
Asynchronous federal learning method and system based on T-Step aggregation algorithm
CN115374853A
Cited By
Semi-asynchronous federal learning training method based on intelligent client selection and adaptive weighting
CN120996142A