Mean field multi-agent reinforcement learning method based on conditional generative adversarial network

By using the conditional generation adversarial network adversarial training mechanism in multi-agent reinforcement learning, the problem of difficulty in accurately capturing the environmental dynamics model is solved, the accuracy of the model and the efficiency of policy learning are improved, and the task performance of the agent is improved.

CN118798309AInactive Publication Date: 2024-10-18VIDIYI (SUZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410889574.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In multi-agent reinforcement learning, as the number of agents increases, the dimensions of state space and action space increase sharply, resulting in increased analysis and computational complexity. It is difficult for existing technology to accurately capture the environmental dynamics model, resulting in low policy learning efficiency and Poor adaptability.

Method used

The mean field multi-agent reinforcement learning method based on conditional generative adversarial network (CGAN) is used to model the multi-agent system. The accuracy of the environment model is improved through the adversarial training mechanism of CGAN, and the stable environment model is used for strategy optimization. , generate a large amount of sample data for subsequent learning.

Benefits of technology

It effectively improves the accuracy of the environmental dynamics model, and the generated sample data is used for policy learning, which improves the expected cumulative reward value of the agent in the task, reduces system energy consumption, and improves the overall performance of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798309A_ABST
    Figure CN118798309A_ABST
Patent Text Reader

Abstract

The invention provides an average field multi-agent reinforcement learning method based on a conditional generative adversarial network, which relates to the technical field of artificial intelligence, and comprises the following steps: 1, modeling an unknown dynamic environment, executing a task by an agent by adopting a round system, and in each training round t, calculating a training round t; data of interaction between the intelligent agent and the real environment is collected into a data set Dt = {((si, h, ai, h, mui, h), si, h + 1)}, h = 0, 1,..., H-1, i = 1, 2,..., t; 2, modeling the state transfer function P (st + 1st, at, mu t) by using the CGAN, and training the environment model by using data in the data set Dt until the environment model converges; 3, enabling representative agents in the MFC to directly interact with the stabilized environment model P (st + 1st, at, mu t) to obtain a large number of sample sequences; and 4, optimizing strategy parameters by using data obtained by interaction in the step 3 until an optimal strategy pi * is learned. A simulation experiment verifies that the accuracy of the environmental dynamics model is effectively improved, and meanwhile, the generated sample data can be well used for strategy learning, so that an intelligent agent obtains a higher expected accumulated reward value in a task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a mean field multi-agent reinforcement learning method based on a conditional generative adversarial network. Background Art

[0002] In recent years, Multi-Agent Reinforcement Learning (MARL), as an important branch in the field of artificial intelligence, has attracted more and more attention because it can help clusters of multiple agents make decisions in complex environments to complete tasks. At present, MARL has achieved remarkable results in many fields, such as intelligent transportation systems, drone formation control, and multi-agent cooperative games. Despite this, MARL still has some challenges and limitations. This is because as the number of agents increases, the dimensions of the state space and action space increase dramatically, which in turn leads to increased complexity in analysis and calculation. At present, a better solution is to simplify it with the help of mean fields. When cooperative multi-agent reinforcement learning reaches the Pareto optimal state, it can be approximated by a learnable mean field control (MFC). In MFC, only one representative agent needs to be paid attention to, and the system dynamics are described by the state distribution of all agents. Although MFC can effectively solve the problem of dimensionality explosion in multi-agent systems, there are still many outstanding problems.

[0003] First, in the initial stage of reinforcement learning training, the environment needs to be fully explored. This process is often accompanied by the generation of a large number of invalid actions, which will not only increase the consumption of system resources. Moreover, when this exploration process is applied to real-world scenarios, it may cause irreversible serious consequences such as collisions and crashes. Secondly, in order to reduce potential losses, the model is usually fully trained in a virtual simulation environment until its performance reaches a stable state. However, when there are significant differences between the real scene and the virtual training environment, or when the trained model is not accurate enough and has large errors, the algorithm may no longer be applicable. Model-Based Reinforcement Learning (MBRL) can effectively solve the above problems. In MBRL, the agent first collects data through interaction with the environment, and constructs the corresponding environment model by mining the intrinsic relationship between the data. Subsequently, the agent can directly interact with the learned environment model to generate virtual sample data, thereby achieving strategy optimization or planning. It can be seen that once the environment model is successfully learned, the agent can directly interact with it to predict the next state, thereby avoiding the potential risks brought about by direct interaction with the real environment. This not only prevents irreversible consequences caused by improper strategies, but also significantly improves the utilization efficiency of sample data.

[0004] In addition, a properly trained environment model usually has a stable internal system model. When the application scenario changes, this internal model can remain stable, which means that the agent can quickly adapt to the new environment without having to collect a large number of samples for retraining. This feature significantly enhances the adaptability and efficiency of the algorithm, enabling it to demonstrate superior performance in a variety of application scenarios.

[0005] The Model-Based Multi-Agent Mean-Field Upper-Confidence RL algorithm (M 3-UCRL) effectively combines MFC with MBRL. When the dynamic environment is unknown, MFC is used to simplify the system model to solve the problem of dimensionality explosion; at the same time, the upper confidence bound (UCB) algorithm is used to optimize the environment model as an additional strategy together with the agent's task strategy, effectively solving the problem of low sample utilization in the early stage of training. However, the way this algorithm establishes the environment model not only increases the complexity of the analysis, but also adds additional overhead to the system. In addition, in the specific implementation, Gaussian processes or neural networks are still used to model the environment model, and the accuracy is difficult to guarantee. With the increasing complexity of actual task scenarios, the accuracy of the environmental dynamics model established in the multi-intelligent system is also difficult to guarantee.

[0006] The Bayesian method is a relatively mature method for establishing environmental models. It introduces prior knowledge and a posteriori reasoning to construct a probabilistic dynamics model to quantify and model the uncertainty in the model, thereby improving the accuracy of its predictions and decisions. The most widely used Bayesian method is the kernel-based Gaussian process, among which the probabilistic inference method for learning control (PILCO) proposed by Deisenroth et al. is one of the most classic methods in this field, but it is unable to cope with scene problems in high-dimensional space. In order to overcome this problem, Gal et al. proposed a Bayesian network, which enables the PILCO method to effectively solve application problems with complex high-dimensional space.

[0007] On the other hand, Goodfellow proposed Generative Adversarial Networks (GAN) in 2014, which generates new data by learning from existing data samples and discovering their internal rules. The generative model consists of a generator (G) and a discriminator (D). The generator G aims to generate realistic data samples, while the discriminator D aims to distinguish between fake samples generated by the generator and real data samples. The two compete with each other through adversarial training and gradually reach a Nash equilibrium. In the end, the generator can generate very realistic data samples, and the discriminator will become more difficult to distinguish between true and false. On this basis, in order to improve the network in a specific direction and generate data samples that meet certain conditions, Mehdi Mirza proposed an extended form of generative adversarial networks: conditional generative adversarial networks (CGAN). By adding additional conditional information to the input of the generator G and the discriminator D, CGAN can achieve more refined control, so that the generator G can generate samples of a specific category based on the conditional information. In this model, the discriminator D not only needs to judge the authenticity of the input data, but also whether the data meets the specified conditions. The training goal of CGAN is to minimize the probability that the fake samples generated by the generator G are judged as fake by the discriminator D, while maximizing the probability that the discriminator D correctly judges the real samples and the generated samples. Through this adversarial training method, the generator G and the discriminator D can learn from each other competitively, and finally the generator G can generate realistic samples that meet the conditional information.

[0008] This paper takes advantage of CGAN in data generation and proposes a model-based multi-agent mean-field reinforcement learning method based on conditional generation adversarial network (CGAN-M 3 RL). Summary of the invention

[0009] In view of the defects and shortcomings of the above-mentioned prior art, the present invention proposes a mean field multi-agent reinforcement learning method based on conditional generative adversarial network, which uses the adversarial training mechanism of CGAN to model the environment of the multi-agent system, thereby improving the accuracy of establishing the environmental model. In addition, once a stable environmental model is obtained through training, the agent can interact directly with the model, so that a large amount of sample data can be obtained for subsequent strategy learning, which solves the problem that the environmental dynamics model is difficult to accurately capture due to the excessive number of agents in the environment and the complex and changeable environment, resulting in unstable state.

[0010] The mean field multi-agent reinforcement learning method based on conditional generative adversarial network includes the following steps:

[0011] Step 1: Model the unknown dynamic environment. The agent performs the task in a round-based manner. In each training round t, the data of the agent's interaction with the real environment is collected into the dataset D. t ={((s i,h ,a i,h ,μ i,h ),s i,h+1 )},h=0,1,...,H-1,i=1,2,...,t;

[0012] Step 2: Use CGAN to transform the state transfer function P(s t+1 |s t ,a t ,μ t ) model, and use the dataset D t The environment model is trained with the data in until the environment model converges;

[0013] Step 3: Let the representative agent in MFC directly interact with the stabilized environment model P(s t+1 |s t ,a t ,μ t ) to interact and obtain a large number of sample sequences;

[0014] Step 4: Use the data obtained from the interaction in step 3 to optimize the policy parameters until the optimal policy π is learned. * .

[0015] Furthermore, the specific process of step 1 is: using CGAN to create an environment model, CGAN adds a constraint variable y to the input items of the generator G and the discriminator D, and y can be a category label, text description, image, etc.

[0016] The objective function of CGAN is as follows:

[0017]

[0018] Where V(D,G) represents the loss value; P data represents the distribution of real data; x is the variable obtained by sampling the real data distribution; P z represents the distribution of random noise; z represents the random noise variable; y is the constraint variable.

[0019] Furthermore, the specific process of step 2 is as follows: It is known that in the multi-agent system simplified by MFC, the environment model is represented as P(s t+1 |s t ,a t ,μ t ), which indicates the agent is in the current state s t With the mean field state μ t Under the current strategy, execute action a t Then enter the next state s t+1 The probability of , which can be regarded as a conditional probability density model. In CGAN, the generator G maps the random variable z and generates fake data under the guidance of the constraint variable y. Fake data Obey a conditional probability density function Therefore, the two can be combined, that is, in the multi-agent system simplified by MFC, the current mean field μ t The state is s t And perform action a t As a limiting condition, it is used to guide CGAN to generate the next state s representing the agent t+1 Finally, CGAN can learn the state transfer function model P(s t+1 |s t ,a t ,μ t ).

[0020] Furthermore, the specific process of step 3 is as follows: the generator G in CGAN is responsible for capturing the distribution of real data and learning the environment model. Its input is the random variable z and the constraint variable y, where y is determined by the current mean field μ t , status t 、Action a t Composition; the output is the prediction of the next state under the current condition y The discriminator D is responsible for judging whether the input sample is real data s t+1 Or data generated by G At the same time, it is determined whether the input sample meets the conditional variable y; the input is the predicted state generated by G With the real state t+1, and the same constraint variable y as G; the output is the probability of the input sample being true or false. G and D compete with each other through adversarial training and gradually reach Nash equilibrium. At this point, the agent can directly interact with the model to generate a large number of trajectories for subsequent strategy learning. Its objective function is expressed as follows:

[0021]

[0022] In the formula, G represents the generator, which actually represents the environment model P(s t+1 |s t ,a t ,μ t ); D represents the discriminator; V(D,G) represents the loss value during training; (s t ,a t ,μ t ) represents the constraint variable y; z represents the random noise variable.

[0023] Furthermore, the specific process of step 4 is as follows: the environment model stabilized by CGAN training is recorded as f ψ In each round t, the agent is represented by the current feasible strategy π t =(π t,0 ,π t,1 ,...,π t,H-1 ) directly with the established environment model f ψ Interaction, forward simulation of the state trajectory; at the same time, forward simulation of the mean field trajectory of the system is performed according to the mean field flow characteristics. During this period, virtual sample data is obtained to learn the strategy. In each training round t, the strategy optimization of the agent can be expressed as follows:

[0024]

[0025] Next, we use a gradient-based method to solve the above optimization problem. The solution process consists of three steps: First, parameterize the policy function π(·) as π θ ; The expected cumulative reward J(π) is recorded as J(θ); Then, calculate the gradient of J(θ) with respect to the parameter θ of the strategy π: Finally, the parameters of the strategy are optimized according to the direction of the gradient:

[0026]

[0027] Where α represents the update step size of the policy parameters.

[0028] Beneficial effects of the present invention:

[0029] 1. Through simulation experiment comparison and verification, the present invention can effectively improve the accuracy of the environmental dynamics model. At the same time, the generated sample data can be well used for strategy learning, so that the intelligent agent can obtain a higher expected cumulative reward value in the task.

[0030] 2. The present invention is based on multi-agent reinforcement learning (M 3 -UCRL) algorithm. The advantages of CGAN in data generation are fully utilized, and CGAN is used to model the multi-agent system environment simplified by MFC, which improves the accuracy of the model. During the training process, once a stable environment model is obtained, the representative agent is allowed to interact with the model directly, which is equivalent to giving the agent "imagination" so that a trajectory can be obtained without doing it personally. It not only saves time and reduces system energy consumption, but also provides rich sample data for agent strategy learning, allowing the agent to obtain more cumulative rewards, thereby improving the overall performance of the algorithm.

[0031] 3. Taking advantage of CGAN’s data generation advantages, the MFC-simplified multi-agent environment is accurately modeled in cluster cooperation scenarios. Once the environment model training is stable, it can provide a large amount of sample data for strategy learning, helping the agent obtain higher cumulative rewards, thereby improving the overall performance of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is the algorithm flow chart.

[0033] Figure 2 It is a schematic diagram of the structure of a generative adversarial network.

[0034] Figure 3 It is a schematic diagram of the conditional generative adversarial network structure.

[0035] Figure 4 It is a structural diagram of the state transfer function model learned using conditional generative adversarial networks.

[0036] Figure 5 It is a structural diagram of the present invention. DETAILED DESCRIPTION

[0037] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0038] The implementation steps of the mean field multi-agent reinforcement learning method based on conditional generative adversarial network of the present invention are as follows:

[0039] Step 1: Model the unknown dynamic environment. The agent performs the task in a round-based manner. In each training round t, the data of the agent's interaction with the real environment is collected into the dataset D. t ={((si,h ,a i,h ,μ i,h ),s i,h+1 )},h=0,1,...,H-1,i=1,2,...,t;

[0040] Step 2: Use CGAN to transform the state transfer function P(s t+1 |s t ,a t ,μ t ) model, and use the dataset D t The environment model is trained with the data in until the environment model converges;

[0041] Step 3: Let the representative agent in MFC directly interact with the stabilized environment model P(s t+1 |s t ,a t ,μ t ) to interact and obtain a large number of sample sequences;

[0042] Step 4: Use the data obtained from the interaction in step 3 to optimize the policy parameters until the optimal policy π is learned. * .

[0043] CGAN-M 3 The structure diagram of the RL algorithm is as follows Figure 5 As shown. First, the dynamic environment is modeled and represented as f ξ , where ζ represents the parameters of the environment model. Then use CGAN to train it. During training, first fix the generator G, which is the environment model f ξ =G(z(s t,h ,a t,h ,μ t,h )) parameters, only the discriminator D is optimized to improve its ability to judge true and false data; when D reaches the optimal value, the parameters of D are fixed, and the generator G is optimized to obtain the optimal G. Then the above training process is repeated continuously until the generator G, that is, the environment model and the discriminator D are stable.

[0044] Afterwards, at each training round t, the agent can directly train a stable environment model f ξ With the learned strategy π t =(π t,0 ,π t,1 ,...,π t,H-1 ) Forward simulation of the state trajectory and the mean field trajectory of the system is performed. During this period, rewards from the environment are obtained. At the end of the training round, the representative agent will choose the strategy that can maximize the cumulative reward to achieve strategy optimization until the optimal strategy is learned. The following problems need to be solved in this process:

[0045]

[0046] In the formula, V(D,G) represents the loss value during the training process; G represents the generator, that is, the created environment model, which can be expressed as f ξ represents; D represents the discriminator; (s t,h ,a t,h ,μ t,h ) is used as the constraint variable y; z represents the random noise variable.

[0047] The present invention combines CGAN with model-based multi-agent reinforcement learning simplified by MFC. First, the multi-agent reinforcement learning simplified by MFC is modeled as a Markov decision process on the probability measurement space; then the environment model is learned by CGAN; after the model training is stable, the representative agent is allowed to interact with it directly in MFC, so as to obtain a large amount of sample data to achieve strategy optimization. The method flow chart is as follows Figure 1 shown.

[0048] In this invention, CGAN is used to capture the environment model. First, the initial version of GAN consists of a generator G and a discriminator D, and its structural diagram is shown in the figure below. Figure 2 . After the random variable z is input into the generator G, G implements mapping the random variable z into the forged sample data G(z). The discriminator D is responsible for receiving the real data x or the fake data G(z) generated by the generator G, and outputs the corresponding probability value after judging it. If the discriminator D determines that the input data is real data, it outputs a high probability; if it determines that the input data is fake data, it outputs a low probability.

[0049] During the training process, the generator G continuously learns how to better imitate the distribution of real data, and the discriminator D guides the generator G to produce more realistic data. G and D compete with each other through adversarial training and gradually reach Nash equilibrium. The adversarial training process of the two can be expressed as a game problem of minimizing and maximizing the value function V(D,G), and its objective function is expressed as follows:

[0050]

[0051] Where P data represents the distribution of the real data; x is the variable obtained by sampling the real data distribution; D(x) represents the probability that x is the sampled value of the real data distribution; P z represents the distribution of random noise, usually Gaussian distribution; z represents the random noise variable; V(D,G) represents the loss value during training.

[0052] CGAN adds constraints to GAN. Its network structure is shown in Figure 3 CGAN adds a constraint variable y to the input of the generator G and the discriminator D. y can be a category label, text description, image, etc.

[0053] The objective function of CGAN is as follows:

[0054]

[0055] Where V(D,G) represents the loss value; P data represents the distribution of real data; x is the variable obtained by sampling the real data distribution; P z represents the distribution of random noise; z represents the random noise variable; y is the constraint variable.

[0056] The core of the model-based reinforcement learning method is to clearly construct the model of the environment, continuously train and learn the parameters of the environment model, and then use the stable environment model to guide the learning process, which effectively improves the sample utilization rate while optimizing the decision-making strategy. In order to further improve the accuracy of establishing the environment model, CGAN is combined with the model-based multi-agent reinforcement learning simplified by MFC. The specific process is that it is known that in the multi-agent system simplified by MFC, the environment model is represented as P(s t+1 |s t ,a t ,μ t ), which indicates the agent is in the current state s t With the mean field state μ t Under the current strategy, execute action a t Then enter the next state s t+1 The probability of , which can be regarded as a conditional probability density model. In CGAN, the generator G maps the random variable z and generates fake data under the guidance of the constraint variable y. Fake data Obey a conditional probability density function Therefore, the two can be combined, that is, in the multi-agent system simplified by MFC, the current mean field μ t The state is s t And perform action a t As a limiting condition, it is used to guide CGAN to generate the next state s representing the agent t+1 Finally, CGAN can learn the state transfer function model P(s t+1 |s t ,a t ,μ t ). The structure diagram of the state transfer function model learned using CGAN is as follows Figure 4 shown.

[0057] Depend on Figure 4 It can be seen that the generator G in CGAN is responsible for capturing the distribution of real data and learning the environment model. Its input is the random variable z and the constraint variable y, where y is determined by the current mean field μ t , status t 、Action a t Composition; the output is the prediction of the next state under the current condition y The discriminator D is responsible for judging whether the input sample is real data s t+1 Or data generated by G At the same time, it is determined whether the input sample meets the conditional variable y; the input is the predicted state generated by G With the real state t+1 , and the same constraint variable y as G; the output is the probability of the input sample being true or false. G and D compete with each other through adversarial training and gradually reach Nash equilibrium. At this point, the agent can directly interact with the model to generate a large number of trajectories for subsequent strategy learning. Its objective function is expressed as follows:

[0058]

[0059] In the formula, G represents the generator, which actually represents the environment model P(s t+1 |s t ,a t ,μ t ); D represents the discriminator; V(D,G) represents the loss value during training; (s t ,a t ,μ t ) represents the constraint variable y; z represents the random noise variable.

[0060] The present invention uses a gradient-based method to optimize the strategy. First, the environment model stabilized by CGAN training is denoted as f ψ In each round t, the agent is represented by the current feasible strategy π t =(π t,0 ,π t,1 ,...,π t,H-1 ) directly with the established environment model ψ Interaction, forward simulation of the state trajectory; at the same time, forward simulation of the mean field trajectory of the system is performed according to the mean field flow characteristics. During this period, virtual sample data is obtained to learn the strategy. In each training round t, the strategy optimization of the agent can be expressed as follows:

[0061]

[0062] Next, we use a gradient-based method to solve the above optimization problem. The solution process consists of three steps: First, parameterize the policy function π(·) as π θ ; The expected cumulative reward J(π) is recorded as J(θ); Then, calculate the gradient of J(θ) with respect to the parameter θ of the strategy π: Finally, the parameters of the strategy are optimized according to the direction of the gradient:

[0063]

[0064] Where α represents the update step size of the policy parameters.

[0065] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A mean field multi-agent reinforcement learning method based on conditional generative adversarial networks, characterized in that: The steps include: Step 1: Model the unknown dynamic environment. The agent performs the task in a round-based manner. In each training round t, the data of the agent's interaction with the real environment is collected into the dataset D. t ={((s i,h ,a i,h ,μ i,h ),s i,h+1 )},h=0,1,...,H-1,i=1,2,...,t; Step 2: Use CGAN to transform the state transfer function P(s t+1 |s t ,a t ,μ t ) model, and use the dataset D t The environment model is trained with the data in until the environment model converges; Step 3: Let the representative agent in MFC directly interact with the stabilized environment model P(s t+1 |s t ,a t ,μ t ) to interact and obtain a large number of sample sequences; Step 4: Use the data obtained from the interaction in step 3 to optimize the policy parameters until the optimal policy π is learned. * .

2. The mean field multi-agent reinforcement learning method based on conditional generative adversarial network according to claim 1 is characterized in that: The specific process of step 1 is: using CGAN to create an environment model, CGAN adds a constraint variable y to the input items of the generator G and the discriminator D, y can be a category label, text description, image, etc.; The objective function of CGAN is as follows: Where V(D,G) represents the loss value; P data represents the distribution of real data; x is the variable obtained by sampling the real data distribution; P z represents the distribution of random noise; z represents the random noise variable; y is the constraint variable.

3. The mean field multi-agent reinforcement learning method based on conditional generative adversarial network according to claim 1 is characterized in that: The specific process of step 2 is as follows: It is known that in the multi-agent system simplified by MFC, the environment model is represented as P(s t+1 |s t ,a t ,μ t ), which indicates that the agent is in the current state s t With the mean field state μ t Under the current strategy, execute action a t Then enter the next state s t+1 The probability of can be regarded as a conditional probability density model; in CGAN, the generator G maps the random variable z and generates fake data under the guidance of the constraint variable y. Fake data Obey a conditional probability density function Therefore, the two can be combined. In the multi-agent system simplified by MFC, the current mean field μ t The state is s t And perform action a t As a limiting condition, it is used to guide CGAN to generate the next state s representing the agent t+1 Finally, CGAN can learn the state transfer function model P(s t+1 |s t ,a t ,μ t ).

4. The mean field multi-agent reinforcement learning method based on conditional generative adversarial network according to claim 1 is characterized in that: The specific process of step 3 is as follows: the generator G in CGAN is responsible for capturing the distribution of real data and learning the environment model. Its input is the random variable z and the constraint variable y, where y is determined by the current mean field μ t , status t 、Action a t Composition; the output is the prediction of the next state under the current condition y The discriminator D is responsible for judging whether the input sample is real data s t+1 Or data generated by G At the same time, determine whether the input sample meets the conditional variable y; the input is the predicted state generated by G With the real state t+1 , and the same constraint variable y as G; the output is the probability of the input sample being true or false; G and D compete with each other through adversarial training and gradually reach Nash equilibrium. At this time, the agent can directly interact with the model to generate a large number of trajectories for subsequent strategy learning. Its objective function is expressed as follows: In the formula, G represents the generator, which actually represents the environment model P(s t+1 |s t ,a t ,μ t ); D represents the discriminator; V(D,G) represents the loss value during training; (s t ,a t ,μ t ) represents the constraint variable y; z represents the random noise variable.

5. The mean field multi-agent reinforcement learning method based on conditional generative adversarial network according to claim 1, characterized in that: The specific process of step 4 is: the environment model stabilized by CGAN training is recorded as f ψ , in each round t, represents the agent according to the current feasible strategy π t =(π t,0 ,π t,1 ,...,π t,H-1 ) directly with the established environment model f ψ Interaction, forward simulation of the state trajectory; at the same time, forward simulation of the mean field trajectory of the system is performed according to the mean field flow characteristics. During this period, virtual sample data is obtained to learn the strategy. In each training round t, the agent's optimization of the strategy is expressed as follows: Next, we use a gradient-based method to solve the above optimization problem. The solution process consists of three steps: First, parameterize the policy function π(·) as π θ , the expected cumulative reward J(π) is recorded as J(θ); then, calculate the gradient of J(θ) with respect to the parameter θ of the strategy π: Finally, the parameters of the strategy are optimized according to the direction of the gradient: Where α represents the update step size of the policy parameters.

Citation Information

Cited By

  • Music-driven humanoid robot control method based on antagonistic imitation learning

    CN119795167A

  • Lightweight method for selective laser melting forming titanium alloy gradient lattice structure

    CN120072146A

  • A lightweight method for laser selective melting forming titanium alloy gradient lattice structure

    CN120072146B

  • Cooperative scheduling optimization method for multi-energy combined supply system based on reinforcement learning

    CN121745527A

  • A multi-energy supply system coordinated scheduling optimization method based on reinforcement learning

    CN121745527B