Multi-agent geometric graph reinforcement learning method and device and storage medium
Through the multi-agent geometric graph reinforcement learning method, dynamic task allocation and sub-equivariant message passing mechanism are used to optimize the agent decision-making process, solve the challenges of information interaction and strategy optimization in the multi-agent environment, and improve the system's generalization ability and Decision quality.
Patent Information
- Application Number
- CN202410801020.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-20
AI Technical Summary
Traditional reinforcement learning algorithms are difficult to effectively cope with the complexity and dynamics in multi-agent environments, especially in terms of information interaction and fusion, strategy optimization, and computational costs.
The multi-agent geometric graph reinforcement learning method is used to integrate local observation information through dynamic task allocation and sub-equivariant message passing mechanism, optimize the agent decision-making process, and achieve information consistency and accuracy through local reference coordinate system transformation.
It significantly improves the generalization ability and decision-making quality of multi-agent systems, improves collaboration capabilities and strategy optimization efficiency, and enhances the robustness and flexibility of the system.
Smart Images

Figure CN118674002A
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the fields of artificial intelligence, machine learning and multi-agent systems, and in particular to a multi-agent geometric graph reinforcement learning method, device and storage medium. Background Art
[0002] In recent years, with the in-depth research on reinforcement learning (RL) and multi-agent system (MAS), researchers have gradually realized that traditional reinforcement learning algorithms are difficult to effectively cope with the complexity and dynamics of multi-agent environments. In a multi-agent environment, the interactions between agents and the environment are highly complex, and existing single-agent reinforcement learning algorithms are difficult to guarantee the learning and execution of global optimal strategies in this environment. Existing technologies mainly face the following challenges:
[0003] 1. Information interaction and fusion are difficult in complex environments. Each agent in a multi-agent system has only partial observation capabilities, and information exchange between them is particularly important for global decision-making. However, in actual environments, there are complex correlations between observation information and geometric vectors between different agents. Traditional learning methods are difficult to effectively capture this correlation, resulting in insufficient information interaction and fusion between agents.
[0004] 2. Diverse agent structures and target differences. The types and structures of agents in a multi-agent system vary, and different target tasks also place different requirements on the strategies of each agent. Existing technologies are difficult to effectively adapt to the diverse agent structures and target task differences.
[0005] 3. Low efficiency of joint strategy optimization. The strategy optimization of multi-agents needs to be performed in the global reference coordinate system, which will lead to an exponential increase in the computational cost of joint strategy optimization. At the same time, the existing technology is difficult to fully utilize the geometric symmetry in the multi-agent system during strategy optimization, resulting in low efficiency of strategy optimization.
[0006] Therefore, a new multi-agent geometric graph reinforcement learning method is urgently needed to solve the above problems and improve the collaborative ability and strategy optimization efficiency of the multi-agent system. Summary of the invention
[0007] The present disclosure aims to solve, at least to some extent, the technical problems of interaction, strategy optimization and information fusion of multi-agent systems in complex environments.
[0008] To this end, the multi-agent geometric graph reinforcement learning method provided in the first aspect of the present disclosure can effectively integrate the local observation information of multiple agents, optimize the decision-making process of the agents while ensuring real-time and accuracy through dynamic task allocation and sub-variant message passing mechanism, and improve the generalization ability of the entire system.
[0009] The multi-agent geometric graph reinforcement learning method provided by the first embodiment of the present disclosure includes:
[0010] S100: Each agent obtains the corresponding local state from the global dynamic environment state space through its observations and constructs a fully connected global entity-level geometric graph;
[0011] S200: introducing a dynamic task allocation mechanism based on geometric distance measurement to decouple the fully connected global entity-level geometric graph into local entity-level geometric subgraphs;
[0012] S300: Information interaction and fusion are realized in each local entity-level geometric subgraph through the message passing mechanism based on the sub-equivariant graph neural network, and the fused geometric vector and scalar features of each intelligent agent are obtained;
[0013] S400: constructing local reference coordinate system transformation of each agent according to the fused geometric vector of each agent, adjusting the local geometric symmetry of the local state of each agent, and obtaining the local state of each agent whose geometric transformation is unchanged;
[0014] S500: Outputting the action-level control strategy of each agent according to the local state of each agent that is invariant to geometric transformation;
[0015] S600: Iteratively train and optimize the action-level control strategy of each agent by executing the following steps:
[0016] S610: based on the actions and current states of all agents, sample the state at the next moment and calculate the global reward function;
[0017] S620: Optimize the action-level control strategy of each agent using the back propagation algorithm and the gradient descent method, and iteratively train the agent until a preset performance indicator or an upper limit of the number of training rounds is reached.
[0018] In some embodiments, in step S100, it is assumed that the global dynamic environment state space includes N intelligent agents and M non-intelligent agents, which constitute a complete set of all entities i, denoted as Ω, Assume that the number of action joints contained in agent i is K i , the action joints are numbered from 1, and the action joint numbered 1 is used as the backbone of agent I. Suppose the states of each action joint of agent i are s i,k , k=1,2,...,Ki In order to meet the requirements of physical geometric symmetry, the action joint state s of the agent is i,k Divided into geometric vectors and the scalar feature h i,k ; For non-agents, only state s l,1 , l=N+1, N+2,..., N+M;
[0019] The observation input 0 of agent i at time t is defined as i (t):
[0020]
[0021] Among them, s i,k (t) represents the state of the kth action joint of agent i at time t; s j,1 (t) represents the state of other agents j except agent i at time t;
[0022] In the fully connected global entity-level geometric graph, the edge set is the interconnection between all entities, the point set is all entity nodes, and the attributes of each entity node are The entity represented by this node The main state of
[0023] In some embodiments, in step S200, let the local entity-level geometric subgraph be ε, and decouple the fully connected global entity-level geometric graph into the local entity-level geometric subgraph according to the following formula:
[0024]
[0025] Among them, (i, l) is the edge relationship between agent i and non-agent l; Assign labels to tasks and dynamically assign task labels to each agent through a bipartite graph matching algorithm.
[0026] In some embodiments, in step S300, the message passing mechanism based on the sub-equivariant graph neural network is as follows:
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033] in, Represents entity nodes in the local entity-level geometry subgraph Neighbor nodes with edge relationships, Is an entity node The neighbor set of and They are entity nodes in the local entity-level geometric subgraph. and the position of j; Represents entity node Attributes; Represents the entity node after message passing Attributes; and Entity nodes vector properties that are geometrically equivariant to the edge j and scalar properties that are geometrically invariant, and They are the entity nodes that have been passed through the message vector properties that are geometrically equivariant to the edge j and scalar properties that are geometrically invariant, and They are the entity nodes after message passing. The vector attributes of geometric variation sub-variance and the scalar attributes of geometric variation invariance, [] means splicing different objects along their last dimension, and They are all sub-equivariant graph neural network functions.
[0034] In some embodiments, in step S400, the local reference coordinate system transformation is implemented by the following steps:
[0035] Assume that the geometric vector of agent i after fusion is Using this geometric vector Construct the local reference coordinate system transformation matrix of agent i The expression is as follows:
[0036]
[0037] in, are the three basis vectors of orthogonal transformation, Represents the transformation vector of the local reference coordinate system of agent i, which is obtained by linear transformation: is a learnable weight matrix, OP is an orthogonal transformation;
[0038] Establish a local reference coordinate system for each agent i in the global dynamic environment state space. As the origin, As the direction of the x-axis, is the local reference coordinate system transformation matrix, where, through task allocation, the origin of each agent’s local reference coordinate system is Change from the average position of all entities to the position of the corresponding agent, that is, Assign labels to tasks corresponding to the backbone positions of the agents;
[0039] Through the local reference coordinate system transformation, the local state o of each agent is i Realize local geometric symmetry adjustment to obtain the local state o′ of each agent that is invariant to geometric transformation i :
[0040]
[0041] in, represents the neighboring agents that have an edge relationship with agent i, is the neighbor set of agent i; represents the geometric vector of the backbone of agent j, h j,1 represents the scalar feature of the backbone of agent j, [] means concatenating different objects along their last dimension;
[0042] At the same time, the position coordinates of agent i are updated as follows:
[0043] In some embodiments, in step S500, the action-level control strategy of each agent is generated according to the following formula:
[0044]
[0045] in, is a multilayer perceptron used to output the action distribution parameters of agent i. The action a of each action joint of agent i i,k It is sampled from the distribution corresponding to the distribution parameter; h′ i is a scalar property that remains unchanged by the geometric changes of agent i after message passing.
[0046] In some embodiments, in step S610, let the action set and global state set of all agents at time t be a(t) and s(t) respectively, and the expressions are as follows:
[0047]
[0048]
[0049] Among them, a i (t) is the action of agent i at time t, The action-level control strategy of the agent Generate;s i (t) is the state of agent i at time t,
[0050] Sample the state of the next moment according to the action set a(t) of all agents and the global state set s(t) in, is the sampling operation, P(s(t+1)ls(t), a(t)) is the state transition probability function, and at the same time, the global reward function r(s(t), a(t)) is calculated.
[0051] In some embodiments, in step S620, iterative training is implemented by a centralized training and distributed execution strategy optimization method, using a multi-agent proximal strategy optimization framework to optimize the following objective function:
[0052]
[0053] Where γ is the discount factor, is the joint strategy set, and E is the expected operator.
[0054] The multi-agent geometric graph reinforcement learning method provided by the embodiment of the present disclosure has the following characteristics and beneficial effects:
[0055] The disclosed method significantly improves the generalization ability and decision-making quality of multi-agent systems in complex dynamic environments by combining hierarchical geometric graphs and reinforcement learning methods. Specifically, by introducing dynamic task allocation and local sub-equivariant message passing mechanisms, the method can effectively optimize information exchange and resource allocation between agents, reduce redundant operations, and improve the overall efficiency of the system. Secondly, by sharing the parameters of the graph neural network on different morphological nodes and task target nodes, it can effectively adapt to the diverse agent structures and target task differences. In addition, the use of local reference coordinate system transformation ensures the consistency and accuracy of information in the decision-making process, allowing each agent to independently adjust its strategy according to the changing environment. Through these technical means, the disclosed embodiments not only improve the adaptive ability of the agent, but also enhance the robustness and flexibility of the entire system. Ultimately, this multi-agent geometric graph reinforcement learning method can achieve better performance and higher collaborative competition efficiency in various application scenarios.
[0056] The multi-agent geometric graph reinforcement learning device provided by the second aspect of the present disclosure includes:
[0057] The first module is used to control each agent to obtain the corresponding local state from the global dynamic environment state space through its observation and build a fully connected global entity-level geometric graph;
[0058] The second module is used to introduce a dynamic task allocation mechanism based on geometric distance measurement to decouple the fully connected global entity-level geometric graph into local entity-level geometric subgraphs;
[0059] The third module is used to realize information interaction and fusion in each local entity-level geometric subgraph through a message passing mechanism based on a sub-equivariant graph neural network, and obtain the fused geometric vector and scalar features of each intelligent agent;
[0060] The fourth module is used to construct the local reference coordinate system transformation of each agent according to the fused geometric vector of each agent, adjust the local geometric symmetry of the local state of each agent, and obtain the local state of each agent whose geometric transformation is unchanged;
[0061] The fifth module is used to output the action-level control strategy of each agent based on the local state of each agent that is invariant to geometric transformation;
[0062] The sixth module is used to iteratively train and optimize the action-level control strategy of each agent by executing the following steps: based on the actions and current states of all agents, sample the state at the next moment and calculate the global reward function; use the backpropagation algorithm and gradient descent method to optimize the action-level control strategy of each agent, and iteratively train the agents until the preset performance indicators or the upper limit of the number of training rounds are reached.
[0063] The electronic device provided by the third embodiment of the present disclosure includes:
[0064] at least one processor, and a memory communicatively coupled to the at least one processor;
[0065] In which, the memory stores instructions that can be executed by the at least one processor, and the instructions are configured to execute the multi-agent geometric graph reinforcement learning method described in any embodiment of the first aspect of the present disclosure.
[0066] The computer-readable storage medium provided in the fourth aspect embodiment of the present disclosure stores computer instructions, and the computer instructions are used to enable the computer to execute the multi-agent geometric graph reinforcement learning method described in any embodiment of the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 An overall flow chart of multi-agent geometric graph reinforcement learning provided for an embodiment of the first aspect of the present disclosure.
[0068] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the third aspect of the present disclosure. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0070] On the contrary, the present application covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present application as defined by the claims. Further, in order to make the public have a better understanding of the present application, some specific details are described in detail in the detailed description of the present application below. Those skilled in the art can fully understand the present application without the description of these details.
[0071] See also Figure 1 The multi-agent geometric graph reinforcement learning method provided by the first aspect of the present disclosure includes the following steps:
[0072] S100: Each agent obtains the corresponding local state (corresponding to Figure 1 Step S100 in the above example) constructs a fully connected global entity-level geometric graph;
[0073] S200: Introduce a dynamic task allocation mechanism based on geometric distance metric to decouple the fully connected global entity-level geometric graph into local entity-level geometric subgraphs (corresponding to Figure 1 Step S200 in FIG.
[0074] S300: Through the message passing mechanism based on the sub-equivariant graph neural network, information interaction and fusion are realized in each local entity-level geometric subgraph, and the fused geometric vector and scalar features of each intelligent agent (corresponding to Figure 1 Step S300 in FIG.
[0075] S400: According to the fused geometric vectors of each agent, the local reference coordinate system transformation of each agent is constructed respectively, and the local geometric symmetry adjustment is implemented on the local state of each agent to obtain the local state of each agent with unchanged geometric transformation (corresponding to Figure 1 Step S400 in FIG.
[0076] S500: Output the action-level control strategy of each agent according to the local state of each agent that is invariant to geometric transformation (corresponding to Figure 1 Step S500 in FIG.
[0077] S600: By executing the following steps, the action-level control strategy of each agent is iteratively trained and optimized (corresponding to Figure 1 Step S600 in the process):
[0078] S610: based on the actions and current states of all agents, sample the state at the next moment and calculate the global reward function;
[0079] S620: Optimize the action-level control strategy of each agent using the back propagation algorithm and the gradient descent method, and iteratively train the agent until a preset performance indicator or an upper limit of the number of training rounds is reached.
[0080] In some embodiments, in step S100, the global dynamic environment state space is assumed to include N intelligent agents and M non-intelligent agents, constituting all entities The complete set of , denoted by Ω, Assume that the number of action joints contained in agent i is K i , the action joints are numbered from 1, and the action joint numbered 1 is used as the backbone of agent i. Suppose the states of each action joint of agent i are s i,k , k=1,2,...,K i In order to meet the requirements of physical geometric symmetry, the action joint state s i,k Divided into geometric vectors and the scalar feature h i,k ; Among them, the geometric vector Includes: The position of the k-th action joint of agent i The velocity of the k-th action joint of agent i and the rotation speed of the kth action joint of agent i Scalar feature h i,k Contains the rotation angle and range of the joint axis of the k-th action joint of agent i, as well as the joint type, etc. For non-agent entities, there is only state s l,1 , l=N+1, N+2,..., N+M.
[0081] Construct a fully connected global entity-level geometric graph, where the edge set is the interconnection between all entities, the point set is all entity nodes, and each entity node Properties It can be represented by the backbone state of the entity, that is,
[0082] For actual multi-entity systems, considering that each agent i usually has only partial observation capabilities, the observation input of agent i at time t is defined as follows: i (t):
[0083]
[0084] Among them: t represents the time; s i,k (t) represents the state of the kth action joint of agent i at time t; s j,1(t) represents the state of other agents j except agent i at time t.
[0085] In some embodiments, in step S200, since the entire control system is affected by the global state geometric transformation, in order to reduce the complexity of the control system, it is necessary to decouple the local state geometric transformation from the global state geometric transformation, introduce a task allocation mechanism, dynamically adjust the edge relationship between the agent and the non-agent based on the geometric distance metric according to the bipartite graph matching, and delete the edge relationship between all agents, and decouple the fully connected global entity-level geometric graph constructed in step S100 into a local entity-level geometric subgraph ε:
[0086]
[0087] Among them, (i, l) is the edge relationship between agent i and non-agent l; Assign labels to tasks and dynamically assign labels to each agent through a bipartite graph matching algorithm. Indicates that agent i and non-agent l have the same task assignment label. The bipartite graph matching algorithm can use the greedy algorithm or the Hungarian algorithm. The geometric distance metric size of the edge of the bipartite graph is defined as and Represent the positions of non-agent l and agent i respectively.
[0088] In some embodiments, in step S300, the message passing process based on the sub-equivariant graph neural network is as follows:
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095] in, Represents nodes in the local entity-level geometry subgraph Neighbor nodes with edge relationships, Is a node The neighbor set of and They are entity nodes in the local entity-level geometric subgraph. and the position of j; Represents entity node Attributes; Represents the entity node after message passing Attributes; and Entity nodes vector properties that are geometrically equivariant to the edge j and scalar properties that are geometrically invariant, and They are the entity nodes that have been passed through the message vector properties that are geometrically equivariant to the edge j and scalar properties that are geometrically invariant, and They are the entity nodes after message passing. The vector attributes of geometric variation sub-variance and the scalar attributes of geometric variation invariance, [] means splicing different objects along their last dimension, and are all sub-equivariant graph neural network functions. For example, the sub-equivariant graph neural network function The specific calculation steps are as follows:
[0096] 1. Calculate intermediate variables:
[0097] 2. Calculate two outputs based on the intermediate variables:
[0098]
[0099]
[0100] in, is gravity, is along the last dimension and Spliced together. and Do the inner product and concatenate, and then pass through a multilayer perceptron (MLP) σ: Generate intermediate variables m and h are the network hyperparameters of the multilayer perceptron. Due to the limitation of computing resources, their values are usually 64 and 256.
[0101] In some embodiments, in step S400, the local reference coordinate system transformation is implemented by the following steps:
[0102] First, we use the geometric vector fused by agent i Construct the local reference coordinate system transformation matrix of agent i The expression is as follows:
[0103]
[0104] in, are the three basis vectors of orthogonal transformation, Represents the transformation vector of the local reference coordinate system of agent i, obtained by linear transformation: is a learnable weight matrix, and OP is an orthogonal transformation, as shown below:
[0105]
[0106]
[0107]
[0108] Among them, <> represents the inner product.
[0109] Next, a local reference coordinate system is established for each agent i in the global dynamic environment state space. As the origin, As the direction of the x-axis, is the local reference coordinate system transformation matrix. Among them, through task allocation, the origin of each agent's local reference coordinate system is From the average position of all entities Change to the position of the corresponding agent The backbone position of the agent corresponding to the task assignment label.
[0110] Transformed by local reference coordinate system For each agent's local state o i Realize local geometric symmetry adjustment to obtain the local state o′ of each agent that is invariant to geometric transformation i :
[0111]
[0112] in, represents the neighboring agents that have an edge relationship with agent i, is the neighbor set of agent i; represents the geometric vector of the backbone of agent j, h j,1 represents the scalar feature of the backbone of agent j, and [] represents the concatenation of different objects along their last dimension. At the same time, the position coordinates of agent i are updated as follows: This achieves decoupled translation and rotation invariance.
[0113] In some embodiments, in step S500,
[0114] Generate the action-level control strategy of each agent according to the following formula
[0115]
[0116] in, is the multilayer perceptron MLP for agent i, outputting the Tanh-normal distribution parameters for each agent, Finally, the action a of each action joint of agent i i,k Sampling from this distribution; h′ i is a scalar property that remains unchanged by the geometric changes of agent i after message passing.
[0117] In some embodiments, in step S610, let the action set of all agents at time t be Among them, a i (t) is the action of agent i at time t, The action-level control strategy of the agent Generate; Let the global state set at time t be Among them, s i (t) is the state of agent i at time t, Sample the state of the next moment according to the action set a(t) of all agents and the global state set s(t) in is the sampling operation, P(s(t+1)|s(t), a(t)) is the state transition probability function. At the same time, the global reward function r(s(t), a(t)) is calculated.
[0118] In some embodiments, in step S620, iterative training is implemented by a centralized training and distributed execution strategy optimization method, using a multi-agent proximal policy optimization (MAPPO) framework to optimize the following objective function:
[0119]
[0120] Where γ is the discount factor, is the joint strategy set, and E is the expected operator.
[0121] The multi-agent geometric graph reinforcement learning device provided by the second aspect of the present disclosure includes:
[0122] The first module is used to control each agent to obtain the corresponding local state from the global dynamic environment state space through its observation and build a fully connected global entity-level geometric graph;
[0123] The second module is used to introduce a dynamic task allocation mechanism based on geometric distance metric to decouple the fully connected global entity-level geometric graph into local entity-level geometric subgraphs;
[0124] The third module is used to realize information interaction and fusion in each local entity-level geometric subgraph through a message passing mechanism based on a sub-equivariant graph neural network, and obtain the fused geometric vector and scalar features of each intelligent agent;
[0125] The fourth module is used to construct the local reference coordinate system transformation of each agent according to the fused geometric vector of each agent, adjust the local geometric symmetry of the local state of each agent, and obtain the local state of each agent whose geometric transformation is unchanged;
[0126] The fifth module is used to output the action-level control strategy of each agent based on the local state of each agent that is invariant to geometric transformation;
[0127] The sixth module is used to iteratively train and optimize the action-level control strategy of each agent by executing the following steps: based on the actions and current states of all agents, sample the state at the next moment and calculate the global reward function; use the backpropagation algorithm and gradient descent method to optimize the action-level control strategy of each agent, and iteratively train the agents until the preset performance indicators or the upper limit of the number of training rounds are reached.
[0128] It should be noted that the aforementioned explanation of the embodiment of a multi-agent geometric graph reinforcement learning method is also applicable to a multi-agent geometric graph reinforcement learning device of this embodiment, and will not be repeated here.
[0129] In order to implement the above embodiments, the embodiments of the present disclosure also propose a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to execute the multi-agent geometric graph reinforcement learning method provided by the embodiment of the first aspect of the present disclosure.
[0130] Reference below Figure 2 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the third aspect of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, servers, etc. Figure 2 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0131] like Figure 2As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 108 to a random access memory (RAM) 103. In the RAM 103, various programs and data required for the operation of the electronic device are also stored. The processing device 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0132] Typically, the following devices may be connected to the I / O interface 105: an input device 106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, etc.; an output device 107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 109. The communication device 109 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Figure 2 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0133] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present embodiment includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 109, or installed from the storage device 108, or installed from the ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0134] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0135] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0136] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the multi-agent geometric graph reinforcement learning method.
[0137] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, python, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0138] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0139] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0140] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0141] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0142] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0143] A person of ordinary skill in the art may understand that all or part of the steps carried out in the above-mentioned embodiment method may be completed by instructing the relevant hardware through a program, and the developed program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0145] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A multi-agent geometric graph reinforcement learning method, characterized in that: include: S100: Each agent obtains the corresponding local state from the global dynamic environment state space through its observations and constructs a fully connected global entity-level geometric graph; S200: introducing a dynamic task allocation mechanism based on geometric distance measurement to decouple the fully connected global entity-level geometric graph into local entity-level geometric subgraphs; S300: Information interaction and fusion are realized in each local entity-level geometric subgraph through the message passing mechanism based on the sub-equivariant graph neural network, and the fused geometric vector and scalar features of each intelligent agent are obtained; S400: constructing local reference coordinate system transformation of each agent according to the fused geometric vector of each agent, adjusting the local geometric symmetry of the local state of each agent, and obtaining the local state of each agent whose geometric transformation is unchanged; S500: Outputting the action-level control strategy of each agent according to the local state of each agent that is invariant to geometric transformation; S600: Iteratively train and optimize the action-level control strategy of each agent by executing the following steps: S610: based on the actions and current states of all agents, sample the state at the next moment and calculate the global reward function; S620: Optimize the action-level control strategy of each agent using the back propagation algorithm and the gradient descent method, and iteratively train the agent until a preset performance indicator or an upper limit of the number of training rounds is reached.
2. The multi-agent geometric graph reinforcement learning method according to claim 1, characterized in that: In step S100, assume that the global dynamic environment state space contains N intelligent agents and M non-intelligent agents, constituting all entities The complete set of , denoted by Ω, Assume that the number of action joints contained in agent i is K i , the action joints are numbered from 1, and the action joint numbered 1 is used as the backbone of agent i. Suppose the states of each action joint of agent i are s i,k ,k=1,2,…,K i In order to meet the requirements of physical geometric symmetry, the action joint state s of the agent is i,k Divided into geometric vectors and the scalar feature h i,k ; For non-agents, only state s l,1 , l=N+1,N+2,…,N+M; The observation input o of agent i at time t is defined as follows: i (t): Among them, s i,k (t) represents the state of the kth action joint of agent i at time t; s j,1 (t) represents the state of other agents j except agent i at time t; In the fully connected global entity-level geometric graph, the edge set is the interconnection between all entities, the point set is all entity nodes, and the attributes of each entity node are The entity represented by this node The main state of 3. The multi-agent geometric graph reinforcement learning method according to claim 2, characterized in that: In step S200, let the local entity-level geometric subgraph be ε, and decouple the fully connected global entity-level geometric graph into the local entity-level geometric subgraph according to the following formula: Among them, (i,l) is the edge relationship between agent i and non-agent l; Assign labels to tasks and dynamically assign task labels to each agent through a bipartite graph matching algorithm.
4. The multi-agent geometric graph reinforcement learning method according to claim 2, characterized in that: In step S300, the message passing mechanism based on the sub-equivariant graph neural network is as follows: in, Represents entity nodes in the local entity-level geometry subgraph Neighbor nodes with edge relationships, Is an entity node The neighbor set of and They are entity nodes in the local entity-level geometric subgraph. and the position of j; Represents entity node Attributes; Represents the entity node after message passing Attributes; and Entity nodes vector properties that are geometrically equivariant to the edge j and scalar properties that are geometrically invariant, and They are the entity nodes that have been passed through the message vector properties that are geometrically equivariant to the edge j and scalar properties that are geometrically invariant, and They are the entity nodes after message passing. The vector attributes of geometric variation sub-variance and the scalar attributes of geometric variation invariance, [] means splicing different objects along their last dimension, and They are all sub-equivariant graph neural network functions.
5. The multi-agent geometric graph reinforcement learning method according to claim 2, characterized in that: In step S400, the local reference coordinate system transformation is implemented by the following steps: Assume that the geometric vector of agent i after fusion is Using this geometric vector Construct the local reference coordinate system transformation matrix of agent i The expression is as follows: in, are the three basis vectors of orthogonal transformation, Represents the transformation vector of the local reference coordinate system of agent i, which is obtained by linear transformation: is a learnable weight matrix, OP is an orthogonal transformation; Establish a local reference coordinate system for each agent i in the global dynamic environment state space. As the origin, As the direction of the x-axis, is the local reference coordinate system transformation matrix, where, through task allocation, the origin of each agent’s local reference coordinate system is Change from the average position of all entities to the position of the corresponding agent, that is, Assign labels to tasks corresponding to the backbone positions of the agents; Through the local reference coordinate system transformation, the local state o of each agent is i Realize local geometric symmetry adjustment to obtain the local state o' of each agent that is invariant to geometric transformation i : in, represents the neighboring agents that have an edge relationship with agent i, is the neighbor set of agent i; represents the geometric vector of the backbone of agent j, h j,1 represents the scalar feature of the backbone of agent j, [] means concatenating different objects along their last dimension; At the same time, the position coordinates of agent i are updated as follows:
6. The multi-agent geometric graph reinforcement learning method according to claim 5, characterized in that: In step S500, the action-level control strategy of each agent is generated according to the following formula: in, is a multilayer perceptron used to output the action distribution parameters of agent i. The action ai of each action joint of agent i ,k Sampling is performed from the distribution corresponding to the distribution parameter; h' i is a scalar property that remains unchanged by the geometric changes of agent i after message passing.
7. The multi-agent geometric graph reinforcement learning method according to claim 6, characterized in that: In step S610, let the action set and global state set of all agents at time t be a(t) and s(t) respectively, and the expressions are as follows: Among them, a i (t) is the action of agent i at time t, The action-level control strategy of the agent Generate;s i (t) is the state of agent i at time t, Sample the state of the next moment according to the action set a(t) of all agents and the global state set s(t) in, is the sampling operation, P(s(t+1)|s(t),a(t)) is the state transition probability function, and at the same time, the global reward function r(s(t),a(t)) is calculated.
8. The multi-agent geometric graph reinforcement learning method according to claim 7, characterized in that: In step S620, iterative training is implemented through a centralized training and distributed execution strategy optimization method, using a multi-agent proximal strategy optimization framework to optimize the following objective function Where γ is the discount factor, is the joint strategy set, and E is the expected operator.
9. A multi-agent geometric graph reinforcement learning device, characterized in that: include: The first module is used to control each agent to obtain the corresponding local state from the global dynamic environment state space through its observation and build a fully connected global entity-level geometric graph; The second module is used to introduce a dynamic task allocation mechanism based on geometric distance measurement to decouple the fully connected global entity-level geometric graph into local entity-level geometric subgraphs; The third module is used to realize information interaction and fusion in each local entity-level geometric subgraph through a message passing mechanism based on a sub-equivariant graph neural network, and obtain the fused geometric vector and scalar features of each intelligent agent; The fourth module is used to construct the local reference coordinate system transformation of each agent according to the fused geometric vector of each agent, adjust the local geometric symmetry of the local state of each agent, and obtain the local state of each agent whose geometric transformation is unchanged; The fifth module is used to output the action-level control strategy of each agent based on the local state of each agent that is invariant to geometric transformation; The sixth module is used to iteratively train and optimize the action-level control strategy of each agent by executing the following steps: based on the actions and current states of all agents, sample the state at the next moment and calculate the global reward function; use the backpropagation algorithm and gradient descent method to optimize the action-level control strategy of each agent, and iteratively train the agents until the preset performance indicators or the upper limit of the number of training rounds are reached.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the multi-agent geometric graph reinforcement learning method described in any one of claims 1 to 8.
Citation Information
Cited By
Multi-subgraph fusion reinforcement learning control method and system for multi-input multi-output system
CN121721968A
Multi-agent virtual-real migration method and device
CN122472083A
Multi-agent virtual-real migration method and device
CN122472083B
