Multi-agent communication method, device, storage medium and electronic device
By introducing a differential privacy protection mechanism into a multi-agent system and using random noise to encrypt communication information, the security and privacy issues in network communication are solved, and high-quality policy collaboration and cooperative communication are achieved.
Patent Information
- Application Number
- CN202311586285.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-11-24
AI Technical Summary
Existing multi-agent reinforcement learning systems face the problems of insecure communication channels and information leakage under network communication, resulting in low communication security between agents.
A multi-agent communication method based on differential privacy is adopted. By adding random noise information to the communication channel, the random noise is obtained by sampling from the Laplace function distribution, and is added to the state-action value function estimation information to generate privacy protection. Communication information ensures that the communication information cannot be restored by a third party. At the same time, the neural network is updated when the received information is interfered to ensure the convergence and privacy protection of communication.
It improves the communication security and privacy of multi-agent systems, avoids information leakage and malicious eavesdropping, and achieves high-quality strategic collaboration and cooperative communication.
Smart Images

Figure CN117579358B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a multi-agent communication method, device, storage medium and electronic device. Background Art
[0002] In recent years, with the rapid development of communication technology and artificial intelligence, many real-life systems can be modeled as multi-agent systems (MAS), such as sensor networks, connected autonomous vehicles, smart grids, unmanned warehousing systems, etc. In order to improve the autonomous decision-making and coordination capabilities of agents, multi-agent reinforcement learning (MARL) provides an effective framework and training paradigm for these scenarios.
[0003] In order to solve the non-stationary problem caused by multi-agent communication, decision-making and learning, the MARL-based framework mainly adopts the centralized training and decentralized execution (CTDE) algorithm. The CTDE algorithm usually assumes that there is a strong center in the training process, collects all local observations and individual actions of each agent, learns the joint optimal strategy of all agents based on the reward function corresponding to the environment state and joint action, and assigns it to each agent. In the execution phase, each agent makes decisions based only on its own local observations. Benefiting from the centralized information architecture of the CTDE algorithm, a series of representative methods have been developed, mainly including credit allocation, communication learning, and policy decomposition. Agents can make full use of the interactive information in the centralized training phase to better understand the environment and the behavior of other agents, which greatly alleviates the problem of training non-stationarity and helps agents take actions that are more beneficial to the team. Representative algorithms include: Value Decomposition Networks (VDN), QMIX, Multi Agent Deep Deterministic Policy Gradient (MADDPG), Differentiable Inter Agent Learning (DIAL), BiCNet, etc.
[0004] However, the CTDE algorithm cannot handle the exponentially growing state-action space, i.e., the curse of dimensionality in the central controller. In addition, during the training process, the massive information exchange between the central controller and the agent also puts tremendous pressure on communication, and the centralized architecture approach also increases the systemic risk of single-point failure. Therefore, another way to relax the limitations of the CTDE algorithm is to develop MARL for the decentralized training and decentralized execution (DTDE) algorithm by leveraging the distributed structure of the networked system. During the training process of the DTDE algorithm, the available information of the agent is limited to the local neighboring agents within the communication range, rather than all the agents in the CTDE algorithm, thereby avoiding potential information leakage and overfitting of other agent information. During the execution process, the use of neighbor information encourages the agents to pay more attention to the coordination of strategies between each other, rather than making decisions based solely on their own local observations.
[0005] In the DTDE algorithm, the use of communication networks to diffuse local information can improve the deployability, flexibility, system robustness and resilience of MARL, but it also faces a unique problem, namely the reliability of neighbor information under network communication. In related technologies, most MARLs in the DTDE algorithm framework assume that the communication channels and members in the team are sufficiently secure and trustworthy, while ignoring the catastrophic damage to the security of multi-agent reinforcement learning systems caused by network attacks and malicious behaviors, making the communication security between agents in multi-agent reinforcement learning methods not high. Summary of the invention
[0006] In view of this, the present invention provides a multi-agent communication method, device, storage medium and electronic device.
[0007] Specifically, the present invention is achieved through the following technical solutions:
[0008] According to a first aspect of the present invention, a multi-agent communication method is provided, the multi-agent communication method comprising:
[0009] Based on the communication relationship between agents, a distributed networked multi-agent learning system is constructed, wherein the agents are execution unit nodes of the distributed networked multi-agent learning system, and the communication relationship is an edge of the distributed networked multi-agent learning system;
[0010] Based on the current global environment state observed by the target agent in the current decision cycle and the estimated information of the state-action value function represented by the neural network, a local decision action is generated by using the Q-Learning algorithm, and the local decision action is executed under the current global environment state to obtain the reward value of the estimated information of the state-action value function and the new global environment state from the environment;
[0011] According to the preset differential privacy parameters, sampling is performed based on the Laplace function distribution to obtain random noise information;
[0012] Generate privacy-preserving communication information based on the random noise information and the state-action value function estimation information, and send the information to an agent having an edge with the target agent;
[0013] Receive privacy-preserving communication reception information sent by an agent having an edge with the target agent, and update the neural network according to the decision action taken by the target agent, the state-action value function estimation information, the privacy-preserving communication reception information, the reward value, the new global environment state and the current global environment state.
[0014] The multi-agent communication method in the present technical solution constructs a distributed networked multi-agent learning system based on the communication relationship between agents, with agents as nodes and communication relationships as edges; based on the current global environment state and neural network observed by the target agent, a local decision action is obtained, the local decision action is executed, and the reward value of the state-action value function estimation information and the new global environment state are obtained from the environment; according to the pre-set differential privacy parameters, sampling is performed based on the Laplace function distribution to obtain random noise information; based on the random noise information and the state-action value function estimation information, privacy-preserving communication information is generated and sent to the agent with an edge with the target agent; based on the state-action value function estimation information, the privacy-preserving communication reception information, the reward value, the new global environment state and the current global environment state, the neural network is updated. In this way, the random noise obtained by sampling is used to add the state-action value function estimation information, thereby protecting the state-action value function estimation information used for communication from being restored, thereby improving the security of communication; at the same time, through neural network updates, even when the received information is interfered with, the convergence and privacy protection of the noisy state-action value function estimation information can still be guaranteed, thereby achieving high-quality strategy coordination and cooperative communication among multiple agents.
[0015] According to a second aspect of the present invention, there is provided a multi-agent communication device, the multi-agent communication device comprising:
[0016] A system construction module, for constructing a distributed networked multi-agent learning system based on the communication relationship between agents, wherein the agents are execution unit nodes of the distributed networked multi-agent learning system, and the communication relationship is an edge of the distributed networked multi-agent learning system;
[0017] A state-action module is used to generate a local decision action using a Q-Learning algorithm based on the current global environment state observed by the target agent in the current decision cycle and the estimated information of the state-action value function represented by the neural network, and execute the local decision action under the current global environment state to obtain the reward value of the estimated information of the state-action value function and the new global environment state from the environment;
[0018] The noise acquisition module is used to obtain random noise information by sampling based on the Laplace function distribution according to the preset differential privacy parameters;
[0019] A privacy protection module, configured to generate privacy protection communication information based on the random noise information and the state-action value function estimation information, and send the information to an agent having an edge with the target agent;
[0020] A strategy update module is used to receive privacy-preserving communication reception information sent by an agent having an edge with the target agent, and update the neural network according to the decision action taken by the target agent, the state-action value function estimation information, the privacy-preserving communication reception information, the reward value, the new global environment state and the current global environment state.
[0021] According to a third aspect of the present invention, there is provided a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the multi-agent communication method in any possible implementation of the first aspect.
[0022] According to a fourth aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the multi-agent communication method in any possible implementation of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0025] Figure 1 A schematic diagram of a multi-agent communication method provided by an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of a distributed networked multi-agent learning system in a multi-agent communication method provided in an embodiment of the present invention;
[0027] Figure 3 A performance diagram of a multi-agent communication method in a single lane deceleration following scenario provided by an embodiment of the present invention;
[0028] Figure 4 A performance diagram of a multi-agent communication method in a single lane acceleration following scenario provided by an embodiment of the present invention;
[0029] Figure 5 A schematic diagram of a multi-agent communication processing device provided by an embodiment of the present invention;
[0030] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] In related technologies, most MARLs in the DTDE algorithm framework assume that the communication channels and members in the team are sufficiently secure and trustworthy, but ignore the catastrophic damage that network attacks and malicious behaviors can cause to the security of multi-agent reinforcement learning systems, making the communication security between agents in multi-agent reinforcement learning methods not high.
[0033] In this embodiment, a multi-agent communication method based on differential privacy (DP) protection is proposed, which can be applied to a networked multi-agent reinforcement learning method or a networked multi-agent reinforcement learning system. Among them, differential privacy comes from the fields of network security and machine learning. By adding irrelevant random noise information to the communication information in the communication channel, it is ensured that the communication information is maliciously eavesdropped by a third party, and the third party still cannot restore the eavesdropped information to the real communication information without affecting the operation of the multi-agent reinforcement learning system, thereby improving the security and user privacy of the networked multi-agent reinforcement learning system. Therefore, this embodiment uses a differential privacy protection mechanism, designs additive noise that decays over time, samples random noise from a time-varying Laplace distribution, and adds the sampled random noise to the source communication information, thereby protecting the source communication information from being restored. At the same time, in this embodiment, by designing a corresponding agent strategy update mechanism, the convergence and privacy protection of the noisy communication information can still be guaranteed when the received information is interfered, so as to achieve high-quality strategy coordination and cooperation between multiple agents.
[0034] See also Figure 1 The embodiment of the present invention provides a distributed reinforcement learning communication method for multi-agents in a networked system, which may include the following steps:
[0035] S101, constructing a distributed networked multi-agent learning system based on the communication relationship between agents, wherein the agents are execution unit nodes of the distributed networked multi-agent learning system, and the communication relationship is an edge of the distributed networked multi-agent learning system;
[0036] In this embodiment, for a certain application scenario, state-action value functions are constructed for each of the N agents in the application scenario, and the communication topology between the agents is set to a randomly switched and jointly connected undirected graph G = {V, E, A}, where V represents the node, i.e., the agent, E represents the edge of communication between nodes, and A represents the adjacency matrix.
[0037] In this embodiment, the adjacency matrix elements between communicable nodes are 1, and the adjacency matrix elements between non-communicable nodes are 0. For example, for a certain agent (node), the adjacency matrix elements in the corresponding adjacency matrix of agents that have edges with the agent are 1, and the adjacency matrix elements in the corresponding adjacency matrix of agents that do not have edges with the agent are 0. In this way, the curse of dimensionality and communication pressure of the centralized training distributed execution algorithm can be alleviated.
[0038] In this embodiment, as an optional embodiment, based on the networked multi-agent Markov decision process, a distributed networked multi-agent learning system with decentralized training and decentralized execution is constructed.
[0039] S102, based on the current global environment state observed by the target agent in the current decision cycle and the state-action value function estimation information represented by the neural network, a local decision action is generated using the Q-Learning algorithm, and the local decision action is executed under the current global environment state to obtain the reward value of the state-action value function estimation information and the new global environment state from the environment;
[0040] In this embodiment, the local decision action is executed to obtain the reward function of the environment feedback and the updated global environment state, maintain the local state-action value function estimate, and use the state-action value function information Q(s, a) of the "state-action" pair as the real information, that is, to obtain the reward function of the environment feedback and the updated global environment state, and maintain the local state-action value function estimate information.
[0041] In this embodiment, during the initial communication, each agent can observe the global environment state S and generate independent local decision actions a according to the global environment state and its own neural network. i , perform independent local decision actions a in the environment i , maintain local state-action value function estimation information so as to send it to other agents for mutual communication and collaboration. Taking the scenario of networked collaborative autonomous driving vehicles as an example, each agent is an autonomous driving vehicle with vehicle-to-vehicle (V2V) communication function. Multiple agents travel together on the road and can communicate with other agents in real time. The joint driving behavior of all vehicles will affect the global environmental state of the area. The global environmental state includes but is not limited to: the position of the car in each lane, the distance between the front and rear vehicles, the speed and acceleration of each vehicle, the congestion of each lane, the status of the traffic lights in each lane, the driving route, etc. Local decision actions include but are not limited to: vehicle distance control coefficient, vehicle speed gain coefficient (including acceleration, deceleration, and uniform speed), etc. Regarding independent local decision actions, please refer to the relevant technical literature and set them according to the actual scenario needs, which will be omitted here.
[0042] S103. According to the preset differential privacy parameters, sampling is performed based on the Laplace function distribution to obtain random noise information;
[0043] In this embodiment, sampling is performed based on the Laplace function distribution and the privacy protection mechanism to obtain random noise information. A differential privacy protection mechanism is set to protect the privacy of communication information. Each intelligent agent samples from the time-varying Laplace function distribution to obtain random noise information.
[0044] In this embodiment, in order to protect the communication information, an additive Laplace noise mechanism that decays over time is adopted. By obtaining additive Laplace noise information (random noise information) that decays over time, the privacy of the real communication information can be protected. In each communication, the following formula is used to sample the random noise information η from the following Laplace distribution: i (t):
[0045] η i (t)~Lap(0,ι i (t))
[0046]
[0047] Among them, ι i (t) is the variance parameter of the noise distribution, which is used to determine the distribution of Laplace noise; s i and q i is the differential privacy parameter, which determines the initial distribution and attenuation rate of noise respectively; s gain is the gain coefficient, which is used to adjust the scale of the noise. Each parameter is a configurable positive constant and needs to meet the following conditions: i ,q i 、s gain ∈(0,1);s i、 q i >0,s gain ≥0.
[0048] S104, generating privacy-preserving communication information based on the random noise information and the state-action value function estimation information, and sending the information to an agent having an edge with the target agent;
[0049] In this embodiment, random noise information is added to real communication information to construct private communication information, namely, privacy-preserving communication information, so as to exchange private communication information with neighboring intelligent agents within the communication range.
[0050] In this embodiment, as an optional embodiment, the privacy protection communication information is generated using the following formula:
[0051]
[0052] In the formula, Estimate information for the state-action value function, Protect communications for privacy.
[0053] In this embodiment, the target intelligent agent establishes a two-way communication channel with the neighboring intelligent agents within the communication range at the current moment in the form of broadcasting to exchange information after each other's privacy protection. That is, the target intelligent agent sets the communication range, and all the intelligent agents within the communication range have a communication relationship with the target intelligent agent. That is, each intelligent agent is connected to the target intelligent agent through an edge, and the communication information is limited to the local neighboring intelligent agents within the communication range, thereby avoiding the interference of outdated information and the potential overfitting of other intelligent agent information to a certain extent.
[0054] Figure 2 A schematic diagram of a distributed networked multi-agent learning system in a multi-agent communication method provided in an embodiment of the present invention. In the distributed networked multi-agent learning system, 8 nodes (agents) are included, namely A1-A8, and the nodes are connected by edges. For the target agent A1, the agents having edge connections with the target agent A1 include: A2, A3, A4, and the area surrounded by agents A2, A3, A4 (the area within the dotted line) is the communication range of the target agent A1.
[0055] S105. Receive privacy-preserving communication reception information sent by an agent having an edge with the target agent, and update the neural network according to the current global environment state, the decision action taken by the target agent, the state-action value function estimation information, the privacy-preserving communication reception information, the reward value of the environment feedback, and the new global environment state.
[0056] In this embodiment, the reward value of the environmental feedback is the reward that can be obtained by executing a local decision-making action in the current global environmental state. The privacy-preserving communication reception information is the privacy-preserving communication information sent by the agent that has an edge with the target agent. As an optional embodiment, after each acquisition of the state-action value function estimation information, the parameters of the agent's neural network algorithm are updated to perform a strategy update so that the updated neural network can be used to decide the local decision action in the next decision cycle. In this way, the state-action value function estimate is iteratively updated based on the current state-action value function estimate, the received privacy-preserving communication information, the reward value of the environmental feedback, and the new global environmental state, and finally a stable distributed collaborative decision-making strategy is trained, with a strictly theoretically guaranteed communication security performance improvement.
[0057] In this embodiment, based on the QD-Learning algorithm, random noise processing is performed on the communication information, i.e., the state-action value function estimation information, and the original communication information is replaced with privacy-preserving communication information, thereby improving the security of the networked multi-agent reinforcement system.
[0058] In this embodiment, the neural network is updated according to the communication information, the privacy protection communication reception information, the reward value, the new global environment state, and the current global environment state, so as to achieve the asymptotic convergence of the agent's neural network update and the state-action value function estimation information by designing an agent update strategy adapted to the privacy protection mechanism while obtaining local information and privacy protection communication information disturbed by noise, and effectively ensure the algorithm (p, r)-accuracy and the ∈-differential privacy of the data. As an optional embodiment, the neural network is updated using the following formula:
[0059]
[0060] The parameters meet the following conditions:
[0061]
[0062]
[0063]
[0064] where a, b, τ1∈(0.5,1], ∈1>0 is a positive number, T s,a (k) represents the time when the k+1th sampling of a state-action pair (s, a) occurs in the entire random event sequence, r i is the reward value obtained by executing the local decision action according to the reward function, S′ is the new global environment state, S is the current global environment state, Receive information for privacy-preserving communication sent by the jth agent that has an edge with the target agent, The state-action value function estimation information corresponding to the next decision cycle is used by the target agent to send to each agent that has an edge with the target agent in the next decision cycle. The state-action value function estimate information currently sent by the target agent, s t is the current global environment state, a t is a local decision action, A is a set of local decision actions obtained based on the new global environment state, a ′ is the local decision action obtained based on the new global environment state, is the estimated information of the state-action value function obtained based on the new global environment state and the local decision action obtained based on the new global environment state, γ is the forgetting factor, which is a constant coefficient.
[0065] In this embodiment, the neural network is pre-trained. During the training, the sum of consistency loss and temporal difference loss is used as the final optimization goal, and the decentralized training decentralized execution (DTDE) framework is used for end-to-end training to optimize the sum of consistency loss and temporal difference loss. As an optional embodiment, the target agent exchanges private communication information with neighboring agents within the communication range, thereby updating its own neural network (strategy neural network).
[0066] In this embodiment, in the next decision cycle, the target agent executes the step of obtaining local decision actions based on the new global environment state and the updated neural network, and repeats this cycle until all decision cycles are executed.
[0067] The method of this embodiment can ensure that the state-action value function estimation information (communication information) of each intelligent agent satisfies the mean square consistency and expected consistency when the real communication information is disturbed by noise, which is described in detail below.
[0068] In this embodiment, for each state-action value function estimation information When the communication topology satisfies connectivity, mean square asymptotic consistency can be achieved:
[0069]
[0070] And, expect asymptotic consistency:
[0071]
[0072] in, It is the sum of the state-action value functions of all agents that have edges with the target agent. The method of this embodiment, since the state-action value function of the agent satisfies the mean square consistency and expected consistency, can ensure that all agents in the system learn approximately consistent state-action value functions, thereby ensuring the coordination ability under the distributed training distributed execution framework.
[0073] At the same time, the method of this embodiment can achieve the privacy protection performance of accuracy and recall rate (p, r)-accuracy, as well as ∈-differential privacy.
[0074] In this embodiment, for each state-action value function estimation information, the average value of the state-action value function of all agents that have edge connections with the target agent is Estimating information relative to the optimal state-action value function The error satisfies (p, r)-accuracy:
[0075]
[0076]
[0077] Among them, p is the precision, r is the recall, and the variance of the random variable Δ(t) satisfies the boundedness:
[0078]
[0079] Among them, M t =(1-α s,a (t)+γα s,a (t)) 2 ∈(0,1), Depends on the parameter setting of differential privacy noise and the degree matrix of the network topology
[0080] In this embodiment, the degree of protection of real communication information follows the definition of differential privacy mechanism and can be measured by ∈-differential privacy. Specifically, consider two data sets D and D′ that satisfy δ-adjacent. The pair of data sets has only one data point different and the error value is within δ. After the pair of data sets is input into the preset random algorithm M:D→O, the output of the random algorithm satisfies the following probability relationship:
[0081] P(M(D)∈O)≤exp(∈)P(M(D′)∈O)
[0082] In this embodiment, the privacy of the algorithm satisfies: Δη i (t) is the Lap(0, ι) distribution from the same Laplace function i (t)) is a random noise sampled twice independently and difference.
[0083] The method of this embodiment effectively protects the privacy of communication information of the networked multi-agent reinforcement learning system, thereby improving the privacy and security of the multi-agent reinforcement learning system.
[0084] In this embodiment, taking the traffic simulation environment (SUMO, Simulation of Urban Mobility) as an example, a networked multi-vehicle autonomous driving scenario (Cooperative Adaptive Platoon Control, CAPC) based on a distributed networked multi-agent learning system is constructed. As an optional embodiment, the networked multi-vehicle autonomous driving scenario includes an acceleration following scenario and a deceleration following scenario of a single-lane vehicle queue. Each vehicle corresponds to an agent. During the training and execution phases, each agent can only receive communication information from a limited number of neighboring agents within the communication range. For example, for one of the agents, it can only communicate with the agents adjacent to the agent (the front vehicle and the rear vehicle). The area surrounded by the agent and the adjacent agents is the communication range of the agent. Next, initialize the differential privacy parameter s of each agent. i and q i In this embodiment, initialize s i =0.01 and q i =0.99, sampling according to the differential privacy protection mechanism, and obtaining the additive noise η i (t), the additive noise is added to the real communication information (state-action value function estimation information) to obtain the privacy-preserving communication information, and the privacy-preserving communication information is transmitted to the neighbors within the communication range.
[0085] The agent samples actions (performs local decision actions) from the current policy network (neural network) and interacts with the environment to obtain the new global environment state and reward value of the environment, receives privacy-preserving communication information sent by neighboring agents, and updates the current policy network according to the agent strategy update method. Repeat the initialization step and the environment interaction step until the policy network converges and the training process ends.
[0086] To illustrate the effectiveness of this embodiment, this embodiment constructs two common collaborative autonomous driving scenarios: a single lane acceleration and following vehicle scenario (CAPC Catch-up) and a single lane deceleration and following vehicle scenario (CAPC slow-down). The scenarios in this embodiment are constructed using the SUMO traffic simulator. For the setting of the agent (vehicle) parameters, the vehicle model uses the optimal velocity model (OVM) built into the simulation software. The vehicle state set includes the distance h from the front vehicle. i , current speed v i , current acceleration a i , the longitudinal control action set is a combination of the distance gain and speed gain of the preceding vehicle Here we consider four optimal levels {(0,0)(0,0.5)(0.5,0)(0.5,0.5)}, the control period is 0.1s, the total control time is 60s, and the reward (cost) function is set to The detailed scenario parameter settings of CAPC are shown in Table 0. Specifically, in the CAPC acceleration following scenario, the driving speed and the distance between the leading vehicle and all vehicles are randomly initialized, and the speed of all vehicles except the leading vehicle is less than the optimal driving speed. And the distance between the front vehicle and the front vehicle is greater than the optimal distance to maintain The ideal goal is that all following vehicles can learn the coordinated strategy of speeding up and shortening the distance between vehicles. In the CAPC deceleration following scenario, the driving speed and the distance between the leading vehicle and all vehicles are randomly initialized, and the speed of all vehicles except the leading vehicle is greater than the optimal driving speed. And the distance between the front vehicle and the front vehicle is slightly less than the optimal distance to maintain The ideal goal is that all following vehicles can learn to reduce their speed and maintain a collaborative strategy to avoid collisions. Due to the possibility of collision, the decision-making strategy in this scenario is more complicated.
[0087] Table 0: Detailed parameter settings of CPAC scenario in SUMO simulation software
[0088] Experimental scenario parameter name Parameter Value Safe distance from the vehicle ahead <![CDATA[h1≥1m]]> Safe driving speed <![CDATA[v i ≤30m / s]]> Safe acceleration <![CDATA[|a i |≤2.5m / s 2 ]]> Stopping distance in OVM <h2 style=";text-align:left;direction:ltr"><![CDATA[h <h2 style=";text-align:left;direction:ltr"> stoo <h2 style=";text-align:left;direction:ltr"> <5m]]><h2 style=";text-align:left;direction:ltr"> Distance to the vehicle ahead at full speed in OVM <h2 style=";text-align:left;direction:ltr"><![CDATA[h <h2 style=";text-align:left;direction:ltr"> full <h2 style=";text-align:left;direction:ltr"> <35m]]><h2 style=";text-align:left;direction:ltr"> Collision penalty (the distance to the front vehicle is less than 1m) 1000 Additional penalty for collision <![CDATA[5(2h stop -h i,t ) 2 ]]>
[0089] Three different degrees of differential privacy gain coefficients s are set gain To compare the performance, each group of experiments counted the cumulative reward value (Rewards) obtained after 1,000,000 steps of training as the performance indicator. The results are shown in Table 1.
[0090] Table 1: Reward values obtained by the multi-agent learning algorithm with different levels of noise protection in the CAPC scenario
[0091]
[0092] Figure 3 A performance diagram of a multi-agent communication method in a single lane deceleration following scenario provided by an embodiment of the present invention, Figure 4 A performance diagram of a multi-agent communication method in a single lane acceleration following scenario provided by an embodiment of the present invention, Figure 3 and Figure 4 In, gain They are equal to 0, 0.1, and 0.01 respectively, and the total number of steps is 1,000,000. Through the method of this embodiment, the performance and security of the algorithm in multi-agent cooperation tasks can be significantly improved.
[0093] The multi-agent communication method based on networked multi-agent reinforcement learning with differential privacy protection proposed in this embodiment builds a decentralized distributed networked multi-agent learning system so that each agent can only exchange local information with neighboring agents within the communication range during training and execution, reducing the high training resource requirements and systemic risks of single-point failures of centralized systems. At the same time, by adding Laplace additive noise to the communication information, the real communication information is protected from being stolen and restored by third-party malicious nodes, and a multi-agent collaboration strategy with better security, privacy, and robustness is obtained. It can ensure that the communication information in the communication channel cannot be restored to the real information after being eavesdropped by third-party malicious nodes under the DTDE learning framework, thereby effectively improving the learning efficiency, reliability, and security of multi-agent cooperative reinforcement communication. It has the following obvious advantages:
[0094] 1) This embodiment constructs a DTDE algorithm learning framework, which has lower system risk, better scalability and flexibility, and higher learning efficiency and collaboration ability between intelligent agents compared to the mainstream CTDE algorithm learning framework.
[0095] 2) The method of this embodiment can significantly improve the privacy and security of communication information of the multi-agent cooperation algorithm, avoid the risk of communication information being eavesdropped by a third-party malicious node and restoring the user's real information, and surpass the current mainstream multi-agent cooperation algorithm without privacy protection function in terms of data security.
[0096] Based on the same inventive concept, Figure 5 As shown, the embodiment of the present invention also provides a multi-agent communication device, the device comprising:
[0097] A system construction module 501 is used to construct a distributed networked multi-agent learning system based on the communication relationship between agents, wherein the agents are execution unit nodes of the distributed networked multi-agent learning system, and the communication relationship is an edge of the distributed networked multi-agent learning system;
[0098] In this embodiment, as an optional embodiment, based on the networked multi-agent Markov decision process, a distributed networked multi-agent learning system with decentralized training and decentralized execution is constructed.
[0099] The state-action module 502 is used to generate a local decision action using the Q-Learning algorithm based on the current global environment state observed by the target agent in the current decision cycle and the state-action value function estimation information represented by the neural network, and execute the local decision action under the current global environment state to obtain the reward value of the state-action value function estimation information and the new global environment state from the environment;
[0100] In this embodiment, each agent makes independent local decision actions based on the current global environment state, receives its own local reward, and uses the state-action value function estimation information of "state-action" as the real communication information.
[0101] In this embodiment, as an optional embodiment, the state action module 502 is further used to:
[0102] In the next decision cycle, the target agent executes the step of acquiring the local decision action based on the new global environment state and the updated neural network.
[0103] The noise acquisition module 503 is used to obtain random noise information by sampling based on the Laplace function distribution according to the preset differential privacy parameters;
[0104] In this embodiment, as an optional embodiment, the noise acquisition module 503 includes:
[0105] A calculation unit, configured to calculate a product of a sampling coefficient, a first differential privacy parameter value, and a second differential privacy parameter value;
[0106] A sampling unit is used to perform sampling with zero as the position parameter of the Laplace function distribution and with the product as the scale parameter of the Laplace function distribution to obtain the random noise information.
[0107] In this embodiment, as an optional embodiment, the random noise information is obtained using the following formula:
[0108] η i (t)~Lap(0,ι i (t))
[0109]
[0110] A privacy protection module 504 is used to generate privacy protection communication information based on the random noise information and the state-action value function estimation information, and send the privacy protection communication information to the agent having an edge with the target agent;
[0111] In this embodiment, random noise information is added to real communication information to construct private communication information, so as to exchange private communication information with neighboring intelligent agents within the communication range.
[0112] In this embodiment, as an optional embodiment, the privacy protection module 504 includes:
[0113] a privacy information generating unit, configured to add the random noise information to the state-action value function estimation information to generate the privacy protection communication information;
[0114] The privacy information sending unit is used to send the privacy protection communication information to the agent that has an edge with the target agent.
[0115] In this embodiment, as an optional embodiment, the privacy protection communication information is generated using the following formula:
[0116]
[0117] The strategy update module 505 is used to receive the privacy-preserving communication reception information sent by the agent having an edge with the target agent, and update the neural network according to the decision action taken by the target agent, the state-action value function estimation information, the privacy-preserving communication reception information, the reward value, the new global environment state and the current global environment state.
[0118] In this embodiment, as an optional embodiment, the following formula is used to update the neural network:
[0119]
[0120] The parameters meet the following conditions:
[0121]
[0122]
[0123] Based on the same inventive concept, an embodiment of the present invention further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the multi-agent communication method in any possible implementation manner described above are implemented.
[0124] Alternatively, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0125] Based on the same inventive concept, see Figure 6 The embodiment of the present invention further provides an electronic device, including a memory 101 (such as a non-volatile memory), a processor 102, and a computer program stored in the memory 101 and executable on the processor 102. When the processor 102 executes the program, the steps of the multi-agent communication method in any possible implementation manner described above can be equivalent to the multi-agent communication device described above. Of course, the processor can also be used to process other data or operations. The electronic device can be a PC, a server, a terminal, and other devices.
[0126] like Figure 6As shown, the electronic device may also generally include: a memory 103, a network interface 104, and an internal bus 105. In addition to these components, other hardware may also be included, which will not be described in detail.
[0127] It should be pointed out that the above-mentioned multi-agent communication device can be implemented through software. As a device in a logical sense, it is formed by the processor 102 of the electronic device in which it is located reading the computer program instructions stored in the non-volatile memory into the memory 103 for execution.
[0128] The embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules in computer program instructions encoded on a tangible non-transitory program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
[0129] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform the corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.
[0130] Computers suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0131] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0132] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although the features may work as above in certain combinations and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.
[0133] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.
[0134] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.
[0135] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0136] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.
Claims
1. A multi-agent communication method, characterized in that: include: Based on the communication relationship between agents, a distributed networked multi-agent learning system is constructed, wherein the agents are execution unit nodes of the distributed networked multi-agent learning system, and the communication relationship is an edge of the distributed networked multi-agent learning system; Based on the current global environment state observed by the target agent in the current decision cycle and the estimated information of the state-action value function represented by the neural network, a local decision action is generated by using the Q-Learning algorithm, and the local decision action is executed under the current global environment state to obtain the reward value of the estimated information of the state-action value function and the new global environment state from the environment; According to the preset differential privacy parameters, sampling is performed based on the Laplace function distribution to obtain random noise information; Generate privacy-preserving communication information based on the random noise information and the state-action value function estimation information, and send the information to an agent having an edge with the target agent; Receive privacy-preserving communication information sent by an agent that has an edge with the target agent, and update the neural network according to the current global environment state, the decision action taken by the target agent, the state-action value function estimation information, the privacy-preserving communication information, the reward value, and the new global environment state.
2. The multi-agent communication method according to claim 1, characterized in that: The method of sampling based on the Laplace function distribution according to the preset differential privacy parameters to obtain random noise information includes: Calculate the product of the sampling coefficient, the first differential privacy parameter value, and the second differential privacy parameter value; Sampling is performed using zero as the location parameter of the Laplace function distribution and the product as the scale parameter of the Laplace function distribution to obtain the random noise information.
3. The multi-agent communication method according to claim 1, characterized in that: The generating of privacy-preserving communication information based on the random noise information and the state-action value function estimation information includes: The random noise information is added to the state-action value function estimation information to generate the privacy-preserving communication information.
4. The multi-agent communication method according to any one of claims 1 to 3, characterized in that: The method further comprises: In the next decision cycle, the target agent executes the step of generating local decision actions based on the new global environment state and the updated neural network.
5. A multi-agent communication device, characterized in that: The multi-agent communication device comprises: A system construction module, for constructing a distributed networked multi-agent learning system based on the communication relationship between agents, wherein the agents are execution unit nodes of the distributed networked multi-agent learning system, and the communication relationship is an edge of the distributed networked multi-agent learning system; A state-action module is used to generate a local decision action using a Q-Learning algorithm based on the current global environment state observed by the target agent in the current decision cycle and the estimated information of the state-action value function represented by the neural network, and execute the local decision action under the current global environment state to obtain the reward value of the estimated information of the state-action value function and the new global environment state from the environment; The noise acquisition module is used to obtain random noise information by sampling based on the Laplace function distribution according to the preset differential privacy parameters; A privacy protection module, configured to generate privacy protection communication information based on the random noise information and the state-action value function estimation information, and send the information to an agent having an edge with the target agent; A strategy update module is used to receive privacy-preserving communication information sent by an agent having an edge with the target agent, and update the neural network according to the decision action taken by the target agent, the state-action value function estimation information, the privacy-preserving communication information, the reward value, the new global environment state and the current global environment state.
6. The multi-agent communication device according to claim 5, characterized in that: The noise acquisition module comprises: A calculation unit, configured to calculate a product of a sampling coefficient, a first differential privacy parameter value, and a second differential privacy parameter value; A sampling unit is used to perform sampling with zero as the position parameter of the Laplace function distribution and with the product as the scale parameter of the Laplace function distribution to obtain the random noise information.
7. The multi-agent communication device according to claim 5, characterized in that: The privacy protection module includes: a privacy information generating unit, configured to add the random noise information to the state-action value function estimation information to generate the privacy protection communication information; The privacy information sending unit is used to send the privacy protection communication information to the agent that has an edge with the target agent.
8. The multi-agent communication device according to any one of claims 5 to 7, characterized in that: The state action module is also used for: In the next decision cycle, the target agent executes the step of generating local decision actions based on the new global environment state and the updated neural network.
9. A storage medium, characterized in that: The storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the multi-agent communication method as described in any one of claims 1 to 4 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the multi-agent communication method described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Federal reinforcement learning method for order receiving aid decision
CN112801731A
Multi-agent cooperation model based on deep reinforcement learning
CN113592101A
Adversarial task-oriented man-machine symbiosis reinforcement learning method and device, computing equipment and storage medium
CN113688977A
Multi-agent reinforcement learning method and system based on value decomposition
CN114662639A
Intelligent agent training method, computer equipment and storage medium
CN115759284A
