Static scheduling optimization method, device and equipment based on deep reinforcement learning
By employing a static scheduling optimization method based on deep reinforcement learning, utilizing the AC framework and LSTM network, and combining single-step transfer and rollback mechanisms, the model mapping problem of the simulation training system in a heterogeneous network environment is solved, thereby improving the system efficiency and stability.
Patent Information
- Application Number
- CN202611681084.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-24
AI Technical Summary
In a simulation training system in a heterogeneous network environment, how to reasonably map the system model to heterogeneous computing nodes before training starts in order to improve the overall execution efficiency of the simulation training system and solve the problems of load balancing and running performance among system models?
A static scheduling optimization method based on deep reinforcement learning is adopted. By constructing an optimization network that integrates the actor-commentator framework (AC framework) and the long short-term memory network (LSTM), adaptive mapping optimization is performed using completion time feedback signals. Combined with single-step transfer mechanism and rollback mechanism, the static scheduling of the system model is optimized.
It effectively improves the overall execution efficiency of the simulation training system, enhances the stability and reliability of system model scheduling and decision-making, reduces training difficulty, and ensures that the mapping scheme is continuously optimized on a stable trajectory.
Smart Images

Figure CN123159455A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of simulation training technology, and in particular to a static scheduling optimization method, apparatus and device based on deep reinforcement learning. Background Technology
[0002] In simulation training systems within heterogeneous network environments, a training application typically consists of multiple complementary and closely interacting system models. In training scenarios oriented towards repetitive execution, the scheduling of system models is completed before each training round begins, with scheduling and execution occurring in a loop until a specified number of training iterations are reached. The execution of a single training task refers to running the entire training application once, given a set of parameters.
[0003] In this process, frequent information interaction between system models and communication latency between nodes jointly determine training execution efficiency; while the heterogeneous characteristics of different computing nodes in terms of computing power, memory, and bandwidth further affect the overall load balancing and operating performance of the system. Therefore, how to reasonably map multiple highly coupled system models to heterogeneous computing nodes before training starts, in order to improve the overall execution efficiency of the simulation training system, becomes the core of the static scheduling problem. Summary of the Invention
[0004] Therefore, it is necessary to provide a static scheduling optimization method, apparatus, and device based on deep reinforcement learning to address the aforementioned technical problems.
[0005] A static scheduling optimization method based on deep reinforcement learning is proposed, which is applied to a scenario where a training system repeatedly runs training. The method includes: Initialization phase: Generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; Iterative optimization phase: Starting from the second run of the training task, the optimization network generates transfer actions for individual system models using a single-step transfer mechanism based on the current mapping scheme and feedback from the completion times of previous runs, thus forming a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
[0006] In one embodiment, the method further includes: The static scheduling problem of the system model in the simulation training system is modeled as a reinforcement learning framework, including the observation space, action space and reward function; Observation space The vector used to describe the current system state is defined as a one-dimensional array with a length equal to the total number of system models. The value range is non-negative integers, and the expression is: ; in, Represents the observation space The first in The element represents the first element. A system model The current compute node number, This represents the total number of available computing nodes in the system. Action space Each action in the action space represents an adjustment to the mapping scheme between the system model and the computing nodes. Defined as a 1×2 matrix, its expression is: ; in, Indicates the first A system model The number of the target computing node to be migrated; The reward function is used to evaluate the quality of a mapping scheme. It is defined as the degree of optimization of the system completion time before and after an action is executed, and its expression is: ; in, Indicates the execution of an action The reward To perform the action The completion time of the subsequent system running training tasks. To perform the action The completion time of the previous system's training task; if , to describe the action This led to improved system performance, and the corresponding mapping scheme received a positive reward; if , to describe the action This leads to a decrease in system performance, and the corresponding mapping scheme is penalized; if , to describe the action No impact on system performance, therefore the reward is zero.
[0007] In one embodiment, the input layer employs a multilayer perceptron extractor to collect system state information and encode the mapping scheme within the system into a system state vector represented by a feature vector. A shared LSTM memory layer receives the system state vector encoded by the input layer and selectively retains, updates, or forgets historical information during continuous single-step transitions using a gating mechanism. It maintains a memory unit throughout the entire transition process. After each transition, the memory unit is updated based on the effect of the current transition action, retaining historical information valuable for subsequent decisions while forgetting outdated information that is no longer relevant. The output is a compressed representation of the memory state containing the complete historical transition path. The memory state includes cell states responsible for long-term memory and hidden states responsible for short-term memory. The hidden states are input to the actor-critic dual-branch output layer. This approach encourages the two branches to generate actions and evaluate values based on a consistent historical transfer path. The actor-critic dual-branch output layer includes an actor branch and a critic branch. Both branches receive the hidden states from the shared LSTM memory layer output and independently maintain and optimize the parameters of the fully connected output layer. The actor branch learns action policies based on the system state vector and the historical information recorded in the shared LSTM memory layer, generating transfer actions for a single system model using a single-step transfer mechanism. The critic branch evaluates the system state value before and after the execution of the transfer actions output by the actor branch, based on the system state vector and the historical information recorded in the shared LSTM memory layer. It calculates the time difference error based on the change in system state value to simultaneously guide the parameter updates of both the actor and critic branches.
[0008] In one embodiment, calculating the time difference error based on changes in system state value includes: Calculate the time difference error based on the change in system state value. , is represented as: ; in, To perform migration actions The reward obtained is determined by the migration action. The changes in the completion time of the system's training tasks before and after execution are determined; and In the respective states and in state The system state value under the following conditions, where the state By performing migration actions The previous mapping scheme is encoded to obtain the state. By performing migration actions The new mapping scheme is then encoded. This is the discount factor.
[0009] In one embodiment, calculating the time difference error based on changes in system state value to simultaneously guide parameter updates for both the actor branch and the commentator branch includes: Based on time difference error The loss functions for the actor branch and the commentator branch are calculated separately to guide the parameter updates of both branches simultaneously. The loss functions for the two branches are expressed as follows: ; ; in, For the commentator branch, For the loss function of the activator branch, Indicates network parameters and state Next, the activator branch outputs a migration action. The probability distribution.
[0010] A static scheduling optimization device based on deep reinforcement learning, the device being applied to a scenario where a training system repeatedly runs training, comprising: The initialization module is used to generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; The iterative optimization module is used to optimize the network from the second run of the training task onwards. Based on the current mapping scheme and feedback from the completion time of previous runs, it generates transfer actions for individual system models using a single-step transfer mechanism and forms a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
[0011] In one embodiment, the device further includes: The problem modeling module is used to model the static scheduling problem of the system model in the simulation training system into a reinforcement learning framework, including the observation space, action space and reward function; Observation space The vector used to describe the current system state is defined as a one-dimensional array with a length equal to the total number of system models. The value range is non-negative integers, and the expression is: ; in, Represents the observation space The first in The element represents the first element. A system model The current compute node number, This represents the total number of available computing nodes in the system. Action space Each action in the action space represents an adjustment to the mapping scheme between the system model and the computing nodes. Defined as a 1×2 matrix, its expression is: ; in, Indicates the first A system model The number of the target computing node to be migrated; The reward function is used to evaluate the quality of a mapping scheme. It is defined as the degree of optimization of the system completion time before and after an action is executed, and its expression is: ; in, Indicates the execution of an action The reward To perform the action The completion time of the subsequent system running training tasks. To perform the action The completion time of the previous system's training task; if , to describe the action This led to improved system performance, and the corresponding mapping scheme received a positive reward; if , to describe the action This leads to a decrease in system performance, and the corresponding mapping scheme is penalized; if , to describe the action No impact on system performance, therefore the reward is zero.
[0012] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program performing the following steps: Initialization phase: Generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; Iterative optimization phase: Starting from the second run of the training task, the optimization network generates transfer actions for individual system models using a single-step transfer mechanism based on the current mapping scheme and feedback from the completion times of previous runs, thus forming a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
[0013] Compared with existing technologies, the aforementioned static scheduling optimization method, apparatus, and equipment based on deep reinforcement learning have the following advantages: First, they creatively combine the optimization process of static scheduling of system models in a simulation training system with the learning process of reinforcement learning, constructing an optimization network that integrates the actor-critic framework (AC framework) and long short-term memory network (LSTM). This optimization network treats the repeated running of the system as a training process for policy learning. Without relying on the details of the internal mechanisms of the system, it only uses the macroscopic feedback signal of completion time to achieve adaptive optimization of the mapping scheme. It does not need to obtain intermediate state information such as model interaction volume or node load rate from the internal system, which can effectively improve the overall execution efficiency of the simulation training system. Second, the optimization network adopts a single-step transfer mechanism when generating transfer actions. That is, each decision selects only one system model and transfers it to a new computing node. Each transfer corresponds to a small movement in the solution space, making the search trajectory continuous and controllable. Moreover, single-step transfer can clearly characterize the marginal contribution of a single action to the overall completion time, enabling the network to accurately learn the value differences of different transfer operations. This mechanism also effectively avoids combinatorial explosion of the action space and reduces the training difficulty. Third, a shared LSTM memory layer is embedded in the network to record historical information of the system's operation. This enables the network to identify dependencies and synergistic effects between different transfer actions, improving the quality of network action decisions. Furthermore, by providing unified historical features to both the actor and critic branches, this memory layer ensures that both branches generate actions and evaluate values based on consistent historical information, effectively eliminating evaluation distortion caused by historical perception bias and enhancing decision reliability. Fourth, a rollback mechanism is designed to undo the impact of undesirable transfer actions on the system state, optimizing the stability of the training process. The rollback mechanism only modifies the LSTM part of the network; other parts do not revert to the previous state. This part successfully retains the experience of failures and gradually reduces the probability of selecting similar undesirable transfer actions in similar states in the future, ensuring that the system model scheduling mapping scheme continuously optimizes on a stable trajectory, achieving the effect of "environmental regression and agent learning." Attached Figure Description
[0014] Figure 1 This is a flowchart illustrating a static scheduling optimization method based on deep reinforcement learning in one embodiment. Figure 2This is a schematic diagram illustrating the input-output mapping of an optimized network in one embodiment; Figure 3 This is a schematic diagram of the optimized network structure in one embodiment; Figure 4 This is a schematic diagram of the rollback mechanism in one embodiment; wherein, Figure 4 (a) is a schematic diagram of the update of the training task completion time in the rollback mechanism; Figure 4 (b) is a schematic diagram illustrating the update of the LSTM network parameter cache in the rollback mechanism. Figure 4 (c) is a schematic diagram of the update of MLP feature extractor parameters and LSTM output header parameters in the rollback mechanism; Figure 5 This is a simplified schematic diagram of the system model composition in a simulation training system according to one embodiment; Figure 6 This is a schematic diagram illustrating the modeling of computing nodes and communication delays in one embodiment; Figure 7 This is a schematic diagram of the model advancement process in one embodiment; Figure 8 This is a schematic diagram illustrating the statistical distribution of task completion times for each scheduling algorithm in one embodiment; Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0015] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0016] In one embodiment, a static scheduling optimization method based on deep reinforcement learning is provided. This method is applied to the scenario of repeated training in a simulation training system. Before introducing the method, the static scheduling problem of the system model in the simulation training system is first modeled as a reinforcement learning framework.
[0017] For ease of description, we first define the basic elements of the system, including the set of computing nodes and the set of system models. Set of computing nodes , For calculating node indexes, The total number of available computing nodes varies, with each node possessing different processing capabilities and communication latency between them. The computing power of a node determines the running speed of the system model on it, while communication latency affects the response speed between system models. Therefore, the heterogeneity of computing nodes is one of the core constraints of the scheduling problem. Reasonably utilizing the differentiated advantages of nodes can significantly improve overall scheduling efficiency. A training application consists of multiple closely interacting system models, forming a set of system models. , Given the total number of system models, each model needs to be mapped to a specific computing node for execution, and there is frequent data interaction between system models. For system models with high interaction intensity, if they are assigned to different nodes, communication latency may increase, thus slowing down the overall operation; however, if they are concentrated on the same computing node, it may cause excessive load on a single node. Therefore, the scheduling strategy design must strike a balance between minimizing communication latency and balancing node load.
[0018] The reinforcement learning framework includes an observation space, an action space, and a reward function.
[0019] Observation space The vector used to describe the current system state is defined as a one-dimensional array with a length equal to the total number of system models. The value range is non-negative integers, and the expression is: ; in, Represents the observation space The first in The element represents the first element. A system model The current compute node number, This represents the total number of available computing nodes in the system. The observation space comprehensively records the mapping relationships between all models and nodes, i.e., the overall mapping scheme of the system at the current moment. This observation space provides the scheduling algorithm with the environmental information needed for decision-making, enabling it to make decisions on the next migration step based on the current allocation.
[0020] Action space Each action in the action space represents an adjustment to the mapping scheme between the system model and the computing nodes. Defined as a 1×2 matrix, its expression is: ; in, Indicates the first A system model The target compute node number to be migrated. The effect of the action is to move the model... Reassigned to nodes The algorithm updates the state by selecting actions in succession. Through continuous action selection, the scheduling algorithm gradually optimizes the mapping relationship between the model and nodes.
[0021] The reward function is used to evaluate the quality of a mapping scheme. It is defined as the degree of optimization of the system completion time before and after an action is executed, and its expression is: ; in, Indicates the execution of an action The reward To perform the action The completion time of the subsequent system running training tasks. To perform the action The completion time of the previous system's training task; if , to describe the action This leads to improved system performance (i.e., shorter completion time), and the corresponding mapping scheme receives a positive reward; if , to describe the action This leads to a decrease in system performance (i.e., an increase in completion time), and the corresponding mapping scheme is penalized; if , to describe the action No impact on system performance, therefore the reward is zero.
[0022] like Figure 1 As shown, the method proposed in this application includes the following steps: Step 1, Initialization Phase: Generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer.
[0023] The input-output mapping and structural composition of the optimized network (also known as the LSTM-AC framework) are as follows: Figure 2 and Figure 3 As shown.
[0024] The input layer employs a Multilayer Perceptron Extractor (MLP) to collect system state information and encode the mapping scheme within the system into a system state vector represented by a feature vector. A shared LSTM memory layer receives the system state vector encoded by the input layer. Through a gating mechanism, it selectively retains, updates, or forgets historical information during continuous single-step transitions and maintains a memory unit that spans the entire transition process. After each transition, the memory unit is updated based on the effect of the current transition action, retaining historical information valuable for subsequent decisions while forgetting outdated information that is no longer relevant. The output is a compressed representation of the memory state containing the complete historical transition path. The memory state includes cell states responsible for long-term memory and hidden states responsible for short-term memory. The hidden states are input to the actor-critic dual-branch output layer, prompting the two branches to generate actions and evaluate values based on a consistent historical transition path.
[0025] Specifically, optimizing the shared LSTM memory layer in the network is crucial because the process from the initial mapping scheme to the optimal solution involves multiple single-step migrations, each of which alters the system state and influences the effectiveness of subsequent decisions. For example, migrating a high-load model to an idle node may create conditions for migrating other models to that node later; conversely, relocating a communication-intensive model may affect the relocation decisions of other models. This cumulative optimization characteristic means that the value judgment of the current state cannot be based solely on the effect of the most recent migration, but must comprehensively consider the complete migration sequence from the initial solution to the current solution. The memory mechanism of the shared LSTM memory layer enables the network to identify dependencies and synergistic effects between different migration steps. For instance, when the network discovers that moving two models to the same computing node yields significant benefits, the LSTM can learn this delay effect and give higher value estimates to such migrations in similar situations in the future. This ability to capture long-term dependencies enhances the foresight of the decision-making process, allowing the strategy to not only focus on immediate performance improvements but also plan better multi-step optimization paths.
[0026] The Actor-Critic dual-branch output layer comprises an Actor LSTM branch and a Critic LSTM branch. Both branches receive the hidden states from the shared LSTM memory layer output and independently maintain and optimize the parameters of their respective fully connected output layers. The Actor branch generates model transfer actions based on the current system state, while the Critic branch estimates the value of the system state and provides guidance for policy updates. In static scheduling problems, feedback from training completion time often involves noise and latency. Relying solely on policy gradients can lead to training instability due to high variance, while relying solely on the value function is insufficient for effective exploration in high-dimensional action spaces. The AC framework reduces gradient variance by introducing value estimation, ensuring stable convergence across multiple iterations. The two branches share the results of previous layer feature extraction and independently maintain and optimize their respective parameters, thereby decoupling policy learning and value assessment while maintaining efficient feature sharing. Specifically, the actor branch is used to learn action policies based on the system state vector and historical information recorded in the shared LSTM memory layer, and generates transfer actions for a single system model using a single-step transfer mechanism; the critic branch is used to evaluate the system state value before and after the execution of the transfer actions output by the actor branch based on the system state vector and historical information recorded in the shared LSTM memory layer, and calculates the time difference error based on the change in system state value to guide the parameter updates of both the actor branch and the critic branch. Figure 3 In this context, log_prob represents the log probability of the transfer action output by the actor branch, which is used to calculate the policy gradient in reinforcement learning.
[0027] Specifically, the time difference error is calculated based on the change in system state value to simultaneously guide parameter updates for both the actor and critic branches, including: Calculate the time difference error based on the change in system state value. , represented as: ; in, To perform migration actions The reward obtained is determined by the migration action. The changes in the completion time of the system's training tasks before and after execution are determined; and In the respective states and in state The system state value under the following conditions, where the state By performing migration actions The previous mapping scheme is encoded to obtain the state. By performing migration actions The new mapping scheme is then encoded. Discount factor; Based on time difference error The loss functions for the actor branch and the commentator branch are calculated separately to guide the parameter updates of both branches simultaneously. The loss functions for the two branches are expressed as follows: ; ; in, For the commentator branch, For the loss function of the activator branch, Indicates network parameters and state Next, the activator branch outputs a migration action. The probability distribution.
[0028] It is important to emphasize that the optimization of the network relies solely on the single metric of completion time for learning throughout the entire process, without taking into account intermediate state information such as the amount of model interaction within the system or node load rate.
[0029] Step 2, Iterative Optimization Phase: Starting from the second run of the training task, the optimization network generates transfer actions for individual system models using a single-step transfer mechanism based on the current mapping scheme and feedback from historical run completion times, thus forming a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
[0030] The single-step migration mechanism selects only one system model at a time and migrates it to a new computing node. Compared to the allocation scheme of adjusting multiple models at once, single-step migration has three advantages: First, this design conforms to the neighborhood movement idea of local search, with each migration corresponding to a small movement in the solution space, making the search trajectory continuous and controllable; second, single-step migration can clearly characterize the marginal contribution of a single action to the overall completion time, enabling the policy network to accurately learn the value differences of different migration operations; finally, this design effectively avoids the combinatorial explosion of the action space. If k (k>1) models are allowed to migrate simultaneously, the size of the action space will increase from... Expand to This leads to a sharp increase in training difficulty.
[0031] Specifically, at the implementation level, the action selection mechanism in the optimization network adopts a sequential decision-making approach. In each iteration, the actor branch outputs a transition action based on the current state, including the index of the system model to be transitioned and the index of the target node. After the transition action is executed, the system state is updated, and the empirical tuple consisting of the state transition, the selected transition action, and the corresponding completion time feedback is stored for subsequent network parameter updates. This step-by-step unfolding approach ensures the continuity of the optimization trajectory in the time dimension, facilitating the memory unit to accumulate and model historical transition paths.
[0032] It should be further noted that, considering the search process for transfer actions, some actions may suffer severe performance degradation due to improper model-node matching, and in extreme cases, may even prevent the training task from running properly due to communication congestion or resource conflicts. Accepting these poorly performing actions without control would not only waste valuable training opportunities but also potentially destroy the effective historical information accumulated in the memory units, affecting the quality of subsequent decisions. To ensure the stability of the optimization process, this application designs a rollback mechanism. The core idea of this mechanism is to establish checkpoints before executing transfer actions and restore the state when the action's effect is significantly worse. For example... Figure 4As shown, after each transfer action is generated and before the training task is executed, the current mapping scheme and the memory state of the memory layer are saved as a rollback point. After the operation ends, the system evaluates the difference between the completion time of the new mapping scheme and the historical best value. If the estimated completion time of the new mapping scheme is greater than the historical best value, it is determined that the transfer has degraded performance, triggering a rollback operation: the system restores to the mapping scheme and memory state saved at the rollback point, allowing the next iteration to continue exploring from a stable state. Although the rollback operation undoes the impact of the bad action on the system state, the action and its negative impact will still be learned by the MLP. Specifically, the rollback operation only changes the memory state part of the LSTM; other parts of the framework do not revert to the previous state. This part successfully retains the experience of failure and gradually reduces the probability of choosing similar bad actions in similar states in the future, achieving the effect of "environment regression and agent learning". From an overall functional perspective, the rollback mechanism and the memory layer each perform their respective functions and cooperate with each other. The memory layer is responsible for remembering valuable transfer experiences, while the rollback mechanism is responsible for preventing dangerous operations that may seriously damage system performance from continuing to affect subsequent searches. Through this collaborative working method, the algorithm can continuously learn and improve from trial and error, and avoid the entire optimization process from going off track due to individual extreme failures, thereby ensuring that the scheduling scheme continues to optimize on a stable trajectory.
[0033] It is important to note that each training task simultaneously generates business data for statistical analysis and feedback on completion time for network optimization. By progressively reducing the completion time of each run, the total training time required to reach the statistically required sample size is minimized. At this point, the system not only completes the collection of statistical data but also obtains an optimized scheduling scheme for this training application and heterogeneous environment. The characteristic of this process design is that each system run serves two objectives simultaneously: firstly, the business data generated during training continuously accumulates, meeting the sample size required for statistical analysis; secondly, the completion time of each run provides training signals for network optimization, enabling the mapping scheme to continuously improve through iteration. As optimization progresses, the completion time of later runs is generally shorter than that of earlier runs, thus compressing the total training time while meeting statistical requirements. Furthermore, throughout the entire process, the business data generated by both the slower training runs in the early stages and the accelerated training runs in the later stages are used indiscriminately for statistical analysis, achieving a natural integration of scheduling optimization and statistical sampling processes, and compressing the total time.
[0034] In summary, the aforementioned static scheduling optimization method based on deep reinforcement learning integrates local search, the AC framework, and the LSTM structure to construct an optimization network. This optimization network treats the repeated running of the system as a training process for policy learning. Without relying on the details of the internal mechanisms of the system, it only uses the macroscopic feedback signal of completion time to achieve adaptive optimization of the mapping scheme, which can effectively improve the overall execution efficiency of the simulation training system. Furthermore, the optimization network controls the action scale through single-step transfer and improves the search stability with a rollback mechanism. Ultimately, it provides an effective method for the static scheduling problem of simulation training systems in heterogeneous network environments.
[0035] To verify the effectiveness of the proposed method in heterogeneous network environments, a simplified simulation training system was first constructed. The system design followed the approach of model modeling, node modeling, and execution, abstractly reproducing the computation and communication processes in a heterogeneous computing environment. In scenarios where system models interact extremely closely, system performance depends not only on the processing power of computing nodes but also on the communication latency between models. Frequent data interactions mean that communication time accounts for a significant proportion of the total execution time, and its impact on performance is no less than that of computation time itself. Therefore, this system focuses on the two decisive factors of computational load and communication latency during modeling, while intentionally simplifying other secondary factors such as memory usage and space constraints. This simplification ensures both the understandability and feasibility of the model while capturing the key elements affecting training completion time. This allows experimental results to directly reflect the optimization effect of the scheduling scheme on the computation-communication coupling effect, providing a reliable theoretical basis for subsequent deployment on real systems.
[0036] In terms of model building, Figure 5 The system model shown incorporates two types of workloads: computational tasks and communication tasks (including sending and receiving tasks). Computational tasks require the computing resources of nodes, and their execution time depends on the ratio of task load to node computing power. Communication tasks appear in pairs to simulate data transmission dependencies between different models. During the initialization phase, all models are assigned several tasks, with each model mapped to a specific computing node for execution, thus forming the basic execution unit that couples computation and communication.
[0037] Figure 6 The modeling of computing nodes and communication delays in the system demonstrates that a matrix is used to uniformly describe the performance and communication characteristics of computing nodes. The diagonal elements represent the computing power of each node, with larger values indicating stronger processing capabilities; the off-diagonal elements represent the communication delays between different nodes, used to describe the differences in information transmission under heterogeneous network conditions.
[0038] The system model categorizes execution into three types based on the current task: computation, sending, and receiving. When encountering a computation task, its execution time is determined by the ratio of task load to effective computation speed. When encountering a sending task, the system determines the arrival time of the corresponding receiving task based on the source node's location. If the sender and receiver are on the same node, the data is immediately available; if they are on different nodes, communication delays are added. When encountering a receiving task, if the data has not yet arrived, it must wait until the dependency conditions are met before execution can continue.
[0039] In terms of execution method, the system adopts an event-based discrete execution mechanism. This mechanism maintains a time-ordered event queue, selects the earliest occurring event for execution and updates the system state each time, thereby directly skipping idle periods and advancing to the next critical moment. Figure 7 The specific process of model advancement is demonstrated. At the start of advancement, Model 1 faces the computation task 1-1 and is in the computation state. Model 2 faces a receiving task, but the corresponding sending task has not yet sent its information, so Model 2 is in a waiting state. After Model 1 completes 1-1 and the subsequent sending task, it faces the receiving task again, at which point Model 1 enters a waiting state. After receiving the information, Model 2 sequentially performs the computation tasks 2-1 and 2-2, and so on, completing the entire advancement process. Compared to the advancement method with a fixed time step, the event-driven mechanism avoids invalid intermediate state computations and improves advancement efficiency. More importantly, since the method proposed in this application only relies on the final completion time feedback and does not need to access intermediate state information, the event-driven advancement method perfectly matches the information requirements of the algorithm while ensuring execution efficiency, avoiding unnecessary state recording overhead.
[0040] The overall system operation can be divided into four stages: initialization, generation, execution, and output. First, the user initializes the system by inputting parameters such as the number of computational tasks, communication tasks, models, and nodes, and uses a random number seed to ensure the reproducibility of the experiment. Then, the system generates a model partitioning and node performance matrix: computational and communication tasks are rationally allocated to different models; in the node matrix, computational capabilities are randomly generated on the diagonal, and communication latency is generated off-diagonally.
[0041] During system operation, the actual computation speed of each model is not a fixed value, but depends on the computing power allocation of its node. If the same node hosts multiple models, the total computing power of that node will be dynamically allocated according to the load ratio of each model. ; in, For the model The allocated computing power, Calculate the load on it. To be allocated on the node All models on the platform For nodes The total computing power. This design is naturally mainly to reflect the impact of node resource contention on performance. Subsequently, the system enters a gradual model scheduling and execution loop until all models have been executed.
[0042] After execution, the system outputs a model completion time matrix, with each row corresponding to a model and each column representing the completion time of a specific task within that model. Researchers can use this matrix to obtain the total completion time and quantitatively compare the advantages and disadvantages of different scheduling schemes, thus providing an objective basis for performance evaluation of scheduling algorithms.
[0043] In summary, this simplified simulation training system effectively reproduces the core characteristics of computation and communication tasks under multi-node conditions through model modeling, computation node modeling, and sequential execution. Its design not only ensures the model's understandability and feasibility but also lays an experimental foundation for further research on scheduling optimization.
[0044] The comparative experiments were designed to verify the performance advantages of the proposed method. All algorithms ran within a unified framework, and the scale of the simulated training system was determined by two core parameters: the number of system models and the number of computation nodes. To reduce the impact of randomness, each experiment was run independently and repeatedly, and the results were uniformly output as a CSV file. Furthermore, each experiment ran for 5000 steps; this number represents both the number of repetitions of the training application and the number of training iterations of the reinforcement learning algorithm. The default values for the important hyperparameters of this method are set in Table 1.
[0045] Table 1. Default values for hyperparameters in this method.
[0046] In the basic comparative experiments, three combinations of model numbers (50, 100, 150) and three combinations of computing node numbers (10, 20, 30) were considered, forming a total of nine experimental levels, as shown in Table 2. These levels cover scenarios from small to medium scale to relatively large scale, and can comprehensively test the adaptability of the algorithm at different scales.
[0047] Table 2. Model size and node configuration level of the comparative experiment
[0048] In the comparative experiments, our proposed method was compared with several representative baseline algorithms. The selected comparison algorithms covered different types of scheduling optimization methods, validating the comprehensive performance of our proposed method from the perspective of different algorithmic paradigms. Specifically, these included: Round Robin, Simulated Annealing (SA), NgOpt, and DOPO. The specific experimental results are shown in Table 3. Overall, the algorithm performance ranking is as follows: our proposed method, DOPO, SA, NgOpt, and Round Robin. Our proposed method, on average, improved performance by 7.33%, 14.09%, 14.58%, and 37.34% compared to the other algorithms, respectively.
[0049] Table 3. Average runtime of different scheduling algorithms (data in the table is in seconds).
[0050] Figure 8 Box plots of repeated experimental data for each algorithm in a scenario with 100 models and 20 computation nodes are presented. From Figure 8 As can be seen, our proposed method (RL-SS) exhibits the best performance, with the lowest median task completion time and a compact box, indicating that it consistently achieves high-quality solutions in multiple experiments. RoundRobin, as the simplest polling scheduling strategy, shows the highest task completion time in its box plot, significantly inferior to all other methods. However, it demonstrates extremely high stability because polling strategies are deterministic algorithms, always producing the same results under the same input. This is one of the reasons why RoundRobin was chosen as the performance baseline algorithm in this application. The median task completion time of the SA algorithm falls between RoundRobin and our proposed method, but is significantly worse. Simultaneously, the SA method exhibits significant performance fluctuations and a wide box range. This instability may be related to the random walk characteristic of the SA algorithm; although it can theoretically escape local optima, this also leads to a greater number of iterations, and it may not converge to the global optimum within a finite number of iterations. The NgOpt method has a slightly better task completion time than SA but is still significantly worse than RL-SS. Its box plot shows moderate stability and a moderate box height. The DOPO method exhibits excellent performance, second only to RL-SS, with a significantly faster task completion time than SA and NgOpt. Its compact binning indicates good stability. However, compared to the RL-SS algorithm, the DOPO algorithm's performance is still significantly inferior.
[0051] In summary, the proposed method exhibits fast convergence speed and superior stability, effectively reducing the overall completion time. This result verifies the effectiveness and applicability of the static scheduling algorithm based on deep reinforcement learning in solving the model mapping problem of simulation training systems in heterogeneous network environments.
[0052] In one embodiment, a static scheduling optimization device based on deep reinforcement learning is provided. The device is applied to a scenario where a training system repeatedly runs training iterations, and includes: The initialization module is used to generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; The iterative optimization module is used to optimize the network from the second run of the training task onwards. Based on the current mapping scheme and feedback from the completion time of previous runs, it generates transfer actions for individual system models using a single-step transfer mechanism and forms a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
[0053] In one embodiment, the device further includes: The problem modeling module is used to model the static scheduling problem of the system model in the simulation training system into a reinforcement learning framework, including the observation space, action space and reward function; Observation space The vector used to describe the current system state is defined as a one-dimensional array with a length equal to the total number of system models. The value range is non-negative integers, and the expression is: ; in, Represents the observation space The first in The element represents the first element. A system model The current compute node number, This represents the total number of available computing nodes in the system. Action space Each action in the action space represents an adjustment to the mapping scheme between the system model and the computing nodes. Defined as a 1×2 matrix, its expression is: ; in, Indicates the first A system model The number of the target computing node to be migrated; The reward function is used to evaluate the quality of a mapping scheme. It is defined as the degree of optimization of the system completion time before and after an action is executed, and its expression is: ; in, Indicates the execution of an action The reward To perform the action The completion time of the subsequent system running training tasks. To perform the action The completion time of the previous system's training task; if , to describe the action This led to improved system performance, and the corresponding mapping scheme received a positive reward; if , to describe the action This leads to a decrease in system performance, and the corresponding mapping scheme is penalized; if , to describe the action No impact on system performance, therefore the reward is zero.
[0054] Specific limitations regarding the deep reinforcement learning-based static scheduling optimization device can be found in the limitations of the deep reinforcement learning-based static scheduling optimization method described above, and will not be repeated here. Each module in the aforementioned deep reinforcement learning-based static scheduling optimization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0055] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a static scheduling optimization method based on deep reinforcement learning.
[0056] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0057] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to perform the following steps: Initialization phase: Generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; Iterative optimization phase: Starting from the second run of the training task, the optimization network generates transfer actions for individual system models using a single-step transfer mechanism based on the current mapping scheme and feedback from the completion times of previous runs, thus forming a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
[0058] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0059] 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.
[0060] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.
Claims
1. A static scheduling optimization method based on deep reinforcement learning, characterized in that, The method is applied to scenarios where a simulated training system repeatedly runs training. The method includes: Initialization phase: Generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; Iterative optimization phase: Starting from the second run of the training task, the optimization network generates transfer actions for individual system models using a single-step transfer mechanism based on the current mapping scheme and feedback from the completion times of previous runs, thus forming a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
2. The static scheduling optimization method based on deep reinforcement learning according to claim 1, characterized in that, The method further includes: The static scheduling problem of the system model in the simulation training system is modeled as a reinforcement learning framework, including the observation space, action space and reward function; Observation space The vector used to describe the current system state is defined as a one-dimensional array with a length equal to the total number of system models. The value range is non-negative integers, and the expression is: ; in, Represents the observation space The first in The element represents the first element. A system model The current compute node number, This represents the total number of available computing nodes in the system. Action space Each action in the action space represents an adjustment to the mapping scheme between the system model and the computing nodes. Defined as a 1×2 matrix, its expression is: ; in, Indicates the first A system model The number of the target computing node to be migrated; The reward function is used to evaluate the quality of a mapping scheme. It is defined as the degree of optimization of the system completion time before and after an action is executed, and its expression is: ; in, Indicates the execution of an action The reward To perform the action The completion time of the subsequent system running training tasks. To perform the action The completion time of the previous system's training task; if , to describe the action This led to improved system performance, and the corresponding mapping scheme received a positive reward; if , to describe the action This leads to a decrease in system performance, and the corresponding mapping scheme is penalized; if , to describe the action No impact on system performance, therefore the reward is zero.
3. The static scheduling optimization method based on deep reinforcement learning according to claim 1, characterized in that, The input layer employs a multilayer perceptron extractor to collect system state information and encode the mapping scheme within the system into a system state vector represented by a feature vector. The shared LSTM memory layer is responsible for receiving the system state vector encoded by the input layer. Through a gating mechanism, it selectively retains, updates, or forgets historical information during continuous single-step migrations and maintains a memory unit that runs through the entire migration process. After each migration, the memory unit is updated according to the effect of the current migration action, retaining historical information that is valuable for subsequent decisions while forgetting outdated information that is no longer relevant. The output is a compressed representation of the memory state containing the complete historical migration path. The memory state includes the cell state responsible for long-term memory and the hidden state responsible for short-term memory. The hidden state is input to the actor-critic dual-branch output layer, prompting the dual-branch output layer to perform action generation and value evaluation respectively based on a consistent historical migration path. The actor-critic dual-branch output layer includes an actor branch and a critic branch. Both branches receive the hidden states output from the shared LSTM memory layer and independently maintain and optimize the parameters of the fully connected output layer. The actor branch learns action policies based on the system state vector and historical information recorded in the shared LSTM memory layer, generating transfer actions for a single system model using a single-step transfer mechanism. The critic branch evaluates the system state value before and after the execution of the transfer actions output by the actor branch, based on the system state vector and historical information recorded in the shared LSTM memory layer. It calculates the time difference error based on the change in system state value to simultaneously guide the parameter updates of both the actor and critic branches.
4. The static scheduling optimization method based on deep reinforcement learning according to claim 3, characterized in that, The time difference error is calculated based on the change in system state value, including: Calculate the time difference error based on the change in system state value. , represented as: ; in, To perform migration actions The reward obtained is determined by the migration action. The changes in the completion time of the system's training tasks before and after execution are determined; and In the respective states and in state The system state value under the following conditions, where the state By performing migration actions The previous mapping scheme is encoded to obtain the state. By performing migration actions The new mapping scheme is then encoded. This is the discount factor.
5. The static scheduling optimization method based on deep reinforcement learning according to claim 4, characterized in that, The time difference error is calculated based on the change in system state value to simultaneously guide parameter updates for both the actor and critic branches, including: Based on time difference error The loss functions for the actor branch and the commentator branch are calculated separately to guide the parameter updates of both branches simultaneously. The loss functions for the two branches are expressed as follows: ; ; in, For the commentator branch, For the loss function of the activator branch, Indicates network parameters and state Next, the activator branch outputs a migration action. The probability distribution.
6. A static scheduling optimization device based on deep reinforcement learning, characterized in that, The device is used in scenarios where a simulation training system repeatedly runs training, and includes: The initialization module is used to generate an initial mapping scheme that corresponds one-to-one between the system model and the computing nodes. The system is based on Run the training task for the first time and record the initial completion time. Simultaneously, the optimized network is initialized; the optimized network consists of an input layer, a shared LSTM memory layer, and an actor-commenter dual-branch output layer; The iterative optimization module is used to optimize the network from the second run of the training task onwards. Based on the current mapping scheme and feedback from the completion time of previous runs, it generates transfer actions for individual system models using a single-step transfer mechanism and forms a new mapping scheme. To perform a training task and obtain a new completion time. The feedback is then fed back to the optimization network, and the network parameters are updated based on the changes in the system state value before and after the transfer action. After the transfer action is generated but before the training task is executed, the current mapping scheme and the memory state of the shared LSTM memory layer are saved as rollback points. Subsequently, the optimization network evaluates the effectiveness of the transfer action based on changes in task completion time. Greater than the best historical completion time If the rollback mechanism is triggered, the information saved at the rollback point will be restored. Meanwhile, the network parameters other than the memory state will retain the parameter updates made based on this transfer action. This aims to eliminate the impact of adverse transfer actions on subsequent searches while preserving the agent's long-term learning from failures. Otherwise, the process will be accepted. ,renew for It also updates the information saved at the rollback point; it repeatedly runs the training task, and each execution of the training task generates business data for statistical analysis and completion time feedback for network optimization. By gradually reducing the completion time of a single run, it minimizes the total training time required to reach the required sample size for statistics, thus completing the static scheduling of the system model.
7. The static scheduling optimization device based on deep reinforcement learning according to claim 6, characterized in that, The device further includes: The problem modeling module is used to model the static scheduling problem of the system model in the simulation training system into a reinforcement learning framework, including the observation space, action space and reward function; Observation space The vector used to describe the current system state is defined as a one-dimensional array with a length equal to the total number of system models. The value range is non-negative integers, and the expression is: ; in, Represents the observation space The first in The element represents the first element. A system model The current compute node number, This represents the total number of available computing nodes in the system. Action space Each action in the action space represents an adjustment to the mapping scheme between the system model and the computing nodes. Defined as a 1×2 matrix, its expression is: ; in, Indicates the first A system model The number of the target computing node to be migrated; The reward function is used to evaluate the quality of a mapping scheme. It is defined as the degree of optimization of the system completion time before and after an action is executed, and its expression is: ; in, Indicates the execution of an action The reward To perform the action The completion time of the subsequent system running training tasks. To perform the action The completion time of the previous system's training task; if , to describe the action This led to improved system performance, and the corresponding mapping scheme received a positive reward; if , to describe the action This leads to a decrease in system performance, and the corresponding mapping scheme is penalized; if , to describe the action No impact on system performance, therefore the reward is zero.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
