Training method, device, equipment and storage medium for intelligent decision-making model
By acquiring and processing external information in a multi-agent environment, using the distributed executor model of the intelligent decision-making model to output action branches and aggregating reward values, the problem of reward uncertainty in multi-agent reinforcement learning is solved and a stable training effect.
Patent Information
- Application Number
- CN202211172621.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-09-26
AI Technical Summary
In a multi-agent environment, the mutual influence between agents and the uncertain reward values caused by environmental uncertainty make stable learning of multi-agent reinforcement learning models difficult.
By obtaining the external information of the robot in the target environment, the distributed executor model of the intelligent decision-making model is used to output multiple action branches, and the reward value distribution is estimated and aggregated based on these action branches to obtain mixed rewards and integrated rewards. Train intelligent decision-making models to achieve stable training effects.
The training stability and effect of the multi-agent reinforcement learning model are improved, and a relatively stable learning process can be achieved in a multi-agent environment.
Smart Images

Figure CN115648204B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a training method, apparatus, device and storage medium for an intelligent decision-making model. Background Art
[0002] With the development of computer technology, Multi-Agent Reinforcement Learning (MARL) has made great progress in fields such as large-scale real-time combat games, robot control, autonomous driving, and stock trading.
[0003] In a multi-agent environment, the reward values obtained by the agents will be uncertain due to the potential mutual influence between agents and the uncertainty of the environment itself. This uncertain reward value will affect the learning of the multi-agent. For example, in an environment including multiple robots, the interaction between robots and the uncertainty of the environment itself will affect the training effect of the robot's intelligent decision-making model, which is also a reinforcement learning model. It becomes very difficult and tricky to achieve stable learning of multi-agent reinforcement learning models. Therefore, a method that can achieve stable learning of multi-agent reinforcement learning models is urgently needed. Summary of the invention
[0004] The embodiment of the present application provides a training method, device, equipment and storage medium for an intelligent decision model, which can improve the training effect of the robot's decision model. The technical solution is as follows:
[0005] On the one hand, a training method for an intelligent decision-making model is provided, the method comprising:
[0006] Acquire external information collected by the robot in the target environment, wherein the external information includes external environment information and interaction information, wherein the external environment information is information obtained by the robot observing the target environment, and the interaction information is information obtained by the robot interacting with other robots in the target environment;
[0007] Input the external information into the intelligent decision model of the robot, and the distributed executor model of the intelligent decision model makes predictions based on the external information and outputs a plurality of action branches of the robot, wherein the action branches are actions that the robot may perform in the target environment;
[0008] Determine the reward value distribution of each of the action branches based on the external information and the multiple action branches;
[0009] Perform reward aggregation on the sampled reward values sampled from the reward value distribution of each of the action branches to obtain a mixed reward and an integrated reward;
[0010] Based on the mixed reward, the integrated reward and the external information, the intelligent decision-making model of the robot is trained.
[0011] In a possible implementation, the distributed executor model of the intelligent decision-making model predicts based on the external information and outputs multiple action branches of the robot, including:
[0012] The distributed executor model of the intelligent decision-making model performs at least one of full connection, convolution and attention encoding on the external information to obtain external information features of the external information;
[0013] The distributed executor model of the intelligent decision-making model fully connects and normalizes the external information features, and outputs multiple action branches of the robot.
[0014] In a possible implementation, determining the reward value distribution of each action branch based on the external information and the multiple action branches includes:
[0015] The external information and the multiple action branches are input into a reward value estimation model, and the reward value distribution is estimated based on the external information and the multiple action branches by the reward value estimation model, and the reward value distribution of each action branch is output.
[0016] In a possible implementation, the reward aggregation of the sampled reward values sampled from the reward value distribution of each action branch to obtain the mixed reward and the integrated reward includes:
[0017] Sampling the reward value distribution of each of the action branches to obtain a sampled reward value of each of the action branches;
[0018] Performing strategy-weighted fusion on the sampled reward values of the various action branches to obtain the mixed reward;
[0019] The sampled reward values of each of the action branches are globally averaged, locally averaged, or directly selected to obtain the integrated reward.
[0020] In a possible implementation, the training of the distributed executor model of the intelligent decision-making model of the robot based on the mixed reward, the integrated reward and the external information includes:
[0021] Training a reward value estimation model of the intelligent decision-making model based on the external information;
[0022] Based on the mixed reward, the external information and the critic model of the intelligent decision-making model, obtaining action advantage values of the multiple action branches, the critic model being used to evaluate the multiple action branches based on the external information;
[0023] Based on the action advantage value and the integrated reward, a distributed executor model of the intelligent decision-making model is trained.
[0024] In a possible implementation, the acquiring the action advantage values of the multiple action branches based on the mixed reward, the external information, and the critic model of the intelligent decision-making model includes:
[0025] The critic model of the intelligent decision-making model is trained based on the mixed reward and the external information; the external information and the multiple action branches are input into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
[0026] In a possible implementation, the training of the intelligent decision model based on the action advantage value and the integrated reward includes:
[0027] Based on the action advantage value and the integrated reward, a loss function of the distributed actor model is constructed;
[0028] Based on the loss function, the distributed executor model is trained using a gradient descent method.
[0029] In one aspect, a training device for an intelligent decision model is provided, the device comprising:
[0030] An external information acquisition module is used to acquire external information collected by the robot in the target environment, wherein the external information includes external environment information and interaction information. The external environment information is information obtained by the robot observing the target environment, and the interaction information is information obtained by the robot interacting with other robots in the target environment.
[0031] An action prediction module, used for inputting the external information into the intelligent decision model of the robot, and the distributed executor model of the intelligent decision model makes predictions based on the external information, and outputs a plurality of action branches of the robot, wherein the action branches are actions that the robot may perform in the target environment;
[0032] A reward value prediction module, used to determine the reward value distribution of each of the action branches based on the external information and the multiple action branches;
[0033] A reward value aggregation module, used to perform reward aggregation on sampled reward values sampled from the reward value distribution of each action branch to obtain a mixed reward and an integrated reward;
[0034] A training module is used to train the intelligent decision-making model of the robot based on the mixed reward, the integrated reward and the external information.
[0035] In one possible implementation, the action prediction module is used to perform at least one of full connection, convolution, and attention encoding on the external information by the distributed executor model of the intelligent decision-making model to obtain external information features of the external information; the distributed executor model of the intelligent decision-making model fully connects and normalizes the external information features to output multiple action branches of the robot.
[0036] In one possible implementation, the reward value prediction module is used to input the external information and the multiple action branches into a reward value estimation model, perform reward value distribution estimation based on the external information and the multiple action branches through the reward value estimation model, and output the reward value distribution of each action branch.
[0037] In a possible implementation, the reward value aggregation module is used to sample the reward value distribution of each of the action branches to obtain the sampled reward value of each of the action branches; perform strategy weighted fusion on the sampled reward values of each of the action branches to obtain the mixed reward; perform any one of global averaging, local averaging and direct selection on the sampled reward values of each of the action branches to obtain the integrated reward.
[0038] In one possible implementation, the training module is used to obtain the action advantage values of the multiple action branches based on the mixed reward, the external information and the critic model of the intelligent decision-making model, and the critic model is used to evaluate the multiple action branches based on the external information; based on the action advantage values and the integrated reward, the distributed executor model of the intelligent decision-making model is trained.
[0039] In a possible implementation, the training module is used to train a reward value estimation model of the intelligent decision-making model based on the external information;
[0040] In a possible implementation, the training module is used to train the critic model based on the mixed reward and the external information; the external information and the multiple action branches are input into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
[0041] In a possible implementation, the training module is used to construct a loss function of the distributed executor model based on the action advantage value and the integrated reward; and based on the loss function, the distributed executor model is trained using a gradient descent method.
[0042] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the training method of the intelligent decision-making model.
[0043] On the one hand, a computer-readable storage medium is provided, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to implement the training method of the intelligent decision-making model.
[0044] On the one hand, a computer program product or computer program is provided, which includes a program code, which is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned training method of the intelligent decision-making model.
[0045] Through the technical solution provided in the embodiment of the present application, the external information collected by the robot in the target environment is obtained, the external information is input into the intelligent decision-making model, and the distributed executor model of the intelligent decision-making model outputs multiple action branches, which are all actions that the robot may perform in the target environment when the external information is obtained. Based on the external information and the multiple action branches, the reward value distribution of each action branch is determined, that is, multiple action branches are evaluated. Based on the reward value distribution of multiple action branches, reward aggregation is performed to determine the mixed reward and the integrated reward. Training the intelligent decision-making model based on the mixed reward, the integrated reward and the external information can achieve a relatively stable training effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 It is a schematic diagram of an implementation environment of a training method for an intelligent decision-making model provided in an embodiment of the present application;
[0048] Figure 2 It is a flow chart of a training method of an intelligent decision-making model provided in an embodiment of the present application;
[0049] Figure 3 It is a flow chart of a training method of an intelligent decision-making model provided in an embodiment of the present application;
[0050] Figure 4 It is a framework diagram of a training method for an intelligent decision-making model provided in an embodiment of the present application;
[0051] Figure 5 It is a schematic diagram of an experimental result provided in an embodiment of the present application;
[0052] Figure 6 It is a structural schematic diagram of a training device for an intelligent decision-making model provided in an embodiment of the present application;
[0053] Figure 7 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0054] Figure 8 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0056] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0057] In order to illustrate the technical solution provided by the embodiments of the present application, the terms involved in the embodiments of the present application are first introduced below.
[0058] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0059] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge sub-models to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.
[0060] Deep reinforcement learning (DRL): Deep reinforcement learning combines the perception ability of deep learning with the decision-making ability of reinforcement learning. It can be controlled directly according to the input image. It is an artificial intelligence method that is closer to human thinking. Deep reinforcement learning is a branch of deep learning. Deep reinforcement learning can be reduced to a Markov decision process (MDP) represented by a five-tuple, that is,<S,A,R,P,γ> , respectively represent the environment state, action, reward, state transfer matrix, and cumulative discount factor. The agent obtains the state and reward from the environment and generates actions to act on the environment. The environment obtains the action of the agent and generates the next state for the agent based on the current state. The purpose of the agent is to maximize long-term benefits.
[0061] Normalization: Mapping sequences with different value ranges to the interval (0, 1) makes data processing easier. In some cases, the normalized values can be directly implemented as probabilities.
[0062] Learning Rate: It is used to control the learning progress of the model. The learning rate can guide the model in how to use the gradient of the loss function to adjust the network weights in the gradient descent method. If the learning rate is too large, the loss function may directly cross the global optimal point, which is manifested as excessive loss; if the learning rate is too small, the loss function changes very slowly, which will greatly increase the convergence complexity of the network and it is easy to be trapped in the local minimum or saddle point.
[0063] Embedded Coding: Embedded coding mathematically represents a correspondence, that is, mapping data in X space to Y space through a function F, where function F is an injective function, and the mapping result is structural preservation. The injective function indicates that the data after mapping is uniquely corresponding to the data before mapping, and structural preservation indicates that the size relationship of the data before mapping is the same as the size relationship of the data after mapping. For example, before mapping, there are data X1 and X2, and after mapping, Y1 corresponding to X1 and Y2 corresponding to X2 are obtained. If the data X1 before mapping is greater than X2, then correspondingly, the data Y1 after mapping is greater than Y2. For words, it means mapping the words to another space to facilitate subsequent machine learning and processing.
[0064] Attention Weight: It can indicate the importance of a certain data in the training or prediction process. The importance indicates the influence of the input data on the output data. The attention weight value corresponding to the data with high importance is higher, and the attention weight value corresponding to the data with low importance is lower. In different scenarios, the importance of data is different. The process of training the attention weight of the model is also the process of determining the importance of the data.
[0065] In addition to introducing the nouns involved in the embodiments of the present application, the implementation environment of the embodiments of the present application is introduced below.
[0066] Figure 1 This is a schematic diagram of the implementation environment of a training method for an intelligent decision-making model provided in an embodiment of the present application, see Figure 1 , the implementation environment may include a terminal 110 and a server 140.
[0067] The terminal 110 is connected to the server 140 via a wireless network or a wired network. Optionally, the terminal 110 is a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal 110 is installed and runs an application program that supports intelligent decision model training.
[0068] Server 140 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. Server 140 provides background services for applications running on the terminal.
[0069] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or a greater number, and the above implementation environment may also include other terminals. The embodiment of the present application does not limit the number and device type of the terminals.
[0070] After introducing the implementation environment of the embodiments of the present application, the application scenarios of the embodiments of the present application are introduced below.
[0071] The technical solution provided by the embodiment of the present application can be applied in the scenario of multi-robot navigation. The intelligent decision-making model of the robot can be trained by using the technical solution provided by the embodiment of the present application. The intelligent decision-making model can output actions according to the external information observed by the robot, and the actions can realize the navigation of the robot. The intelligent decision-making model is configured for multiple robots in an environment, so as to achieve the purpose of navigating multiple robots. In the above scenario of multi-robot navigation, each robot can be regarded as an intelligent agent.
[0072] Alternatively, the technical solution provided in the embodiment of the present application can also be applied to other scenarios involving multiple intelligent agents, for example, the technical solution provided in the embodiment of the present application can be applied to the scenario of multi-vehicle navigation, and can also be applied to the scenario of multiple virtual objects fighting in a game scene, etc., and the embodiment of the present application does not limit this. In the following description process, the technical solution provided in the embodiment of the present application is applied to the scenario of multi-robot navigation as an example for description.
[0073] After introducing the implementation environment and application scenarios of the embodiments of the present application, the technical solutions provided by the embodiments of the present application are introduced below. It should be noted that in the following description of the technical solutions provided by the present application, the server is used as an example of the execution subject. In other possible implementations, the technical solutions provided by the present application can also be executed by the terminal as the execution subject, and the embodiments of the present application do not limit the type of the execution subject.
[0074] Figure 2 This is a flowchart of a training method for an intelligent decision-making model provided in an embodiment of the present application, see Figure 2 Taking the execution subject as a server as an example, the method includes the following steps.
[0075] 201. The server obtains external information collected by the robot in the target environment, where the external information includes external environment information and interaction information. The external environment information is information obtained by the robot observing the target environment, and the interaction information is information obtained by the robot interacting with other robots in the target environment.
[0076] Wherein, the target environment includes multiple robots, and the robot in the above step 201 is any robot among the multiple robots. The external information includes external environment information and interaction information. The external environment information is the information obtained by the robot observing the target environment, that is, the information obtained by the robot observing the target environment through multiple sensors. For example, the external information includes the environment image obtained by the image sensor of the robot, the position obtained by the position sensor of the robot, and the posture information obtained by the gyroscope of the robot. Of course, different robots are provided with different sensors, and the external environment information may be different with different sensors. The interaction information is the information obtained by the robot interacting with other robots in the target environment. For example, the interaction information includes the collision information between the robot and other robots.
[0077] 202. The server inputs the external information into the intelligent decision-making model of the robot, and the distributed executor model of the intelligent decision-making model makes predictions based on the external information and outputs multiple action branches of the robot, where the action branches are possible actions that the robot may perform in the target environment.
[0078] The distributed actor model of the intelligent decision-making model is used to predict actions based on external information, which is the robot's observation of the target environment. The function of the distributed actor model is to make a decision on which action to perform based on the robot's observation. Multiple action branches are the actions that the robot may perform in the target environment when obtaining the external information.
[0079] 203. The server determines the reward value distribution of each action branch based on the external information and the multiple action branches.
[0080] Among them, the reward value distribution of each action branch is the potential reward distribution that can be obtained by executing each action branch under the condition of external information. The reward distribution is related to the actions taken by the intelligent agent, the interaction between intelligent agents and external information. The intelligent agent is also a robot.
[0081] 204. The server performs reward aggregation on the sampled reward values sampled from the reward value distribution of each action branch to obtain a mixed reward and an integrated reward.
[0082] Among them, the mixed reward (Mixed reward Aggregation) is used to train the critic model; the lumped reward (Lumped reward Aggregation) is used to train the distributed executor model.
[0083] 205. The server trains the intelligent decision-making model of the robot based on the mixed reward, the integrated reward and the external information.
[0084] Through the technical solution provided in the embodiment of the present application, the external information collected by the robot in the target environment is obtained, the external information is input into the intelligent decision-making model, and the distributed executor model of the intelligent decision-making model outputs multiple action branches, which are all actions that the robot may perform in the target environment when the external information is obtained. Based on the external information and the multiple action branches, the reward value distribution of each action branch is determined, that is, multiple action branches are evaluated. Based on the reward value distribution of multiple action branches, reward aggregation is performed to determine the mixed reward and the integrated reward. Training the intelligent decision-making model based on the mixed reward, the integrated reward and the external information can achieve a relatively stable training effect.
[0085] The above steps 201-205 are a brief introduction to the technical solution provided in the embodiment of the present application. The technical solution provided in the embodiment of the present application will be more clearly explained below with reference to some examples. Figure 3 and Figure 4 Taking the execution subject as a server as an example, the method includes the following steps.
[0086] 301. The server obtains external information collected by the robot in the target environment. The external information includes external environment information and interaction information. The external environment information is information obtained by the robot observing the target environment, and the interaction information is information obtained by the robot interacting with other robots in the target environment.
[0087] Wherein, the target environment includes multiple robots, and the robot in the above step 301 is any robot among the multiple robots. The external information includes external environment information and interaction information. The external environment information is the information obtained by the robot observing the target environment, that is, the information obtained by the robot observing the target environment through multiple sensors. For example, the external information includes the environment image obtained by the image sensor of the robot, the position obtained by the position sensor of the robot, and the posture information obtained by the gyroscope of the robot. Of course, different robots are provided with different sensors, and the external environment information may be different with different sensors. The interaction information is the information obtained by the robot interacting with other robots in the target environment. For example, the interaction information includes the collision information between the robot and other robots. In some embodiments, the target environment is a simulated virtual environment.
[0088] In some embodiments, multiple robots in a target environment interact with the target environment in a distributed interactive manner. During the interaction process, each robot can collect external information at different times. The external information collected by multiple robots at different times is stored in an experience buffer pool (Replay Buffer). The server can obtain the external information collected by the robots at different times from the experience buffer pool. The experience buffer pool is equivalent to a database. The external information stored in the experience buffer pool can be used as a training sample when training the robot's intelligent decision-making model. The form of the experience buffer pool can be seen in Figure 4 Since the robot is any one of the multiple robots, the server can obtain the external information collected by the robot in the target environment in the experience buffer pool based on the identification of the robot. In some embodiments, the experience buffer pool also stores the actions performed by the robot in the target environment and the reward value of the target environment for the actions performed by the robot.
[0089] In the framework of deep reinforcement learning, the external information is the state of the environment, and the robot is the agent. The reward uncertainty caused by the interaction between agents increases exponentially with the increase in the number of agents, and the rewards corresponding to the state-action pair may be multiple. Therefore, in the subsequent processing process, different action branches are selected for reward distribution modeling. A direct method is to directly choose to model the reward distribution in the joint state-action space. However, as the number of agents increases, this method has huge uncertainty due to the interaction between agents. In order to meet the above challenges, the embodiment of the present application proposes another method to achieve this goal. From the perspective of a certain agent, other agents are regarded as part of the environment to simplify the problem, so that we only need to focus on the reward distribution estimation of the action branch of each agent, rather than all agents. In the above steps, that is, the interactive information is regarded as part of the environment, and the external information used for action prediction includes external environment information and interactive information, thereby simplifying the influence of other robots on the robot. The idea of multi-action branch reward distribution estimation is intuitively inspired by the fact that the human brain can always infer the possible consequences of related decision-making behaviors based on existing facts.
[0090] 302. The server inputs the external information into the intelligent decision-making model of the robot, and the distributed executor model of the intelligent decision-making model makes predictions based on the external information and outputs multiple action branches of the robot, where the action branches are possible actions that the robot may perform in the target environment.
[0091] The distributed actor model is used to predict actions based on external information, the external information is the robot's observation of the target environment, and the function of the distributed actor model is to make a decision on which action to perform based on the robot's observation. Multiple action branches are actions that the robot may perform in the target environment when obtaining the external information. In some embodiments, the distributed actor model is also called a distributed actor network (Decentralized Actor).
[0092] In a possible implementation, the server inputs external information into the distributed executor model of the robot, and the distributed executor model makes predictions based on the external information and the decision-making strategy, and outputs multiple action branches of the robot.
[0093] Among them, the decision policy is also the model parameter of the distributed executor model. Training the distributed executor model is to optimize the decision policy (adjust the model parameters), so that the distributed executor model can make more accurate action predictions based on external information.
[0094] For example, the server inputs the external information into the distributed executor model of the robot, and the distributed executor model extracts features from the external information to obtain external information features of the external information. For example, the distributed executor model performs at least one of full connection, convolution, and attention encoding on the external information to obtain the external information features of the external information. The distributed executor model fully connects and normalizes the external information features and outputs the multiple action branches. After the distributed executor model fully connects and normalizes the external information features, a probability set can be obtained. The probability set includes multiple probabilities, and each probability corresponds to an action. The server determines the action corresponding to the highest number of probabilities of the previous target in the probability set as the action branch. For example, the number of actions that the robot can perform in the target environment is N, and the probability set output by the distributed executor model includes the probabilities of the N actions. The server determines M optional actions (M can also be equal to N) among the N actions as action branches. See. Figure 4 , the distributed executor model of the robot is Figure 4 Actor in .
[0095] 303. The server determines the reward value distribution of each action branch based on the external information and the multiple action branches.
[0096] The reward value distribution of each action branch is the potential reward distribution that can be obtained by executing each action branch under the condition of external information. The distribution of rewards is related to the actions taken by the agent, the interactions between agents, and the external information.
[0097] In a possible implementation, the server inputs the external information and the multiple action branches into a reward value estimation model, estimates the reward value distribution based on the external information and the multiple action branches through the reward value estimation model, and outputs the reward value distribution of each action branch.
[0098] Among them, see Figure 4 , this reward value estimation model is also called a multi-action-branch reward estimator, which is used to output reward values based on the environment state (external information) and action (action branch).
[0099] For example, at each time step t, for each agent (robot) i, the server uses a multi-action branch reward estimator To model agent i in the observation Select the action on the kth action branch when The distribution of possible rewards. represents the reward distribution space, represents the reward distribution of agent i on the kth action branch, represents the parameters of the reward distribution of agent i, Represents the external information observed by robot i. Indicates that in observation The estimated distribution of all action branches of agent i. Furthermore, the multi-action branch distribution estimation can be realized by optimizing the objective function, thereby capturing the uncertainty of the reward function and providing a prerequisite for reducing the impact of reward uncertainty. The objective function is in the form of the following formula (1) and formula (2).
[0100]
[0101]
[0102] Wherein, Formula (1) is the optimization function of the multi-action branch reward estimator of all agents, J r is the function value of the objective function. In formula (2), the superscripts of the agent numbers are omitted, D is the experience buffer pool, and -log P[.] represents the negative log-likelihood loss. is a regularization term on the reward distribution. In some embodiments, Gaussian distribution can be used, but the optimization goal does not limit the use of Gaussian distribution. Other distribution forms are also possible. When Gaussian distribution is used, where var(μ) represents the variance about the Gaussian mean vector. α and β are hyperparameters.
[0103] The multi-action branch reward estimation can predict the potential rewards of all action branches, just like humans consider every possible consequence and usually consider the consequences of all possible actions before making a decision. Therefore, in order to better evaluate historical experience and use historical experience to achieve stable training, strategy-weighted reward aggregation will be introduced later to weaken the impact of reward uncertainty during training.
[0104] 304. The server performs reward aggregation on the sampled reward values sampled from the reward value distribution of each action branch to obtain a mixed reward and an integrated reward.
[0105] Among them, at each time step, agent i can only take a certain action a k , get the reward r on this action branch k , the action branch mentioned here is the action a k However, after the above multi-action branch reward estimation, r k Enhanced to embedding reward vector, the reward value at the kth position of the embedding reward vector is r k , the values at other positions are from The reward value sampled from . Then the embedded reward vector is rewarded and aggregated to obtain two types of reward values for updating the centralized critic network (Centralized Critic) and the distributed executor network (distributed executor model). These two types of reward values are mixed reward (Mixed reward Aggregation) It is used to train a centralized critic V γ,ψ ; Lumped reward Aggregation It is used to train distributed executors The centralized critic network is used to evaluate the actions output by the distributed executor network, and the centralized critic network is also called the critic model.
[0106] First, the method for the server to obtain the sampling reward value is explained.
[0107] In a possible implementation, the server samples the reward value distribution of each action branch to obtain a sampled reward value of each action branch.
[0108] The following describes the method for the server to obtain the mixed reward and the integrated reward in the above step 304.
[0109] First, the method for the server to obtain mixed rewards is introduced.
[0110] In a possible implementation, the server performs strategy-weighted fusion on the sampled reward values of each action branch to obtain the mixed reward.
[0111] Among them, the reward values of the multiple action branches constitute the embedded reward vector The function Represents a replacement operation, which replaces the reward on a certain action branch with the reward obtained from the environment. The final result is This vector is obtained by k Place it at the kth position of the embedding vector, and the other positions are placed The corresponding value.
[0112] For example, the server formula Get a mixed reward after strategy weighting Among them, the function g(.) represents two operations, namely: average operation gMO: that is, directly averaging the input quantity; selection operation g SS :That is, directly select the m corresponding to agent i i As the output of g(.), represents the weight of the strategy weighting, and o represents the external information. In summary, the server can perform strategy weighted fusion of the reward values of the multiple action branches through the following formula (3) to obtain the mixed reward.
[0113]
[0114] in, represents the mixed reward corresponding to agent i, m 1 ,…,m N is the reward value of multiple action branches of agent i, N is the number of action branches, and N is a positive integer.
[0115] It should be noted that the above average operation g can be used MO and select operation g SS The mixed reward may be determined by any operation in the embodiment of the present application.
[0116] The following is an introduction to how the server obtains integration rewards.
[0117] In a possible implementation, the server performs any one of global averaging, local averaging, and direct selection on the sampled reward values of each action branch to obtain the integrated reward.
[0118] For example, the server obtains the integration reward through the following formula (4).
[0119]
[0120] in, represents the integrated reward corresponding to agent i. The function l(.) has three common expressions: average operation (global average) l MO , directly for all embedded reward vectors of the input Find the average and obtain the output as the integrated reward Simplified average (local average) l SMO , only select the embedded reward vector m corresponding to agent i i Take the average as the integration reward Select operation (direct selection) SS , directly select the environment reward feedback It should be noted that any of the above methods can be used to obtain the integration reward, and this embodiment of the application does not limit this.
[0121] In some embodiments, see Figure 4 The server obtains the mixed reward and the integrated reward through the reward aggregator in the distributed reward estimation network. The multi-action-branch reward estimation device in step 303 also belongs to the distributed reward estimation network.
[0122] 305. The server obtains action advantage values of the multiple action branches based on the mixed reward, the external information, and the critic model of the intelligent decision-making model, where the critic model is used to evaluate the multiple action branches based on the external information.
[0123] Among them, the critic model is also the above-mentioned centralized critic network.
[0124] In a possible implementation, the server trains the critic model based on the mixed reward. The server inputs the external information and the multiple action branches into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
[0125] In order to explain the above implementation more clearly, the above implementation will be explained in two parts below.
[0126] In the first part, the server trains the critic model based on the mixed reward and the external information.
[0127] In a possible implementation, the server trains the critic model based on the mixed reward, the multiple action branches, and external information of the target environment collected by the robot at the next time step.
[0128] For example, the server inputs the mixed reward, the multiple action branches, the external information, and the external information of the target environment collected by the robot at the next time step into the critic model, and the critic model encodes the mixed reward, the multiple action branches, the external information, and the external information of the target environment collected by the robot at the next time step to obtain the encoded features. The server aggregates and fully connects the encoded features at least once through the critic model, and outputs reference evaluation values and target evaluation values for the multiple action branches, the reference evaluation value is used to evaluate the multiple action branches and the external information, and the target evaluation value is used to evaluate the multiple action branches and the external information of the target environment collected by the robot at the next time step. The server trains the critic model based on the difference information between the target evaluation value and the reference evaluation value.
[0129] For example, the server optimizes the critic model V by minimizing the Bellman residual γ,ψ , that is, the critic model is trained through the following formula (5).
[0130]
[0131] Among them, J c (ψ) is the function value of the optimization function, ψ and Represent the parameters of the current state value network and the target state value network respectively. V γ,ψ is the model parameter, γ represents the action branch, and o′ represents the external information of the target environment collected by the robot in the next time step.
[0132] In the second part, the server inputs the external information and the multiple action branches into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
[0133] Where, referring to the above formula (5), the square term That is, the action advantage value But we are not using mixed rewards Instead of calculating the action advantage value, we use the integrated reward Right now
[0134] In some embodiments, the server trains a reward value estimation model of the intelligent decision-making model based on the external information.
[0135] 306. The server trains the intelligent decision-making model based on the action advantage value and the integrated reward.
[0136] In a possible implementation, the server constructs a loss function of the distributed actor model based on the action advantage value and the integrated reward, and trains the distributed actor model using a gradient descent method based on the loss function.
[0137] In some embodiments, the loss function is a loss function similar to Proximal Policy Optimization (PPO).
[0138] For example, the server trains the distributed executor model by the following formula (6), where the superscript of the agent index is omitted.
[0139]
[0140] in, represents the importance weight, ∈ is the pruning hyperparameter, and in actual use, it is generally chosen Represents the policy entropy of agent i, which controls the entropy in the final loss J a The importance of (θ), the action advantage value Integration Rewards Related.
[0141] It should be noted that the above steps 301-306 are described by taking one iterative training of the distributed executor model as an example. In other iterative trainings, the training method is the same as that of the above steps 301-306, which will not be repeated here.
[0142] In addition, the above steps 301-306 are explained by taking the server as the execution entity to train the intelligent decision-making model as an example. In other possible implementations, the above steps 301-306 can also be executed by the terminal, and the embodiments of the present application are not limited to this.
[0143] After the training of the intelligent decision-making model is completed, the distributed executor model can be deployed to multiple robots. Placing multiple robots in a specified environment can realize navigation of multiple robots. For example, tasks can be set for the multiple robots to move from position A to position B in a specified environment, which includes a variety of terrains and obstacles. The multiple robots can observe the specified environment, obtain external information of the specified environment, and input the external information into the trained intelligent decision-making model to obtain corresponding actions. For example, the actions include going straight, turning, lifting legs, etc. By executing these actions, multiple robots can complete the task of moving from position A to position B.
[0144] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0145] During the experiment, three collaborative multi-agent environments were selected for testing. The three scenarios are CN, REF, and TREA. The first two scenarios are scenarios within the particle system, and the third scenario is a more difficult version of the Cooperative Treasure Collection developed based on the particle system. The comparison methods include MADDPG, MAAC, QMIX, IQL, and MAPPO, among which MAPPO is the latest algorithm that uses a centralized training and decentralized execution framework to extend PPO to multi-agent scenarios. Figure 5 The experimental results are shown in Figure 5 In the three scenarios, the method provided by the embodiment of the present application achieved the best effect, indicating that the method provided by the embodiment of the present application can indeed capture the uncertainty of rewards in the environment. At the same time, it can be seen from the performance curve that the method provided by the embodiment of the present application successfully achieved a stable training process during the learning process.
[0146] Through the technical solution provided in the embodiment of the present application, the external information collected by the robot in the target environment is obtained, the external information is input into the intelligent decision-making model, and the distributed executor model of the intelligent decision-making model outputs multiple action branches, which are all actions that the robot may perform in the target environment when the external information is obtained. Based on the external information and the multiple action branches, the reward value distribution of each action branch is determined, that is, multiple action branches are evaluated. Based on the reward value distribution of multiple action branches, reward aggregation is performed to determine the mixed reward and the integrated reward. Training the intelligent decision-making model based on the mixed reward, the integrated reward and the external information can achieve a relatively stable training effect.
[0147] The present application embodiment provides a multi-agent distributed reward estimation and strategy weighted aggregation framework (i.e. Figure 5DRE-MARL in is used to capture and reduce the problem of unstable learning performance caused by uncertainty of reward signals, thereby achieving the effectiveness and robustness of model training. Within this framework, the possible reward signals on all action branches in a certain state are comprehensively considered, and a more stable reward signal is provided to the critic network for updating model parameters. First, a distributed multi-action branch distribution estimation is proposed to construct a separate reward distribution function for each action branch. Secondly, reward signals are sampled from these different action distributions to form a sampled reward vector, and then the reward on one of the action branches is replaced by the reward obtained from the environment to form an embedded reward vector, and then various reward aggregation operations are performed on the embedded reward vector to obtain a mixed reward signal as a reward signal for the critic network and the distributed executor (DecentralizedActor) network. The experimental results show that the method provided in the embodiment of the present application exhibits excellent performance, proving the effectiveness of the method provided in the embodiment of the present application.
[0148] Figure 6 This is a schematic diagram of the structure of a training device for an intelligent decision-making model provided in an embodiment of the present application, see Figure 6 The device includes: an external information acquisition module 601, an action prediction module 602, a reward value prediction module 603, a reward value aggregation module 604 and a training module 605.
[0149] The external information acquisition module 601 is used to acquire external information collected by the robot in the target environment. The external information includes external environment information and interaction information. The external environment information is the information obtained by the robot observing the target environment, and the interaction information is the information obtained by the robot interacting with other robots in the target environment.
[0150] The action prediction module 602 is used to input the external information into the intelligent decision-making model of the robot, and the distributed executor model of the intelligent decision-making model makes predictions based on the external information and outputs multiple action branches of the robot, which are the actions that the robot may perform in the target environment.
[0151] The reward value prediction module 603 is used to determine the reward value distribution of each action branch based on the external information and the multiple action branches.
[0152] The reward value aggregation module 604 is used to perform reward aggregation on the sampled reward values sampled from the reward value distribution of each action branch to obtain a mixed reward and an integrated reward.
[0153] The training module 605 is used to train the intelligent decision-making model of the robot based on the mixed reward, the integrated reward and the external information.
[0154] In a possible implementation, the action prediction module 602 is used to perform at least one of full connection, convolution and attention encoding on the external information by the distributed executor model of the intelligent decision model to obtain the external information features of the external information. The distributed executor model of the intelligent decision model performs full connection and normalization on the external information features to output multiple action branches of the robot.
[0155] In a possible implementation, the reward value prediction module 603 is used to input the external information and the multiple action branches into a reward value estimation model, estimate the reward value distribution based on the external information and the multiple action branches through the reward value estimation model, and output the reward value distribution of each action branch.
[0156] In a possible implementation, the reward value aggregation module 604 is used to sample the reward value distribution of each action branch to obtain the sampled reward value of each action branch. The sampled reward values of each action branch are subjected to strategy weighted fusion to obtain the mixed reward. The sampled reward values of each action branch are subjected to any one of global averaging, local averaging and direct selection to obtain the integrated reward.
[0157] In a possible implementation, the training module 605 is used to obtain the action advantage values of the multiple action branches based on the mixed reward, the external information and the critic model of the intelligent decision model, and the critic model is used to evaluate the multiple action branches based on the external information. The reward value estimation model of the intelligent decision model is trained based on the external information. Based on the action advantage value and the integrated reward, the distributed executor model of the intelligent decision model is trained.
[0158] In a possible implementation, the training module 605 trains a critic model of the intelligent decision-making model based on the mixed reward and the external information. The external information and the multiple action branches are input into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
[0159] In a possible implementation, the training module 605 is used to construct a loss function of the distributed actor model based on the action advantage value and the integrated reward, and to train the distributed actor model based on the loss function using a gradient descent method.
[0160] It should be noted that: the training device for the intelligent decision-making model provided in the above embodiment only uses the division of the above functional modules as an example when training the intelligent decision-making model. In practical applications, the above functional distribution can be completed by different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the training device for the intelligent decision-making model provided in the above embodiment and the training method embodiment of the intelligent decision-making model belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0161] Through the technical solution provided in the embodiment of the present application, the external information collected by the robot in the target environment is obtained, the external information is input into the intelligent decision-making model, and the distributed executor model of the intelligent decision-making model outputs multiple action branches, which are all actions that the robot may perform in the target environment when the external information is obtained. Based on the external information and the multiple action branches, the reward value distribution of each action branch is determined, that is, multiple action branches are evaluated. Based on the reward value distribution of multiple action branches, reward aggregation is performed to determine the mixed reward and the integrated reward. Training the intelligent decision-making model based on the mixed reward, the integrated reward and the external information can achieve a relatively stable training effect.
[0162] The embodiment of the present application provides a computer device for executing the above method. The computer device can be implemented as a terminal or a server. The structure of the terminal is first introduced below:
[0163] Figure 7 700 is a schematic diagram of a terminal structure provided in an embodiment of the present application. The terminal 700 may be a smart phone, a tablet computer, a laptop computer or a desktop computer. The terminal 700 may also be called a user equipment, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0164] Typically, the terminal 700 includes: one or more processors 701 and one or more memories 702 .
[0165] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0166] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one computer program, which is used to be executed by the processor 701 to implement the training method of the intelligent decision model provided in the method embodiment of the present application.
[0167] In some embodiments, the terminal 700 may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707 and a power supply 708.
[0168] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0169] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like.
[0170] The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards.
[0171] The camera assembly 706 is used to collect images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
[0172] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them to the processor 701 for processing, or input them to the radio frequency circuit 704 to achieve voice communication.
[0173] The power supply 708 is used to supply power to various components in the terminal 700. The power supply 708 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
[0174] In some embodiments, the terminal 700 further includes one or more sensors 709 , including but not limited to: an acceleration sensor 710 , a gyroscope sensor 711 , a pressure sensor 712 , an optical sensor 713 , and a proximity sensor 714 .
[0175] The acceleration sensor 710 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 700 .
[0176] The gyro sensor 711 can detect the body direction and rotation angle of the terminal 700 . The gyro sensor 711 can cooperate with the acceleration sensor 710 to collect the user's 3D actions on the terminal 700 .
[0177] The pressure sensor 712 may be provided at the side frame of the terminal 700 and / or the lower layer of the display screen 705. When the pressure sensor 712 is provided at the side frame of the terminal 700, it may detect the user's holding signal of the terminal 700, and the processor 701 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 712. When the pressure sensor 712 is provided at the lower layer of the display screen 705, the processor 701 may control the operability controls on the UI interface according to the user's pressure operation on the display screen 705.
[0178] The optical sensor 713 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 713.
[0179] The proximity sensor 714 is used to collect the distance between the user and the front of the terminal 700 .
[0180] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0181] The above-mentioned computer device can also be implemented as a server. The structure of the server is introduced below:
[0182] Figure 8It is a structural diagram of a server provided in an embodiment of the present application. The server 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 801 and one or more memories 802, wherein the one or more memories 802 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 801 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server 800 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 800 may also include other components for implementing device functions, which will not be described in detail here.
[0183] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program, and the computer program can be executed by a processor to complete the training method of the intelligent decision model in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0184] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned training method of the intelligent decision-making model.
[0185] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0186] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0187] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A training method for an intelligent decision-making model, characterized in that: The method comprises: Acquire external information collected by the robot in the target environment, wherein the external information includes external environment information and interaction information, wherein the external environment information is information obtained by the robot observing the target environment, and the interaction information is information obtained by the robot interacting with other robots in the target environment; Input the external information into the intelligent decision model of the robot, and the distributed executor model of the intelligent decision model makes predictions based on the external information and outputs a plurality of action branches of the robot, wherein the action branches are actions that the robot may perform in the target environment; Determine the reward value distribution of each of the action branches based on the external information and the multiple action branches; The determining, based on the external information and the plurality of action branches, the reward value distribution of each of the action branches comprises: Inputting the external information and the multiple action branches into a reward value estimation model, performing reward value distribution estimation based on the external information and the multiple action branches through the reward value estimation model, and outputting the reward value distribution of each of the action branches; Perform reward aggregation on the sampled reward values sampled from the reward value distribution of each of the action branches to obtain a mixed reward and an integrated reward; The step of performing reward aggregation on the sampled reward values sampled from the reward value distribution of each action branch to obtain a mixed reward and an integrated reward includes: Sampling the reward value distribution of each action branch to obtain the sampled reward value of each action branch; performing strategy weighted fusion on the sampled reward values of each action branch to obtain the mixed reward; performing any one of global averaging, local averaging and direct selection on the sampled reward values of each action branch to obtain the integrated reward; Based on the mixed reward, the integrated reward and the external information, training the intelligent decision-making model of the robot; The training of the intelligent decision-making model of the robot based on the mixed reward, the integrated reward and the external information includes: Training a reward value estimation model of the intelligent decision-making model based on the external information; obtaining action advantage values of the multiple action branches based on the mixed reward, the external information and the critic model of the intelligent decision-making model, wherein the critic model is used to evaluate the multiple action branches based on the external information; training a distributed executor model of the intelligent decision-making model based on the action advantage values and the integrated reward; The acquiring the action advantage values of the multiple action branches based on the mixed reward, the external information and the critic model of the intelligent decision-making model comprises: The critic model of the intelligent decision-making model is trained based on the mixed reward and the external information; the external information and the multiple action branches are input into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
2. The method according to claim 1, characterized in that The distributed executor model of the intelligent decision-making model predicts based on the external information and outputs multiple action branches of the robot, including: The distributed executor model of the intelligent decision-making model performs at least one of full connection, convolution and attention encoding on the external information to obtain external information features of the external information; The distributed executor model of the intelligent decision-making model fully connects and normalizes the external information features, and outputs multiple action branches of the robot.
3. The method according to claim 1, characterized in that: The training of the intelligent decision model based on the action advantage value and the integrated reward includes: Based on the action advantage value and the integrated reward, a loss function of the distributed actor model is constructed; Based on the loss function, the distributed executor model is trained using a gradient descent method.
4. A training device for an intelligent decision-making model, characterized in that: The device comprises: An external information acquisition module is used to acquire external information collected by the robot in the target environment, wherein the external information includes external environment information and interaction information. The external environment information is information obtained by the robot observing the target environment, and the interaction information is information obtained by the robot interacting with other robots in the target environment. An action prediction module, used for inputting the external information into the intelligent decision model of the robot, and the distributed executor model of the intelligent decision model makes predictions based on the external information, and outputs a plurality of action branches of the robot, wherein the action branches are actions that the robot may perform in the target environment; A reward value prediction module, used to determine the reward value distribution of each of the action branches based on the external information and the multiple action branches; The reward value prediction module is used to input the external information and the multiple action branches into a reward value estimation model, perform reward value distribution estimation based on the external information and the multiple action branches through the reward value estimation model, and output the reward value distribution of each action branch; A reward value aggregation module, used to perform reward aggregation on sampled reward values sampled from the reward value distribution of each action branch to obtain a mixed reward and an integrated reward; The reward value aggregation module is used to sample the reward value distribution of each action branch to obtain the sampled reward value of each action branch; perform strategy weighted fusion on the sampled reward values of each action branch to obtain the mixed reward; perform any one of global averaging, local averaging and direct selection on the sampled reward values of each action branch to obtain the integrated reward; A training module, used for training the intelligent decision-making model of the robot based on the mixed reward, the integrated reward and the external information; The training module is used to train the reward value estimation model of the intelligent decision-making model based on the external information; obtain the action advantage values of the multiple action branches based on the mixed reward, the external information and the critic model of the intelligent decision-making model, and the critic model is used to evaluate the multiple action branches based on the external information; based on the action advantage values and the integrated reward, the distributed executor model of the intelligent decision-making model is trained; The training module is used to train the critic model of the intelligent decision-making model based on the mixed reward and the external information; the external information and the multiple action branches are input into the critic model, and the critic model outputs the action advantage values of the multiple action branches.
5. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the training method of the intelligent decision-making model as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by the processor to implement the training method of the intelligent decision-making model as described in any one of claims 1 to 3.
