Control system training method and apparatus, electronic device, medium, and program product

By constructing an evaluation network with an attention mechanism, calculating the reward parameters of the agent, and training a machine learning model, the limitation of the reward function is solved, and the accurate reward allocation based on the agent's contribution is achieved, thereby improving the collaborative efficiency and response speed of the control system.

CN123159446APending Publication Date: 2026-11-24CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611328363.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the reward function used to train machine learning models has limitations, making it impossible to accurately measure the specific contribution of each agent to the overall team goal, which affects the training effect of machine learning models and the control effect of control devices.

Method used

By constructing an evaluation network based on an attention mechanism, the first reward parameter of each agent is calculated, and the second and third reward parameters are combined to form a weighted average to form a composite reward parameter. This is used to train the machine learning model, accurately allocate rewards to the contribution of each agent, and dynamically adjust the weight coefficients to adapt to different training stages.

Benefits of technology

It improves the control effect and response speed of intelligent control devices, promotes cooperation and optimization among multiple intelligent control devices, and enhances the overall performance of the control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159446A_ABST
    Figure CN123159446A_ABST
Patent Text Reader

Abstract

This disclosure relates to a control system training method, apparatus, electronic device, medium, and program product, belonging to the field of artificial intelligence technology. The control system training method includes: determining training objectives for multiple agents based on a target control task; inputting the state transition information of each agent into an evaluation network constructed based on an attention mechanism to output a first reward parameter for each agent; the state transition information includes the agent's current state information, observed environmental information, executed action information, and state information at the next moment after executing the action; the evaluation network is used to assess the contribution of each agent to the collaborative work of the target control task; and training a machine learning model controlling the multiple agents based on the first reward parameter. The technical solution of this disclosure can improve the control effect of a control device deploying a machine learning model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to a control system training method, control method, control system training device, control device, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] Multi-agent reinforcement learning, as an important branch of artificial intelligence, has shown great potential in complex decision-making systems. Through interactive learning among multiple agents in a shared environment, this technology can achieve significant results in many real-world collaborative decision-making problems. Among these challenges, accurately measuring the specific contribution of each agent to the overall team goal—the credit allocation problem—is a key factor determining collaborative efficiency.

[0003] In related technologies, reward functions are used to evaluate individual behavior, and the reward value output by the function serves as a learning feedback signal, driving the agent to dynamically adjust its strategy in order to improve the overall success rate of the team's tasks. Summary of the Invention

[0004] The inventors of this disclosure have discovered the following problem in the above-mentioned related technologies: the reward function used to train the machine learning model has limitations, which affects the training effect of the machine learning model, thereby causing a decrease in the control effect of the control device on which the machine learning model is deployed.

[0005] In view of this, this disclosure proposes a control system training technology scheme that can accurately allocate rewards to the actual contributions of the agent based on the evaluation network constructed according to the attention mechanism, thereby improving the control effect of the control device with the machine learning model deployed.

[0006] According to some embodiments of this disclosure, a control system training method is provided, comprising: determining a training objective for multiple intelligent agents based on a target control task, wherein the target control task is a task to be completed collaboratively by multiple intelligent control devices deployed with multiple intelligent agents, and the training objective is determined based on the control performance indicators that the multiple intelligent control devices need to optimize in the target control task; inputting the state transition information of each intelligent agent into an evaluation network constructed based on an attention mechanism to output a first reward parameter for each intelligent agent, wherein the state transition information includes the state information of each intelligent agent at the current moment, the observed environmental information, the action information performed, and the state information at the next moment after performing the action, and the evaluation network is used to evaluate the contribution of each intelligent agent to the collaborative work of the target control task; and training a machine learning model for controlling the multiple intelligent agents based on the first reward parameter.

[0007] In some embodiments, training a machine learning model to control multiple agents according to a first reward parameter includes: calculating a second reward parameter based on the values ​​of control performance indicators obtained by the multiple agents after performing actions, the second reward parameter being used to characterize the collaborative effect of the multiple agents at the current moment; calculating a third reward parameter for each agent based on state transition information, the third reward parameter being used to characterize the contribution of the action information performed by each agent at the current moment to achieving the training objective; and determining a composite reward parameter for each agent based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter, for training the machine learning model.

[0008] In some embodiments, determining the composite reward parameter for each agent based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter includes: determining the training stage of the control system based on the total number of training rounds and the current number of training rounds; and adjusting the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter based on the training stage.

[0009] In some embodiments, the training phase includes a first phase, a second phase, and a third phase. The current number of training rounds corresponding to the first phase is less than the current number of training rounds corresponding to the second phase, and the current number of training rounds corresponding to the second phase is less than the current number of training rounds corresponding to the third phase. Based on the training phase, adjusting the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter includes: in response to the control system being in the first phase, adjusting the weight coefficient of the third reward parameter to be greater than the weight coefficients of the first reward parameter and the second reward parameter; in response to the control system being in the second phase, adjusting the weight coefficient of the second reward parameter to be greater than the weight coefficients of the first reward parameter and the third reward parameter; and in response to the control system being in the third phase, adjusting the weight coefficient of the first reward parameter to be greater than the weight coefficients of the second reward parameter and the third reward parameter.

[0010] In some embodiments, determining a composite reward parameter for each agent based on the weighted average of a first reward parameter, a second reward parameter, and a third reward parameter to train a machine learning model controlling multiple agents includes: using all state transition information of each agent as experience samples within a time period; calculating an advantage function for each agent based on the composite reward parameter corresponding to a subset of experience samples extracted from the experience samples; calculating a loss function for the machine learning model based on the advantage function; and training the machine learning model based on the loss function.

[0011] In some embodiments, training a machine learning model to control multiple agents according to a first reward parameter includes: obtaining the composite reward parameter of each agent at the current time; training the machine learning model according to the composite reward parameter at the current time within a time period; repeating the above steps until the iteration termination condition is reached, and outputting the trained machine learning model.

[0012] In some embodiments, the iteration termination condition includes the number of training rounds reaching the total number of training rounds, or the control performance metric meeting a threshold.

[0013] In some embodiments, the machine learning model includes an evaluation network and a policy network. The policy network is used to generate action policies for multiple agents to guide the agents to perform corresponding actions according to the action policies. The loss function of the policy network is constructed based on a proximal policy optimization method.

[0014] In some embodiments, the loss function of the policy network includes an entropy regularization term, which characterizes the degree of randomness in the action selection of multiple agents during training.

[0015] In some embodiments, the target control task includes at least one of traffic signal control, multi-robot collaborative assembly, and drone monitoring; in response to the target task being traffic signal control, multiple intelligent control devices are deployed on the traffic light controller; in response to the target task being multi-robot collaborative assembly, multiple intelligent control devices are deployed on the industrial robot; in response to the target task being drone monitoring, multiple intelligent control devices are deployed on the drone.

[0016] According to some other embodiments of this disclosure, a control method is provided, comprising: using a machine learning model to control multiple intelligent control devices to cooperate in completing a target control task, wherein multiple intelligent agents are deployed in the multiple intelligent control devices, and the machine learning model is trained by the above-described control system training method.

[0017] According to further embodiments of this disclosure, a control system training device is provided, comprising: a determination module, configured to determine training objectives for multiple intelligent agents based on a target control task, wherein the target control task is a task to be completed collaboratively by multiple intelligent control devices deployed with multiple intelligent agents, and the training objectives are determined based on control performance indicators that the multiple intelligent control devices need to optimize in the target control task; an output module, configured to input state transition information of each of the multiple intelligent agents into an evaluation network constructed based on an attention mechanism, so as to output a first reward parameter for each intelligent agent, wherein the state transition information includes the state information of each intelligent agent at the current moment, the observed environmental information, the action information performed, and the state information at the next moment after performing the action, and the evaluation network is used to evaluate the contribution of each intelligent agent in the collaborative work of the target control task; and a training module, configured to train a machine learning model controlling the multiple intelligent agents based on the first reward parameter.

[0018] In some embodiments, the training module is used to calculate a second reward parameter based on the values ​​of control performance indicators obtained by multiple agents after performing actions. The second reward parameter is used to characterize the collaborative effect of multiple agents at the current moment. Based on state transition information, the training module calculates a third reward parameter for each agent. The third reward parameter is used to characterize the contribution of the action information performed by each agent at the current moment to achieving the training objective. Based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter, the training module determines a composite reward parameter for each agent, which is used to train the machine learning model.

[0019] In some embodiments, the training module is used to determine the training stage of the control system based on the total number of training rounds and the current number of training rounds; and to adjust the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter according to the training stage.

[0020] In some embodiments, the training phase includes a first phase, a second phase, and a third phase. The current number of training rounds corresponding to the first phase is less than the current number of training rounds corresponding to the second phase, and the current number of training rounds corresponding to the second phase is less than the current number of training rounds corresponding to the third phase. The training module is used to adjust the weight coefficient of the second reward parameter to be greater than the weight coefficient of the first reward parameter and the third reward parameter in response to the control system being in the second phase; and to adjust the weight coefficient of the first reward parameter to be greater than the weight coefficient of the second reward parameter and the third reward parameter in response to the control system being in the third phase.

[0021] In some embodiments, the training module is used to take all state transition information of each agent as experience samples within a time period; calculate the advantage function of each agent based on the composite reward parameters corresponding to a portion of the experience samples extracted from the experience samples; calculate the loss function of the machine learning model based on the advantage function; and train the machine learning model based on the loss function of the machine learning model.

[0022] In some embodiments, the training module is used to obtain the composite reward parameters of each agent at the current time; within a time period, the machine learning model is trained based on the composite reward parameters at the current time; the above steps are repeated until the iteration termination condition is reached, and the trained machine learning model is output.

[0023] In some embodiments, the iteration termination condition includes the number of training rounds reaching the total number of training rounds, or the control performance metric meeting a threshold.

[0024] In some embodiments, the machine learning model includes an evaluation network and a policy network. The policy network is used to generate action policies for multiple agents to guide the agents to perform corresponding actions according to the action policies. The loss function of the policy network is constructed based on a proximal policy optimization method.

[0025] In some embodiments, the loss function of the policy network includes an entropy regularization term, which characterizes the degree of randomness in the action selection of multiple agents during training.

[0026] In some embodiments, the target control task includes at least one of traffic signal control, multi-robot collaborative assembly, and drone monitoring; in response to the target task being traffic signal control, multiple intelligent control devices are deployed on the traffic light controller; in response to the target task being multi-robot collaborative assembly, multiple intelligent control devices are deployed on the industrial robot; in response to the target task being drone monitoring, multiple intelligent control devices are deployed on the drone.

[0027] According to some embodiments of the present disclosure, a control device is provided, including: a control module, used to control multiple intelligent control devices to cooperate in completing a target control task using a machine learning model, wherein multiple intelligent agents are deployed in the multiple intelligent control devices, and the machine learning model is trained by the above-described control system training method.

[0028] According to further embodiments of the present disclosure, an electronic device is provided, including: a memory; and a processor coupled to the memory, the processor being configured to execute a control system training method or control method according to any of the above embodiments based on instructions stored in the memory device.

[0029] According to further embodiments of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the control system training method or control method of any of the above embodiments.

[0030] According to further embodiments of this disclosure, a computer program product is also provided, including instructions that, when executed by a processor, cause the processor to perform a control system training method or control method according to any of the above embodiments.

[0031] In the above embodiments, an evaluation network constructed using an attention mechanism is used to calculate the first reward parameters of multiple agents deployed on multiple intelligent control devices. Based on these first reward parameters, a machine learning model for controlling the multiple intelligent control devices is trained, enhancing the processing capability of the intelligent control devices in performing control tasks and improving the response speed of the control system. The evaluation network constructed using the attention mechanism accurately allocates rewards based on the actual contributions of the agents, promoting collaboration and optimization among the multiple intelligent control devices, thereby improving the control effect of the control device with the deployed machine learning model. Attached Figure Description

[0032] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the specification, serve to explain the principles of this disclosure.

[0033] This disclosure will become clearer with reference to the accompanying drawings and the following detailed description, wherein: Figure 1 Flowcharts illustrating some embodiments of the control system training method of this disclosure; Figure 2 Flowcharts illustrating other embodiments of the control system training method of this disclosure are shown; Figure 3 Flowcharts illustrating some embodiments of the control method of this disclosure; Figure 4 Block diagrams illustrating some embodiments of the control system training apparatus of this disclosure; Figure 5 Block diagrams showing some embodiments of the control device of this disclosure; Figure 6 Block diagrams illustrating some embodiments of the electronic devices of this disclosure; Figure 7 Block diagrams illustrating other embodiments of the electronic devices disclosed herein are shown. Detailed Implementation

[0034] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.

[0035] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.

[0036] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.

[0037] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0038] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0039] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0040] As mentioned earlier, in team collaboration tasks, the control system can only acquire the overall reward signal generated by multiple intelligent control devices working together to complete the target control task. It cannot precisely map the reward feedback corresponding to the success of the team collaboration task to the individual agents deployed on each intelligent control device at the data level. This makes it difficult for the control system to accurately quantify the contribution of each agent to achieving the team task objective. This fuzzy credit allocation problem makes it impossible to specifically optimize agents with different contributions during strategy evaluation, thus affecting the control performance of control devices equipped with machine learning models.

[0041] To address the aforementioned issues, this disclosure proposes a control system training method. An evaluation network constructed using an attention mechanism is employed to calculate first reward parameters for multiple agents deployed on multiple intelligent control devices. Based on these first reward parameters, a machine learning model for controlling the multiple intelligent control devices is trained, enhancing the processing capabilities of the intelligent control devices in performing control tasks and improving the response speed of the control system. The evaluation network, constructed using the attention mechanism, accurately allocates rewards based on the actual contributions of the agents, promoting collaboration and optimization among the multiple intelligent control devices, thereby improving the control performance of the control device with the deployed machine learning model.

[0042] Figure 1 Flowcharts illustrating some embodiments of the control system training method of this disclosure are shown.

[0043] like Figure 1As shown, in step 110, the training objectives of multiple intelligent agents are determined according to the target control task. The target control task is a task that multiple intelligent control devices with multiple intelligent agents are deployed to complete collaboratively. The training objectives are determined based on the control performance indicators that the multiple intelligent control devices need to optimize in the target control task.

[0044] For example, multiple intelligent agents can complete complex tasks through mutual cooperation. Each intelligent agent has perception, decision-making and learning capabilities and needs to coordinate its actions with other intelligent agents. This is a machine learning method in which multiple intelligent agents learn the optimal decision-making strategy through trial and error in a shared environment.

[0045] For example, in an intelligent traffic control system, multiple intelligent control devices controlled by machine learning models are deployed on multiple traffic lights, which can intelligently adjust the phase or duration of the traffic lights. Training objectives can be multiple, including maximizing traffic efficiency and minimizing average waiting time.

[0046] In step 120, the state transition information of each agent among the multiple agents is input into the evaluation network constructed based on the attention mechanism to output the first reward parameter of each agent. The state transition information includes the state information of each agent at the current moment, the observed environmental information, the action information performed, and the state information at the next moment after performing the action. The evaluation network is used to evaluate the degree of contribution of each agent in the collaborative objective control task.

[0047] For example, an evaluation network could be based on a multi-head self-attention mechanism. Attention mechanisms excel at handling sequential or ensemble data, capturing the correlations between different elements. Through multi-head attention, the behavioral characteristics of all agents can be analyzed, and the contribution weight of each agent to the team's success can be calculated.

[0048] For example, the first reward parameter could be a contribution reward, calculated by a contribution evaluation network. The global state and the behavioral characteristics of all agents are input into the contribution evaluation network, where a multi-head self-attention mechanism analyzes this information and outputs contribution weights. Each contribution weight represents the agent's importance to the success of the target control task (such as smooth traffic flow in a region), and the sum of all weights is 1.

[0049] For example, in an intelligent transportation system, environmental information describes the overall system status, including average vehicle speeds at all intersections in the regional road network, total traffic volume in the region, current time period (morning / evening rush hour), and weather conditions. The agent's state information includes the current traffic light phase (green light for north-south straight traffic, red light for east-west left turns, etc.) and the duration of that phase. The actions performed include adjusting the traffic light phase or the duration of that phase.

[0050] In step 130, a machine learning model for controlling multiple agents is trained based on the first reward parameter.

[0051] For example, each agent has an independent policy network that is responsible for outputting the probability distribution of actions based on the environmental state, guiding the agent's behavior choices.

[0052] For example, machine learning models also include value networks, which are used to evaluate the expected cumulative reward that an agent can obtain by following the current policy in a given state.

[0053] For example, the policy network and value network in a machine learning model can be adjusted based on reward parameters.

[0054] In the above embodiments, an evaluation network constructed using an attention mechanism is used to calculate the first reward parameters of multiple agents deployed on multiple intelligent control devices. Based on these first reward parameters, a machine learning model for controlling the multiple intelligent control devices is trained, enhancing the processing capability of the intelligent control devices in performing control tasks and improving the response speed of the control system. The evaluation network constructed using the attention mechanism accurately allocates rewards based on the actual contributions of the agents, promoting collaboration and optimization among the multiple intelligent control devices, thereby improving the control effect of the intelligent control devices with deployed machine learning models.

[0055] The training of machine learning models is illustrated below through some examples.

[0056] In some embodiments, a second reward parameter is calculated based on the control performance index values ​​obtained by multiple agents after performing actions. The second reward parameter is used to characterize the collaborative effect of multiple agents at the current moment. A third reward parameter is calculated for each agent based on state transition information. The third reward parameter is used to characterize the contribution of the action information performed by each agent at the current moment to achieving the training objective. A composite reward parameter for each agent is determined based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter, and is used to train the machine learning model.

[0057] For example, the second reward parameter could be the team-wide reward, calculated based on the overall system performance metrics. In an intelligent transportation system, a scalar value, namely the team-wide reward shared by all agents, can be obtained by comparing the ratio of the current average vehicle speed to the historical average vehicle speed.

[0058] For example, the third reward parameter could be an individual performance reward, which evaluates each agent's actual performance at the current moment. In an intelligent transportation system, the individual performance reward can be determined by evaluating the current queue length at an intersection. The shorter the queue length, the higher the individual performance reward.

[0059] In some embodiments, the behavioral characteristics of three intersections—A, B, and C (where agents A, B, and C are deployed, respectively) and the global traffic state are input into a contribution evaluation network. This network operates based on an attention mechanism. During morning rush hour, it is identified that the behavior of intersection A, which connects to the main road, has the greatest impact on the global average vehicle speed, while the impact of intersection C is relatively smaller. Therefore, the network outputs the contribution weights of each agent. , , The team-wide reward obtained from this interaction. Then, the contribution reward for each agent is determined by the product of the global reward and the corresponding weight: the contribution reward for agent A is... The contribution reward for agent B is The contribution reward for agent C is Ultimately, the composite reward for each agent is obtained by weighted summing of the team's global reward, individual behavior reward, and contribution reward, i.e.:

[0060] In the above embodiments, by constructing a triple reward structure and weighting and fusing the first, second, and third reward parameters, a dynamic balance mechanism is established between the autonomous exploration of individual agents and the goal of team collaboration. By decomposing the global reward signal through contribution weights, the overall team benefits are rationally distributed to the agents on each intelligent control device. This balances individual behavior adjustments with overall performance improvement during optimization, avoiding short-sighted strategies or excessive competition caused by a single reward orientation. Consequently, the control device can perform stable updates during machine learning model training, reducing the number of invalid iterations during policy evaluation, thereby improving the control effect and convergence speed of the control device with the deployed machine learning model.

[0061] The following examples illustrate the adjustment of the reward parameter weights.

[0062] In some embodiments, the training stage of the control system is determined based on the total number of training rounds and the current number of training rounds; and the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter are adjusted according to the training stage.

[0063] For example, the adjustment of weight coefficients can be calculated based on a specific function or formula. Assuming the total number of training rounds is t, the current round number is e, and the team reward weights... It can be designed as: =0.2+0.6 (e / t). Thus, the weight will linearly increase from 0.2 to 0.8. Individual reward weight. It can be designed as: =0.6 (1-e / t). Thus, the weights will linearly decay from 0.6 to 0. Furthermore, the function can be non-linear (such as the sigmoid function) or trigger weight adjustments based on performance metrics.

[0064] In the above embodiments, by dynamically optimizing the weight ratios of various rewards at different training stages, the relative importance of the learning rate, exploration tendency, and team constraints upon which the intelligent control device relies for policy updates adaptively evolves with the training process. Real-time updates of the fusion weights of each reward component within the intelligent control device alleviate the problems of insufficient early exploration or excessive randomness in later stages under fixed weights, thereby improving the control performance of the intelligent control device deployed with the machine learning model.

[0065] The following examples illustrate, through examples, the determination of the training phase and corresponding weights.

[0066] In some embodiments, the training phase includes a first phase, a second phase, and a third phase. The current number of training rounds corresponding to the first phase is less than the current number of training rounds corresponding to the second phase, and the current number of training rounds corresponding to the second phase is less than the current number of training rounds corresponding to the third phase. Based on the training phase, adjusting the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter includes: in response to the control system being in the first phase, adjusting the weight coefficient of the third reward parameter to be greater than the weight coefficients of the first reward parameter and the second reward parameter; in response to the control system being in the second phase, adjusting the weight coefficient of the second reward parameter to be greater than the weight coefficients of the first reward parameter and the third reward parameter; and in response to the control system being in the third phase, adjusting the weight coefficient of the first reward parameter to be greater than the weight coefficients of the second reward parameter and the third reward parameter.

[0067] In some embodiments, during the first 10% of training rounds (i.e., the initial training phase), the goal is to allow the agent to experiment widely, so individual rewards have a high weight. During 10%-70% of training rounds (i.e., the middle training phase), the agent has a basic understanding of the environment and begins to learn collaboration, so team rewards have an increased weight. In the final 30% of training rounds (i.e., the later training phase), the agent's strategy tends to stabilize, and the goal is to refine the division of labor; therefore, contribution rewards have the highest weight.

[0068] In the above embodiments, the adaptive adjustment strategy effectively balances the relationship between short-term gains and long-term returns, improves learning efficiency, and forms a complete progressive learning path. Therefore, the intelligent control device can switch its optimization focus at different training stages, effectively avoiding invalid parameter updates caused by target weight mismatch under a single fixed strategy, thereby improving the control effect of the intelligent control device deployed with the machine learning model.

[0069] The following examples illustrate, through exemplary embodiments, the updating of networks in machine learning models.

[0070] In some embodiments, within a time period, all state transition information of each agent is used as experience samples; the advantage function of each agent is calculated based on the composite reward parameters corresponding to a portion of the experience samples extracted from the experience samples; the loss function of the machine learning model is calculated based on the advantage function; and the machine learning model is trained based on the loss function of the machine learning model.

[0071] For example, a distributed experience replay buffer is used to store the state transition trajectories of each agent, which are then randomly selected for use in subsequent training. At regular intervals, the control system randomly samples a batch of historical data from the experience replay buffer for network updates.

[0072] For example, based on the composite reward parameters, the advantage function is first calculated. The advantage function measures how much better it is to take this action than the average level in the current state. Based on the advantage function value, the loss for each network is calculated, such as the mean squared error loss. Finally, the gradient is calculated using the backpropagation algorithm, and the network parameters are updated. Similarly, the parameters of the contribution evaluation network can be updated using the backpropagation algorithm.

[0073] In the above embodiments, training data is stored in the control system in the form of experience samples and updated via the network in conjunction with composite reward parameters. The experience samples store the agent's historical trajectory, while the composite reward integrates multi-dimensional evaluation signals, thereby improving the algorithm's sample utilization efficiency and mitigating the ambiguity problem in credit allocation through reward decomposition. Furthermore, through an accurate reward allocation mechanism, the intelligent control device's response speed during policy evaluation is improved, resulting in fewer computations. This enhances the control performance of the intelligent control device deployed with the machine learning model.

[0074] The iterative updates of machine learning models are illustrated below through some examples.

[0075] In some embodiments, the composite reward parameters of each agent at the current time are obtained; within a time period, a machine learning model is trained based on the composite reward parameters at the current time; the above steps are repeated until the iteration termination condition is met, and the trained machine learning model is output.

[0076] For example, at a specific moment, the AI ​​interacts with its environment, generating a series of states, actions, and reward sequences, which are stored in the experience replay pool. After collecting a sufficient amount of data (i.e., at a certain time period), a batch of data is randomly sampled from the experience replay pool to uniformly calculate the loss function, and the network parameters are updated using the backpropagation algorithm.

[0077] In the above embodiments, the training process employs an iterative update strategy, allowing the machine learning model parameters to be adjusted towards a better direction in each round of interaction. Through iterative updates, the intelligent control device can continuously monitor the consistency of the update direction during training, reducing performance fluctuations of the machine learning model between consecutive training rounds, thereby improving the convergence performance of the algorithm and the stability of the training process. This enhances the control effect of the intelligent control device deploying the machine learning model.

[0078] The following examples illustrate the iteration termination conditions of machine learning models.

[0079] In some embodiments, the iteration termination condition includes the number of training rounds reaching the total number of training rounds, or the control performance metric meeting a threshold.

[0080] For example, in a drone monitoring system, the iteration termination condition can be set to 100 consecutive training rounds or an average area coverage efficiency exceeding 95%.

[0081] The iteration termination condition was described in the above embodiments. This termination condition ensures that the training process stops promptly when a preset goal is reached. By using this condition, the control system can stop the machine learning model in a timely manner after it reaches a performance threshold, reducing wasted computing resources and storage bandwidth usage. This improves the control effect of intelligent control devices that deploy machine learning models.

[0082] The following examples illustrate policy networks in machine learning models.

[0083] In some embodiments, the machine learning model includes an evaluation network and a policy network. The policy network is used to generate action policies for multiple agents to guide the agents to perform corresponding actions according to the action policies. The loss function of the policy network is constructed based on a proximal policy optimization method.

[0084] For example, the proximal policy optimization method is an efficient algorithm applied in reinforcement learning that achieves stable and efficient training by ensuring that the deviation between the current policy and the target policy is within a preset range.

[0085] The policy network was described in the above embodiments. The policy network loss function constructed using the proximal policy optimization method not only enhances the synergistic effect between agents but also achieves stable performance in different environments, ensuring the stability of the training process. Furthermore, when the control system performs network updates, the proximal policy optimization method can suppress policy mutations caused by excessively large single-step update magnitudes, avoiding performance fluctuations in the intelligent control device. This improves the control effect of the intelligent control device that deploys a machine learning model.

[0086] The following examples illustrate entropy regularization terms in policy networks.

[0087] In some embodiments, the loss function of the policy network includes an entropy regularization term, which characterizes the degree of randomness in the action selection of multiple agents during training.

[0088] For example, entropy regularization terms are used to increase the randomness and diversity of policy networks when generating actions.

[0089] In the above embodiments, the introduction of an entropy regularization term enables the agent to flexibly select different action strategies under different environmental conditions, thereby avoiding getting trapped in local optima. This allows the intelligent control device to make more informed choices about execution strategies during the task execution phase, achieving better task processing results and improving the control effectiveness of intelligent control devices equipped with machine learning models.

[0090] The following examples illustrate target control tasks in different application scenarios.

[0091] In some embodiments, the target control task includes at least one of traffic signal control, multi-robot collaborative assembly, and drone monitoring; in response to the target task being traffic signal control, multiple intelligent control devices are deployed on the traffic light controller; in response to the target task being multi-robot collaborative assembly, multiple intelligent control devices are deployed on the industrial robot; in response to the target task being drone monitoring, multiple intelligent control devices are deployed on the drone.

[0092] In some embodiments, within an intelligent traffic control scenario, each intersection traffic light controller within an urban area is treated as an intelligent agent. The control system establishes an independent decision-making network for each traffic light controller, including a policy network and a value network, while simultaneously constructing a centralized traffic flow contribution evaluation network. Each traffic light controller monitors intersection traffic conditions in real time, such as vehicle flow, queue length, and average waiting time, and generates traffic light switching decisions based on this information. The control system periodically collects global traffic status data, covering various comprehensive indicators such as regional average vehicle speed, overall traffic efficiency, and traffic congestion index.

[0093] In the reward calculation process of intelligent traffic control scenarios, the global reward is evaluated based on the improvement of the overall traffic efficiency of the area, reflecting the effect of collaborative control. The individual reward is determined based on the reduction of the average waiting time of vehicles at a single intersection, reflecting the basic control performance. The contribution reward evaluates the actual impact of each traffic light controller on the regional traffic flow through an attention mechanism, and accurately reflects the collaborative value of each controller.

[0094] During the training process of intelligent traffic control scenarios, the control system dynamically adjusts the reward weights based on the temporal characteristics of traffic flow. During peak hours, the global reward weight is increased to optimize overall traffic efficiency. During off-peak hours, individual rewards and contribution-based rewards are balanced to improve the coordination of control at various intersections.

[0095] In some embodiments, within a smart manufacturing scenario, each industrial robot is treated as an intelligent agent. The control system establishes a complete decision-making network for each robot, including a strategy network and a value network, and deploys a centralized assembly task contribution evaluation network. Each robot generates action decisions based on information such as workbench status, part location distribution, and task progress requirements. The control system monitors the entire assembly process in real time, encompassing multi-dimensional data such as task completion progress, product quality indicators, and resource consumption.

[0096] In the reward calculation process of intelligent manufacturing scenarios, the global reward is calculated based on the overall assembly task completion efficiency and quality pass rate to ensure the achievement of production targets. Individual rewards are determined based on the workload balance and operational accuracy of individual robots to ensure the quality of basic operations. Contribution rewards evaluate the value contribution of each robot in key processes through an attention mechanism and promote specialized division of labor.

[0097] During training in intelligent manufacturing scenarios, the control system dynamically adjusts its learning strategy based on the complexity of the assembly task. In simple assembly tasks, the focus is on improving individual skills and optimizing operational precision. In complex collaborative tasks, teamwork rewards are strengthened to promote seamless cooperation between robots.

[0098] In some embodiments, in a drone-based area monitoring scenario, each drone is treated as an intelligent agent. The control system establishes an independent flight decision network for each drone, including an environmental perception module and an action strategy network, and constructs a centralized monitoring performance contribution evaluation mechanism. Each drone generates flight path decisions based on real-time environmental perception data, its own energy status, and monitoring task requirements. The control system comprehensively evaluates multiple global performance indicators such as area coverage, data acquisition quality, and energy efficiency.

[0099] In the reward calculation process for UAV area monitoring scenarios, the global reward is calculated based on the completeness of area monitoring and the validity of data to ensure the quality of monitoring task completion. Individual rewards are determined based on single-unit energy efficiency and flight stability to guarantee basic flight performance. Contribution rewards evaluate the information value of each UAV in key area monitoring through an attention mechanism and optimize the allocation of monitoring resources.

[0100] During training for UAV-based area monitoring scenarios, the control system dynamically adjusts reward weights based on the importance of the monitoring task and environmental conditions. In high-priority area monitoring, contribution reward weights are increased to ensure coverage quality in key areas. In routine monitoring tasks, global and individual rewards are balanced to improve overall system efficiency.

[0101] In the above embodiments, from intelligent traffic control to industrial robot collaboration and multi-drone collaboration, these application examples of intelligent control devices not only verify the effectiveness of the algorithm, but also demonstrate the adaptability of intelligent control devices in different environments.

[0102] Figure 2 Flowcharts illustrating some other embodiments of the control system training method of this disclosure are shown.

[0103] like Figure 2 As shown, in step 200, the user's natural language request is received. For example, the user inputs their request through an interactive interface.

[0104] Step 202 involves natural language understanding and intent parsing. For example, the natural language is converted into a task description vector that the computer can understand for subsequent retrieval.

[0105] In step 204, knowledge retrieval is performed based on an attention mechanism. For example, the attention mechanism is used to filter out the knowledge fragments most relevant to the current need.

[0106] In step 206, multi-granularity thought chain reasoning is performed. For example, a series of interpretable reasoning steps are formed through thought chains, ultimately deriving multiple candidate design directions.

[0107] In step 208, the network architecture and overall principles are determined. For example, based on the reasoning results, the overall architecture type of the network is identified.

[0108] In step 210, network resources are allocated and regions are divided. For example, based on the application scenario, the regions responsible for each agent are divided.

[0109] In step 212, specific device configuration and parameter settings are performed. For example, adaptive adjustments are made to the devices installed on each agent.

[0110] In step 214, consistency verification is performed. For example, a consistency check is performed on multiple agents. If the verification passes, proceed to step 216 for adaptive decision optimization. For example, the system dynamically adjusts the policy network and other relevant networks based on specific application scenarios and conditions. If the verification fails, return to step 206. For example, this indicates that the candidate solution is infeasible and a new solution needs to be reasoned out.

[0111] In step 218, multi-objective optimization is performed. For example, by considering multiple objectives simultaneously, the overall performance of the system can be improved, ensuring that the optimal solution is achieved while satisfying each objective.

[0112] In step 220, reinforcement learning is fine-tuned. For example, reinforcement learning is used to enable an agent to learn how to take actions to maximize rewards through interactions with the environment.

[0113] In step 222, a network planning scheme is generated. For example, training ends, and a trained machine learning model is obtained.

[0114] In step 224, the planning results are output. For example, the target task is processed based on the trained machine learning model.

[0115] Figure 3 Flowcharts illustrating some embodiments of the control methods of this disclosure are shown.

[0116] like Figure 3 As shown, in step 310, a machine learning model is used to control multiple intelligent control devices to cooperate in completing the target control task. Multiple intelligent agents are deployed in the multiple intelligent control devices, and the machine learning model is trained by the control system training method.

[0117] In the above embodiments, the machine learning model trained using the above-described control system training method can efficiently process the target control task.

[0118] Figure 4 Block diagrams illustrating some embodiments of the control system training apparatus of this disclosure are shown.

[0119] like Figure 4 As shown, a control system training device 4 is provided, comprising: a determination module 41, used to determine the training objectives of multiple intelligent agents according to a target control task, wherein the target control task is a task to be completed collaboratively by multiple intelligent control devices with multiple intelligent agents deployed, and the training objectives are determined based on the control performance indicators that the multiple intelligent control devices need to optimize in the target control task; an output module 42, used to input the state transition information of each intelligent agent into an evaluation network constructed according to an attention mechanism, so as to output a first reward parameter for each intelligent agent, wherein the state transition information includes the state information of each intelligent agent at the current moment, the observed environmental information, the action information executed, and the state information at the next moment after the action is executed, and the evaluation network is used to evaluate the contribution of each intelligent agent in the collaborative work of the target control task; and a training module 43, used to train a machine learning model for controlling multiple intelligent agents according to the first reward parameter.

[0120] In some embodiments, the training module 43 is used to calculate a second reward parameter based on the values ​​of control performance indicators obtained by multiple agents after performing actions. The second reward parameter is used to characterize the cooperative effect of multiple agents at the current moment. Based on state transition information, the training module 43 calculates a third reward parameter for each agent. The third reward parameter is used to characterize the contribution of the action information performed by each agent at the current moment to achieving the training objective. Based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter, the training module 43 determines a composite reward parameter for each agent to train the machine learning model.

[0121] In some embodiments, the training module 43 is used to determine the training stage of the control system based on the total number of training rounds and the current number of training rounds; and to adjust the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter according to the training stage.

[0122] In some embodiments, the training phase includes a first phase, a second phase, and a third phase. The current number of training rounds corresponding to the first phase is less than the current number of training rounds corresponding to the second phase, and the current number of training rounds corresponding to the second phase is less than the current number of training rounds corresponding to the third phase. The training module 43 is used to adjust the weight coefficient of the second reward parameter to be greater than the weight coefficient of the first reward parameter and the third reward parameter in response to the control system being in the second phase; and to adjust the weight coefficient of the first reward parameter to be greater than the weight coefficient of the second reward parameter and the third reward parameter in response to the control system being in the third phase.

[0123] In some embodiments, the training module 43 is used to take all state transition information of each agent as experience samples within a time period; calculate the advantage function of each agent based on the composite reward parameters corresponding to a portion of the experience samples extracted from the experience samples; calculate the loss function of the machine learning model based on the advantage function; and train the machine learning model based on the loss function of the machine learning model.

[0124] In some embodiments, the training module 43 is used to obtain the composite reward parameters of each agent at the current time; within a time period, the machine learning model is trained based on the composite reward parameters at the current time; the above steps are repeated until the iteration termination condition is reached, and the trained machine learning model is output.

[0125] In some embodiments, the iteration termination condition includes the number of training rounds reaching the total number of training rounds, or the control performance metric meeting a threshold.

[0126] In some embodiments, the machine learning model includes an evaluation network and a policy network. The policy network is used to generate action policies for multiple agents to guide the agents to perform corresponding actions according to the action policies. The loss function of the policy network is constructed based on a proximal policy optimization method.

[0127] In some embodiments, the loss function of the policy network includes an entropy regularization term, which characterizes the degree of randomness in the action selection of multiple agents during training.

[0128] In some embodiments, the target control task includes at least one of traffic signal control, multi-robot collaborative assembly, and drone monitoring; in response to the target task being traffic signal control, multiple intelligent control devices are deployed on the traffic light controller; in response to the target task being multi-robot collaborative assembly, multiple intelligent control devices are deployed on the industrial robot; in response to the target task being drone monitoring, multiple intelligent control devices are deployed on the drone.

[0129] Figure 5 Block diagrams illustrating some embodiments of the control device of this disclosure are shown.

[0130] like Figure 5 As shown, a control device 5 is provided, including: a control module 51, used to control multiple intelligent control devices to cooperate in completing a target control task using a machine learning model, wherein multiple intelligent agents are deployed in the multiple intelligent control devices, and the machine learning model is trained by the above-mentioned control system training method.

[0131] Figure 6 Block diagrams illustrating some embodiments of the electronic devices disclosed herein.

[0132] like Figure 6 As shown, the electronic device 6 of this embodiment includes a memory 61 and a processor 62 coupled to the memory 61. The processor 62 is configured to execute a control system training method or control method in any embodiment of this disclosure based on instructions stored in the memory 61.

[0133] The memory 61 may include, for example, system memory, fixed non-volatile storage media, etc. The system memory may store, for example, the operating system, application programs, boot loader, database, and other programs.

[0134] Figure 7 Block diagrams illustrating some embodiments of the electronic devices disclosed herein.

[0135] like Figure 7 As shown, the electronic device 7 of this embodiment includes a memory 710 and a processor 720 coupled to the memory 710. The processor 720 is configured to execute the control system training method or control method of any of the foregoing embodiments based on instructions stored in the memory 710.

[0136] The memory 710 may include, for example, system memory, fixed non-volatile storage media, etc. The system memory stores, for example, the operating system, application programs, boot loader, and other programs.

[0137] Electronic device 7 may also include input / output interface 730, network interface 740, storage interface 750, etc. These interfaces 730, 740, 750, as well as the memory 710 and processor 720, can be connected via, for example, a bus 760. Specifically, input / output interface 730 provides a connection interface for input / output devices such as monitors, mice, keyboards, touchscreens, microphones, and speakers. Network interface 740 provides a connection interface for various networked devices. Storage interface 750 provides a connection interface for external storage devices such as SD cards and USB flash drives.

[0138] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0139] The training and control methods for the control system according to this disclosure have now been described in detail. To avoid obscuring the concept of this disclosure, some details known in the art have not been described. Those skilled in the art can fully understand how to implement the technical solutions disclosed herein based on the above description.

[0140] The methods and systems of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the specific order described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.

[0141] While specific embodiments of this disclosure have been described in detail by way of examples, those skilled in the art should understand that the examples are for illustrative purposes only and are not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure.

Claims

1. A method for training a control system, comprising: Based on the target control task, training objectives for multiple intelligent agents are determined. The target control task is a task that is completed collaboratively by multiple intelligent control devices deployed with the multiple intelligent agents. The training objectives are determined based on the control performance indicators that the multiple intelligent control devices need to optimize in the target control task. The state transition information of each of the multiple agents is input into an evaluation network constructed based on an attention mechanism to output the first reward parameter of each agent. The state transition information includes the state information of each agent at the current moment, the observed environmental information, the action information performed, and the state information at the next moment after performing the action. The evaluation network is used to evaluate the contribution of each agent to the cooperation of the target control task. Based on the first reward parameter, a machine learning model is trained to control the plurality of intelligent agents.

2. The control system training method of claim 1, wherein, The step of training the machine learning model controlling the plurality of agents based on the first reward parameter includes: Based on the values ​​of the control performance indicators obtained by the multiple agents after performing actions, a second reward parameter is calculated. The second reward parameter is used to characterize the cooperative effect of the multiple agents at the current moment. Based on the state transition information, a third reward parameter is calculated for each agent. The third reward parameter is used to characterize the degree of contribution of the action information performed by each agent at the current moment to achieving the training objective. The composite reward parameter for each agent is determined based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter, and is used to train the machine learning model.

3. The control system training method of claim 2, wherein, The step of determining the composite reward parameter for each agent based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter includes: The training stage of the control system is determined based on the total number of training rounds and the current number of training rounds. Adjust the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter according to the current training stage.

4. The control system training method according to claim 3, wherein, The adjustment of the weight coefficients of the first reward parameter, the second reward parameter, and the third reward parameter based on the training phase includes: In response to the control system being in the first stage, the weighting coefficient of the third reward parameter is adjusted to be greater than the weighting coefficients of the first reward parameter and the second reward parameter; In response to the control system being in the second stage, the weighting coefficient of the second reward parameter is adjusted to be greater than the weighting coefficients of the first reward parameter and the third reward parameter; In response to the control system being in the third stage, the weight coefficient of the first reward parameter is adjusted to be greater than the weight coefficients of the second reward parameter and the third reward parameter.

5. The control system training method of claim 2, wherein, The step of determining the composite reward parameter for each agent based on the weighted average of the first reward parameter, the second reward parameter, and the third reward parameter, in order to train the machine learning model controlling the multiple agents, includes: Within a time period, all state transition information of each agent is used as an empirical sample. The advantage function of each agent is calculated based on the composite reward parameters corresponding to a portion of the experience samples extracted from the experience samples. Based on the advantage function, calculate the loss function of the machine learning model; The machine learning model is trained based on its loss function.

6. The control system training method according to any one of claims 1-5, wherein, The step of training the machine learning model controlling the plurality of agents based on the first reward parameter includes: Obtain the composite reward parameters for each agent at the current time; Within a time period, the machine learning model is trained based on the composite reward parameters at the current moment; Repeat the above steps until the iteration termination condition is met, and output the trained machine learning model.

7. The control system training method of claim 6, wherein, The iteration termination conditions include the number of training rounds reaching the total number of training rounds, or the control performance index meeting a threshold.

8. The control system training method according to any one of claims 1-5, wherein, The machine learning model includes an evaluation network and a policy network. The policy network is used to generate action policies for the multiple agents to guide the multiple agents to perform corresponding actions according to the action policies. The loss function of the policy network is constructed based on the proximal policy optimization method.

9. The control system training method of claim 8, wherein, The loss function of the policy network includes an entropy regularization term, which is used to characterize the randomness of the action selection of the multiple agents during training.

10. The control system training method according to any one of claims 1-5, wherein, The target control task includes at least one of traffic signal control, multi-robot collaborative assembly, and drone monitoring; In response to the target task being traffic signal control, the multiple intelligent control devices are deployed on the traffic light controller; In response to the target task being multi-robot collaborative assembly, the multiple intelligent control devices are deployed on the industrial robots; In response to the target task of drone monitoring, the multiple intelligent control devices are deployed on the drone.

11. A control method, comprising: A machine learning model is used to control multiple intelligent control devices to cooperate in completing a target control task. The multiple intelligent control devices are equipped with multiple intelligent agents. The machine learning model is trained by the control system training method according to any one of claims 1-10.

12. A control system training device, comprising: The determination module is used to determine the training objectives of multiple intelligent agents based on the target control task. The target control task is a task that is completed collaboratively by multiple intelligent control devices deployed with the multiple intelligent agents. The training objectives are determined based on the control performance indicators that the multiple intelligent control devices need to optimize in the target control task. The output module is used to input the state transition information of each of the multiple agents into an evaluation network constructed based on the attention mechanism, so as to output the first reward parameter of each agent. The state transition information includes the state information of each agent at the current moment, the observed environmental information, the action information executed, and the state information at the next moment after the action is executed. The evaluation network is used to evaluate the contribution of each agent in the cooperation of the target control task. The training module is used to train a machine learning model that controls the plurality of intelligent agents based on the first reward parameter.

13. A control device, comprising: A control module is used to control multiple intelligent control devices to cooperate in completing a target control task using a machine learning model. The multiple intelligent control devices are equipped with multiple intelligent agents. The machine learning model is trained by the control system training method according to any one of claims 1-10.

14. An electronic device, comprising: Memory; and A processor coupled to the memory, the processor being configured to execute the control system training method of any one of claims 1-10, or the control method of claim 11, based on instructions stored in the memory.

15. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control system training method of any one of claims 1-10, or the control method of claim 11.

16. A computer program product comprising instructions that, when executed by a processor, cause the processor to perform the control system training method according to any one of claims 1-10, or the control method according to claim 11.