Discrete multi-agent deep reinforcement learning method and system

By using discretization networks and permutation invariance networks to process observation inputs in multi-agent deep reinforcement learning systems, combined with the cross-attention mechanism, the problem of noise influence in multi-agent systems is solved, and collaboration efficiency and decision-making quality are improved.

CN117610643BActive Publication Date: 2024-10-11INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311532896.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2024-10-11
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

In multi-agent deep reinforcement learning systems, observation noise leads to low agent collaboration efficiency, and the impact of noise increases exponentially in multi-agent systems, affecting the quality of decision-making and possibly leading to catastrophic consequences.

Method used

A discretized network structure is used to characterize the observations and actions of the multi-agent system, the observation input is processed through a permutation invariance network, and the cross-attention mechanism is used to combine the discretized observations and actions to reduce the impact of noise on decision-making.

Benefits of technology

Effectively reduce the impact of noise on agent decision-making, improve the collaboration efficiency of multi-agent systems, and improve decision-making quality and system performance in noisy environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117610643B_ABST
    Figure CN117610643B_ABST
Patent Text Reader

Abstract

The present invention provides a discretized multi-agent deep reinforcement learning method and system. The method comprises: obtaining the actions of all agents in the multi-agent system and the observations of all agents; iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges. The present invention uses a discretized network structure to characterize the observations of the multi-agent system and the actions of other agents. The discretized network uses the observations of all agents and the actions of other agents as inputs, and is used to discretize the agent observation sets of agents and the actions of other agents, which can reduce the impact of environmental noise on agent decision-making, promote the collaboration of agents, and improve the collaboration efficiency of the multi-agent system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, and in particular to a discrete multi-agent deep reinforcement learning method and system. Background Art

[0002] At present, multi-agent deep reinforcement learning algorithms have achieved many successes in promoting multi-agent collaboration to complete complex tasks. They have also been applied to scenarios with safety requirements, such as autonomous driving, traffic light control, and energy management.

[0003] In the actual application of deep reinforcement learning, the observations received by the agent often contain inevitable noise. Studies have found that even slight observation noise can affect the agent's decision-making, thus greatly affecting the performance of the algorithm. In multi-agent systems, the impact of noise is even more obvious, mainly due to two reasons: on the one hand, as the number of agents increases, the impact of noise will increase exponentially, making it more difficult for agents to make optimal decisions; on the other hand, the noise received by the agent will spread through the interaction between agents, so that other agents are also affected by the noise, making wrong decisions and responses, leading to ineffective collaboration or even catastrophic consequences. Summary of the invention

[0004] The embodiments of the present invention provide a discrete multi-agent deep reinforcement learning method and system to solve the technical problem in the prior art that the collaboration efficiency between agents is low due to the existence of observation noise.

[0005] In a first aspect, an embodiment of the present invention provides a discretized multi-agent deep reinforcement learning method, comprising:

[0006] Obtain the actions of all agents in a multi-agent system and the observations of all agents;

[0007] Iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0008] The first training process includes:

[0009] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0010] Iterate the second training process at least once until the target actions of all agents are obtained;

[0011] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0012] Updating parameters of the deep reinforcement learning network;

[0013] The second training process includes:

[0014] Based on the discretized network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent.

[0015] In one embodiment, the discretization processing of the observation set of the first agent and the action of the second agent based on the discretization network to obtain the target action of the first agent includes:

[0016] Based on the discretized network, discretize the observation set of the first agent and the action of the second agent to obtain a discretized observation set of the first agent and a discretized action of the second agent;

[0017] A target action of the first agent is obtained according to the discretized observation set of the first agent and the discretized action of the second agent.

[0018] In one embodiment, the discretization processing of the observation set of the first agent and the action of the second agent based on the discretization network to obtain the discretized observation set of the first agent and the discretized action of the second agent includes:

[0019] Segmenting the set of observations of the first agent and the actions of the second agent;

[0020] Based on the discretized network, mapping each segment to a discretized index of a discretized network codebook, wherein the discretized network codebook includes a plurality of discretized codebook vectors;

[0021] Based on the discretization index, obtaining a codebook vector corresponding to each segment from the discretization network codebook;

[0022] Obtaining a discretized observation set of the first agent and a discretized action of the second agent according to the codebook vector corresponding to each segment;

[0023] Wherein, after executing the first training process once, the codebook vector corresponding to each segment is updated based on each segment and the codebook vector corresponding to each segment.

[0024] In one embodiment, obtaining the target action of the first agent according to the discretized observation set of the first agent and the discretized action of the second agent includes:

[0025] The discretized observation set of the first agent and the discretized actions of the second agent are combined based on the cross-attention mechanism to obtain the target action of the first agent.

[0026] In one embodiment, the loss function is obtained by:

[0027] Based on a first loss function of a discretized network, a second loss function of a value network, and a third loss function of a policy network, the loss function is obtained, wherein the deep reinforcement learning network includes the value network and the policy network;

[0028] The first loss function is obtained according to each segment, the number of codebook vectors in the discretized network codebook, the codebook vector corresponding to each segment, and the hyperparameters of the discretized network;

[0029] The second loss function is obtained according to the environment reward, the hyperparameters of the value network, the observations of all agents, the updated observations of all agents, and the trajectory length sampled from the experience replay, wherein the data stored in the experience replay includes the observations of all agents, the actions of all agents, the environment reward before the update, and the updated observations of all agents;

[0030] The third loss function is obtained based on the number of all agents, the trajectory length, the ratio between the first strategy and the second strategy, the joint advantage function of the multi-agent system and the hyperparameters of the strategy network. The first strategy is obtained based on the updated target actions of all agents, the second strategy is obtained based on the target actions of all agents, and the joint advantage function is obtained based on the environmental rewards before updating.

[0031] In one embodiment, updating the parameters of the deep reinforcement learning network includes:

[0032] Based on the RMSProp optimizer, the parameters of the deep reinforcement learning network are updated.

[0033] In a second aspect, an embodiment of the present invention provides a discretized multi-agent deep reinforcement learning system, comprising:

[0034] The acquisition module is used to obtain the actions of all agents and the observations of all agents in the multi-agent system;

[0035] A training module, configured to iteratively execute the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0036] The first training process includes:

[0037] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0038] Iterate the second training process at least once until the target actions of all agents are obtained;

[0039] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0040] Updating parameters of the deep reinforcement learning network;

[0041] The second training process includes:

[0042] Based on the discretized network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent.

[0043] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the deep reinforcement learning method for discrete multi-agents described in the first aspect is implemented.

[0044] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the deep reinforcement learning method for discrete multi-agents described in the first aspect.

[0045] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the discrete multi-agent deep reinforcement learning method described in the first aspect.

[0046] The discretized multi-agent deep reinforcement learning method and system provided in the embodiments of the present invention use a discretized network structure to characterize the observations of the multi-agent system and the actions of other agents. The discretized network takes the observations of all agents and the actions of other agents as input, and is used to discretize the agent observation sets of the agents and the actions of other agents. It can reduce the impact of environmental noise on agent decision-making, promote the collaboration of agents, and improve the collaboration efficiency of the multi-agent system. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 This is one of the flow charts of the discrete multi-agent deep reinforcement learning method provided by an embodiment of the present invention;

[0049] Figure 2 This is the second flow chart of the deep reinforcement learning method for discrete multi-agents provided in an embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of the structure of a permutation invariant network provided by an embodiment of the present invention;

[0051] Figure 4 is a schematic diagram of the structure of a discretized network provided by an embodiment of the present invention;

[0052] Figure 5 It is a schematic diagram of a curve showing a change in the winning rate of a multi-agent system provided by the present invention in a noisy environment in three multi-unit battle scenarios corresponding to a certain strategy game provided by an embodiment of the present invention as a function of training;

[0053] Figure 6 is a schematic diagram of the structure of a discrete multi-agent deep reinforcement learning system provided by an embodiment of the present invention;

[0054] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] The present invention is aimed at the problem of cooperative multi-agent control. When there is noise in the observation, collaborative decision-making to complete a task is the common goal. To solve the problem of environmental noise, the present invention uses a discretized network structure to characterize the observations of the multi-agent system and the actions of other agents. The discretized network takes the observation set of all agents and the actions of other agents as input, and characterizes the observation set of the agent and the actions of other agents in a discretized manner. In order to solve the impact of environmental noise on the decision-making of agents and promote the collaboration of agents, this method combines the discretized agent observation set with the discretized actions of other agents through a cross-attention mechanism. The present invention also uses a permutation invariant network to process the observation inputs of multiple agents to obtain the observation set of the agents, thereby improving the collaborative efficiency of the agent system. The specific implementation is as follows:

[0057] Figure 1 This is one of the flow charts of the discrete multi-agent deep reinforcement learning method provided by the embodiment of the present invention. Figure 1 , an embodiment of the present invention provides a discretized multi-agent deep reinforcement learning method, which may include:

[0058] Step 110, obtaining the actions of all agents in the multi-agent system and the observations of all agents;

[0059] Step 120, iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0060] The first training process includes:

[0061] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0062] Iterate the second training process at least once until the target actions of all agents are obtained;

[0063] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0064] Updating parameters of the deep reinforcement learning network;

[0065] The second training process includes:

[0066] Based on the discretized network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent.

[0067] Optionally, Figure 2 This is a second flow chart of a discrete multi-agent deep reinforcement learning method provided by an embodiment of the present invention. The method may specifically include:

[0068] Step S100, based on the multi-agent operating environment, define the observation o of each agent in the multi-agent system i,t With action a i,t , where i is the agent number and t is the current time. Based on this, the actions and observations of all agents in the multi-agent system can be obtained.

[0069] In some embodiments, step S100 of “defining the observations of each agent in the multi-agent system” i,t With action a i,t ", for the i-th agent, the method is: divide the action space of the agent into multiple action subspaces according to the function. Obtain the local observation of the agent according to the multi-agent operating environment, and determine the local observation related to each action subspace.

[0070] This step S100 is the initialization step of the environment. In this embodiment, the multi-agent operating environment is a strategy game environment in which multiple units compete against each other. For the i-th agent, the observation o of the agent facing the environment i,t The information included includes: normalized health, shield, relative coordinates of all units in the environment, the action of the agent at the last moment and the identity of the agent; observations of the unit o (i→j) The information included is the normalized health, shield, relative coordinates, etc. of the attack target j.

[0071] The operating environment obtains the next state of each unit in the scene according to the joint action selected by the multi-agent system (i.e. the action of all agents), and feeds back environmental rewards to the multi-agent system. The environmental rewards include immediate rewards and final rewards.

[0072] The immediate reward is the difference in damage caused by the enemy and us. If our unit causes damage to the enemy unit, the environment will feedback a positive reward equal to the damage value as the multi-agent system; if the enemy unit causes damage to our unit, the environment will feedback a negative joint reward equal to the opposite of the damage value as the multi-agent system. The final reward reflects the outcome of the battle. If we win, the environment will feedback a positive joint reward, and if we lose, the environment will feedback a negative joint reward. In this embodiment, the specific value of the final reward is set to +10 or -10.

[0073] The agent network (i.e., deep reinforcement learning network) corresponding to the multi-agent system is used to distributely calculate the observed action value of the agent. Each agent network controls a friendly unit in the environment and selects a suitable action for the unit by inputting the local observation of the unit.

[0074] In this embodiment, the action space of the agent can be divided into an environment-oriented movement action subspace and a unit-oriented attack action subspace according to its function.

[0075] For the i-th agent, the action space of the agent consists of two action subspaces, namely, the moving actions a in four directions facing the environment i The attack action a of the oriented unit against a specific enemy unit j (i→j) .

[0076] Step S200, initializing agent network parameters θ i ; Initialize the discretized network codebook {e1,e2,...,e G}; where i is the agent number and G is the number of codebook vectors.

[0077] This step S200 is an initialization step of the algorithm, and the initialized codebook is used in the subsequent discretization process.

[0078] Assuming that there is noise in the observation space of the agent, without loss of generality, it is assumed to be Gaussian noise. Due to the mutual influence between agents, the noise in the observation will be further amplified, so that the actions of other agents are also affected. Through the codebook constructed by the discretization network, that is, the discretization network codebook, the agent looks for the corresponding discretization index of the input in the discretization network codebook for the observation set of the input agent and the actions of other agents, and replaces it with its corresponding codebook vector, thereby discretizing the observation set of the agent and the actions of other agents, and using this vector as the input discretization vector for subsequent decision-making.

[0079] Iterate and execute the following first training process at least once:

[0080] Step S300: Collect the joint observations (i.e., observations of all agents) and actions (b t ,a t ,r t+1 ,b t+1 ), where b t 、a t and r t+1 are the joint observation, joint action and environmental reward of the multi-agent system at time t, and b t+1is the joint observation of the multi-agent system at time t+1; the observations of all agents are input into the permutation invariant network, and the observation set of all agents at time t is output.

[0081] In this embodiment, there is noise in the observation space of the agent. Without loss of generality, it is assumed to be Gaussian noise. Due to the mutual influence between agents, the noise in the observation will be further amplified, so that the actions of other agents are also affected. Due to the curse of dimensionality, the impact of noisy observations grows exponentially. Using permutation invariance to solve this problem is an effective method. This embodiment uses permutation invariance to reduce the observation space of multiple agents. To this end, the algorithm designs a permutation invariance module, such as Figure 3 As shown, the observation encoder is made invariant to permutations in the observation space. In other words, the observations of different agents are regarded as a set X that satisfies the following equation:

[0082] f(g(X))=f(X)

[0083] Where f(·) is a permutation invariant function; g(·) is an arbitrary permutation function that changes the order of X.

[0084] Specifically, the following calculation method is adopted in this embodiment to achieve permutation invariance:

[0085] f(X) = Softmax(IX T )X

[0086] Among them, X is the observation of all agents in the environment, I is a set of learnable vectors, and the permutation invariant network can adapt to the influence of the input order of agents on the output results in a noisy environment; the input of the network is the observation X of all agents in the environment, and the output is the observation set of all agents.

[0087] By setting up a permutation invariant network, the problem of changes in the order of observation input of the agent can be solved. The obtained noise observation set output is independent of the input order of the agent. In this way, the observation input space of multiple agents is effectively reduced, and the processing efficiency of the algorithm for multiple agents is improved.

[0088] Iterate the second training process at least once:

[0089] Step S400, discretizing the observation set of all agents at time t and the actions of other agents based on the discretized network, searching for the corresponding discretized codebook vector in the discretized network codebook and outputting it;

[0090] Step S500, based on the discretized codebook vector, the discretized agent observation set and the discretized actions of other agents are combined to obtain the decision of the first agent (ie, the target action).

[0091] Step S600, determine whether the target actions of all agents have been obtained. If so, execute step S700, otherwise the generated target actions of all agents are used as the action input of other agents in step S400, and repeat steps S400-S500.

[0092] In this embodiment, step S400 needs to input the actions of other agents for discretization and combination to obtain the agent actions; after the actions of all agents are obtained, they can be executed in the environment and used to update the training.

[0093] Step S700, executing a joint action (i.e., the target action of all agents obtained) in the operating environment, and training a deep reinforcement learning network according to a loss function and updating its parameters;

[0094] Step S800, determining whether the training termination condition is met, that is, the preset number of training rounds is reached, otherwise repeating steps S300 to S700. The training termination condition includes reaching the preset number of training rounds or the loss function of the deep reinforcement learning network converges.

[0095] Step S900, the training is completed, and the parameters of the last updated agent network are obtained as the training result.

[0096] In this embodiment, the preset training times are in time steps, and the training stops after sampling 20 million time steps. After the training is completed, the agent network parameters are retained, and the agent network is used to centrally select actions for the agent in subsequent executions.

[0097] In some implementations, the discretized network corresponding to the action of the agent and the discretized network corresponding to the observation set of the agent adopt the same codebook number G.

[0098] In some embodiments, all agents in a multi-agent system share the same agent network parameters, i.e., θ1=...=θ n , where n is the number of agents in the agent system.

[0099] The discretized multi-agent deep reinforcement learning provided by an embodiment of the present invention uses a discretized network structure to characterize the observations of the multi-agent system and the actions of other agents. The discretized network takes the observations of all agents and the actions of other agents as input, and is used to discretize the agent observation sets and the actions of other agents of the agents. It can reduce the impact of environmental noise on agent decision-making, promote the collaboration of agents, and improve the collaborative efficiency of the multi-agent system.

[0100] Furthermore, in one embodiment, the discretization of the observation set of the first agent and the action of the second agent based on the discretization network to obtain the target action of the first agent may include:

[0101] Based on the discretized network, discretize the observation set of the first agent and the action of the second agent to obtain a discretized observation set of the first agent and a discretized action of the second agent;

[0102] A target action of the first agent is obtained according to the discretized observation set of the first agent and the discretized action of the second agent.

[0103] Optionally, in this embodiment, Figure 4 is a schematic diagram of the structure of a discretized network provided by an embodiment of the present invention, referring to Figure 4 The discretization network is used to learn the discrete representation of the observation set and action of the agent. The present invention designs a discretization module, which consists of a codebook vector e and a discretization index k. In each time step, the observation set of the first agent and the actions of other agents (the agents other than the first agent among all agents, i.e., the second agent) are respectively input into the observation encoder and the other agent action encoder to generate an embedding vector). Then, the discretization modules in the two encoders discretize the input embedding vector.

[0104] In this embodiment, the corresponding discretization index of the input is found in the discretization network codebook, and the corresponding codebook vector is used Instead, the observation set of the agent and the actions of other agents are discretized to obtain the discretized observation set of the first agent and the discretized actions of the second agent.

[0105] The discretized observation set of the first agent and the discretized action of the second agent are combined to obtain the target action of the first agent.

[0106] Specifically, we obtain the agent observation set and the actions of other agents, and use them as the input of the combined network to calculate the selection probability of all actions in the action space.

[0107]

[0108] Among them, θ i are the parameters of the agent network, is the weight obtained by cross attention, a is the action taken by the agent (sampled from the probability distribution), σ is the variance obtained by training, MLP represents the multi-layer perceptron, and the observation b of the agent at this time and the actions of other agents {a j=1,2,...,i-1}; the agent selects an action from the action space as the target action based on the action selection probability.

[0109] Further, in one embodiment, the discretization of the observation set of the first agent and the action of the second agent based on the discretization network to obtain the discretized observation set of the first agent and the discretized action of the second agent may include:

[0110] Segmenting the set of observations of the first agent and the actions of the second agent;

[0111] Based on the discretized network, mapping each segment to a discretized index of a discretized network codebook, wherein the discretized network codebook includes a plurality of discretized codebook vectors;

[0112] Based on the discretization index, obtaining a codebook vector corresponding to each segment from the discretization network codebook;

[0113] Obtaining a discretized observation set of the first agent and a discretized action of the second agent according to the codebook vector corresponding to each segment;

[0114] Wherein, after executing the first training process once, the codebook vector corresponding to each segment is updated based on each segment and the codebook vector corresponding to each segment.

[0115] Optionally, for the observation set of the first agent and the action of the second agent, we use h∈R m where m represents the length of the vector and R represents a real number. The specific discretization process is as follows: First, in order to enhance the expressive power of the discretized codebook vector, a segmentation mechanism is used to divide h into G segments: h1, h2, ..., h G ,in, h=concat(h1,h2,...,h G ). Then, each segment h i are independently mapped to the discretized index k of the discretized network codebook i :

[0116]

[0117] Among them, e j is the codebook vector, and L is the length of the codebook vector. Based on the discretization index k i , and obtain the discrete representation of the segment Through the segmentation mechanism, the codebook vector can be used to represent L G For example, when G = 4, L = 256, the codebook vector can represent 256 4 =2 32Finally, through z = concat(z1,z2,...,z G ) can get the discretized representation z of the input h. The output of the discretized network is generated by the codebook vector in the discretized network codebook. Through the discretization method, the impact of noise can be alleviated to a certain extent.

[0118] In this embodiment, the observation encoder and the action encoder respectively maintain their own discretized network codebooks and do not share them with each other.

[0119] Furthermore, in one embodiment, obtaining the target action of the first agent according to the discretized observation set of the first agent and the discretized action of the second agent includes:

[0120] The discretized observation set of the first agent and the discretized actions of the second agent are combined based on the cross-attention mechanism to obtain the target action of the first agent.

[0121] Optionally, the discretized agent observation set is combined with the discretized actions of other agents through a cross-attention mechanism to obtain the probability distribution of the agent's action output at this time.

[0122] In this embodiment, each agent in the multi-agent system selects actions for the units it controls in a centralized manner based on its own discrete observation set and the discrete actions of other agents. A strategy game multi-unit battle environment collects and executes all actions and feeds back the joint observation b at the next moment to the multi-agent system. t+1 Rewards from the environment t+1 ;

[0123] In the combiner, each agent makes decisions based on the discrete representations. We use criss-cross attention as the combining method. The basic idea of ​​criss-cross attention is to compute a set of attention weights that determine how much attention should be given to each element when processing another set of elements.

[0124] In this embodiment, cross attention is used to selectively focus on components of other agents' actions based on the agent's discretized observation set. For each first agent i, the agent's discretized observation set is combined with the discretized actions of other agents to obtain comprehensive information about the current environment and other agents' actions. The agent then uses the combined information to make decisions. It can be expressed as:

[0125]

[0126] in, is the discretized observation of the first agent i, is the discretized action of other agents (other than agent i).

[0127] The combined output is input into the Gaussian random strategy to sample the action decision (i.e., target action) of the first agent i, which is given by a i express:

[0128]

[0129] Where a is the action taken by the agent (sampled from the probability distribution), σ is the variance obtained through training, MLP represents the multi-layer perceptron, and the observation b of the agent at this time and the actions of other agents {a j=1,2,...,i-1}related.

[0130] The policy network in the present invention can obtain the final decision by combining the discretized agent observation set and the other agent discretized actions. In the combiner, each agent makes a decision based on the discretized agent observation set and the other agent discretized actions. Cross attention is used as a combination method. Cross attention is used to selectively focus on the components of other agent actions based on the agent's discretized agent observation set. For each agent, the combiner combines the discretized agent observation set with the other agent discretized actions to obtain comprehensive information about the current environment and other agent actions. The agent then uses the combined information to make a decision.

[0131] In this embodiment, all agents in the multi-agent system share the same agent network parameters, i.e., θ1=...=θ n For the i-th agent, its discrete observation and other agents’ discretized actions By using a combinatorial approach, the agent can make multiple decisions based on a limited set of agent observations and discrete representations of actions.

[0132] In actual learning, the codebook vector is updated using an exponential moving average; therefore, the first term in the first loss function formula is omitted. Specifically, the exponential moving average is calculated by subtracting the codebook vector The value of is replaced by itself and the h of the discretized network input i The weighted combination of is used to update the codebook vector:

[0133]

[0134] Where μ is the smoothing parameter of the codebook error, h i is the set of agent observations, or the segment corresponding to the actions of other agents, Codebook vector selected for the agent.

[0135] Furthermore, in one embodiment, the loss function may be obtained by:

[0136] Based on a first loss function of a discretized network, a second loss function of a value network, and a third loss function of a policy network, the loss function is obtained, wherein the deep reinforcement learning network includes the value network and the policy network;

[0137] The first loss function is obtained according to each segment, the number of codebook vectors in the discretized network codebook, the codebook vector corresponding to each segment, and the hyperparameters of the discretized network;

[0138] The second loss function is obtained according to the environment reward, the hyperparameters of the value network, the observations of all agents, the updated observations of all agents, and the trajectory length sampled from the experience replay, wherein the data stored in the experience replay includes the observations of all agents, the actions of all agents, the environment reward before the update, and the updated observations of all agents;

[0139] The third loss function is obtained based on the number of all agents, the trajectory length, the ratio between the first strategy and the second strategy, the joint advantage function of the multi-agent system and the hyperparameters of the strategy network. The first strategy is obtained based on the updated target actions of all agents, the second strategy is obtained based on the target actions of all agents, and the joint advantage function is obtained based on the environmental rewards before updating.

[0140] In this embodiment, after the joint action is performed, the trajectory data (b t ,a t ,r t+1 ,b t+1 ) is stored in the experience replay D for subsequent sampling updates.

[0141] In this embodiment, the loss function of the discretized network is (ie the first loss function) is:

[0142]

[0143] is the codebook vector selected for the agent, sg is the stop gradient operation, which enables the argmin operation to perform back-propagation training; β is a hyperparameter of a discretized network, which is used to measure the degree of alignment between the codebook vector and the input vector; the loss function indicates that in the case of a discretized network, the codebook vector of the discretized code selected by the network needs to be closest to the input.

[0144] In this embodiment, the data sampled from the experience playback D is in units of rounds, and each time the trajectory data of different rounds is taken from the experience playback (bt ,a t ,r t+1 ,b t+1 ).

[0145] In this embodiment, the loss function of the value network in the deep reinforcement learning network is (i.e. the second loss function) and the loss function of the policy network The formulas of (i.e. the third loss function) are:

[0146]

[0147]

[0148] Among them, r t Reward for the environment, is the joint advantage function of the multi-agent system, which can be calculated based on the updated environment reward r t+1 The calculation formula is: clip represents the clipping function, N represents the number of agents in the agent system, T represents the length of the sampled trajectory, ∈ and γ are the hyperparameters in the loss function of the value network and the hyperparameters in the loss function of the policy network, respectively, r i,t Represents the new strategy (i.e., the first strategy and the old strategy (i.e. the second strategy The ratio between them is calculated as:

[0149]

[0150] in, represents the discretized observation b t , Represents the discretized actions of other agents a 1:i-1,t , l is a variable, v is a value function, b t and b t+1 are the observations of multiple agents at time t and t+1, is the advantage function estimate at time t+1; it should be noted that the updated environmental reward r t+1 There are multiple r in the experience playback D corresponding to a trajectory, for example, r t+1 , r t+1 ,…,r t+k .

[0151] In this embodiment, the final loss function is The calculation formula is:

[0152] in, is the first loss function, is the second loss function, is the third loss function.

[0153] Furthermore, in one embodiment, updating the parameters of the deep reinforcement learning network includes:

[0154] Based on the RMSProp optimizer, the parameters of the deep reinforcement learning network are updated.

[0155] Optionally, in this embodiment, the optimization of parameters adopts RMSProp optimizer, and for each weight parameter ω in the parameters of the deep reinforcement learning network, the update rule is:

[0156]

[0157] Among them, ω t is the weight parameter at time t; g t is time t t The gradient of v t is the exponential average of the squared gradient at time t; η is the learning rate of the RMSProp optimizer, and its value is set to 0.0005; ρ is the smoothing parameter of the gradient, and its value is set to 0.99; ∈′ is the numerical stability term, and its value is set to 0.00001.

[0158] The present invention's discrete multi-agent deep reinforcement learning method for observation noise interference adopts a centralized training and centralized execution framework. The multi-agent system can learn cooperation strategies through training and perform actions centrally in actual execution.

[0159] The algorithm framework of centralized training and centralized execution is used. The specific implementation method is as follows:

[0160] The multi-agent system adopts a centralized execution method in the process of interacting with the environment. Through the combined network, each agent uses the discretized actions of other agents and the discrete agent observation set to obtain actions. After all the agent actions are obtained, they are re-input into the discretized network for the next agent's action generation;

[0161] In the training process of the discretized network and the combined network, a centralized training method is adopted. Data is sampled in the experience playback, and the data includes decision and state transition. Based on the sampled data, the discretized network and its combined network take the discretized agent observation set and other agent discretized actions as input, calculate the loss function, calculate the gradient according to the specified optimizer, and update the parameters of the discretized network and the combined network at the same time.

[0162] The permutation invariant network of the present invention can solve the problem that changes in the order of agent input in complex environments affect training efficiency; the discretization network of the present invention can solve the problem that noise observations interfere with collaborative decision-making; the agent combination network of the present invention can realize the decision of the agent itself based on the observation set of all agents in the noisy environment and the actions of other agents.

[0163] The method implemented in this embodiment is applied to a multi-unit confrontation environment of a certain strategy game. For example, the first scenario is a battle between our Marines and enemy Marines in a multi-unit battle environment of a certain strategy game; the second scenario is a battle between our Stalkers and Fanatics and enemy Stalkers and Fanatics in a multi-unit battle environment of a certain strategy game; the third scenario is a battle between our helicopters, predators and Marines and enemy helicopters, predators and Marines in a multi-unit battle environment of a certain strategy game.

[0164] In the first scenario, we control 6 ranged soldiers "A" and the enemy controls 8 melee soldiers "B" (6h_vs_8z); in the second scenario, we control 27 ranged soldiers "C" and the enemy controls 30 ranged soldiers "D" (27m_vs_30m); in the third scenario, we control 1 ranged soldier "E", 2 ranged soldiers "F" and 7 ranged soldiers "D", and the enemy controls 1 ranged soldier "E", 2 ranged soldiers "F" and 7 ranged soldiers "D" (MMM2). In the first scenario, although the enemy only has a numerical advantage of two melee soldiers, it will cause great suppression to us in the actual game. In the second and third scenarios, the difficulty of controlling the multi-agent system increases significantly due to the inclusion of two different types of units.

[0165] Based on the above environment, a certain degree of Gaussian noise is added to the agent's observation vector to simulate the noisy observations that may be encountered in the real environment.

[0166] The method implemented in this embodiment is used as a training algorithm to control our multi-agent system. The average winning rate changes with time steps as shown in Figure 5 , the winning rate in the figure was obtained by averaging the results of 3 repeated experiments. In three multi-unit battle scenarios of a certain strategy game, 20% noise was applied to the observation of the agent, where the percentage represents the noise amplitude relative to the maximum and minimum observation vectors that the agent can obtain in the scenario. It can be found that in the three scenarios, the agent achieved a winning rate of more than 60%. The experimental results show that the method implemented in this embodiment achieves excellent multi-agent system control effect and has good robustness to the observation noise in the environment.

[0167] The discretized multi-agent deep reinforcement learning method provided by the embodiment of the present invention defines the local observation and action space of each agent in the multi-agent system based on the operating environment of the multi-agent; initializes the parameters and experience playback of each network; reduces the observation space of multiple agents based on permutation invariance, and regards the observations of different agents as a set. In this way, the algorithm effectively reduces the observation input space of multiple agents and improves the training efficiency; based on the discretized network, the combined network and the random strategy, the action of each agent is obtained according to the local observation of the agent and executed in the environment; collects the recent decision and state history and stores it in the experience playback; samples data from the experience playback, trains the discretized network and the combined network and updates its parameters; represents the agent observation set and other agent actions through the discretized network, and a discrete vector can correspond to multiple noise observations that are similar but slightly affected by noise. The present invention regards these noise observations as the same observation, thereby effectively reducing noise; combines the discretized agent observation set and other agent discrete actions through the combined network, thereby generating a large number of strategies using limited discrete representations; repeats the above until the preset number of training games is reached. The present invention solves the problem of noise observation in cooperative control of multi-agent systems, and the problem that environmental noise in complex and changing environments may further affect the actions of other agents.

[0168] The following is a description of the discrete multi-agent deep reinforcement learning system provided by an embodiment of the present invention. The discrete multi-agent deep reinforcement learning system described below and the discrete multi-agent deep reinforcement learning method described above can be referenced to each other.

[0169] Figure 6 is a schematic diagram of the structure of a discrete multi-agent deep reinforcement learning system provided by an embodiment of the present invention, referring to Figure 6 ,include:

[0170] An acquisition module 610 is used to acquire the actions of all agents and the observations of all agents in the multi-agent system;

[0171] A training module 611 is used to iteratively execute the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0172] The first training process includes:

[0173] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0174] Iterate the second training process at least once until the target actions of all agents are obtained;

[0175] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0176] Updating parameters of the deep reinforcement learning network;

[0177] The second training process includes:

[0178] Based on the discretized network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent.

[0179] The discretized multi-agent deep reinforcement learning system provided by the embodiment of the present invention uses a discretized network structure to characterize the observations of the multi-agent system and the actions of other agents. The discretized network takes the observations of all agents and the actions of other agents as input, and is used to discretize the agent observation sets of the agents and the actions of other agents. It can reduce the impact of environmental noise on agent decision-making, promote the collaboration of agents, and improve the collaborative efficiency of the multi-agent system.

[0180] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call a computer program in the memory 730 to execute the steps of the deep reinforcement learning method of the discretized multi-agent, for example, including:

[0181] Obtain the actions of all agents in a multi-agent system and the observations of all agents;

[0182] Iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0183] The first training process includes:

[0184] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0185] Iterate the second training process at least once until the target actions of all agents are obtained;

[0186] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0187] Updating parameters of the deep reinforcement learning network;

[0188] The second training process includes:

[0189] Based on the discretized network, the observation set of the first intelligent agent and the action of the second intelligent agent are discretized to obtain the target action of the first intelligent agent, the first intelligent agent is any intelligent agent among all the intelligent agents, and the second intelligent agent is other intelligent agents among all the intelligent agents except the first intelligent agent.

[0190] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0191] On the other hand, an embodiment of the present invention further provides a computer program product, the computer program product including a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the steps of the discretized multi-agent deep reinforcement learning method provided in the above embodiments, for example, including:

[0192] Obtain the actions of all agents in a multi-agent system and the observations of all agents;

[0193] Iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0194] The first training process includes:

[0195] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0196] Iterate the second training process at least once until the target actions of all agents are obtained;

[0197] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0198] Updating parameters of the deep reinforcement learning network;

[0199] The second training process includes:

[0200] Based on the discretized network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent.

[0201] On the other hand, an embodiment of the present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to execute the steps of the methods provided in the above embodiments, for example, including:

[0202] Obtain the actions of all agents in a multi-agent system and the observations of all agents;

[0203] Iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges;

[0204] The first training process includes:

[0205] Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents;

[0206] Iterate the second training process at least once until the target actions of all agents are obtained;

[0207] Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function;

[0208] Updating parameters of the deep reinforcement learning network;

[0209] The second training process includes:

[0210] Based on the discretized network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent.

[0211] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0212] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0213] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0214] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A discrete multi-agent deep reinforcement learning method, characterized in that: include: Obtain the actions of all agents in a multi-agent system and the observations of all agents; Iteratively executing the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges; The first training process includes: Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents; Iterate the second training process at least once until the target actions of all agents are obtained; Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function; Updating parameters of the deep reinforcement learning network; The second training process includes: Based on the discretization network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, wherein the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent; based on the discretization network, the observation set of the first agent and the action of the second agent are discretized to obtain the target action of the first agent, including: Based on the discretized network, discretize the observation set of the first agent and the action of the second agent to obtain a discretized observation set of the first agent and a discretized action of the second agent; Obtaining a target action of the first agent according to the discretized observation set of the first agent and the discretized action of the second agent; The multi-agent operating environment is a strategy game with multiple units fighting against each other; for the i-th agent, the agent's observation oi facing the environment ,t The information included includes: the normalized health, shield, relative coordinates of all units in the environment, the action of the agent at the last moment and the identity of the agent; the observation o (i→j) The information included is the normalized health, shield, and relative coordinates of the attack target j; The multi-agent operating environment obtains the next moment state of each unit in the scene according to the joint action selected by the multi-agent system, and feeds back environmental rewards to the multi-agent system; the environmental rewards include immediate rewards and final rewards; The immediate reward is the difference in damage between the enemy and our side. If our side causes damage to the enemy side, the environment will give a positive reward equal to the damage value. If the enemy side causes damage to our side, the environment will give a negative joint reward equal to the opposite of the damage value. The final reward reflects the outcome of the battle. If our side wins, the environment will give a positive joint reward. If our side loses, the environment will give a negative joint reward. The specific value of the final reward is set to +10 or -10. The agent network corresponding to the multi-agent system is used to distributely calculate the observed action value of the agent, and each agent network controls a friendly unit in the environment, and selects a suitable action for the friendly unit by inputting the local observation of the friendly unit; The action space of the agent can be divided into a mobile action subspace facing the environment and an attack action subspace facing the unit according to its function; For the i-th agent, the action space of the agent consists of two action subspaces, namely, the moving actions a in four directions facing the environment i The attack action a of the unit against a specific attack target j (i→j) .

2. The discrete multi-agent deep reinforcement learning method according to claim 1, characterized in that: The method of discretizing the observation set of the first agent and the action of the second agent based on the discretized network to obtain the discretized observation set of the first agent and the discretized action of the second agent includes: Segmenting the set of observations of the first agent and the actions of the second agent; Based on the discretized network, mapping each segment to a discretized index of a discretized network codebook, wherein the discretized network codebook includes a plurality of discretized codebook vectors; Based on the discretization index, obtaining a codebook vector corresponding to each segment from the discretization network codebook; Obtaining a discretized observation set of the first agent and a discretized action of the second agent according to the codebook vector corresponding to each segment; Wherein, after executing the first training process once, the codebook vector corresponding to each segment is updated based on each segment and the codebook vector corresponding to each segment.

3. The discrete multi-agent deep reinforcement learning method according to claim 1, characterized in that: The step of obtaining the target action of the first agent according to the discretized observation set of the first agent and the discretized action of the second agent comprises: The discretized observation set of the first agent and the discretized actions of the second agent are combined based on the cross-attention mechanism to obtain the target action of the first agent.

4. The discrete multi-agent deep reinforcement learning method according to claim 2, characterized in that: The loss function is obtained by: Based on a first loss function of a discretized network, a second loss function of a value network, and a third loss function of a policy network, the loss function is obtained, wherein the deep reinforcement learning network includes the value network and the policy network; The first loss function is obtained according to each segment, the number of codebook vectors in the discretized network codebook, the codebook vector corresponding to each segment, and the hyperparameters of the discretized network; The second loss function is obtained according to the environment reward, the hyperparameters of the value network, the observations of all agents, the updated observations of all agents, and the trajectory length sampled from the experience replay, wherein the data stored in the experience replay includes the observations of all agents, the actions of all agents, the environment reward before the update, and the updated observations of all agents; The third loss function is obtained based on the number of all agents, the trajectory length, the ratio between the first strategy and the second strategy, the joint advantage function of the multi-agent system and the hyperparameters of the strategy network. The first strategy is obtained based on the updated target actions of all agents, the second strategy is obtained based on the target actions of all agents, and the joint advantage function is obtained based on the environmental rewards before updating.

5. The discrete multi-agent deep reinforcement learning method according to claim 1, characterized in that: The updating of the parameters of the deep reinforcement learning network includes: Based on the RMSProp optimizer, the parameters of the deep reinforcement learning network are updated.

6. A discrete multi-agent deep reinforcement learning system, characterized in that: include: The acquisition module is used to obtain the actions of all agents and the observations of all agents in the multi-agent system; A training module, configured to iteratively execute the first training process at least once until a preset number of training times is reached or the loss function of the deep reinforcement learning network corresponding to the multi-agent system converges; The first training process includes: Inputting the observations of all the agents into the permutation invariant network to obtain the observation sets of all the agents; Iterate the second training process at least once until the target actions of all agents are obtained; Execute the target actions of all the agents, update the observations and environment rewards, and use the environment rewards to update the loss function; Updating parameters of the deep reinforcement learning network; The second training process includes: Based on the discretization network, discretize the observation set of the first agent and the action of the second agent to obtain the target action of the first agent, wherein the first agent is any agent among all the agents, and the second agent is other agents among all the agents except the first agent; The second training process specifically includes: Based on the discretized network, discretize the observation set of the first agent and the action of the second agent to obtain a discretized observation set of the first agent and a discretized action of the second agent; Obtaining a target action of the first agent according to the discretized observation set of the first agent and the discretized action of the second agent; The multi-agent operating environment is a strategy game with multiple units fighting against each other; for the i-th agent, the agent's observation oi facing the environment ,t The information included includes: the normalized health, shield, relative coordinates of all units in the environment, the action of the agent at the last moment and the identity of the agent; the observation o (i→j) The information included is the normalized health, shield, and relative coordinates of the attack target j; The multi-agent operating environment obtains the next moment state of each unit in the scene according to the joint action selected by the multi-agent system, and feeds back environmental rewards to the multi-agent system; the environmental rewards include immediate rewards and final rewards; The immediate reward is the difference in damage between the enemy and our side. If our side causes damage to the enemy side, the environment will give a positive reward equal to the damage value. If the enemy side causes damage to our side, the environment will give a negative joint reward equal to the opposite of the damage value. The final reward reflects the outcome of the battle. If our side wins, the environment will give a positive joint reward. If our side loses, the environment will give a negative joint reward. The specific value of the final reward is set to +10 or -10. The agent network corresponding to the multi-agent system is used to distributely calculate the observed action value of the agent, and each agent network controls a friendly unit in the environment, and selects a suitable action for the friendly unit by inputting the local observation of the friendly unit; The action space of the agent can be divided into a mobile action subspace facing the environment and an attack action subspace facing the unit according to its function; For the i-th agent, the action space of the agent consists of two action subspaces, namely, the moving actions a in four directions facing the environment i The attack action a of the unit against a specific attack target j (i→j) .

7. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the discrete multi-agent deep reinforcement learning method described in any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the discrete multi-agent deep reinforcement learning method described in any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the discrete multi-agent deep reinforcement learning method described in any one of claims 1 to 5 is implemented.