Cooperative multi-agent cooperation method based on explicit credit distribution
Through the explicit credit allocation method and Shapley value evaluation, combined with the tax redistribution of Rawls' difference principle, the complexity of global reward allocation in multi-agent systems is solved, and fair and effective credit allocation and collaborative cooperation are achieved.
Patent Information
- Application Number
- CN202410890436.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
When the existing technology distributes global rewards in multi-agent systems, the implicit method is not fully decomposed and lacks interpretability, and the explicit method is complicated under the common goal of subtle alliances, resulting in difficulty in collaborative cooperation.
A cooperative multi-agent collaboration method based on explicit credit allocation is adopted to obtain the initial state and action information of each agent, calculate the marginal contribution value, use the Shapley value to evaluate individual contribution, and reduce the computational complexity through Monte Carlo sampling. Implement tax redistribution in conjunction with the Rawlsian difference principle to ensure fair credit distribution.
It achieves fair and effective credit distribution in a cooperative environment, reduces computational complexity, and improves the clarity and stability of collaborative cooperation.
Smart Images

Figure CN118864085A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent agent reinforcement learning methods and cooperative game methods, and in particular to a cooperative multi-agent coordination method based on explicit credit allocation. Background Art
[0002] In many real-world tasks, such as two-handed manipulation, autonomous driving systems, and drone swarm collaboration, collaboration between multiple agents becomes crucial. In these scenarios, agents must make optimal decisions simultaneously to achieve a common goal. For example, in a two-handed lifting task, two arms need to coordinate and lift an object at the same time. In the face of these tasks, learning how to work together effectively becomes a major challenge, especially when there are complex interactions between agents.
[0003] Multi-Agent Reinforcement Learning (MARL) has been widely used to learn effective behaviors in such tasks from the experience of agents. Currently, a popular cooperative reinforcement learning framework is Centralized Training Decentralized Execution (CTDE). The core idea of this method is that during the learning phase, agents can share the experience, knowledge, and strategies of all agents to accelerate the learning process of the entire system. However, during the execution phase, each agent will make independent decisions based on its individual observations and local information, rather than relying on a centralized decision-making mechanism. This enables the system to adapt to real-time changing environments while retaining the collaborative strategies learned during the training phase.
[0004] One of the main challenges in achieving effective CTDE in MARL is the credit assignment problem, i.e., how to assign global rewards based on the contribution of each agent. Recent studies addressing this challenge can be divided into two main categories. 1) Implicit methods: These methods treat the central critic and local agents as a whole during training. First, a decomposition function (usually a neural network) is built to map the joint value function to the local value function. Next, the decomposition function and the policy are learned simultaneously, along with the central critic. However, implicit methods are limited by the design of the decomposition function, which may lead to insufficient decomposition and lack of interpretability in terms of credit assignment. 2) Explicit methods: These methods train the central critic and local actors separately. In each iteration, the central critic is first updated, and then a specific policy is used to calculate the reward or explicit value function for each agent. These reward signals or value functions are then used to guide the training of local agents. Although existing explicit methods overcome many of the shortcomings of implicit methods, they require algorithmically explicit descriptions of the contributions of individual agents to the overall goal, which can be very complex under common goals involving subtle coalitions. Summary of the invention
[0005] The embodiment of the present invention provides a cooperative multi-agent collaboration method based on explicit credit allocation, so as to at least solve the technical problems that in the prior art, when a cooperative multi-agent system allocates global rewards, the implicit method is limited by the design of the decomposition function, resulting in insufficient decomposition and lack of explainability in credit allocation, and the explicit method is very complex under the common goal involving subtle alliances, and the collaborative cooperation is difficult due to unclear global reward allocation.
[0006] According to one aspect of an embodiment of the present invention, a cooperative multi-agent collaboration method based on explicit credit allocation is provided. The method may include: obtaining the initial state information, initial action information and historical action information of each agent, wherein the initial state information and initial action information are the initial state information and initial action information of the remaining agents except for its own agent observed by each agent at the current moment, and the historical action information is the historical action information of each agent at the moment before the current moment; processing the initial state information, initial action information and historical action information through each agent network corresponding to each agent, and outputting the current action information of each agent, wherein the current action information is the action information of each agent at the current moment; characterizing the initial state information, initial action information and current action information of each agent through a fusion network Fusion, to obtain the global reward value of all agents; traverse each agent, calculate the marginal contribution value of each agent in multiple different agent alliances; based on the marginal contribution value corresponding to each agent, determine the first Shapley value of each agent; sample the alliance combination when calculating the marginal contribution value of each agent, based on the marginal contribution value of each agent obtained after sampling, obtain the second Shapley value of each agent, where the second Shapley value is an approximation of the first Shapley value; based on the second Shapley value of each agent, the tax rate and the total number of all alliance agents of each agent, determine the target credit allocation value of each agent corresponding to the global reward value; the target credit allocation value of each agent updates the parameters of each agent network.
[0007] Optionally, before obtaining the initial state information, initial action information and historical action information of each agent, the method also includes: modeling the sequential decision tasks of all agents as a distributed partially observable Markov decision process; and interacting each agent with the environment.
[0008] Optionally, the marginal contribution value of each agent in a coalition of multiple different agents can be calculated as: Δv(i,S)=v SinA -v S\iinA (1), where Δv(i,S) represents the marginal contribution of the i-th agent to the subset S in the alliance A, and v SinA represents the local contribution value of subset s, v S\iinA It represents the local contribution value of the i-th agent in the subset S, and the alliance A is the agent of all alliances.
[0009] Optionally, based on the marginal contribution value corresponding to each agent, the expression for determining the first Shapley value of each agent is: in, represents the first Shapley value of the ith agent, N represents the total number of all coalition agents including the ith agent, j represents the size of the coalition including the ith agent, S j (i) represents the agent set of size j that includes the i-th agent, S represents the subset in alliance A, and alliance A is the agent of all alliances.
[0010] Optionally, the coalition combination when calculating the marginal contribution value of each agent is sampled, and based on the marginal contribution value of each agent obtained after sampling, the expression of the second Shapley value of each agent is obtained as follows: in, represents the second Shapley value of the ith agent, M represents the number of sampling times of the coalition combination when calculating the marginal contribution value of each agent, S MCj (i) represents the subset that contains the i-th agent in the j-th sampling, and j represents the j-th sampling.
[0011] Optionally, based on each agent's second Shapley value, the tax rate and the total number of all alliance agents of each agent, the target credit allocation value of each agent corresponding to the global reward value is determined, including: determining the total revenue of all agents based on each agent's second Shapley value and the tax rate; determining the target credit allocation value of each agent based on the total revenue, each agent's second Shapley value, the tax rate and the total number of all alliance agents including the i-th agent.
[0012] Optionally, based on the second Shapley value of each agent and the tax rate, the total benefits of all agents are determined, including: summing up the second Shapley value of each agent to obtain an initial benefit; and determining the product of the initial benefit and the tax rate as the total benefit.
[0013] Beneficial effects of the present invention:
[0014] The present invention proposes a cooperative multi-agent coordination method based on explicit credit allocation. The method uses reinforcement learning to train agents and learns effective coordination strategies in a cooperative environment. In order to motivate the cooperation between agents, the present invention implements an explicit credit allocation mechanism that is both fair and effective. The mechanism ensures the effectiveness of credit allocation by introducing the Shapley value in cooperative game theory, and at the same time, draws on the Rawlsian difference principle in sociology to implement a fair and stable tax redistribution strategy, thereby ensuring the fairness of credit allocation. It solves the technical problems that the implicit method is limited by the decomposition function design when the cooperative multi-agent system allocates global rewards, resulting in insufficient decomposition and lack of interpretability in credit allocation, and the explicit method is very complex under the common goal involving subtle alliances, and then the technical problems of difficult coordination caused by unclear global reward allocation are achieved. The individual contribution of independent agents is evaluated by means of the Shapley value in cooperative game theory, and the computational complexity is reduced while maintaining the effectiveness of the method by using the approximate method of Monte Carlo sampling. Considering the problem of fair credit allocation, a tax redistribution strategy is proposed based on the Rawlsian difference principle, which makes the global reward allocation clear and thus makes the coordination simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0016] Figure 1 is a flow chart of a cooperative multi-agent collaboration method based on explicit credit allocation according to an embodiment of the present invention;
[0017] Figure 2 is a schematic diagram of an explicit credit allocation framework according to an embodiment of the present invention;
[0018] Figure 3 According to an embodiment of the present invention Figure 3 It is a schematic diagram of the average winning rate of the method according to the embodiment of the present invention compared with the QMIX and COMA methods in a 3m scenario according to the embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments 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 only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0021] Example 1
[0022] According to an embodiment of the present invention, a cooperative multi-agent collaboration method based on explicit credit allocation is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0023] Figure 1 is a flowchart of a cooperative multi-agent collaboration method based on explicit credit allocation according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0024] Step S101, obtain the initial state information, initial action information and historical action information of each agent, wherein the initial state information and initial action information are the initial state information and initial action information of the remaining agents except its own agent observed by each agent at the current moment, and the historical action information is the historical action information of each agent at the moment before the current moment.
[0025] In the technical solution provided in step S101 of the present invention, the initial state information and initial action information of the remaining agents except the agent itself observed by each agent at the current moment are obtained. And obtain the historical action information of each agent at the previous moment
[0026] Step S102, the initial state information, initial action information and historical action information are processed by each agent network corresponding to each agent, and the current action information of each agent is output, wherein the current action information is the action information of each agent at the current moment, and the local contribution value is the contribution value corresponding to the initial state information and the initial action information.
[0027] In the technical solution provided in step S102 of the present invention, according to an embodiment of the present invention, a framework based on explicit credit allocation is provided. Figure 2 is a schematic diagram of an explicit credit allocation framework according to an embodiment of the present invention, such as Figure 2 As shown, Figure 2 The feature extraction module in the network is each agent, which extracts the initial state information, initial action information and historical action information of each agent. Process the line and output the current action information of each agent in, and Again, the feature extraction module is incorrect. Processing, Q i is the local contribution value, which is based on The local agent is obtained by: n ranges from 1 to n, where each local agent is implemented by a deep Q network, which consists of a long short-term memory layer and a multi-layer perceptron. The local agent is represented as:
[0028] Q i =g(o i ; h)
[0029] Where h is the hidden state of LSTM. For the exploration strategy, ε-greedy is adopted, and the exploration rate of each round is as shown in formula (1):
[0030] ε(eps)=max(ε start -eps*σ,0)
[0031] Among them, ε start is the initial exploration rate, and σ represents the amount by which ε is reduced in each round.
[0032] Step S103, feature fusion is performed on the initial state information, initial action information and current action information of each agent through a fusion network to obtain a global reward value for all agents.
[0033] In the technical solution provided in step S103 of the present invention, according to Figure 2 It can be seen that the fusion network is to transfer the features corresponding to Q1 of all agents 1 to Q of agent N. NThe corresponding features are connected in series, and finally the global reward Q corresponding to the global features of all agents is obtained tot At the same time, in order to simplify the network structure and accelerate the learning process, the agents in the same group share the same parameters. The central critic is represented as:
[0034] Q tot =f(o1,u1,..,o n ,u n ,)
[0035] Among them, i represents the initial state information and initial action information of the other agents except the i-th agent observed by the i-th agent at the current moment, u i is the current action information of the i-agent at the current moment.
[0036] Step S104, traverse each agent and calculate the marginal contribution value of each agent in multiple different agent alliances.
[0037] In the technical solution provided in step S104 of the present invention, multiple marginal contribution values of each agent are calculated, reinforcement learning is introduced, and agent i is changed to agent set S, as shown in formula (4):
[0038] v s in A =f(H A )-f(H A\s ) (4)
[0039] Among them, A represents all agents, H A represents the action and observation of A, H A\s It means that the actions of all agents in the set S are replaced by default actions. According to Formula 4, the marginal contribution value of each agent in multiple different agent alliances can be obtained.
[0040] Step S105, determining the first Shapley value of each agent based on the marginal contribution value corresponding to each agent.
[0041] In the technical solution provided in the above step S105 of the present invention, the marginal contribution value corresponding to each intelligent agent is traversed to obtain the first Shapley value of each intelligent agent.
[0042] Step S106, sampling the alliance combinations when calculating the marginal contribution value of each agent, and obtaining the second Shapley value of each agent based on the marginal contribution value of each agent obtained after sampling, wherein the second Shapley value is an approximation of the first Shapley value.
[0043] In the technical solution provided in the above step S106 of the present invention, the alliance combination when calculating the marginal contribution value of each intelligent agent is sampled, and the second Shapley value of each intelligent agent is obtained according to the marginal contribution value of each intelligent agent obtained after sampling, wherein the second Shapley value is an approximation of the first Shapley value.
[0044] Based on this approximation, the embodiment of the present invention reduces the computational complexity of the true Shapley value of an agent from O(N!) to O(M), where N is the number of agents, which may be very large in some cases, and M is a hyperparameter representing the number of Monte Carlo samplings, which may be a small positive integer. It should be noted that this approximation of the Shapley value may slightly destroy some properties, such as efficiency and symmetry. The embodiment of the present invention believes that such an approximation is necessary and will not have much impact on the performance of the model.
[0045] Step S107, determining the target credit allocation value of each agent corresponding to the global reward value based on the second Shapley value of each agent, the tax rate and the total number of all alliance agents of each agent.
[0046] In the technical solution provided in the above step S107 of the present invention, Rawls's Difference Principle is a core concept proposed by American philosopher John Rawls in his theory of justice. Specifically, this principle points out that the arrangement of social systems should be committed to maximizing the improvement of the conditions of the most disadvantaged groups in society. This means that social inequality is reasonable only when it helps to improve the conditions of the most disadvantaged groups.
[0047] In the field of multi-agent collaboration, due to differences in learning environments or learning speeds, there are also large differences in the contributions of agents to global rewards. If global rewards are distributed only based on contributions, it may lead to extreme differentiation of benefits, and the established collaborative relationship becomes fragile, with only a few agents working hard for the global reward. To solve this problem, this chapter draws on Rawls's difference principle and reduces the income gap between agents through tax redistribution, thereby establishing a more stable and lasting collaborative relationship.
[0048] We introduce a "government" role in the centralized training framework, which levies taxes on the agents' earnings according to the tax rate α. The collected taxes are used to improve the rewards of agents with poor earnings (poor learning), thereby narrowing the earnings gap between agents and establishing a sustainable and stable collaborative relationship.
[0049] The second Shapley value of each agent, the tax rate and the total number of all alliance agents of each agent are calculated multiple times to obtain the target credit allocation value of each agent corresponding to the global reward value.
[0050] Step S108: The target credit allocation value of each agent is used to update the parameters of each agent network.
[0051] In the technical solution provided in step S108 of the present invention, if Figure 2 As shown, the target credit value of each agent is assigned Update the network parameters of the corresponding agents 1 to N so that Q1, ... Q n Closer
[0052] The above method of this embodiment is further introduced below.
[0053] As an optional implementation method, before step S101, obtaining the initial state information, initial action information and historical action information of each agent, the method also includes: modeling the sequential decision tasks of all agents as a distributed partially observable Markov decision process; and interacting each agent with the environment.
[0054] In this embodiment, a fully cooperative multi-agent sequential decision-making task including n agents A = {1, 2, ..., n} can be modeled as a distributed partially observable Markov decision process. A distributed partially observable Markov decision process is usually defined by the following tuple as shown in formula (7):
[0055] G=(S,U,P,r,Z,O,n,γ)
[0056] Where s∈S represents the true state of the environment. At each time step, the agent a∈A simultaneously selects an action u a ∈U forms a joint action. Action u a ∈U generates state transition in the environment, which is determined by the Markov transition probability function P(s′|s,u): S×U n →S description. All agents share the same global reward function In the partial observability setting, each agent’s observation z∈Z is generated by an observation function O(s,a):S×A→Z. Each agent has an action-observation history τ a ∈T, where T = (Z × U) * represents a set of state-action pairs of arbitrary length. In this history, each agent will follow a random policy π a (u a |τ a):T×U→[0,1] is conditioned. The common goal of all agents is to maximize the expected discounted reward Among them, r t+i is the action at the current moment, γ i Discount value
[0057] As an optional embodiment, in step S104, the marginal contribution value of each agent in a plurality of different agent alliances is calculated as follows: Δv(i,S)=v SinA -v S\iinA (1), where Δv(i,S) represents the marginal contribution of the i-th agent to the subset S in the alliance A, and v SinA represents the local contribution value of subset s, v S\iinA It represents the local contribution value of the i-th agent in the subset S, and the alliance A is the agent of all alliances.
[0058] In this embodiment, it is assumed that a coalition consists of N agents who cooperate with each other to achieve a common goal. For a specific agent i, let S be a set containing i, (S\i) be a set not containing i, and let v(.) be the value function used to estimate the contribution of a group of agents, v(S) is the first combined contribution value, and v(S\i) is the second combined contribution value.
[0059] As an optional embodiment, in step S104, based on the marginal contribution value corresponding to each agent, the expression of the first Shapley value of each agent is determined as follows: in, represents the first Shapley value of the ith agent, N represents the total number of all coalition agents including the ith agent, S j (i) represents the set of agents of size j that includes the i-th agent, S represents the subset in the alliance A, the alliance A is the agents of all alliances, and j represents the size of the alliance that includes the i-th agent.
[0060] In this embodiment, the marginal contribution values of the ith agent are traversed, the marginal contribution values of the alliance size including the ith agent are summed, and the quotient of the number of all alliances is taken to obtain the first Shapley value of the ith agent.
[0061] As an optional implementation manner, step S106 samples the alliance combination when calculating the marginal contribution value of each agent, and based on the marginal contribution value of each agent obtained after sampling, the expression of the second Shapley value of each agent is obtained as follows: in, represents the second Shapley value of the ith agent, M represents the number of sampling times of the coalition combination when calculating the marginal contribution value of each agent, S MCj (i) represents the subset that contains the i-th agent in the j-th sampling, and j represents the j-th sampling.
[0062] In this embodiment, the alliance combinations used to calculate the marginal contribution value of each agent are sampled. For example, there are 6 combinations of the marginal contribution value of the ith agent, 4 of which are sampled. Based on the 4 marginal contribution values of each agent obtained after sampling, the second Shapley value of each agent is obtained.
[0063] As an optional implementation method, step S107 determines the target credit allocation value of each agent corresponding to the global reward value based on the second Shapley value of each agent, the tax rate and the total number of all alliance agents of each agent, including: determining the total revenue of all agents based on the second Shapley value of each agent and the tax rate; determining the target credit allocation value of each agent based on the total revenue, the second Shapley value of each agent, the tax rate and the total number of all alliance agents including the i-th agent.
[0064] In this embodiment, the product of the second Shapley value and the tax rate is determined as the total benefit of all agents. Based on the total benefit, the second Shapley value of each agent, the tax rate and the total number of all alliance agents including the i-th agent, the expression for determining the target credit allocation value of each agent is shown in formula (5):
[0065]
[0066] in, represents the target credit allocation value for each i-agent, α represents the tax rate, represents the second Shapley value of the ith agent, N represents the total number of all coalition agents of the ith agent, and w t Representing the total benefits of the agents, this mechanism helps ensure that tax redistribution is fair and promotes a more balanced and coordinated multi-agent collaborative learning process by alleviating the inequality caused by differences in learning abilities.
[0067] As an optional implementation method, the total revenue of all agents is determined based on the second Shapley value and tax rate of each agent, including: summing up the second Shapley value of each agent to obtain the initial revenue; and determining the product of the initial revenue and the tax rate as the total revenue.
[0068] In this embodiment, based on the second Shapley value and tax rate of each agent, the expression for determining the total benefits of all agents is shown in formula (6): It can also be expressed as: The total benefit of the government in each step of learning is expressed as:
[0069]
[0070] Among them, w t represents the total revenue of the agent, α represents the tax rate, Represents the second Shapley value of the i-th agent, and the value of i ranges from 1 to N.
[0071] According to an embodiment of the present invention, an average winning rate of the method of the embodiment of the present invention compared with the QMIX and COMA methods in a 3m scenario is provided. Figure 3 FIG. 4 is a schematic diagram of the average winning rate of the method according to the embodiment of the present invention compared with the QMIX and COMA methods in a 3m scenario according to the embodiment of the present invention, as shown in FIG. Figure 3 As shown, in Figure 3 In the paper, QMIX is a value-based multi-agent reinforcement learning algorithm, which is an implicit credit assignment method that decomposes the global Q-value function into local Q-value functions of each agent, and combines these local Q-value functions through a hybrid network to obtain the global Q-value function. COMA is a policy-based multi-agent reinforcement learning algorithm that introduces counterfactual benchmarks based on QMIX to help calculate the contribution of each agent by evaluating the expected impact of different actions taken by the agent on the environment. Compared with the above methods, our method uses Shapley theory to reasonably evaluate the contribution of each agent, and uses Rawls difference principle to narrow the difference in benefits caused by different learning environments, thereby Figure 3 As can be seen from the figure, our method is higher than QMIX and COMA in terms of average winning rate.
[0072] In an embodiment of the present invention, the initial state information, initial action information and historical action information of each agent are obtained, wherein the initial state information and initial action information are the initial state information and initial action information of the remaining agents except the agent itself observed by each agent at the current moment, and the historical action information is the historical action information of each agent at the previous moment of the current moment; the initial state information, initial action information and historical action information are processed by each agent network corresponding to each agent, and the current action information of each agent is output, wherein the current action information is the action information of each agent at the current moment; the initial state information, initial action information and current action information of each agent are feature fused by the fusion network to obtain the global reward value of all agents; each agent is traversed to calculate the marginal contribution value of each agent in multiple different agent alliances; based on the marginal contribution value corresponding to each agent, the first Shapley value of each agent is determined; the marginal contribution value of each agent is calculated The alliance combination at the time of sampling is sampled, and the second Shapley value of each agent is obtained based on the marginal contribution value of each agent obtained after sampling, wherein the second Shapley value is an approximation of the first Shapley value; based on the second Shapley value of each agent, the tax rate and the total number of all alliance agents of each agent, the target credit allocation value of each agent corresponding to the global reward value is determined; the target credit allocation value of each agent is used to update the parameters of each agent network, which solves the technical problems that the implicit method is limited by the design of the decomposition function when allocating global rewards in the cooperative multi-agent system, resulting in insufficient decomposition and lack of interpretability in credit allocation, and the explicit method is very complex under the common goal involving subtle alliances, and then the technical problems of difficult collaborative cooperation caused by unclear global reward allocation are solved, and the individual contribution of independent agents is evaluated by means of the Shapley value in cooperative game theory, and the computational complexity is reduced while maintaining the effectiveness of the method by using the approximate method of Monte Carlo sampling. Considering the problem of fair credit allocation, a tax redistribution strategy is proposed based on Rawls's difference principle, which makes the global reward allocation clear and thus makes collaborative cooperation simple.
[0073] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0074] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0075] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0076] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0077] In addition, each functional unit in each embodiment of the present invention may be integrated into a first processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0078] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A cooperative multi-agent collaboration method based on explicit credit allocation, characterized in that: include: Acquire the initial state information, initial action information and historical action information of each agent, wherein the initial state information and initial action information are the initial state information and initial action information of the remaining agents except the agent itself observed by each agent at the current moment, and the historical action information is the historical action information of each agent at the moment before the current moment; Processing the initial state information, initial action information and historical action information through each agent network corresponding to each agent, and outputting current action information of each agent, wherein the current action information is the action information of each agent at the current moment; The initial state information, initial action information and current action information of each agent are subjected to feature fusion through a fusion network to obtain a global reward value for all agents; Traversing each of the intelligent agents, and calculating the marginal contribution value of each of the intelligent agents in a plurality of different intelligent agent alliances; Determine a first Shapley value of each intelligent agent based on the marginal contribution value corresponding to each intelligent agent; Sampling the alliance combination when calculating the marginal contribution value of each intelligent agent, and obtaining the second Shapley value of each intelligent agent based on the marginal contribution value of each intelligent agent obtained after sampling, wherein the second Shapley value is an approximation of the first Shapley value; Determine a target credit allocation value for each agent corresponding to the global reward value based on the second Shapley value of each agent, the tax rate, and the total number of all coalition agents of each agent; The target credit allocation value of each agent updates the parameters of the network of each agent.
2. The method according to claim 1, characterized in that Before obtaining the initial state information, initial action information and historical action information of each agent, the method further includes: Modeling the sequential decision-making tasks of all agents as distributed partially observable Markov decision processes; Each of the agents interacts with the environment.
3. The method according to claim 1, characterized in that The expression for calculating the marginal contribution value of each agent in a plurality of different agent alliances is: Δv(i,S )=v SinA - v S\iinA (1) Wherein, Δv(i,S) represents the marginal contribution value of the i-th agent in the subset S of the alliance A, v SinA represents the local contribution value of subset s, v S\iinA It represents the local contribution value of the i-th agent in the subset S, and the alliance A is the agent of all alliances.
4. The method according to claim 1, characterized in that: The expression for determining the first Shapley value of each agent based on the marginal contribution value corresponding to each agent is: Among them, the represents the first Shapley value of the ith agent, N represents the total number of all coalition agents including the ith agent, j represents the size of the coalition including the ith agent, S j (i) represents the agent set of size j that includes the i-th agent, S represents the subset in alliance A, and alliance A is the agent of all alliances.
5. The method according to claim 1, characterized in that The coalition combination when calculating the marginal contribution value of each agent is sampled, and based on the marginal contribution value of each agent obtained after sampling, the expression of the second Shapley value of each agent is obtained as follows: in, represents the second Shapley value of the ith agent, M represents the number of sampling times of the coalition combination when calculating the marginal contribution value of each agent, S MCj (i) represents the subset that contains the i-th agent in the j-th sampling, and j represents the j-th sampling.
6. The method according to claim 1, characterized in that Determining a target credit allocation value of each agent corresponding to the global reward value based on the second Shapley value of each agent, the tax rate, and the total number of all coalition agents of each agent, including: Determining the total payoff of all agents based on the second Shapley value of each agent and the tax rate; The target credit allocation value of each agent is determined based on the total revenue, the second Shapley value of each agent, the tax rate and the total number of all coalition agents including the i-th agent.
7. The method according to claim 6, characterized in that The total benefits of all agents are determined based on the second Shapley value of each agent and the tax rate, including: Summing the second Shapley value of each intelligent agent to obtain an initial profit; The product of the initial income and the tax rate is determined as the total income.
8. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 7 when running.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Reinforcement learning automatic driving method and system based on man-machine cooperation
CN119636794A
Human-machine cooperation based reinforcement learning automatic driving method and system
CN119636794B
Intelligent agent reinforcement learning method and interaction method
CN119830994A
Building operation and maintenance agent strategy updating method and storage medium
CN121920409A
