A method and system for scheduling computing tasks of mobile edge nodes based on federated learning
By independently training the deep Q network on mobile edge nodes and performing global parameter aggregation, the execution order of computing tasks is optimized, the problem of multi-task processing delay on a single node is solved, and lower computing task completion delay and higher are achieved. system performance.
Patent Information
- Application Number
- CN202111478407.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-12-06
AI Technical Summary
The existing mobile edge computing task scheduling method fails to effectively consider the execution order of multiple pending computing tasks by a single mobile edge node, ignores the impact of computing task scheduling on computing service delay, and does not fully utilize the multiple mobile capabilities of the MEC system. Information aggregation potential of edge nodes.
Using a method based on federated learning, the deep Q network (DQN) is independently trained on multiple mobile edge nodes, and global parameter aggregation is performed under certain conditions to optimize the execution sequence and delay of computing tasks. Specific steps include initializing information parameters, deploying the DQN network for local training, determining the number of update rounds and training rounds, updating global parameters and outputting results.
It shortens the computing task completion delay, improves the user experience, can flexibly adapt to dynamically changing task queues and environmental states, reduces the computing task completion delay, and improves system performance through global aggregation.
Smart Images

Figure CN114168328B
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile communication technology, and in particular, to a method and system for scheduling computing tasks of mobile edge nodes based on federated learning. Background Art
[0002] The long communication distance between end users and remote clouds is a limitation that cloud computing has always faced, making it gradually unable to adapt to new mobile applications with increasingly stringent latency requirements. As cloud functions are increasingly transferred to the edge of the network, Mobile Edge Computing (MEC) is seen as a potential solution. By making good use of the large amount of idle computing resources and storage space distributed at the edge of the network, mobile devices at the edge of the network can also have the ability to handle computationally intensive and latency-sensitive tasks.
[0003] However, the computing power of a single device is limited and cannot meet the performance requirements of some computing-intensive businesses such as autonomous driving, virtual reality (VR), and augmented reality (AR). For this reason, the concept of mobile edge collaborative computing is introduced. On the one hand, it reduces the computing pressure of a single node, and on the other hand, the collaboration between various edge devices provides more possibilities for improving system performance. For example, the natural distributed structure of mobile edge computing is very consistent with the idea of federated learning (FL). The introduction of federated learning in collaborative computing scenarios solves the huge communication overhead brought about by the use of deep learning and other solution methods to a certain extent, while also alleviating users' concerns about privacy and data security.
[0004] In collaborative computing, it is necessary to introduce an efficient computing task dispatch and scheduling mechanism to coordinate and manage it and improve user experience. Considering the computing offloading problem only from the perspective of computing task dispatch is not sufficient for optimizing the computing task execution process. Reasonable planning of the execution order of computing tasks queued at the edge is also a key link in shortening the average latency. The computing task scheduling strategy needs to be able to adapt to the dynamically changing external environment and differentiated service needs. A reasonable and effective computing task scheduling strategy can give full play to the system potential, improve the efficiency of computing task execution, and improve service quality.
[0005] In this context, we combine the distributed characteristics of MEC with federated learning to propose a computing task scheduling solution based on federated learning for multiple mobile edge nodes in the MEC system. This solution further optimizes the user experience of latency-sensitive computing tasks through global parameter aggregation based on independent Deep Q Network (DQN) training of a single mobile edge node.
[0006] Although the collaborative solution based on computing task offloading has provided a solution to problems such as insufficient terminal device resources or strict computing task latency requirements, the existing methods do not consider the execution order of multiple pending computing tasks by a single mobile edge node, that is, the computing task scheduling problem, and ignore the impact of computing task scheduling on computing service latency. At the same time, it does not give full play to the ability of multiple mobile edge nodes in the MEC system to aggregate information to achieve better computing task scheduling.
[0007] Therefore, how to obtain a mobile edge node computing task scheduling method based on federated learning is a problem that technical personnel in this field urgently need to solve. Summary of the invention
[0008] This application provides a method for scheduling computing tasks for mobile edge nodes based on federated learning, which enables multiple mobile edge nodes in the MEC system to collaboratively schedule computing tasks based on federated learning, thereby shortening the latency of computing task completion. For scenarios where mobile edge nodes process task requests generated by sensors within their coverage area, a reasonable task execution order is planned for dynamically changing task queues, and by aggregating differentiated information from multiple mobile edge nodes, the latency of computing task completion is reduced compared to individual node training.
[0009] A method for scheduling computing tasks of mobile edge nodes based on federated learning specifically comprises the following steps: initializing information parameters; in response to completing the initialization, locally training a DQN network deployed on each mobile edge node; judging whether the number of update rounds meets the aggregation frequency during the DQN network training process; if the number of update rounds meets the aggregation frequency, performing global parameter aggregation and updating; in response to completing the global parameter update, judging whether the number of training rounds reaches a specified number during the DQN network training process; if the number of training rounds reaches the specified number, outputting the result.
[0010] As mentioned above, in the process of initializing information parameters, it also includes setting the parameters required for each link of the system, including sensor transmission power, communication bandwidth, mobile edge node computing power, wireless channel related parameters, experience pool capacity in the DQN network, mini Batch size, learning rate, discount factor, aggregation frequency, and the number of computing tasks performed per round.
[0011] As above, in response to the system required parameters being set, the mobile edge nodes in the environment, local and global network parameters, and the experience pool are initialized.
[0012] As above, the local training of the DQN network deployed on each mobile edge node specifically includes the following sub-steps: initializing sensors within the coverage of the mobile edge node; in response to completing the initialization of the sensors, updating the environmental state information; in response to updating the environmental state information, selecting an action for the current state; executing the selected action to obtain experience generated by interacting with the environment; storing the experience generated by interacting with the environment as samples in the experience pool; determining whether the number of samples in the experience pool reaches a set value; if the set value is reached, randomly selecting a specified number of samples from the experience pool to train the DQN network; in response to completing the DQN network training, determining whether this round of decision-making is a terminal state; if it is a terminal state, the training of this round ends.
[0013] As above, initializing the sensors within the coverage of the mobile edge node includes obtaining the computing tasks generated by the sensors, wherein the computing tasks g m (t v ) is expressed as:
[0014] g m (t v )= m ,b m ,c m >
[0015] where u m represents the generation time of computing task m, b m represents the communication data volume of computing task m, c m Represents the computational amount of computing task m.
[0016] As above, where the computing task g generated by the sensor is obtained m (t v ) and then t v The computing task queue managed by the mobile edge node is modeled as a 3×M matrix. The matrix g(t v ) is specifically expressed as:
[0017]
[0018]
[0019] where g 1 (t v ), …, g m (t v ), …, g M (t v ) represents the M computing tasks generated by the sensor, u 1 …u m …u M represents the completion time of M computing tasks, b 1 …b m …n M represents the communication data volume of M computing tasks, c 1 …c m …c M Represents the computational amount of M computing tasks.
[0020] As mentioned above, the total delay from the generation of a computing task to the completion of processing is composed of execution delay and waiting delay; the execution delay is m (t v ) is specifically expressed as:
[0021]
[0022] cm m (t v ) represents the communication time required to execute task m, cp m (t v ) represents the computing time required to execute task m, B is the communication bandwidth, and p m is the sensor transmission power, h m (t v ) is the channel gain obtained based on the current position relationship between the sensor and the mobile edge node and the channel state, r m (t v ) represents the current data transmission rate, f c is the computing power of the mobile edge node, b m represents the communication data volume of the computing task, c m represents the computational effort of the task, σ 2 Represents the channel noise power.
[0023] As above, the waiting delay refers to the time that the computing task stays in the queue from the time it is generated to the time it starts to be executed; for the computing task g processed in round v, m (t v )= m ,b m ,c m >, its waiting delay dw m (t v ) is specifically expressed as:
[0024] dw m (t v ) = t v -u m
[0025] where u m Indicates the generation time of the computing task, t v Indicates time.
[0026] As above, where the completion delay d m (t v ) is specifically expressed as:
[0027]
[0028] Among them m (t v ) represents the execution delay of the computing task, dw m (t v ) represents the waiting delay of the computing task, b m Indicates the communication data volume (bits) of the computing task, c m represents the computational effort of the computational task, f c is the computing power of the mobile edge node, u m Indicates the generation time of the computing task, t v Indicates the time, r m (t v ) indicates the current data transmission rate.
[0029] A mobile edge node computing task scheduling system based on federated learning specifically comprises: an initialization unit, a training unit, a first judgment unit, a global update unit, a second judgment unit and an output unit; the initialization unit is used to initialize information parameters; the training unit is used to perform local training on a DQN network deployed on each mobile edge node; the first judgment unit is used to judge whether the number of update rounds meets the aggregation frequency during the DQN training process; the global update unit is used to aggregate and update global parameters if the number of update rounds meets the aggregation frequency; the second judgment unit is used to judge whether the number of training rounds reaches a specified number during the DQN training process; the output unit is used to output a result if the number of training rounds reaches a set specified number.
[0030] This application has the following beneficial effects:
[0031] (1) This application provides a computing task scheduling method in an MEC system from the perspective of the execution order of computing tasks, which shortens the completion time of computing tasks by utilizing the collaboration of multiple mobile edge nodes in the MEC system.
[0032] (2) The present application can flexibly adapt to dynamically changing computing task queue information, sensor location and other environmental conditions, and can also adjust the balance coefficient λ in the immediate reward function according to different needs, and change the weights of waiting delay and execution delay to cope with different application scenarios.
[0033] (3) This application uses federated learning to improve system performance through global aggregation at a certain frequency. Compared with independent DQN training of each mobile edge node, the action selection strategy under global parameters brings lower computing task completion latency to each mobile edge node participating in the federation. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0035] Figure 1 It is a flowchart of a method for scheduling computing tasks of mobile edge nodes based on federated learning according to an embodiment of the present application;
[0036] Figure 2 It is an internal structure diagram of a mobile edge node computing task scheduling system based on federated learning provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0038] The main purpose of this application is to design a computing task scheduling strategy for the MEC system and introduce federated learning in multiple mobile edge node scenarios to further optimize system performance so that each participant in the federation (i.e., each edge node, one of which is a participant in federated learning) can obtain lower latency than training alone.
[0039] Scenario assumption: In an MEC system, there are N mobile edge nodes N = {1, 2, L, n, L, N}, and there are M sensors M = {1, 2, L, m, L, M} in the coverage area of mobile edge node n. The mobile edge node processes V computing tasks in each round, that is, V rounds of decision making are performed in each round. V rounds include v rounds of decision making. The computing tasks generated by each sensor form a dynamically changing queue g(t v )={g 1 (t v ),L,g m (t v ),L,g M(t v )},t v Indicates that the current decision moment is the vth round.
[0040] Embodiment 1
[0041] like Figure 1 As shown, a method for scheduling computing tasks of mobile edge nodes based on federated learning provided by the present application specifically includes the following steps:
[0042] Step S110: Initialize information parameters.
[0043] Specifically, the initialization is specifically N mobile edge nodes in the environment and their network parameters Global Network Parameters and their corresponding experience pools.
[0044] Before initializing the information parameters, the system also needs to set the parameters required for each link, including sensor transmission power, communication bandwidth, mobile edge node computing power (CPU frequency), wireless channel related parameters, experience pool capacity in DQN, mini Batch size (that is, the number of samples per gradient descent training), learning rate, discount factor, aggregation frequency, and the number of computing tasks performed per round.
[0045] In response to the system required parameters being set, the mobile edge nodes in the environment, local and global network parameters, and experience pools are initialized.
[0046] Step S120: In response to completing the initialization, locally training the DQN network deployed on each mobile edge node.
[0047] Specifically, local training of the DQN network deployed on each mobile edge node is essentially that each mobile edge node performs DQN training to minimize the task completion delay according to the dynamic changes of the local computing task queue.
[0048] Specifically, DQN training is as follows: the agent deployed on the mobile edge node selects actions using the ε-greedy strategy based on each round of state information and current network parameters, and obtains immediate rewards for this action. At the same time, the computing task queue in the environment is updated to the next state. The results of this interaction with the environment will be stored in the experience pool. When the capacity of the experience pool reaches a certain scale, the DQN network will be trained by gradient descent to gradually converge to an optimal action selection strategy.
[0049] The DQN training is to conduct multiple rounds of DQN training at each mobile edge node at the same time. The purpose of each round of training is to minimize the average task completion delay within one round. Therefore, the optimization goal of each round is expressed as:
[0050]
[0051]
[0052] where a v.m ={0,1},a v.m = 1 means that the decision of the mobile edge node in round v executes the computation task from sensor m, a v.m = 0 means that the task is not executed, V means that the mobile edge node processes V computing tasks in each round, that is, V rounds of decision making are carried out in each round, t v Indicates that the current decision time is the vth round, d m (t v ) represents the computational task g in round v m (t v ) is executed.
[0053] Based on the optimization goal provided above, step S120 specifically includes the following sub-steps:
[0054] Step S1201: Initialize sensors within the coverage area of the mobile edge node.
[0055] Since it is assumed that the mobile edge node processes a total of V computing tasks per round, that is, a total of V rounds of decision-making are carried out per round.
[0056] The node is at t v The sensor determines which computing task in the processing queue is processed at any given moment. After the computing task is processed, the corresponding sensor immediately generates the next computing task, while other unprocessed computing tasks continue to remain in the queue waiting for the next round of decision. m (t v ) is described as:
[0057] g m (t v )= m ,b m ,c m > Formula 2
[0058] where u m represents the generation time of the computing task, b m Indicates the communication data volume (bits) of the computing task, c m Indicates the computational effort of the computational task (the number of CPU cycles required).
[0059] Therefore, t v The computing task queue managed by the mobile edge node can be modeled as a 3×M matrix. The matrix g(t v ) is specifically expressed as:
[0060]
[0061]
[0062] where g 1 (t v ), …, g m (t v ), …, g M (t v ) represents the M computing tasks generated by the sensor, u 1 …u m …u M represents the completion time of M computing tasks, b1…bm…bM represents the communication data volume of M computing tasks, c 1 …c m …c M Represents the computational amount of M computing tasks.
[0063] Furthermore, the completion delay of a computing task from its generation to its completion is composed of execution delay and waiting delay.
[0064] The execution delay is related to the scale of the computing task, which is the sum of the communication time for the mobile edge node to collect data from the corresponding sensor and the computing time required to perform the calculation. m (t v ) is specifically expressed as:
[0065]
[0066] cm m (t v ) represents the communication time required to execute task m, cp m (t v ) represents the computing time required to execute task m, B is the communication bandwidth, and p m is the sensor transmission power, h m (t v ) is the channel gain obtained based on the current position relationship between the sensor and the mobile edge node and the channel state. The current data transmission rate r can be calculated by the Shannon formula m (t v ), f c is the computing power of the mobile edge node, b m Indicates the communication data volume (bits) of the computing task, c m represents the computational effort of the task, σ 2 Represents the channel noise power.
[0067] Waiting delay refers to the time that the computing task stays in the queue from the time it is generated to the time it starts to be executed. m(t v )= m ,b m ,c m >, its waiting delay dw m (t v ) is specifically expressed as:
[0068] dw m (t v ) = t v -u m Formula 5
[0069] where u m Indicates the generation time of the computing task, t v Indicates time.
[0070] Therefore, if the calculation task g in round v m (t v ) is executed, its completion delay is d m (t v ) can be expressed as:
[0071]
[0072] Among them m (t v ) represents the execution delay of the computing task, dw m (t v ) represents the waiting delay of the computing task, b m Indicates the communication data volume (bits) of the computing task, c m represents the computational effort of the computational task, f c is the computing power of the mobile edge node, u m Indicates the generation time of the computing task, t v Indicates time.
[0073] Step S1202: In response to completing the initialization of the sensor, update the environmental status information.
[0074] The environmental status information is the computing task queue information and channel status information managed by the mobile edge node. v Change, matrix g(t v ) is updated accordingly.
[0075] Step S1203: Select an action for the current state using the ε-greedy strategy.
[0076] Among them, the intelligent agent deployed on the mobile edge node selects actions using the ε-greedy strategy based on each round of state information and current network parameters.
[0077] The current state refers to the current system state s(t v ), the action indicates which computing task in the task queue is processed by the mobile edge node in this round, where the action space size is M, and the action variable a(t v )=m, m∈M indicates that the mobile edge node in this round processes the mth computing task in the task queue.
[0078] Specifically, the system state s(t v ) are the execution time and waiting time of the M computing tasks in the current queue, s(t v ) is specifically expressed as:
[0079] s(t v )={de1(t v ), …, de M (t v ), dw1(t v ), …dw M (t v )} Formula 7
[0080] where de1(t v ) represents the execution delay of the first computing task, de M (t v ) represents the execution delay of the Mth computing task, dw1(t v ) represents the waiting delay of the first computing task, dw M (t v ) represents the waiting delay of the Mth computing task.
[0081] In each round of decision-making, the agent will choose the action with the largest Q value in the current state with a probability of ε; otherwise, it will make a random selection in the action space to achieve a balance between exploration and utilization, which is called the ε-greedy strategy.
[0082] The probability value of ε is a pre-set fixed value and does not change with the number of decision iterations. The Q value is generated by the initialized random network parameters in the first iteration. In the remaining iterations, the Q value is the value directly output by the DQN network.
[0083] Step S1204: Execute the selected action to obtain experience generated by interacting with the environment.
[0084] Among them, after the action selection is performed through the ε-greedy strategy in step S1203, the immediate reward for this action is obtained, and at the same time, the computing task queue g(t v ) is updated to the next state.
[0085] Specifically, experience includes the current system state s(t v), the currently executed action a(t v )=m, m∈M, the reward obtained by executing the current action and the state of the system when making the next decision.
[0086] The current system status s(t v ) According to formula 6, the immediate reward r(t v ) is specifically expressed as:
[0087]
[0088] Where λ is the balance coefficient set according to different usage scenarios and requirements, dw m (t v ) represents the waiting delay of computing task m, dw j (t v ) represents the waiting delay of computing task j, M represents the number of sensors (or the number of computing tasks), de m (t v ) represents the execution delay of computing task m, de j (t v ) represents the execution delay of computing task j.
[0089] In this embodiment, the design of the reward function jointly considers the execution delay and waiting delay of the computing task. If a computing task g in the current processing queue is selected m (t v ), then its waiting time dw m (t v ) The timer expires and will not be extended, but other computing tasks in the queue The waiting time will inevitably be extended by at least m (t v ). A computing task with a long execution time will extend the waiting time of the other M-1 computing tasks in the entire queue. Therefore, the impact of both is reflected in the instant reward of each round to minimize the delay in completing the computing task.
[0090] Step S1205: The experience generated by the interaction with the environment is stored as a sample in the experience pool.
[0091] In each round of decision-making, the experience generated by the interaction between the action and the environment is stored as a sample in the experience pool.
[0092] Furthermore, after being stored in the experience pool, it also includes the accumulation of immediate rewards and task delays.
[0093] The instant reward and task delay of each round of decision-making are accumulated. The instant reward obtained by executing an action in each round of decision-making can be obtained by formula 8. The task delay is the total delay of a computing task in each round of decision-making, which is composed of formula 6.
[0094] Step S1206: Determine whether the number of samples in the experience pool reaches a set value.
[0095] If so, execute step S1207; otherwise, execute step S1202.
[0096] Step S1207: Randomly select a specified number of samples from the experience pool to train the DQN network.
[0097] The specified number of samples selected is the pre-set mini-batch size mentioned above.
[0098] Specifically, after the capacity of the experience pool reaches a certain scale, the DQN network is trained by gradient descent based on a specified number of samples, so that it gradually converges to an optimal action selection strategy.
[0099] Step S1208: Determine whether this round of decision making is in a terminated state.
[0100] The final state refers to whether the v value reaches the maximum.
[0101] If it is in the termination state, the training of this round ends, otherwise v+1 is performed again, and steps S1202-S1208 are executed.
[0102] Step S130: Determine whether the number of update rounds meets the aggregation frequency during the DQN network training process.
[0103] The aggregation frequency is a preset fixed value.
[0104] The v rounds of decision making in step S120 can be regarded as the number of update rounds, that is, each round of decision making is an update of g(t v ) was updated.
[0105] When the v value reaches the preset aggregation frequency, that is, the number of update rounds meets the aggregation frequency, step S140 is executed. Otherwise, the process returns to step S120 until the v value reaches the preset aggregation frequency.
[0106] Step S140: update global parameters.
[0107] After each mobile edge node has been updated for a certain number of rounds, it enters a global aggregation. Global aggregation is that each mobile edge node uploads the current DQN network parameters to the parameter server, and the parameter server performs global parameter updates.
[0108] Wherein step S140 specifically includes the following sub-steps:
[0109] Step S1401: input the network parameters of each mobile edge node at this time.
[0110] Specifically, each mobile edge node uploads the current DQN network parameters deployed in each mobile edge node to the parameter server.
[0111] Step S1402: Aggregate network parameters and update global parameters.
[0112] The global aggregation process is specifically expressed as follows:
[0113]
[0114] in, represents the network parameters of mobile edge node n in round v, represents the global parameters at this time, and N represents N mobile edge nodes.
[0115] Step S1403: output the updated global parameters to each edge node.
[0116] The updated global parameters are used as updated network parameters to continue local DQN training.
[0117] In this embodiment, the distributed characteristics of mobile edge device deployment are utilized, and federated learning is introduced to aggregate the current network parameters of each mobile edge node at a certain frequency. The experience obtained based on the heterogeneous local information of each participant is aggregated to form a global network with better performance, thereby promoting the training process of each federation participant.
[0118] Step S150: In response to completing the global parameter update, determining whether the number of training rounds during the DQN network training process reaches a specified number.
[0119] Specifically, steps S1201-S1208 are the execution process of a training round. When the v value reaches a preset aggregation frequency, a global parameter update is performed. At this time, it is determined whether the number of training rounds reaches the set maximum value.
[0120] If the set maximum value is not reached, the number of training rounds is increased by 1, and the next round of training is continued, that is, steps S120-S140 are executed again, and the updated global parameters are used as updated network parameters to continue local DQN training until the number of training rounds reaches the maximum value.
[0121] If the number of training rounds reaches the set maximum value, the training is completed and step S160 is executed:
[0122] Step S160: Output the result.
[0123] The output result is the optimal action selection strategy obtained by training at this time and the calculation task completion delay.
[0124] Among them, by continuously iterating steps 120-S150 until the set maximum number of training rounds is reached, the minimum computing task completion delay under federated learning of multiple mobile edge nodes can be obtained.
[0125] Embodiment 2
[0126] like Figure 2 As shown, the present application provides a mobile edge node computing task scheduling system based on federated learning, which specifically includes: an initialization unit 210, a training unit 220, a first judgment unit 230, a global update unit 240, a second judgment unit 250, and an output unit 260.
[0127] The initialization unit 210 is used to initialize information parameters.
[0128] The training unit 220 is connected to the initialization unit 210 and is used to perform local training on the DQN network deployed on each mobile edge node.
[0129] The training unit 220 contains an agent that can select actions with an ε-greedy strategy based on each round of state information and current network parameters to obtain immediate rewards for this action, while the computing task queue in the environment is updated to the next state. The result of this interaction with the environment will be stored in the experience pool. When the capacity of the experience pool reaches a certain scale, the DQN network will be trained by gradient descent to gradually converge to an optimal action selection strategy.
[0130] The first judgment unit 230 is connected to the training unit 220 and is used to judge whether the number of update rounds meets the aggregation frequency during the DQN training process.
[0131] The global updating unit 240 is connected to the first determining unit 230 and is configured to update the global parameters if the number of update rounds meets the aggregation frequency.
[0132] The global update unit 240 acts as a parameter server to perform global parameter updates.
[0133] The second judgment unit 250 is connected to the global update unit 240 and is used to judge whether the number of training rounds reaches a specified number during the DQN training process.
[0134] The output unit 260 is connected to the second judgment unit 240 and is used to output a result if the number of training rounds reaches a set specified number of times.
[0135] This application has the following beneficial effects:
[0136] (4) This application provides a computing task scheduling method in an MEC system from the perspective of the execution order of computing tasks, which shortens the completion time of computing tasks by utilizing the collaboration of multiple mobile edge nodes in the MEC system.
[0137] (5) The present application can flexibly adapt to dynamically changing computing task queue information, sensor location and other environmental conditions, and can also adjust the balance coefficient λ in the immediate reward function according to different needs, and change the weights of waiting delay and execution delay to cope with different application scenarios.
[0138] (6) This application uses federated learning to improve system performance through global aggregation at a certain frequency. Compared with independent DQN training of each mobile edge node, the action selection strategy under global parameters brings lower computing task completion latency to each mobile edge node participating in the federation.
[0139] Although the present application is described with reference to examples, this is for illustrative purposes only and is not intended to limit the present application, and changes, additions and / or deletions to the embodiments may be made without departing from the scope of the present application.
[0140] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for scheduling computing tasks of mobile edge nodes based on federated learning, characterized in that: The specific steps include: Initialize information parameters; In response to completing the initialization, locally training the DQN network deployed on each mobile edge node; Determine whether the number of update rounds meets the aggregation frequency during DQN network training; If the number of update rounds meets the aggregation frequency, global parameters are aggregated and updated; In response to completing the global parameter update, determining whether the number of training rounds during the DQN network training has reached a specified number; If the number of training rounds reaches the specified number, output the results; The information parameter initialization process also includes setting the parameters required for each link system, including sensor transmission power, communication bandwidth, mobile edge node computing power, wireless channel related parameters, experience pool capacity in the DQN network, miniBatch size, learning rate, discount factor, aggregation frequency, and the number of computing tasks executed per round; Local training of the DQN network deployed on each mobile edge node specifically includes the following sub-steps: Initialize sensors within the coverage area of the mobile edge node; In response to completing the initialization of the sensor, updating the environmental status information; In response to updating the environment state information, selecting an action for the current state; Execute the selected actions and gain experience generated by interacting with the environment; The experience generated by the interaction with the environment is stored as samples in the experience pool; Determine whether the number of samples in the experience pool reaches the set value; If the set value is reached, a specified number of samples are randomly selected from the experience pool to train the DQN network; In response to completing the DQN network training, determining whether this round of decision making is a terminal state; If it is in the termination state, the training round ends.
2. The method for scheduling computing tasks of mobile edge nodes based on federated learning according to claim 1, characterized in that: In response to the system required parameters being set, the mobile edge nodes in the environment, local and global network parameters, and experience pools are initialized.
3. The method for scheduling computing tasks of mobile edge nodes based on federated learning according to claim 1, characterized in that: Initializing the sensors within the coverage of the mobile edge node includes obtaining the computing tasks generated by the sensors, where the computing tasks g m (t v ) is expressed as: where u m represents the generation time of computing task m, b m represents the communication data volume of computing task m, c m Represents the computational amount of computing task m.
4. The method for scheduling computing tasks of mobile edge nodes based on federated learning as claimed in claim 3, characterized in that: In obtaining the computing task g generated by the sensor m (t v ) and then t v The computing task queue managed by the mobile edge node is modeled as a 3×M matrix. The matrix g(t v ) is specifically expressed as: where g 1 (t v ), …, g m (t v ), …, g M (t v ) represents the M computing tasks generated by the sensor, u 1 …u m …u M represents the completion time of M computing tasks, b 1 …b m …b M represents the communication data volume of M computing tasks, c 1 …c m …c M Represents the computational amount of M computing tasks.
5. The method for scheduling computing tasks of mobile edge nodes based on federated learning according to claim 4, characterized in that: The total delay from the generation of a computing task to its completion is composed of execution delay and waiting delay; The execution delay is m (t v ) is specifically expressed as: cm m (t v ) represents the communication time required to execute task m, co m (t v ) represents the computing time required to execute task m, B is the communication bandwidth, and p m is the sensor transmission power, h m (t v ) is the channel gain obtained based on the current position relationship between the sensor and the mobile edge node and the channel state, r m (t v ) represents the current data transmission rate, f c is the computing power of the mobile edge node, b m Indicates the communication data volume (bits) of the computing task, c m represents the computational effort of the task, σ 2 Represents the channel noise power.
6. The method for scheduling computing tasks of mobile edge nodes based on federated learning according to claim 5, characterized in that: Waiting delay refers to the time that the computing task stays in the queue from the time it is generated to the time it starts to be executed; for the computing task g processed in round v, m (t v )= m ,b m ,c m >, its waiting delay dw m (t v ) is specifically expressed as: dw m (t v )=t v -u m where u m Indicates the generation time of the computing task, t v Indicates time.
7. The method for scheduling computing tasks of mobile edge nodes based on federated learning according to claim 6, characterized in that: Completion delay d m (t v ) is specifically expressed as: Among them m (t v ) represents the execution delay of the computing task, dw m (t v ) represents the waiting delay of the computing task, b m represents the communication data volume of the computing task, c m represents the computational effort of the computational task, f c is the computing power of the mobile edge node, u m Indicates the generation time of the computing task, t v Indicates the time, r m (t v ) indicates the current data transmission rate.
8. A mobile edge node computing task scheduling system based on federated learning, characterized in that: Specifically include: An initialization unit, a training unit, a first judgment unit, a global update unit, a second judgment unit, and an output unit; An initialization unit, used for initializing information parameters; A training unit, used to perform local training on the DQN network deployed on each mobile edge node; The first judgment unit is used to judge whether the number of update rounds meets the aggregation frequency during the DQN training process; A global update unit, used to aggregate and update global parameters if the number of update rounds meets the aggregation frequency; The second judgment unit is used to judge whether the number of training rounds reaches a specified number during the DQN training process; The output unit is used to output the result if the number of training rounds reaches the specified number; During the process of initializing information parameters, the initialization unit also includes setting the parameters required by each link system, including sensor transmission power, communication bandwidth, mobile edge node computing power, wireless channel related parameters, experience pool capacity in the DQN network, miniBatch size, learning rate, discount factor, aggregation frequency, and the number of computing tasks executed per round; The training unit performs local training on the DQN network deployed on each mobile edge node, which specifically includes the following sub-steps: Initialize sensors within the coverage area of the mobile edge node; In response to completing the initialization of the sensor, updating the environmental status information; In response to updating the environment state information, selecting an action for the current state; Execute the selected actions and gain experience generated by interacting with the environment; The experience generated by the interaction with the environment is stored as samples in the experience pool; Determine whether the number of samples in the experience pool reaches the set value; If the set value is reached, a specified number of samples are randomly selected from the experience pool to train the DQN network; In response to completing the DQN network training, determining whether this round of decision making is a terminal state; If it is in the termination state, the training round ends.
Citation Information
Patent Citations
User data privacy protection method based on mobile edge computing
CN111339554A
Distributed federated learning cooperative computing method and system
CN113467952A
Beam management using adaptive learning
US10666342B1
High-latency network environment robust federated learning training method and apparatus, computer device, and storage medium
WO2021155671A1
Wireless service traffic prediction method based on weighted federated learning
WO2021169577A1
