Multi-edge cooperative dag dependent task scheduling method and system based on deep reinforcement learning

By adopting a multi-edge collaborative DAG-dependent task scheduling method based on deep reinforcement learning, the problems of task dependency and resource heterogeneity in multi-edge computing environments are solved, achieving efficient task scheduling and load balancing, reducing task completion time, and improving system performance and stability.

CN123137888APending Publication Date: 2026-11-20BEIJING NORMAL UNIV AT ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611181642.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing task scheduling methods in multi-edge computing environments struggle to handle task dependencies, resource heterogeneity, and dynamic load changes, resulting in low scheduling efficiency, insufficient resource utilization, and high task completion latency.

Method used

We adopt a multi-edge collaborative DAG-dependent task scheduling method based on deep reinforcement learning. By representing tasks as a directed acyclic graph structure, we dynamically evaluate the value of edge servers, select a set of collaborative servers, perform task sharding and allocation, establish a completion time balance constraint, and use online and target network structures for model training to improve scheduling stability.

Benefits of technology

It improved scheduling rationality, enhanced resource utilization, reduced task waiting time, achieved load balancing, significantly reduced overall task completion time, and improved system stability and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137888A_ABST
    Figure CN123137888A_ABST
Patent Text Reader

Abstract

The application provides a kind of multi-edge collaborative DAG dependent task scheduling method and system based on deep reinforcement learning, including the application task arrived is expressed as directed acyclic graph structure;For each ready subtask, obtain system state and input deep reinforcement learning model, evaluate the action value of each edge server, select the k edge servers with the highest value to form a collaborative set;Subtask is fragmented and the optimal task allocation ratio of each server is calculated based on the completion time balancing principle;Execute task and calculate reward;State transition samples are stored in experience replay buffer;Update online network parameters by randomly sampling small batch samples, and periodically copy parameters to target network.The application can realize online collaborative scheduling of dependent perception tasks, reduce task completion time, improve resource utilization and task success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mobile edge computing and intelligent scheduling technology, specifically to a multi-edge collaborative DAG dependent task scheduling method and system based on deep reinforcement learning, which is applicable to data-intensive and latency-sensitive application scenarios, such as edge intelligent computing systems in smart transportation, industrial internet, real-time video analytics, and digital infrastructure. Background Technology

[0002] With the rapid development of mobile internet, the Internet of Things (IoT), and real-time data services, a large number of data-intensive and latency-sensitive services are being deployed in digital infrastructure, such as real-time sensing, online analytics, and interactive application systems. These applications typically feature large data volumes, high computational demands, and stringent latency requirements. To reduce communication overhead and processing latency in cloud computing centers, mobile edge computing (MEC) is gradually becoming an important technology supporting real-time services. By executing computing tasks on edge servers closer to the user, task transmission time can be significantly reduced, and system response speed can be improved.

[0003] However, in practical deployments, individual edge servers often face bottlenecks due to limited computing, storage, and bandwidth resources, and significant resource heterogeneity and load imbalance are common among different edge nodes. When facing high concurrency and dynamic workloads, relying solely on a single edge node for computation often fails to consistently meet stringent latency requirements. Furthermore, in real-world applications, many complex applications are not independent tasks but consist of multiple interdependent subtasks. These tasks can typically be represented as a Directed Acyclic Graph (DAG) structure, where nodes represent subtasks and edges represent dependencies between tasks. Subtasks can only execute after their predecessor tasks are completed; therefore, task scheduling must simultaneously consider dependency constraints, communication latency, and computing resource allocation.

[0004] Existing collaborative mobile edge computing scheduling has been extensively studied, but existing work still has significant limitations when dealing with dependency-aware tasks. Many methods simplify the problem by assuming that tasks are independent, system states are predictable, or collaboration is limited in scope (e.g., restricted to a single edge server or a small subset of fixed nodes). While these assumptions reduce computational complexity, they fail to capture the combinatorial explosion and dynamic load fluctuations inherent in large-scale, dependency-aware multi-edge collaboration, leading to performance degradation under real-world workloads and undermining the scalability required for emerging digital services.

[0005] Specifically, existing technologies have at least the following shortcomings: (1) Most existing scheduling methods treat tasks as independent units and ignore the dependencies between tasks, resulting in scheduling results being out of touch with actual application scenarios and failing to guarantee the correctness of task execution under dependency constraints.

[0006] (2) Existing scheduling methods based on fixed rules (such as polling, shortest queue priority, etc.) cannot adaptively adjust the scheduling strategy according to the dynamic changes in the system state, resulting in low scheduling efficiency in environments with heterogeneous resources and fluctuating loads.

[0007] (3) Most existing methods unload the entire task to a single edge server for execution, failing to fully utilize the collaborative computing capabilities of multiple edge servers, resulting in insufficient resource utilization and high task completion latency.

[0008] (4) Existing deep reinforcement learning methods applied to task scheduling have insufficient stability in the training process, and are prone to problems such as estimation bias and convergence difficulties. Summary of the Invention

[0009] To address the challenges of existing task scheduling methods in multi-edge computing environments, which struggle to simultaneously handle task dependencies, resource heterogeneity, and dynamic load changes, this invention provides a multi-edge collaborative DAG-dependent task scheduling method and system based on deep reinforcement learning. This method overcomes the shortcomings of traditional methods, such as low scheduling efficiency, insufficient resource utilization, and high task completion latency, thereby reducing the overall task completion time and improving system service performance and stability.

[0010] The present invention achieves the above objectives through the following technical solutions: A multi-edge collaborative DAG dependency task scheduling method based on deep reinforcement learning includes: Step S1: When a new application task arrives at the multi-edge computing system, the application task is represented as a directed acyclic graph structure. Nodes in the directed acyclic graph represent subtasks, and edges represent dependencies between subtasks. For each subtask, it is determined as a ready subtask only if all its predecessor tasks have been completed. Step S2: For each ready subtask, obtain the input data scale and computational requirements of the subtask, and obtain the current queue load information of each edge server. Combine the obtained information into the current system state. Step S3: Input the current system state into the pre-trained deep reinforcement learning model, and evaluate the value of each edge server in performing the current ready sub-task through the deep reinforcement learning model to obtain the value evaluation result of each edge server. Step S4: Sort all edge servers in descending order of value assessment results, and select the k edge servers with the highest value to form a collaborative edge server set, where k is a preset positive integer; Step S5: Based on the current computing power, queue waiting status and task transmission time of each edge server in the collaborative edge server set, divide the currently ready subtask into multiple task fragments, and determine the allocation ratio between each task fragment and each edge server, so that the time for each edge server in the collaborative edge server set to complete its assigned task fragment tends to be consistent. Step S6: Distribute each task shard to the corresponding edge server for execution according to the allocation ratio, and obtain the task execution results; Step S7: Calculate the reward value based on the task execution result, record the current system state, the selected set of collaborative edge servers, the reward value, and the system state at the next moment, and store them as state transition samples in the experience replay buffer; Step S8: Every preset update cycle, randomly sample a small batch of state transition samples from the experience replay buffer to train and update the network parameters of the deep reinforcement learning model. Step S9: Repeat steps S1 to S8 to achieve online dynamic scheduling of DAG-dependent tasks in a multi-edge computing environment.

[0011] According to the present invention, a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning is provided. In step S2, after determining that the current subtask is a ready subtask, the task description information of the subtask is parsed, and the input data scale parameter d of the subtask is extracted from the task description information. v And calculate the required parameter c v Among them, the input data size parameter d v This indicates the amount of input data required to execute this subtask; calculate the requirement parameter c. v This indicates the amount of computing resources required to execute the subtask; A queue status query request is sent to each edge server in the multi-edge computing system. After receiving the query request, each edge server returns its current queue load information. The current queue load information includes the number of tasks waiting to be executed in the current task queue of each edge server and the total computing demand of each waiting task. The obtained input data size parameter d v And calculate the required parameter c v This is integrated with the current queue load information of each edge server to generate the current system state vector S. v,t , as input to the deep reinforcement learning model.

[0012] According to the present invention, a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning is provided. In step S3, the deep reinforcement learning model is a deep Q-network model, which includes an online network and a target network. The online network is used to output the action value evaluation results of each edge server executing the currently ready sub-task according to the current system state, and select a set of collaborative edge servers based on the action value evaluation results. The target network is used to calculate the target action value according to the system state at the next time step during the training process to generate training labels. During model training, state transition samples are sampled from the experience replay buffer. A loss function is constructed based on the error between the target action value output by the target network and the predicted action value output by the online network. The network parameters of the online network are updated by minimizing the loss function. When the number of training steps reaches the preset update period, the network parameters of the online network are copied to the target network.

[0013] According to the present invention, a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning is provided, wherein step S4 employs an ε-greedy strategy to select a set of collaborative edge servers. The k edge servers with the highest value are selected with a probability of 1-ε to form a collaborative edge server set; k edge servers are randomly selected with probability ε to form a collaborative edge server set; where ε is the preset exploration probability and ε∈(0,1).

[0014] According to the present invention, a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning is provided. Step S5, which determines the allocation ratio between each task shard and each edge server, specifically includes: Let A be the set of collaborative edge servers. v,t = {s1, s2, ..., s k For each edge server in the set Obtain the following parameters of the edge server: computing power parameters This indicates the amount of computation that the edge server can process per unit of time; the current queue waiting time parameter. This indicates the time required for tasks in the current task queue of the edge server to complete; and the time required for the current subtask v to be transferred from the source edge server to this edge server. Data transmission time parameters :

[0015] in, This indicates the size of the input data for the current subtask v. Indicates source edge server With edge servers Data transfer rate between them; Suppose the current subtask v is on each edge server The task fragmentation ratio is ,in ∈ [0,1]; Based on the obtained parameters, establish each edge server respectively. The expression for the total completion time required to complete the task segment it is responsible for. :

[0016] in, This represents the total computational requirement of the current subtask v.

[0017] The present invention provides a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning, aiming to minimize the absolute value of the time difference between each edge server in the collaborative edge server set in completing its respective task slice, and establishes a set of completion time balance constraint equations:

[0018] Solve the system of completion time balancing constraint equations to obtain the optimal task partitioning ratio {x1, x2, ..., xi} that minimizes the difference between each T_i. k} represents the task allocation ratio of the current subtask across the various collaborative edge servers.

[0019] According to the present invention, a multi-edge collaborative DAG dependency task scheduling method based on deep reinforcement learning is provided. Step S7, which calculates the reward value based on the task execution result, specifically includes: S71: Determine whether the current subtask v has been successfully completed. If it has been successfully completed, proceed to step S72; otherwise, proceed to step S73. S72: When the task is successfully completed, the reward value is calculated according to the following formula:

[0020] in, Indicates the actual completion time of the current subtask. This indicates the preset maximum allowed completion time threshold for the task. Represents the first in the set of collaborative edge servers The time it takes for each edge server to complete its task sharding. This represents the average completion time of each collaborative edge server, where k is the total number of collaborative edge servers, α and β are the positive time efficiency weighting coefficient and load balancing weighting coefficient, respectively, and α + β = 1, α>0, β>0; Reward value With task completion time There is a negative correlation, meaning the shorter the task completion time, the higher the reward value; S73: When a mission fails, the reward value is calculated according to the following formula. :

[0021] in, A positive failure penalty coefficient, This indicates the time elapsed when the task failed. Indicates the preset minimum penalty baseline time; reward value The value is negative, and the longer the time elapsed before the task fails, the greater the absolute value of the reward.

[0022] According to the multi-edge collaborative DAG dependency task scheduling method based on deep reinforcement learning provided by the present invention, step S8 involves training and updating the network parameters of the deep reinforcement learning model, specifically including: Randomly sample small batches of state transition samples from the experience replay buffer; For each sampled state transition sample, the target value is calculated using the target network. The target value is determined based on the reward signal in the current state transition sample and the target network output value of the next state. Calculate the loss function between the target value of the target network and the predicted value of the online network corresponding to the current state, and update the network parameters of the online network by minimizing the loss function and using the backpropagation algorithm. When the training steps reach the preset update cycle, the network parameters of the online network are copied to the target network to update the network parameters of the target network.

[0023] According to the present invention, a multi-edge collaborative DAG-dependent task scheduling method based on deep reinforcement learning is provided. The multi-edge computing system includes at least two edge servers, each edge server having heterogeneous computing capabilities, storage resources, and network bandwidth; wherein: Heterogeneous computing capabilities manifest in the differences between different edge servers in terms of processor clock speed, number of cores, and total available computing resources, resulting in different amounts of computing tasks that different edge servers can process per unit of time. Heterogeneous storage resources manifest themselves in the differences in available storage capacity and storage read / write speed between different edge servers, resulting in different scales of data that different edge servers can cache and process. Heterogeneous network bandwidth manifests as differences in data transmission rates between different edge servers and other servers, resulting in varying data communication latency between different edge servers.

[0024] A multi-edge collaborative DAG dependency task scheduling system based on deep reinforcement learning includes: The task modeling module is used to represent application tasks as a directed acyclic graph structure when new application tasks arrive at the multi-edge computing system. Nodes in the directed acyclic graph represent subtasks, and edges represent the dependencies between subtasks. It is also used to determine whether all the predecessor tasks of each subtask have been completed in order to determine whether a subtask is a ready subtask. The status acquisition module is used to acquire the input data scale and computing requirements of each ready subtask, and to acquire the current queue load information of each edge server, and combine the above information into the current system status. The value assessment module has a built-in pre-trained deep reinforcement learning model, which is used to assess the value of each edge server in performing the current ready subtask based on the current system state, and obtain the value assessment result for each edge server. The collaborative server selection module is used to select the k edge servers with the highest value in descending order of value assessment results to form a collaborative edge server set, where k is a preset positive integer; The task sharding allocation module is used to divide the currently ready subtasks into multiple task shards based on the current computing power, queue waiting status and task transmission time of each edge server in the collaborative edge server set, and to determine the allocation ratio between each task shard and each edge server, so that the time for each edge server in the collaborative edge server set to complete its assigned task shard tends to be consistent. The task execution module is used to allocate each task to the corresponding edge server for execution according to the allocation ratio, and to obtain the task execution results; The experience storage module is used to calculate the reward value based on the task execution result, record the current system state, the selected set of collaborative edge servers, the reward value and the system state at the next moment, and store them as state transition samples in the experience replay buffer. The model update module is used to randomly sample a small batch of state transition samples from the experience replay buffer every preset update cycle to train and update the network parameters of the deep reinforcement learning model.

[0025] Therefore, compared with existing technologies, the multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning proposed in this invention has the following advantages: 1. Compared with existing edge computing task scheduling methods, this invention introduces DAG task modeling, which can accurately depict the dependencies between tasks, represent application tasks as a directed acyclic graph structure, and simultaneously consider factors such as task dependencies, data transmission time, edge server computing power and queue load during the scheduling process. This makes the scheduling results more consistent with the task execution process in a real multi-edge computing environment. The current subtask is only scheduled and executed after all predecessor tasks are completed, which improves the rationality of scheduling.

[0026] 2. Compared with traditional scheduling methods based on fixed rules or single-server offloading, this invention adopts a scheduling strategy based on deep reinforcement learning. By learning and evaluating the system state, it dynamically selects a set of collaborative edge servers and makes online decisions based on real-time resource status, thereby improving system resource utilization and reducing task waiting time. This invention evaluates all edge servers through an online DQN network and selects the k servers with the highest value to form a collaborative set, significantly improving resource utilization and reducing task waiting time.

[0027] 3. After determining the set of collaborative servers, this invention divides the subtask into multiple shards and distributes them to multiple edge servers for parallel execution through a task sharding and completion time balancing strategy. By establishing a constraint that the completion time of each server is as consistent as possible, the optimal allocation ratio is solved to achieve load balancing among multiple edge nodes, effectively reducing critical path latency and lowering the overall task completion time.

[0028] 4. This invention adopts a dual-network structure with separate online and target networks. By periodically copying the parameters of the online network to the target network, feedback loops and estimation biases during training are effectively prevented, ensuring the stability of deep reinforcement learning model training.

[0029] 5. This invention has good adaptability and scalability in dynamic multi-edge environments, and can significantly improve the success rate of task execution and system stability.

[0030] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Attached Figure Description

[0031] Figure 1 This is a flowchart of an embodiment of a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning according to the present invention.

[0032] Figure 2 This is a schematic diagram of an embodiment of a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning according to the present invention.

[0033] Figure 3 This is a schematic diagram showing the average task completion time in an embodiment of a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning according to the present invention.

[0034] Figure 4 This is a schematic diagram showing the task success rate in an embodiment of a multi-edge collaborative DAG dependent task scheduling method based on deep reinforcement learning according to the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0036] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0037] See Figures 1 to 4 This embodiment provides a multi-edge collaborative DAG dependency task scheduling method based on deep reinforcement learning, including: Step S1: When a new application task arrives at the multi-edge computing system, the application task is represented as a directed acyclic graph structure. Nodes in the directed acyclic graph represent subtasks, and edges represent dependencies between subtasks. For each subtask, it is determined as a ready subtask only if all its predecessor tasks have been completed. Step S2: For each ready subtask, obtain the input data scale and computational requirements of the subtask, and obtain the current queue load information of each edge server. Combine the obtained information into the current system state. Step S3: Input the current system state into the pre-trained deep reinforcement learning model, and evaluate the value of each edge server in performing the current ready sub-task through the deep reinforcement learning model to obtain the value evaluation result of each edge server. Step S4: Sort all edge servers in descending order of value assessment results, and select the k edge servers with the highest value to form a collaborative edge server set, where k is a preset positive integer; Step S5: Based on the current computing power, queue waiting status and task transmission time of each edge server in the collaborative edge server set, divide the currently ready subtask into multiple task fragments, and determine the allocation ratio between each task fragment and each edge server, so that the time for each edge server in the collaborative edge server set to complete its assigned task fragment tends to be consistent. Step S6: Distribute each task shard to the corresponding edge server for execution according to the allocation ratio, and obtain the task execution results; Step S7: Calculate the reward value based on the task execution result, record the current system state, the selected set of collaborative edge servers, the reward value, and the system state at the next moment, and store them as state transition samples in the experience replay buffer; Step S8: Every preset update cycle, randomly sample a small batch of state transition samples from the experience replay buffer to train and update the network parameters of the deep reinforcement learning model. S9: Repeat steps S1 to S8 to achieve online dynamic scheduling of DAG-dependent tasks in a multi-edge computing environment.

[0038] like Figure 2 As shown, initially, dependent subtasks are distributed to local servers and idle servers for parallel execution. As other servers release their load and dynamically join the collaboration, the system reorders ready subtasks in real time.

[0039] In step S2, after determining that the current subtask is a ready subtask, the task description information of the subtask is parsed, and the input data scale parameter d of the subtask is extracted from the task description information. v And calculate the required parameter c v Among them, the input data size parameter d v This indicates the amount of input data required to execute this subtask; calculate the requirement parameter c. v This indicates the amount of computing resources required to execute the subtask; A queue status query request is sent to each edge server in the multi-edge computing system. After receiving the query request, each edge server returns its current queue load information. The current queue load information includes the number of tasks waiting to be executed in the current task queue of each edge server and the total computing demand of each waiting task. The obtained input data size parameter d v And calculate the required parameter c v This is integrated with the current queue load information of each edge server to generate the current system state vector S. v,t , as input to the deep reinforcement learning model.

[0040] In step S3, the deep reinforcement learning model is a deep Q-network model, which includes an online network and a target network. The online network is used to output the action value evaluation results of each edge server executing the currently ready sub-task according to the current system state, and select the set of collaborative edge servers based on the action value evaluation results. The target network is used to calculate the target action value according to the system state at the next time step during the training process to generate training labels. During model training, state transition samples are sampled from the experience replay buffer. A loss function is constructed based on the error between the target action value output by the target network and the predicted action value output by the online network. The network parameters of the online network are updated by minimizing the loss function. When the number of training steps reaches the preset update period, the network parameters of the online network are copied to the target network.

[0041] In step S4, an ε-greedy strategy is used to select the set of collaborative edge servers: The k edge servers with the highest value are selected with a probability of 1-ε to form a collaborative edge server set; k edge servers are randomly selected with probability ε to form a collaborative edge server set; where ε is the preset exploration probability and ε∈(0,1); The exploration probability ε gradually decreases with the increase of training steps according to a preset decay strategy, which allows for the exploration of different combinations of collaborative servers with high randomness in the early stage of training, and the use of learned decision-making experience with high determinism in the later stage of training.

[0042] Step S5 determines the allocation ratio between each task shard and each edge server, specifically including: Let A be the set of collaborative edge servers. v,t = {s1, s2, ..., s k For each edge server s in this set i Obtain the following parameters of the edge server: computing power parameters This indicates the amount of computation that the edge server can process per unit of time; the current queue waiting time parameter. This indicates the time required for tasks in the current task queue of the edge server to complete; and the time required for the current subtask v to be transferred from the source edge server to this edge server. Data transmission time parameters :

[0043] in, This indicates the size of the input data for the current subtask v. Indicates source edge server With edge servers Data transfer rate between them; Suppose the current subtask v is on each edge server The task fragmentation ratio is ,in ∈ [0,1]; Based on the obtained parameters, establish each edge server respectively. The expression for the total completion time required to complete the task segment it is responsible for. :

[0044] in, This represents the total computational requirement of the current subtask v.

[0045] To minimize the absolute value of the time difference between each edge server in the collaborative edge server set in completing its respective task shard, a set of completion time balance constraint equations is established:

[0046] Solve the system of completion time balancing constraint equations to obtain the optimal task partitioning ratio {x1, x2, ..., xi} that minimizes the difference between each T_i. k} represents the task allocation ratio of the current subtask across the various collaborative edge servers.

[0047] like Figure 3 As shown, DRL-TCES is the multi-edge collaborative task scheduling algorithm proposed in this embodiment, DRL-LAO is the task offloading algorithm based on reinforcement learning, LQF is the shortest queue first scheduling algorithm, and RAND is the random scheduling algorithm. The four sub-graphs respectively show the comparison results of the average task completion time of each algorithm under different conditions of the number of edge servers, task data size, task arrival probability, and server computing power.

[0048] like Figure 4 As shown, DRL-TCES is the multi-edge collaborative task scheduling algorithm proposed in this embodiment, DRL-LAO is the task offloading algorithm based on reinforcement learning, LQF is the shortest queue first scheduling algorithm, and RAND is the random scheduling algorithm. The four sub-graphs respectively show the comparison results of the task success rate of each algorithm under different conditions of the number of edge servers, task data size, task arrival probability, and server computing power.

[0049] Step S7 calculates the reward value based on the task execution result, specifically including: S71: Determine whether the current subtask v has been successfully completed. If it has been successfully completed, proceed to step S72; otherwise, proceed to step S73. S72: When the task is successfully completed, the reward value is calculated according to the following formula:

[0050] in, Indicates the actual completion time of the current subtask. This indicates the preset maximum allowed completion time threshold for the task. Represents the first in the set of collaborative edge servers The time it takes for each edge server to complete its task sharding. This represents the average completion time of each collaborative edge server, where k is the total number of collaborative edge servers, α and β are the positive time efficiency weighting coefficient and load balancing weighting coefficient, respectively, and α + β = 1, α>0, β>0; Reward value With task completion time There is a negative correlation, meaning the shorter the task completion time, the higher the reward value; S73: When a mission fails, the reward value is calculated according to the following formula. :

[0051] in, A positive failure penalty coefficient, This indicates the time elapsed when the task failed. Indicates the preset minimum penalty baseline time; reward value The value is negative, and the longer the time elapsed before the task fails, the greater the absolute value of the reward.

[0052] Step S8 involves training and updating the network parameters of the deep reinforcement learning model, specifically including: Randomly sample small batches of state transition samples from the experience replay buffer; For each sampled state transition sample, the target value is calculated using the target network. The target value is determined based on the reward signal in the current state transition sample and the target network output value of the next state. Calculate the loss function between the target value of the target network and the predicted value of the online network corresponding to the current state, and update the network parameters of the online network by minimizing the loss function and using the backpropagation algorithm. When the training steps reach the preset update cycle, the network parameters of the online network are copied to the target network to update the network parameters of the target network.

[0053] A multi-edge computing system includes at least two edge servers, each with heterogeneous computing capabilities, storage resources, and network bandwidth; wherein: Heterogeneous computing capabilities manifest in the differences between different edge servers in terms of processor clock speed, number of cores, and total available computing resources, resulting in different amounts of computing tasks that different edge servers can process per unit of time. Heterogeneous storage resources manifest themselves in the differences in available storage capacity and storage read / write speed between different edge servers, resulting in different scales of data that different edge servers can cache and process. Heterogeneous network bandwidth manifests as differences in data transmission rates between different edge servers and other servers, resulting in varying data communication latency between different edge servers. During training and scheduling, the deep reinforcement learning model generates differentiated action value assessment results for different edge servers based on the differences in computing power, storage resources and network bandwidth of each edge server. Based on the differentiated action value assessment results, it selects a set of collaborative edge servers and determines the task sharding allocation ratio to adapt to the heterogeneity of each edge server in the multi-edge computing system.

[0054] The application tasks are either data-intensive or latency-sensitive, including any one of the following: smart transportation application tasks, industrial internet application tasks, and real-time video analytics application tasks.

[0055] In practical applications, this invention first represents the application tasks arriving at the system as a Directed Acyclic Graph (DAG) structure. A subtask can only begin execution after all its predecessor tasks are completed. System state information is constructed based on the data scale, computational requirements, and current queue load of each edge server for each subtask. Subsequently, a deep reinforcement learning model is used to evaluate the current system state, calculating the value of each edge server executing the subtask in the current state. The top k edge servers are selected based on their value to form a collaborative edge server set. After determining the collaborative edge server set, the subtask is divided into multiple task fragments and assigned to selected servers for execution. Simultaneously, a task allocation ratio constraint is established through a completion time balancing principle to ensure that the completion time of each server's task fragment is as consistent as possible, thereby reducing the overall task completion time. During task execution, the system continuously updates the edge server queue state and re-selects collaborative nodes and re-allocates tasks based on the new system state, achieving online dynamic scheduling of dependency-aware tasks. This effectively reduces overall task completion time and service latency while improving system resource utilization.

[0056] The algorithm's inputs are the set of DAG tasks arriving at the system, the number of collaborative edge servers k, the target network update period η, and the discount factor γ. First, the multi-edge computing system environment is initialized, including an online deep reinforcement learning network, the target network, and an experience replay buffer. A task queue is established for each edge server, and the training steps are initialized to 0. During system operation, task arrival events are processed according to discrete time slices. When a new application task arrives, it is represented as a directed acyclic graph structure, where nodes represent subtasks and edges represent dependencies between subtasks. For each subtask that meets the execution conditions, the system first obtains its input data size, computational requirements, and the current queue load information of each edge server, combining this information into the current system state. This state is then input into the deep reinforcement learning model to evaluate the value of all edge servers executing the subtask, sorting them according to value, and selecting the k edge servers with the highest value to form a collaborative server set.

[0057] After determining the set of collaborating servers, the subtasks are sharded, and the allocation ratio of tasks across servers is calculated based on their current computing power, queue waiting status, and task transmission time. This ensures that the time taken for each server to complete its respective task shard is as consistent as possible, thus achieving optimal task load distribution. The system then executes the tasks according to this allocation scheme, observes whether the tasks are successfully completed, and calculates the reward value based on the task execution. After the task is completed, the system records the current state, the selected set of collaborating servers, the reward obtained, and the system state at the next moment, storing this information in an experience replay buffer for subsequent model training.

[0058] Within each update cycle, the system randomly samples a certain amount of historical data from the experience replay buffer to update the reinforcement learning model parameters. The online network is trained by comparing the error between the predicted and target values. When the training steps reach the preset update cycle, the online network parameters are copied to the target network to ensure the stability of the training process. By continuously repeating the above scheduling and training process, the system can dynamically select collaborating nodes and adjust task allocation strategies based on real-time task requirements and edge server resource status. This enables online collaborative scheduling in multi-edge environments and ultimately outputs the optimal load distribution results for each subtask on different edge servers.

[0059] An embodiment of a multi-edge collaborative DAG-dependent task scheduling system based on deep reinforcement learning This embodiment provides a multi-edge collaborative DAG dependency task scheduling system based on deep reinforcement learning, including: The task modeling module is used to represent application tasks as a directed acyclic graph structure when new application tasks arrive at the multi-edge computing system. Nodes in the directed acyclic graph represent subtasks, and edges represent the dependencies between subtasks. It is also used to determine whether all the predecessor tasks of each subtask have been completed in order to determine whether a subtask is a ready subtask. The status acquisition module is used to acquire the input data scale and computing requirements of each ready subtask, and to acquire the current queue load information of each edge server, and combine the above information into the current system status. The value assessment module has a built-in pre-trained deep reinforcement learning model, which is used to assess the value of each edge server in performing the current ready subtask based on the current system state, and obtain the value assessment result for each edge server. The collaborative server selection module is used to select the k edge servers with the highest value in descending order of value assessment results to form a collaborative edge server set, where k is a preset positive integer; The task sharding allocation module is used to divide the currently ready subtasks into multiple task shards based on the current computing power, queue waiting status and task transmission time of each edge server in the collaborative edge server set, and to determine the allocation ratio between each task shard and each edge server, so that the time for each edge server in the collaborative edge server set to complete its assigned task shard tends to be consistent. The task execution module is used to allocate each task to the corresponding edge server for execution according to the allocation ratio, and to obtain the task execution results; The experience storage module is used to calculate the reward value based on the task execution result, record the current system state, the selected set of collaborative edge servers, the reward value and the system state at the next moment, and store them as state transition samples in the experience replay buffer. The model update module is used to randomly sample a small batch of state transition samples from the experience replay buffer every preset update cycle to train and update the network parameters of the deep reinforcement learning model.

[0060] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0061] The above embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Any non-substantial changes and substitutions made by those skilled in the art based on the present invention shall fall within the scope of protection claimed by the present invention.

Claims

1. A multi-edge collaborative DAG dependency task scheduling method based on deep reinforcement learning, characterized in that, include: Step S1: When a new application task arrives at the multi-edge computing system, the application task is represented as a directed acyclic graph structure. Nodes in the directed acyclic graph represent subtasks, and edges represent dependencies between subtasks. For each subtask, it is determined as a ready subtask only if all its predecessor tasks have been completed. Step S2: For each ready subtask, obtain the input data scale and computational requirements of the subtask, and obtain the current queue load information of each edge server. Combine the obtained information into the current system state. Step S3: Input the current system state into the pre-trained deep reinforcement learning model, and evaluate the value of each edge server in performing the current ready sub-task through the deep reinforcement learning model to obtain the value evaluation result of each edge server. Step S4: Sort all edge servers in descending order of value assessment results, and select the k edge servers with the highest value to form a collaborative edge server set, where k is a preset positive integer; Step S5: Based on the current computing power, queue waiting status and task transmission time of each edge server in the collaborative edge server set, divide the currently ready subtask into multiple task fragments, and determine the allocation ratio between each task fragment and each edge server, so that the time for each edge server in the collaborative edge server set to complete its assigned task fragment tends to be consistent. Step S6: Distribute each task shard to the corresponding edge server for execution according to the allocation ratio, and obtain the task execution results; Step S7: Calculate the reward value based on the task execution result, record the current system state, the selected set of collaborative edge servers, the reward value, and the system state at the next moment, and store them as state transition samples in the experience replay buffer; Step S8: Every preset update cycle, randomly sample a small batch of state transition samples from the experience replay buffer to train and update the network parameters of the deep reinforcement learning model. S9: Repeat steps S1 to S8 to achieve online dynamic scheduling of DAG-dependent tasks in a multi-edge computing environment.

2. The method according to claim 1, characterized in that: In step S2, after determining that the current subtask is a ready subtask, the task description information of the subtask is parsed, and the input data scale parameter d of the subtask is extracted from the task description information. v And calculate the required parameter c v Among them, the input data size parameter d v This indicates the amount of input data required to execute this subtask; calculate the requirement parameter c. v This indicates the amount of computing resources required to execute the subtask; A queue status query request is sent to each edge server in the multi-edge computing system. After receiving the query request, each edge server returns its current queue load information. The current queue load information includes the number of tasks waiting to be executed in the current task queue of each edge server and the total computing demand of each waiting task. The obtained input data size parameter d v And calculate the required parameter c v This is integrated with the current queue load information of each edge server to generate the current system state vector S. v,t , as input to the deep reinforcement learning model.

3. The method according to claim 1, characterized in that: In step S3, the deep reinforcement learning model is a deep Q-network model, which includes an online network and a target network. The online network is used to output the action value evaluation results of each edge server in performing the currently ready sub-task according to the current system state, and select the set of collaborative edge servers based on the action value evaluation results. The target network is used to calculate the value of the target action based on the system state at the next time step during training, in order to generate training labels; During model training, state transition samples are sampled from the experience replay buffer. A loss function is constructed based on the error between the target action value output by the target network and the predicted action value output by the online network. The network parameters of the online network are updated by minimizing the loss function. When the number of training steps reaches the preset update period, the network parameters of the online network are copied to the target network.

4. The method according to claim 1, characterized in that, In step S4, an ε-greedy strategy is used to select the set of collaborative edge servers: The k edge servers with the highest value are selected with a probability of 1-ε to form a collaborative edge server set; k edge servers are randomly selected with probability ε to form a collaborative edge server set; where ε is the preset exploration probability and ε∈(0,1).

5. The method according to claim 1, characterized in that, Step S5 determines the allocation ratio between each task shard and each edge server, specifically including: Let A be the set of collaborative edge servers. v,t = {s1, s2, ..., s k For each edge server in the set Obtain the following parameters of the edge server: computing power parameters This indicates the amount of computation that the edge server can process per unit of time; the current queue waiting time parameter. This indicates the time required for tasks in the current task queue of the edge server to complete; and the time required for the current subtask v to be transferred from the source edge server to this edge server. Data transmission time parameters : in, This indicates the size of the input data for the current subtask v. Indicates source edge server With edge servers Data transfer rate between them; Suppose the current subtask v is on each edge server The task fragmentation ratio is ,in ∈ [0,1]; Based on the obtained parameters, establish each edge server respectively. The expression for the total completion time required to complete the task segment it is responsible for. : in, This represents the total computational requirement of the current subtask v.

6. The method according to claim 5, characterized in that: To minimize the absolute value of the time difference between each edge server in the collaborative edge server set in completing its respective task shard, a set of completion time balance constraint equations is established: Solve the system of completion time balancing constraint equations to obtain the optimal task partitioning ratio {x1, x2, ..., xi} that minimizes the difference between each T_i. k } represents the task allocation ratio of the current subtask across the various collaborative edge servers.

7. The method according to claim 1, characterized in that, Step S7 calculates the reward value based on the task execution result, specifically including: S71: Determine whether the current subtask v has been successfully completed. If it has been successfully completed, proceed to step S72; otherwise, proceed to step S73. S72: When the task is successfully completed, the reward value is calculated according to the following formula: in, Indicates the actual completion time of the current subtask. This indicates the preset maximum allowed completion time threshold for the task. Represents the first in the set of collaborative edge servers The time it takes for each edge server to complete its task sharding. This represents the average completion time of each collaborative edge server, where k is the total number of collaborative edge servers, α and β are the positive time efficiency weighting coefficient and load balancing weighting coefficient, respectively, and α + β = 1, α>0, β>0; Reward value With task completion time There is a negative correlation, meaning the shorter the task completion time, the higher the reward value; S73: When a mission fails, the reward value is calculated according to the following formula. : in, A positive failure penalty coefficient, This indicates the time elapsed when the task failed. Indicates the preset minimum penalty baseline time; reward value The value is negative, and the longer the time elapsed before the task fails, the greater the absolute value of the reward.

8. The method according to claim 1, characterized in that, Step S8 involves training and updating the network parameters of the deep reinforcement learning model, specifically including: Randomly sample small batches of state transition samples from the experience replay buffer; For each sampled state transition sample, the target value is calculated using the target network. The target value is determined based on the reward signal in the current state transition sample and the target network output value of the next state. Calculate the loss function between the target value of the target network and the predicted value of the online network corresponding to the current state, and update the network parameters of the online network by minimizing the loss function and using the backpropagation algorithm. When the training steps reach the preset update cycle, the network parameters of the online network are copied to the target network to update the network parameters of the target network.

9. The method according to claim 8, characterized in that: A multi-edge computing system includes at least two edge servers, each with heterogeneous computing capabilities, storage resources, and network bandwidth; wherein: Heterogeneous computing capabilities manifest in the differences between different edge servers in terms of processor clock speed, number of cores, and total available computing resources, resulting in different amounts of computing tasks that different edge servers can process per unit of time. Heterogeneous storage resources manifest themselves in the differences in available storage capacity and storage read / write speed between different edge servers, resulting in different scales of data that different edge servers can cache and process. Heterogeneous network bandwidth manifests as differences in data transmission rates between different edge servers and other servers, resulting in varying data communication latency between different edge servers.

10. A multi-edge collaborative DAG dependent task scheduling system based on deep reinforcement learning, characterized in that, include: ‌ The task modeling module is used to represent application tasks as a directed acyclic graph structure when new application tasks arrive at the multi-edge computing system. Nodes in the directed acyclic graph represent subtasks, and edges represent the dependencies between subtasks. It is also used to determine whether all the predecessor tasks of each subtask have been completed in order to determine whether a subtask is a ready subtask. The status acquisition module is used to acquire the input data scale and computing requirements of each ready subtask, and to acquire the current queue load information of each edge server, and combine the above information into the current system status. The value assessment module has a built-in pre-trained deep reinforcement learning model, which is used to assess the value of each edge server in performing the current ready subtask based on the current system state, and obtain the value assessment result for each edge server. The collaborative server selection module is used to select the k edge servers with the highest value in descending order of value assessment results to form a collaborative edge server set, where k is a preset positive integer; The task sharding allocation module is used to divide the currently ready subtasks into multiple task shards based on the current computing power, queue waiting status and task transmission time of each edge server in the collaborative edge server set, and to determine the allocation ratio between each task shard and each edge server, so that the time for each edge server in the collaborative edge server set to complete its assigned task shard tends to be consistent. The task execution module is used to allocate each task to the corresponding edge server for execution according to the allocation ratio, and to obtain the task execution results; The experience storage module is used to calculate the reward value based on the task execution result, record the current system state, the selected set of collaborative edge servers, the reward value and the system state at the next moment, and store them as state transition samples in the experience replay buffer. The model update module is used to randomly sample a small batch of state transition samples from the experience replay buffer every preset update cycle to train and update the network parameters of the deep reinforcement learning model.