A method, device and terminal device for updating network parameters of a multi-agent system
By determining the overall internal reward and the contribution of each agent in a multi-agent system, and updating network parameters in combination with external rewards, the problem of low exploration efficiency is solved and more efficient task completion and collaborative control are achieved.
Patent Information
- Application Number
- CN202011364310.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-11-27
AI Technical Summary
In multi-agent systems, existing technologies are difficult to effectively improve exploration efficiency, resulting in redundant exploration behavior and low task completion efficiency. It is especially difficult to learn optimal collaborative strategies in sparse reward environments.
By determining the overall internal reward and the contribution of each agent, and combining external rewards to update network parameters, it ensures that the multi-agent system searches the global state space more comprehensively and reduces redundant exploration.
It improves the task completion efficiency of multi-agent systems, reduces redundant exploration behaviors, speeds up training, and improves collaborative control capabilities in sparse reward environments.
Smart Images

Figure CN112465148B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and in particular, relates to a network parameter updating method, device and terminal equipment for a multi-agent system. Background Art
[0002] Artificial intelligence is a technical science that studies and develops theories, methods, technologies and applications for simulating and expanding human intelligence. One of the main goals of artificial intelligence research is to enable agents to learn and simulate human decision-making, so as to be competent for some complex tasks that require human intelligence. The functions of a single agent are limited and cannot cope with complex tasks, which has promoted the concept of multi-agent systems. Multi-agent systems are composed of multiple agents that can make autonomous decisions and interact with each other. They share the same environment and have perception and execution mechanisms. At present, multi-agent systems have become a research hotspot in the field of artificial intelligence.
[0003] In collaborative multi-agent tasks, only when multiple agents jointly complete a task can they obtain an external reward. For environments that have not been explored or explored many times, how to effectively improve the exploration efficiency is an urgent problem to be solved in the current training process of multi-agent systems. For the above problems, the multi-agent system is usually regarded as a whole, and then the local information of each agent is determined based on the global state novelty parameter degree, and then the network parameters of each agent are updated based on the local information of each agent. The multi-agent system with updated network parameters can finally decide the optimal collaborative control strategy. However, this method does not take into account the uniqueness of each agent, and is prone to redundant exploration behavior, which reduces the efficiency of completing cooperative tasks. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a network parameter updating method, apparatus and terminal device for a multi-agent system to solve the problem that the current pest and disease type identification system based on deep learning cannot comprehensively and accurately identify the types of pests and diseases of fruit trees.
[0005] In a first aspect, an embodiment of the present application provides a method for updating network parameters of a multi-agent system, comprising:
[0006] Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system;
[0007] Determine each agent's local internal reward based on the overall internal reward and each agent's contribution;
[0008] Get external rewards for each agent;
[0009] The network update parameters of each intelligent agent are determined according to the local internal reward and external reward of each intelligent agent, and the network update parameters of each intelligent agent are sent to each intelligent agent. The network update parameters are used to control each intelligent agent to train its own network according to the network update parameters.
[0010] Optionally, determine the overall internal reward based on a novelty parameter of the multi-agent system, including:
[0011] Determine the novelty parameter of the multi-agent system according to the number of joint actions taken by the multi-agents in the joint state at the current moment;
[0012] Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system.
[0013] Optionally, determine the overall internal reward based on a novelty parameter of the multi-agent system, including:
[0014] Determine the novelty parameter of the multi-agent system based on the prediction error;
[0015] Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system.
[0016] Optionally, determine the overall internal reward based on a novelty parameter of the multi-agent system, including:
[0017] Determine novelty parameters of the multi-agent system based on successor features;
[0018] The overall internal reward is then determined based on the novelty parameter of the multi-agent system.
[0019] Optionally, the local internal reward of each agent is determined based on the overall internal reward and the contribution of each agent, including:
[0020] Determine the contribution of each agent based on its advantage function;
[0021] The local internal reward of the agent is determined based on the agent's contribution and the overall internal reward.
[0022] Optionally, the local internal reward of each agent is determined based on the overall internal reward and the contribution of each agent, including:
[0023] Determine the contribution of each agent based on the successor characteristics of the current agent;
[0024] The local internal reward of the agent is determined based on the agent's contribution and the overall internal reward.
[0025] Optionally, train each agent's own network based on its local internal and external rewards, including:
[0026] The network update parameters of each agent are determined based on the local internal reward and external reward of each agent, and the network update parameters of each agent are sent to each agent, including:
[0027] Determine the overall reward for each agent based on its local intrinsic reward and extrinsic reward;
[0028] The network parameters of each agent are updated according to the overall reward of each agent to obtain the network update parameters.
[0029] In a second aspect, an embodiment of the present application provides a network parameter updating device, including:
[0030] A first determination unit, configured to determine an overall internal reward according to a novelty parameter of the multi-agent system;
[0031] A second determination unit is used to determine a local internal reward of each agent according to the overall internal reward and the contribution degree of each agent;
[0032] The acquisition unit is used to obtain external rewards for each agent;
[0033] The training unit is used to train its own network based on the local internal rewards and external rewards of each agent.
[0034] In a third aspect, an embodiment of the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or any optional method of the first aspect is implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or any optional method of the first aspect is implemented.
[0036] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the method described in the first aspect or any optional method of the first aspect.
[0037] The network parameter updating method, device, terminal device, terminal device, computer-readable storage medium, and computer program product of a multi-agent system provided by the embodiments of the present application have the following beneficial effects:
[0038] The embodiment of the present application provides a network parameter updating method for a multi-agent system, which determines the overall internal reward through the novelty parameters of the entire agent system, and then determines the local internal reward of each agent based on the contribution degree of each agent, and then combines the external reward to determine the network update parameters of each agent. It not only determines the internal reward from a global perspective, making the multi-agent system's search of the global state space more comprehensive, but also determines the internal reward of the agent according to the contribution degree of each agent to the overall novelty parameters, which fully takes into account the differences in the exploration capabilities of different agents, reduces repeated and redundant exploration, speeds up training, and improves the efficiency of task completion. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 is a schematic flow chart of a network parameter updating method for a multi-agent system provided in an embodiment of the present application;
[0041] Figure 2 This is a schematic diagram of the structure of a network parameter updating device provided by an embodiment of the present application;
[0042] Figure 3 is a structural schematic diagram of a terminal device provided by another embodiment of the present application;
[0043] Figure 4 It is a structural schematic diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0045] It should be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0046] It should also be understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0047] Multi-agent systems have very broad application prospects in many fields such as society, industry, and national defense. Multi-agent systems include but are not limited to sensor networks, drone formation systems, multi-robot cooperation systems, biological networks, satellite attitude control systems, etc.
[0048] How to make a multi-agent system learn the optimal coordination strategy in a sparse reward environment is a major challenge in achieving coordinated control of a multi-agent system. A sparse reward environment refers to an environment with fewer external rewards. For example, in a robot vacuum cleaner task, multiple robots need to clean an area in cooperation. The task is considered completed only when all robots have cleaned all areas. Only when all robots have cleaned all areas can they obtain an external reward.
[0049] Therefore, the above cooperative cleaning task can be abstracted as a multi-agent reinforcement learning problem in a sparse reward environment. Each sweeping robot is regarded as an agent, and only after all agents cooperate to complete the overall task can they obtain a sparse external reward.
[0050] In a single-agent environment, it is usually possible to assign an internal reward to the reinforcement learning agent, then update the agent's network parameters in combination with external rewards, and then train the agent network based on the updated network parameters. For example, the agent's internal reward is assigned based on the agent's novelty parameter for the current observation. The higher the novelty parameter of the current observation, the greater the internal reward assigned, and vice versa. This can encourage the agent to visit areas with unknown states (or few visits), thereby playing an exploration role and discovering potential rewards in the environment. As for the problem of how to enable a multi-agent system to learn the optimal collaborative strategy in a sparse reward environment, a simple solution is to directly apply the exploration method based on the novelty parameter under a single agent to multi-agents, so that each agent explores independently. However, this method easily leads to the multi-agent system being unable to fully explore the joint state space, and may produce redundant exploration behaviors, resulting in low exploration efficiency. Another solution is to treat the multi-agent system as a whole, calculate the internal reward based on the global state novelty parameter degree, and all agents use the same internal reward combined with external rewards to update their own network parameters, and then train based on the updated network parameters. This approach takes into account the novelty parameters of the global state, but ignores the uniqueness of each agent in the multi-agent system. It is also prone to redundant exploration behaviors, resulting in inefficient task completion.
[0051] In order to solve the above-mentioned defects, an embodiment of the present application provides a collaborative control method for multiple agents, which determines the overall internal reward through the novelty parameters of the entire agent system, and then determines the local internal reward of each agent based on the contribution degree of each agent, and then combines the external reward to determine the network update parameters of each agent. The internal reward is determined from a global perspective, making the multi-agent system's search of the global state space more comprehensive. The internal reward of the agent is determined according to the contribution degree of each agent to the overall novelty parameters, which fully takes into account the differences in the exploration capabilities of different agents, reduces repeated and redundant exploration, speeds up training, and improves the efficiency of task completion.
[0052] The following is a detailed description of the network parameter updating method, device and terminal device of the multi-agent system provided in the embodiment of the present application:
[0053] It should be noted that the multi-agent system provided in the embodiment of the present application may be a sensor network, a drone formation system, a multi-robot cooperation system, a biological network, a satellite attitude control system, etc. Specifically, the embodiment of the present application is described by taking a multi-robot cooperation system as an example. Among them, the multi-robot cooperation system may be a multi-sweeping robot cooperation system.
[0054] In an embodiment of the present application, the above-mentioned multi-sweeping robot cooperation system includes multiple sweeping robots, and each sweeping robot is an intelligent agent.
[0055] In the embodiment of the present application, the network parameter updating method of the multi-agent system is applied to update the network parameters of the multi-agent system, so that the multi-agent system can decide the best cooperation strategy when performing cooperative tasks. For example, the multi-sweeping robot cooperation system can decide which agent is responsible for cleaning which part of the area in the sweeping task, and at the same time reduce and improve the exploration efficiency of the multi-sweeping robot cooperation system to shorten the time of the sweeping task.
[0056] In an embodiment of the present application, the network parameter updating method of the multi-agent system can be executed by any one of the agents in the multi-agent system, or by a terminal device with data processing capabilities independent of the multi-agent system.
[0057] Exemplarily, the terminal device may be a cloud server, a computer, a mobile phone, or other terminal device. The terminal device may communicate with each agent in the multi-agent system to obtain or send various data, such as obtaining environmental feedback from each agent, sending network update parameters, etc.
[0058] See also Figure 1 , Figure 1 It is a schematic flowchart of a network parameter updating method for a multi-agent system provided in an embodiment of the present application.
[0059] like Figure 1 As shown, the network parameter updating method of the multi-agent system may include S11 to S14, which are described in detail as follows:
[0060] S11: Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system.
[0061] In the embodiment of the present application, the novelty parameter of the multi-agent system refers to the difference between the current joint state and the previous joint state of the multi-agent system.
[0062] In one embodiment of the present application, the number of times that multiple agents take joint actions in a joint state at the current moment can be calculated to determine the novelty parameter of the multi-agent system, and then the overall internal reward can be determined based on the novelty parameter of the multi-agent system.
[0063] Specifically, assume that the joint state of the agents at time t is , the joint action is , Indicates that the multi-agent system is in a joint state during the entire training process Take joint action The novelty parameter is related to the joint state of the multi-agent system. Take joint action The relationship between the number of times is that the multi-agent system is in the joint state Take joint action The more times the novelty parameter is, the smaller the multi-agent system is in the joint state. Take joint action The fewer the number of times, the larger the novelty parameter. Therefore, the novelty parameter It can be expressed as: . And the overall internal reward According to the novelty parameter and internal reward weight To determine, the overall internal reward can be expressed as: Among them, the internal reward weight It can be set according to the actual network training situation and is not limited here.
[0064] In another embodiment of the present application, the novelty parameter of the multi-agent system can be determined according to the prediction error, and then the overall internal reward can be determined based on the novelty parameter of the multi-agent system.
[0065] Specifically, two networks can be pre-set, one of which is a randomly initialized network with fixed parameters (i.e., it does not participate in the training process). ,network The input state is , the output vector is ; The other network is randomly initialized but the parameters are not fixed (i.e., it participates in the training process) , with the same input state Input to the network The output vector obtained is . The input state Indicates the joint state and the action taken in the current state The joint vector of .
[0066] Therefore, the network The loss function is defined as: For the same input state , using the network To approximate the network , we can get all the state information of the multi-agent system during the training process. And the prediction error With the output status decreases with the increase of The reciprocal of reflects the number of joint states experienced by the multi-agent system. Therefore, the novelty parameter of the multi-agent system at time t is defined as: . And the overall internal reward According to the novelty parameter and internal reward weight To determine, the overall internal reward can be expressed as: .
[0067] In another embodiment of the present application, the novelty parameter of the multi-agent system can be determined based on the subsequent features, and then the overall internal reward can be determined based on the novelty parameter of the multi-agent system.
[0068] Specifically, use Represents the current state of the multi-agent system The characteristics of Indicates the current state of the multi-agent system According to the current strategy The discounted expected sum of the subsequent states experienced. (current moment) and Euler distance of the difference between the successor features (the next moment of the current moment) Can be reflected in the current strategy From the current state Take Action Arrival Status After , the difference in the subsequent trajectories of the multi-agent system. Therefore, the novelty parameter of the multi-agent system can be defined as: . And the overall internal reward According to the novelty parameter and internal reward weight To determine, the overall internal reward can be expressed as: .
[0069] S12: Determine the local internal reward of each agent based on the overall internal reward and the contribution of each agent.
[0070] In the embodiment of the present application, in order to take into account the uniqueness of each intelligent agent and to ensure that the exploration ability of each intelligent agent can be fully utilized during the exploration process and to reduce redundant exploration time, after the overall internal reward is determined based on the global novelty parameter, it is also necessary to determine the proportion of each intelligent agent's local internal reward based on the degree of contribution of each intelligent agent to the internal reward.
[0071] Specifically, the overall internal reward can be expressed as , Agent The local internal reward is denoted as , that is, the intelligent agent The local internal reward of is expressed as: ,in, For intelligent agents The ratio of the local internal reward to the overall internal reward, and .
[0072] In one embodiment of the present application, the advantage function of each agent can be determined to determine the contribution degree of each agent, and then the local internal reward of the agent is determined based on the contribution degree of the agent and the overall internal reward.
[0073] The above agent The advantage function can be expressed as: ;in, Representing an Agent In the current strategy Next, take action Compared to the contribution of taking other actions to the novelty parameter of the whole (i.e., multi-agent system), The larger the value, the more intelligent the agent Current Action Compared with other actions, the greater the contribution to the system training. The contribution of all agents is calculated through the above advantage function. That is, S11 . It is an intelligent agent The self-observation parameters of can be calculated according to the existing distributed partially observable Markov algorithm, which will not be elaborated here. Representing an Agent Actions, Represents the joint actions of other agents.
[0074] Then, based on the softmax function, the proportion of local intrinsic rewards for each agent is determined , the proportion of each agent's local intrinsic reward It can be expressed as: . Where n is the number of agents, and n is a positive integer greater than or equal to 2.
[0075] In one embodiment of the present application, the contribution degree of each agent can be determined based on the successor characteristics of the current agent, and then the local internal reward of the agent can be determined based on the contribution degree of the agent and the overall internal reward.
[0076] Specifically, the overall internal reward based on the successor feature is the difference between the successor states of two adjacent joint states. To calculate the contribution of each agent's state change to the joint state change, the states of other agents can be fixed and only the current agent state can be changed. Therefore, the contribution of each agent to the overall internal reward can be expressed as: .in, Indicates that at time t, except for the agent The joint state of other agents, Represents the agent at time t status, Indicates that at time t+1 the agent status, Representing an Agent The degree to which the state change of a contributes to the subsequent state change of the entire multi-agent system.
[0077] Then we can determine the proportion of each agent's local intrinsic reward , the proportion of each agent's local intrinsic reward It can be expressed as: . Where n is the number of agents, and n is a positive integer greater than or equal to 2.
[0078] S13: Get external rewards for each agent.
[0079] In specific applications, at each time , each agent According to own observation Select an action , forming a joint action , interact with the environment, and go to the next state , and each agent can also obtain the corresponding environmental feedback . The above environmental feedback is determined as the external reward for each agent.
[0080] It should be noted that the process by which the above-mentioned intelligent agent obtains the corresponding environmental feedback can be referred to the existing multi-agent reinforcement learning process, which will not be repeated here.
[0081] S14: Determine the network update parameters of each intelligent agent according to the local internal reward and external reward of each intelligent agent, and send the network update parameters of each intelligent agent to each intelligent agent.
[0082] In an embodiment of the present application, the total reward of each agent is determined by combining the local internal reward and external reward of each agent. Then, the network parameters of each agent are updated based on the total reward of each agent to obtain the network update parameters corresponding to each agent. After determining the network update parameters corresponding to each agent, the network update parameters corresponding to each agent can be sent to the corresponding agent to control each agent to update its own network parameters based on the network update parameters. After updating its own network parameters, each agent can be trained based on the updated network parameters to obtain actions that can make the optimal collaborative strategy. It should be noted that the specific training process of each agent can refer to the existing agent training process, and this article does not limit this.
[0083] In the embodiment of the present application, the above-mentioned overall reward can be defined as the sum of the above-mentioned local internal reward and the external reward. It should be noted that the overall reward can also be defined as other related functions of the above-mentioned local internal reward and the external reward according to other application scenarios, and the present application is not limited to this.
[0084] In the embodiment of the present application, when each intelligent agent has completed training, the multi-agent system has also completed training. The trained multi-intelligent system can collaboratively control each intelligent agent to perform corresponding actions according to the decided strategy, thereby achieving collaborative control.
[0085] In one embodiment of the present application, a group of homogeneous agents perform collaborative tasks, and the position interchange between agents does not affect the degree of completion of the task. For example, in the sweeping robot scenario, the task of the sweeping robot group is to clean an area in a cooperative manner. Assume that there are two existing robots, Robot 1 and Robot 2, and their tasks are to clean Room A and Room B respectively. Letting Robot 1 clean Room A and Robot 2 clean Room B, and letting Robot 1 clean Room B and Robot 2 clean Room A have the same degree of completion of the overall task, that is, Robot 1 and Robot 2 clean Room A and Room B together. Therefore, when determining the local internal reward, the same internal reward can be given to the two robots. Therefore, when updating the global novelty evaluation function of the agent system, the original global state-action pair is expanded using data enhancement, and the positions and corresponding actions between the agents are randomly disrupted, and then updated.
[0086] From the above, it can be seen that the collaborative control method of multiple agents provided in the embodiment of the present application determines the overall internal reward through the novelty parameters of the entire agent system, and then determines the local internal reward of each agent based on the contribution degree of each agent, and then combines the external reward to determine the network update parameters of each agent. It not only determines the internal reward from a global perspective, making the multi-agent system's search of the global state space more comprehensive, but also determines the internal reward of the agent according to the contribution degree of each agent to the overall novelty parameters, which fully takes into account the differences in the exploration capabilities of different agents, reduces repeated and redundant exploration, speeds up training, and improves the efficiency of task completion.
[0087] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0088] Based on the network parameter updating method of the multi-agent system provided in the above embodiment, the embodiment of the present invention further provides an embodiment of a device for implementing the above method embodiment.
[0089] See also Figure 2 , Figure 2 Schematic diagram of the structure of a network parameter updating device provided in an embodiment of the present application. In the embodiment of the present application, the network parameter updating device includes various units for executing Figure 1 For details, please refer to the steps in the corresponding embodiment. Figure 1 as well as Figure 1 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 2 As shown, the multi-agent system 20 includes: a first determination unit 21, a second determination unit 22, an acquisition unit 23 and an update unit 24. Among them:
[0090] The first determination unit 21 is used to determine the overall internal reward according to the novelty parameter of the multi-agent system.
[0091] The second determining unit 22 is used to determine the local internal reward of each agent according to the overall internal reward and the contribution degree of each agent.
[0092] The acquisition unit 23 is used to obtain the external reward of each agent.
[0093] The updating unit 24 is used to determine the network update parameters of each agent according to the local internal reward and external reward of each agent, and send the network update parameters of each agent to each agent, and the network update parameters are used to control each agent to train its own network according to the network update parameters.
[0094] Optionally, the first determining unit 21 is specifically configured to:
[0095] Determine the novelty parameter of the multi-agent system according to the number of joint actions taken by the multi-agents in the joint state at the current moment;
[0096] Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system.
[0097] Optionally, the first determining unit 21 is specifically configured to:
[0098] Determine the novelty parameter of the multi-agent system based on the prediction error;
[0099] Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system.
[0100] Optionally, the first determining unit 21 is specifically configured to:
[0101] Determine novelty parameters of the multi-agent system based on successor features;
[0102] The overall internal reward is then determined based on the novelty parameter of the multi-agent system.
[0103] Optionally, the second determining unit 22 is specifically configured to:
[0104] Determine the contribution of each agent based on its advantage function;
[0105] The local internal reward of the agent is determined based on the agent's contribution and the overall internal reward.
[0106] Optionally, the second determining unit 22 is specifically configured to:
[0107] Determine the contribution of each agent based on the successor characteristics of the current agent;
[0108] The local internal reward of the agent is determined based on the agent's contribution and the overall internal reward.
[0109] Optionally, the updating unit 24 may include a third determining unit and a parameter updating unit.
[0110] The third determination unit is used to determine the overall reward of each agent according to the local internal reward and external reward of each agent.
[0111] The parameter updating unit is used to update the network parameters of each agent according to the overall reward of each agent to obtain the network update parameters.
[0112] It should be noted that the information interaction, execution process, etc. between the above-mentioned modules / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0113] Figure 3 FIG. 1 is a schematic diagram of a terminal device provided in another embodiment of the present application. Figure 3 As shown, the terminal device 3 provided in this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30, such as a program for cooperative control of a multi-agent system. When the processor 30 executes the computer program 32, the steps in the above-mentioned embodiments of the network parameter updating method for the multi-agent system are implemented, such as Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of the modules / units in the above-mentioned terminal device embodiments are realized, for example Figure 2 The functions of units 21 to 24 are shown.
[0114] Exemplarily, the computer program 32 may be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 30 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into a first acquisition unit and a first processing unit. For specific functions of each unit, please refer to Figure 2 The relevant descriptions in the corresponding embodiments are not repeated here.
[0115] The terminal device may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of the terminal device 3 and does not constitute a limitation on the terminal device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0116] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0117] The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used to store the computer program and other programs and data required by the terminal device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0118] The present application also provides a computer-readable storage medium. Figure 4 , Figure 4 is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application, such as Figure 4 As shown, a computer program 41 is stored in the computer-readable storage medium 4, and when the computer program 41 is executed by the processor, the network parameter updating method of the multi-agent system can be implemented.
[0119] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device implements the network parameter updating method of the multi-agent system when executing the computer program product.
[0120] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the terminal device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0121] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0122] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0123] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A network parameter updating method for a multi-agent system, characterized in that: include: Determine the overall intrinsic reward based on the novelty parameter of the multi-agent system; Determine each agent's local internal reward based on the overall internal reward and each agent's contribution; Obtaining an external reward for each agent; the external reward is environmental feedback corresponding to the agent; Determine the network update parameters of each agent according to the local internal reward and external reward of each agent, and send the network update parameters of each agent to each agent, wherein the network update parameters are used to control each agent to train its own network according to the network update parameters; The determining of the overall internal reward according to the novelty parameter of the multi-agent system comprises: Determine the novelty parameter of the multi-agent system according to the number of joint actions taken by the multi-agents in the joint state at the current moment; Determine the overall internal reward based on the novelty parameter of the multi-agent system; Alternatively, novelty parameters of multi-agent systems are determined based on prediction errors; Determine the overall internal reward based on the novelty parameter of the multi-agent system; Accordingly, the method of determining the local internal reward of each agent according to the overall internal reward and the contribution degree of each agent includes: Determine the contribution of each agent based on its advantage function; Determine the local internal reward of the agent based on the agent's contribution and the overall internal reward; Alternatively, determining the overall internal reward according to the novelty parameter of the multi-agent system comprises: Determine novelty parameters of the multi-agent system based on successor features; Determine the overall internal reward based on the novelty parameter of the multi-agent system; Accordingly, the method of determining the local internal reward of each agent according to the overall internal reward and the contribution degree of each agent includes: Determine the contribution of each agent based on the successor characteristics of the current agent; The local internal reward of the agent is determined based on the agent's contribution and the overall internal reward.
2. The method according to claim 1, characterized in that The network update parameters of each agent are determined based on the local internal reward and external reward of each agent, and the network update parameters of each agent are sent to each agent, including: Determine the overall reward for each agent based on its local intrinsic reward and extrinsic reward; The network parameters of each agent are updated according to the overall reward of each agent to obtain the network update parameters.
3. A network parameter updating device, characterized in that: include: A first determination unit, configured to determine an overall internal reward according to a novelty parameter of the multi-agent system; A second determination unit is used to determine a local internal reward of each agent according to the overall internal reward and the contribution degree of each agent; The acquisition unit is used to obtain external rewards for each agent; An updating unit, used to determine the network update parameters of each agent according to the local internal reward and external reward of each agent, and send the network update parameters of each agent to each agent, wherein the network update parameters are used to control each agent to train its own network according to the network update parameters; The first determination unit is specifically used to: determine the novelty parameter of the multi-agent system according to the number of times the multi-agents take joint actions in the joint state at the current moment; Determine the overall internal reward based on the novelty parameter of the multi-agent system; Alternatively, novelty parameters of multi-agent systems are determined based on prediction errors; Determine the overall internal reward based on the novelty parameter of the multi-agent system; Accordingly, the second determination unit is specifically used to: determine the contribution degree of each agent according to the advantage function of each agent; Determine the local internal reward of the agent based on the agent's contribution and the overall internal reward; Alternatively, the first determination unit is specifically configured to determine a novelty parameter of the multi-agent system based on the subsequent feature; Determine the overall internal reward based on the novelty parameter of the multi-agent system; Accordingly, the second determination unit is specifically used to: determine the contribution degree of each agent based on the successor characteristics of the current agent; and determine the local internal reward of the agent based on the contribution degree of the agent and the overall internal reward.
4. A terminal device, characterized in that: The terminal device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the method according to any one of claims 1 to 2 when executing the computer program.
5. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
Citation Information
Cited By
AI agent processing method based on hierarchical memory architecture and near real-time experience update
CN122489703A
