A Federated Learning Acceleration Method Based on Model Partitioning

By adopting model segmentation and compression technology in federated learning, selecting high-quality participants and dynamically offloading computing tasks, the problem of resource sensitivity and poor convergence in IoT scenarios is solved, and efficient federated learning and model accuracy improvement are achieved.

CN114492746BActive Publication Date: 2024-10-29CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210057437.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2024-10-29
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

Existing federated learning algorithms in IoT scenarios have problems such as resource sensitivity, poor convergence during training, and how to quickly select important participants. In particular, technology based on model segmentation has not been considered and designed.

Method used

Adopting the concept of model segmentation and compression, the global model construction process is optimized by selecting high-quality participants, dynamically grouping and offloading computing tasks to edge servers, and combining multiple rounds of iteration and layer-by-layer sensitivity strategies.

Benefits of technology

It improves the efficiency and model accuracy of federated learning, saves communication and computing resources, protects data privacy, and adapts to bandwidth changes to make the best offloading strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114492746B_ABST
    Figure CN114492746B_ABST
Patent Text Reader

Abstract

The present invention discloses a federated learning acceleration method based on model segmentation, which belongs to the field of Internet of Things and machine vision. Firstly, in order to improve the training efficiency of federated learning, it is extremely critical to select high-quality participants. For high-quality, resource-constrained Internet of Things devices, the two aspects of network bandwidth change and global training time are comprehensively considered, and a computing task offloading strategy is designed by using the concept of model segmentation to reduce the global training time, thereby improving the training efficiency; then, a federated learning paradigm is adopted to protect data security, and distributed user data is used to improve reasoning performance; finally, the global model aggregation strategy of federated learning is optimized, and an aggregation method combining multiple rounds of iterative recommunication with model compression is used to further reduce the transmission content, reduce the communication pressure, and achieve the purpose of accelerating federated learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of Internet of Things and machine vision, and specifically relates to a federated learning acceleration method based on model segmentation. Background Art

[0002] Federated Learning is an emerging basic artificial intelligence technology first proposed by Google in 2016. It was originally used to solve the problem of local model update for Android mobile phone users. Its design goal is to carry out efficient machine learning among multiple participants or multiple computing nodes while ensuring information security during big data exchange, protecting terminal data and personal data privacy, and ensuring legality and compliance.

[0003] In recent years, relevant people in the field have conducted in-depth research on it. For example: (1) In 2016, Jakub et al. proposed a federated learning acceleration algorithm based on synchronous parameter update. For the synchronous update strategy, this method mainly utilizes the fault-tolerant characteristics of model aggregation and appropriately reduces the communication frequency, thereby reducing communication overhead; common methods include increasing the communication interval, reducing the transmission content, asymmetric push and acquisition, and computing and transmission pipeline operations; however, in the face of resource-constrained IoT devices, it is difficult or impossible to perform large-scale training tasks; (2) A federated learning acceleration algorithm based on asynchronous parameter update was proposed. Compared with the synchronous update strategy, although the efficiency of the asynchronous update strategy can be greatly improved, it will cause delays between the local model parameters from different participants, resulting in poor convergence during training; (3) In 2019, Neel Guha et al. proposed an improved scheme for single-round communication federated learning and proposed a federated learning acceleration algorithm based on model integration, that is, the entire training process only requires one round of communication to complete the construction of the global model; however, since the quality of local models of different participants may vary greatly, the best method to generate a global federated model may only need to consider the local models of some participants rather than the local models of all participants. Therefore, how to quickly select this part of particularly important participants is an urgent problem to be solved.

[0004] In the above studies, the federated learning acceleration algorithm based on synchronous update is relatively sensitive to communication and computing resources. In the actual IoT scenario, as the amount of training task calculation increases, the traditional federated learning algorithm cannot be applied; the federated learning acceleration algorithm based on asynchronous parameter update has a delay problem, which leads to poor convergence during training; the federated learning acceleration algorithm based on model integration needs to consider how to quickly select this part of particularly important participants. At the same time, the existing technologies for the federated learning acceleration method based on model segmentation have not considered and designed this aspect. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a federated learning acceleration method based on model segmentation, which adopts the concept of model segmentation and compression to accelerate federated learning.

[0006] The technical solution of the present invention is as follows:

[0007] A federated learning acceleration method based on model segmentation includes the following steps:

[0008] S1. After inputting the training data, the server randomly selects K participants (K≤N) from N participants for local training, first performing two rounds of traditional federated learning without executing any offloading strategy;

[0009] S2. Calculate the change in the global loss function in the first two rounds and the training time of each participant, sort the change in the global loss function in the first two rounds from large to small, and select the participants with the highest ranking for training;

[0010] S3. Considering the factors of training time and network bandwidth, participants are dynamically grouped after each round of training. Participants with low bandwidth are grouped into additional groups, and participants with similar characteristics are grouped into one group. The same group executes the same offloading strategy.

[0011] S4. Comprehensively consider the training time and computing power of the participants, and combine the grouping situation in step S3 to determine whether the resources are limited. If the resources are limited, proceed to step S5 to minimize the global training time; otherwise, directly proceed to step S7 for multiple rounds of iterative uploading;

[0012] S5. Based on the goal of minimizing the global training time, each layer of the deep neural network is used as a computing unit, and split points are generated between layers;

[0013] S6. Select the best split point from the candidate split points, dynamically offload the computing task to the trusted edge server, and the resource-constrained participants collaborate with the edge server for training, and then the edge server uploads the parameter information to the server;

[0014] S7. Perform multiple rounds of iterations. Starting from the third round of federated learning, all participants perform local training for multiple iterations before uploading parameters.

[0015] S8. Starting from the third round of federated learning, a strategy of multiple iterations followed by aggregation is adopted. After multiple iterations, the mean change of the gradient of each layer of the model is calculated.

[0016] S9. Sort the changes from large to small. The larger the change, the higher the sensitivity. Select the layer with high sensitivity to upload, and the layer with low sensitivity will not be uploaded, so as to obtain the best global model.

[0017] Furthermore, it includes five modules: participant selection module, dynamic network perception module, computing task offloading decision module, local training strategy module, and dynamic model aggregation module;

[0018] The participant selection module is responsible for selecting high-quality participants based on the change in the global loss function;

[0019] The dynamic network awareness module is responsible for grouping all participants by taking into account the training time and network bandwidth;

[0020] The computing task offloading strategy module is responsible for selecting the best offloading point based on the grouping situation and minimizing the global training time;

[0021] The local training strategy module is responsible for multiple rounds of iterations and then uploading. The number of iterations is dynamically set according to the change in the global loss function.

[0022] The dynamic model aggregation module is responsible for performing multiple rounds of iterative re-aggregation, calculating and sorting layer sensitivities, and selecting layers with high sensitivity for uploading.

[0023] Furthermore, in step S3, the similar features are network bandwidth and CPU frequency; and the computing power in step S4 is CPU frequency.

[0024] Furthermore, in step S6, the candidate segmentation points are points with small data volume and small calculation amount.

[0025] Furthermore, in step S7, the initial value of the number of iterations is set to 10, and then dynamically set according to the change in the gradient mean value of the previous round.

[0026] Beneficial technical effects brought by the present invention:

[0027] By selecting high-quality participants and adopting the federated learning paradigm, data privacy is protected, and distributed user data is used to improve reasoning performance and accelerate the efficiency of federated learning. Through the model segmentation method, part of the calculation of resource-constrained participants is offloaded to the trusted edge server. Through the dynamic network perception module, it can adapt to the bandwidth changes between participants and servers and make the best offloading strategy, thereby improving model accuracy and accelerating training efficiency. The aggregation strategy that combines multiple rounds of iterative recommunication with the selection of upload parameters by layer sensitivity saves the communication and computing resource consumption of traditional federated learning, such as power, bandwidth, memory, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a structural schematic diagram of the federated learning acceleration method based on model segmentation of the present invention;

[0029] Figure 2 This is a flow chart of the federated learning acceleration method based on model segmentation of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0031] The present invention is based on federated learning, model segmentation and model compression technology, and proposes a federated learning acceleration method based on model segmentation. First of all, in order to improve the training efficiency of federated learning, it is extremely critical to select high-quality participants. For high-quality, resource-constrained Internet of Things (IoT) devices, considering the two aspects of network bandwidth changes and training time, the concept of model segmentation is used to design a computing task offloading strategy to reduce the global training time and thus improve the training efficiency; then, federated learning is used to protect data security and to improve reasoning performance using distributed user data; finally, the global model aggregation strategy of federated learning is optimized, and the aggregation method combining multiple rounds of iterative recommunication with model compression is used to further reduce the transmission content, reduce the communication pressure, and achieve the purpose of accelerating federated learning.

[0032] like Figure 1 As shown, a federated learning acceleration method based on model segmentation includes five modules: participant selection module, dynamic network perception module, computing task offloading decision module, local training strategy module, and dynamic model aggregation module;

[0033] The participant selection module is responsible for selecting high-quality participants based on the change in the global loss function;

[0034] The dynamic network awareness module is responsible for grouping all participants by taking into account the training time and network bandwidth;

[0035] The computing task offloading strategy module is responsible for selecting the best offloading point based on the grouping situation and minimizing the global training time;

[0036] The local training strategy module is responsible for multiple rounds of iterations and then uploading. The number of iterations is dynamically set according to the change in the global loss function.

[0037] The dynamic model aggregation module is responsible for performing multiple rounds of iterative re-aggregation, calculating and sorting layer sensitivities, and selecting layers with high sensitivity for uploading.

[0038] like Figure 2 As shown in the figure, the federated learning acceleration method based on model segmentation specifically includes the following steps:

[0039] S1. After inputting the training data, the server randomly selects K participants (K≤N) from N participants for local training, first performing two rounds of traditional federated learning without executing any offloading strategy;

[0040] S2. Calculate the change in the global loss function in the first two rounds and the training time of each participant, sort the change in the global loss function in the first two rounds from large to small, and select the participants with the highest ranking for training;

[0041] S3. Considering the training time and network bandwidth factors, participants are dynamically grouped after each round of training. Participants with low bandwidth are grouped into additional groups, and participants with similar characteristics (network bandwidth and CPU frequency) are grouped into one group. The same group executes the same offloading strategy.

[0042] S4. Comprehensively consider the training time and computing power (CPU frequency) of the participants, and combine the grouping situation in step S3 to determine whether the resources are limited. If the resources are limited, proceed to step S5 to minimize the global training time; otherwise, directly proceed to step S7 for multiple rounds of iterative uploading;

[0043] S5. Based on the goal of minimizing the global training time, each layer of the deep neural network is used as a computing unit, and split points are generated between layers;

[0044] S6. Select the best split point from the candidate split points (layers with small data volume and small computational workload, such as pooling layers), dynamically offload the computational tasks to the trusted edge server, and the resource-constrained participants collaborate with the edge server for training, and then the edge server uploads the parameter information to the server;

[0045] S7. Perform multiple rounds of iterations. Starting from the third round of federated learning, all participants locally train for multiple iterations before uploading parameters, rather than uploading them once after each training. The initial value of the number of iterations is set to 10, and then dynamically set according to the change in the mean gradient value of the previous round.

[0046] S8. Starting from the third round of federated learning, a strategy of multiple iterations followed by aggregation is adopted. After multiple iterations, the mean change of the gradient of each layer of the model is calculated.

[0047] S9. Sort the changes from large to small. The larger the change, the more sensitive the layer is. Select the layers with high sensitivity to upload, and the layers with low sensitivity will not be uploaded, so as to obtain the best global model.

[0048] The algorithm pseudo code of the federated learning acceleration method based on model segmentation is as follows:

[0049]

[0050]

[0051] The present invention protects data privacy by selecting high-quality participants and adopts the federated learning paradigm, improves reasoning performance by using distributed user data, and accelerates the efficiency of federated learning. At the same time, in order to further improve the accuracy of the model, the algorithm can offload part of the calculations of resource-constrained participants to trusted edge servers through a model segmentation method, and through a dynamic network perception module, it can adapt to the bandwidth changes of participants and servers and make the best offloading strategy, thereby improving model accuracy and accelerating training efficiency. The aggregation strategy that combines multiple rounds of iterative recommunication with the selection of upload parameters by layer sensitivity saves the communication and computing resource consumption of traditional federated learning, such as power, bandwidth, memory, etc.

[0052] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A federated learning acceleration method based on model segmentation, characterized in that: The specific steps include: S1. After inputting the training data, the server randomly selects K participants (K≤N) from N participants for local training, first performing two rounds of traditional federated learning without executing any offloading strategy; S2. Calculate the change in the global loss function in the first two rounds and the training time of each participant, sort the change in the global loss function in the first two rounds from large to small, and select the participants with the highest ranking for training; S3. Considering the factors of training time and network bandwidth, participants are dynamically grouped after each round of training. Participants with low bandwidth are grouped into additional groups, and participants with similar characteristics are grouped into one group. The same group executes the same offloading strategy. S4. Comprehensively consider the training time and computing power of the participants, and combine the grouping situation in step S3 to determine whether the resources are limited. If the resources are limited, proceed to step S5 to minimize the global training time; otherwise, directly proceed to step S7 for multiple rounds of iterative uploading; S5. Based on the goal of minimizing the global training time, each layer of the deep neural network is used as a computing unit, and split points are generated between layers; S6. Select the best split point from the candidate split points, dynamically offload the computing task to the trusted edge server, and the resource-constrained participants collaborate with the edge server for training, and then the edge server uploads the parameter information to the server; S7. Perform multiple rounds of iterations. Starting from the third round of federated learning, all participants perform local training for multiple iterations before uploading parameters. S8. Starting from the third round of federated learning, a strategy of multiple iterations followed by aggregation is adopted. After multiple iterations, the mean change of the gradient of each layer of the model is calculated. S9. Sort the changes from large to small. The larger the change, the higher the sensitivity. Select the layer with high sensitivity to upload, and the layer with low sensitivity will not be uploaded, so as to obtain the best global model.

2. The method for accelerating federated learning based on model segmentation according to claim 1, characterized in that: It includes five modules: participant selection module, dynamic network perception module, computing task offloading decision module, local training strategy module, and dynamic model aggregation module; The participant selection module is responsible for selecting high-quality participants based on the change in the global loss function; The dynamic network awareness module is responsible for grouping all participants by taking into account the training time and network bandwidth; The computing task offloading strategy module is responsible for selecting the best offloading point based on the grouping situation and minimizing the global training time; The local training strategy module is responsible for multiple rounds of iterations and then uploading. The number of iterations is dynamically set according to the change in the global loss function. The dynamic model aggregation module is responsible for performing multiple rounds of iterative re-aggregation, calculating and sorting layer sensitivities, and selecting layers with high sensitivity for uploading.

3. The method for accelerating federated learning based on model segmentation according to claim 1, characterized in that: In step S3, the similar features are network bandwidth and CPU frequency; and the computing power in step S4 is CPU frequency.

4. The method for accelerating federated learning based on model segmentation according to claim 1, characterized in that: In step S6, the candidate segmentation points are points with small data volume and small calculation amount.

5. The method for accelerating federated learning based on model segmentation according to claim 1, characterized in that: In step S7, the initial value of the number of iterations is set to 10, and then dynamically set according to the change in the gradient mean value of the previous round.

Citation Information

Patent Citations

  • Equipment evaluation and federated learning importance aggregation method, system and equipment based on edge intelligence and readable storage medium

    CN112181666A

  • Distributed federated learning cooperative computing method and system

    CN113467952A