Multi-agent game population strategy diversity improvement method and device

By obtaining situation characteristics, reverse training models and game population iteration algorithms, a diverse opponent pool is generated, which solves the problem of single-agent game strategies and achieves diversity improvement and robustness enhancement in complex environments.

CN118569391AActive Publication Date: 2024-08-30INST OF AUTOMATION CHINESE ACAD OF SCI

Patent Information

Application Number
CN202411052957.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-08-30
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

Existing distributed deep reinforcement learning methods are difficult to adapt to unknown environmental variables and opponent strategies in complex multi-agent environments, resulting in the singleness and inadequacy of decision-making strategies and the inability to effectively improve the diversity of multi-agent game strategies.

Method used

By obtaining the situational characteristics of the agent, inputting it into the forward decision-making model to generate network decision-making results, and storing them in the sample set, the parameters of the forward decision-making model are updated based on the reverse training model, and the game population iterative algorithm is used to generate strategy populations for different training tasks. , including self-game, virtual self-game and priority virtual self-game iterative algorithms, generate a diverse pool of opponents to train the strategy population.

Benefits of technology

It achieves an improvement in the diversity of multi-agent game strategies when environmental variables and opponent strategies are unknown, providing more robust and diversified strategies to adapt to complex environmental changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569391A
    Figure CN118569391A
Patent Text Reader

Abstract

The invention provides a multi-agent game population strategy diversity improvement method and device, and relates to the technical field of multi-agent game confrontation, and the method comprises the steps: generating opponent pools with different probability distributions based on a game population iteration algorithm, carrying out different training tasks, obtaining a forward decision model with different parameters, and carrying out the optimization of the opponent pools. Therefore, a diversified strategy population for multi-agent game is obtained, decision strategy generation and strategy diversity improvement in a complex multi-participant multi-agent game environment are realized, and when the multi-agent games under the condition that the environment variable and the opponent strategy are unknown, the strategy diversity of the multi-agent games is improved. And more types of more robust game population strategies are provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of multi-agent game confrontation technology, and in particular to a method and device for improving the diversity of multi-agent game population strategies. Background Art

[0002] In recent years, with the breakthrough development of artificial intelligence algorithms and computing power, the use of distributed deep reinforcement learning algorithms to solve decision-making problems in multi-agent game confrontations has received widespread attention and practice.

[0003] Publication No. CN116167442A discloses a soft control method for a multi-agent complex game system. Based on the Q-learning learning method combined with the model of resource optimization configuration tasks under soft control, combined with the interaction of multiple agents under the background of game theory dynamics, it realizes the control of the group behavior of the system without external intervention in the complex resource configuration system, thereby improving the overall operation efficiency of the system. Acting on the problem of multi-agent complex game system, by focusing on the state transition of a few individuals in the cluster and then solving the problem of generalized resource optimization configuration of complex systems under the premise of spending less resources, the decision-making at the individual level affects the choice of the group, proving that the soft control of the system is very beneficial for low-consumption control of complex systems to reach their optimal state.

[0004] Publication No. CN114676757A discloses a multiplayer incomplete information game strategy generation method and device, including: obtaining the game state information before the player makes a decision; determining the optimal decision action based on the shared strategy network and the game state information, so that the player can refer to the optimal decision action to formulate the decision action of the target; wherein the shared strategy network is a reinforcement learning network pre-trained with the game samples in the shared data set. The shared strategy network of the present invention is a reinforcement learning network structure, which mainly adopts an offline method for learning, and puts a large amount of calculation for learning in the training stage, so that in the use stage, only the trained strategy network needs to be called with the game state information as the entry point to make a real-time decision, avoiding the problem of large amount of calculation and long time consumption in the search process of other game strategy search algorithms.

[0005] Existing distributed deep reinforcement learning methods are difficult to adapt to unknown environmental variables and opponent strategies in complex environments close to the real world because the multi-agent decision-making strategies are relatively fixed and of a single type. They are also unable to improve the diversity of multi-agent decision-making strategies in complex environments with multiple participants. Summary of the invention

[0006] In view of this, the present invention provides a method and device for improving the diversity of strategies of a multi-agent game population, so as to solve the above-mentioned problems in the prior art.

[0007] The present invention provides a method for improving the diversity of strategies of a multi-agent game population, comprising the following steps.

[0008] Obtain the situational characteristics of the current situation of the agent; Inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; Based on the network decision result, the environment action is obtained through the agent model and stored in the sample set; Based on the sample set, updating the model parameters of the forward decision model through a reverse training model; Through the game population iteration algorithm, strategy populations corresponding to different training tasks are established; wherein the strategy population is represented as a set of forward decision models after updating parameters.

[0009] According to a method for improving the strategy diversity of a multi-agent game population provided by the present invention, the strategy population corresponding to different training tasks is established through a game population iteration algorithm, including: Generate opponent pools with different probability distributions through game population iteration algorithm; The strategy population is trained based on the opponent pool to obtain strategy populations corresponding to different training tasks.

[0010] According to a method for improving the diversity of strategies of a multi-agent game population provided by the present invention, the method generates an opponent pool with different probability distributions through a game population iteration algorithm, comprising: In the case where the game population iteration algorithm is a self-game iteration algorithm, the opponents in the opponent pool are strategies generated in the previous round of the current population; In the case where the game population iteration algorithm is a virtual self-game iteration algorithm, the opponents in the opponent pool are all historical strategies in all populations, and the sampling probability of each opponent is the same; In the case where the game population iteration algorithm is a priority virtual self-game iteration algorithm, the opponents in the opponent pool are all historical strategies in all populations, and the sampling probability of each opponent is calculated based on the priority.

[0011] According to a method for improving the diversity of strategies of a multi-agent game population provided by the present invention, the method of updating the model parameters of a forward decision model through a reverse training model based on the sample set comprises the following steps: Perform structured processing and screening on the sample set to generate training samples; Performing model training based on the training samples, and updating model parameters of the reverse training model; The model parameters of the forward decision model in the same task are updated based on the model parameters of the updated reverse training model.

[0012] According to a method for improving the diversity of strategies of a multi-agent game population provided by the present invention, the model training is performed based on the training samples, and the model parameters of the reverse training model are updated, including: The model parameters of the reverse training model are reversely updated by the loss function gradient descent method, where the loss function is formally described as:

[0013]

[0014]

[0015]

[0016] in, Indicates at time Next, based on the current model strategy The total loss calculated; Indicates at time The expected function under Indicates at time Next, based on the current model strategy The calculated loss of the policy network model; The coefficient representing the loss value; Indicates at time Next, based on the current model strategy The calculated value network model loss; Indicates at time Next, based on the current model strategy The calculated ratio of the new and old strategies; Indicates at time Below, the advantage value in the sample; Indicates at time Next, according to the scope Cropping The ratio of the new and old strategies calculated later is ,and and All are preset constants; Indicates that according to the time The situation characteristics , based on the current model strategy Calculate the action probability; Indicates that according to the time The situation characteristics , based on historical strategies Calculate the action probability; Indicates that according to the time The situation characteristics , based on the current model strategy The calculated evaluation value output by the value network model; Indicates at time The target value below.

[0017] A method for improving the diversity of strategies of a multi-agent game population provided by the present invention also includes: Based on the strategy populations corresponding to different training tasks, multiple agents compete with each other; Based on the result of the game, the game scores between the multiple agents are calculated by using a game population evaluation algorithm; Based on the game score, the diversity improvement effect of the strategy population is evaluated.

[0018] The present invention also provides a device for improving the diversity of multi-agent game population strategies, comprising the following modules: An acquisition module is used to obtain the situation characteristics of the current situation of the intelligent agent; A decision module, used for inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; An action module, used to obtain environmental actions through an agent model based on the network decision result and store them in a sample set; An updating module, used for updating the model parameters of the forward decision model through a reverse training model based on the sample set; A module is established to establish strategy populations corresponding to different training tasks through a game population iteration algorithm; wherein the strategy population is represented as a set of forward decision models after updating parameters.

[0019] The present invention also provides 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 computer program, the method for improving the strategy diversity of a multi-agent game population as described in any one of the above-mentioned methods is implemented.

[0020] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for improving the strategy diversity of a multi-agent game population.

[0021] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for improving the strategy diversity of multi-agent game populations.

[0022] The present invention provides a method and device for improving the strategy diversity of a multi-agent game population. Based on a game population iterative algorithm, an opponent pool with different probability distributions is generated, different training tasks are performed, and forward decision models with different parameters are obtained, thereby obtaining a diversified strategy population for multi-agent games, so that when multi-agents play games under the condition that environmental variables and opponent strategies are unknown, they have a wider variety of and more robust strategies. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 It is a flow chart of the method for improving the diversity of multi-agent game population strategies provided by the present invention.

[0025] Figure 2 This is a multi-agent game population strategy training framework diagram provided by the present invention.

[0026] Figure 3 It is a structural schematic diagram of a device for improving the diversity of strategies of multi-agent game populations provided by the present invention.

[0027] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0028] In recent years, with the breakthrough development of artificial intelligence algorithms and computing power, the use of distributed deep reinforcement learning algorithms to solve the decision-making problem of multi-agent game confrontation has received widespread attention and practice. The combination of distributed deep learning technology can accelerate the sampling and training efficiency in the reinforcement learning process, which is conducive to the generation of decision-making strategies in complex multi-agent game environments with multiple participants.

[0029] However, the existing distributed deep reinforcement learning methods lack a general solution for multi-agent complex games with multiple participants. For multi-agent game decision-making problems with multiple participants, it is necessary to make full use of training hardware resources to improve sampling training efficiency, and at the same time, it is necessary to use game evaluation theory and algorithm design to iterate the population strategy to improve strategy diversity.

[0030] In addition, in complex environments close to the real world, improving the multi-agent decision-making strategies of multiple participants has always faced great challenges. In order to adapt to unknown environmental variables and opponent strategies, more robust strategies are needed, which puts higher requirements on the diversity of strategies.

[0031] In order to solve the above problems, the present invention proposes a method for improving the strategy diversity of multi-agent game populations, which is used to improve the diversity of strategy populations when environmental variables and opponent strategies are unknown, thereby providing more robust game strategies for agents.

[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0033] Combine the following Figures 1 to 4 The present invention describes a method and device for improving the diversity of strategies of a multi-agent game population.

[0034] Figure 1 : is a flow chart of the method for improving the diversity of multi-agent game population strategies provided by the present invention, such as Figure 1 As shown, the method includes step 101, step 102, step 103, step 104 and step 105.

[0035] Step 101: Obtain the situation characteristics of the current situation of the intelligent agent.

[0036] According to the embodiments provided by the present invention, Figure 2 It is a multi-agent game population strategy training framework diagram provided by the present invention, such as Figure 2 As shown, it includes a distributed deep reinforcement learning framework and a game population iteration and evaluation algorithm; the distributed deep reinforcement learning framework includes: cross-node hardware resource allocation call, sample collection and processing, model training and management; the game population iteration and evaluation algorithm includes: game population iteration algorithm, game population evaluation algorithm.

[0037] Among them, cross-node hardware resource allocation calls are responsible for allocating and calling multiple CPU and GPU cards on multiple computing nodes to realize distributed resource calls; hardware resource allocation calls are based on the scheduling tool Ray, which realizes rational resource allocation according to hardware resource conditions; The cross-node hardware resource allocation call is responsible for connecting multiple computing nodes and utilizing the computing resources on all computing nodes; the computing resources on the computing nodes include multiple CPU and GPU cards; the multiple CPU cards are used to run the simulation environment model, intelligent agent model, sample storage and evaluation algorithm; the GPU card is used to run the forward decision neural network model, the reverse update neural network model, model storage and call.

[0038] When training a forward decision model for multi-agent games, it mainly includes three steps: S1, S2, and S3.

[0039] S1. Generate multiple training tasks on multiple computing nodes. Each training task is set according to the configuration file. A specified number of forward decision model objects, reverse training model objects, and model management objects are created on the GPU; a specified number of simulation environment objects, intelligent agent model objects, sample storage objects, and evaluation algorithm objects are created on the CPU.

[0040] Specifically, according to the configuration file settings: (1) The benchmark model of the participants of the forward decision model object; (2) The benchmark model, training algorithm, and training hyperparameters of the participants in the reverse training model object; (3) The training task list and model storage read address of the model management object; (4) The participant number, map number, and environment configuration of the simulation environment object; (5) Participant number, state feature dimension, and action dimension of the agent model object; (6) The participant number and sample length of the sample storage object; (7) Game population iteration algorithm and game population evaluation algorithm for evaluation algorithm objects.

[0041] Furthermore, the specific method for calling the cross-node hardware resource allocation is: allocating all GPU memory and CPU memory on multiple computing nodes, and setting the number of parallel tasks; setting the number of forward decision models in each task and the GPU memory occupied by the forward decision model and the reverse training model according to the number of tasks; setting the number of parallel environments and the occupied CPU memory under each task according to the size of the simulation environment; wherein the task refers to the task of training the decision model, and different decision models of different populations are generated by setting different training algorithms, population iteration algorithms, training hyperparameters, etc., and the different populations trained in parallel are opponents of each other.

[0042] S2. The forward decision model and the reverse decision training model located at different computing nodes send a request to the model management object to obtain the parameters of the benchmark model. The model management object reads the model parameters from the specified folder and sends them to the corresponding model to initialize the model parameters. This specifically includes two parallel steps, S21 and S22.

[0043] S21. Parallel start of sample collection and processing process, including steps S211 to S216; wherein, the parallel means that steps S21 and S22 are performed simultaneously; the sample collection and processing is responsible for interacting with the game environment, collecting samples for training and structuring the sample set; the sample collection includes multiple neural network forward decision models and multiple agent models; the sample set covers sample data generated in the multi-agent decision-making process with multiple participants; the sample set structuring processing is responsible for processing the sample set into a training sample structure that is conducive to the reverse update of the neural network.

[0044] The specific method for sample collection is: multiple simulation environment models are in parallel, and interact with multiple intelligent agent models to generate sample sets; during the interaction process, the simulation environment outputs observation data, the intelligent agent model is responsible for receiving the observation data output by the game environment, and performing feature engineering to extract features, and the features are input into the forward decision model. The intelligent agent model receives the output of the forward decision model and performs action engineering to generate environmental actions. The environmental model receives the environmental actions to generate the reward and next observation corresponding to the action.

[0045] Step 102: input the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model.

[0046] S211, the simulation environment object outputs the current situation to the agent model object; S212, the agent model object processes the current situation into features through feature engineering, and outputs the features to the forward decision model object; S213, the forward decision model object receives the features and outputs the network decision result to the agent model object; Step 103: Based on the network decision result, the environment action is obtained through the intelligent agent model and stored in the sample set.

[0047] S214, the agent model object processes the network decision result into an environmental action by using action engineering, and outputs it to the simulation environment; S215, the agent model object temporarily stores the single-step sample; S216. Repeat steps S211 to S215 until the simulation environment is completed. The intelligent agent model object packages the temporarily stored single-step samples and outputs them to the sample storage object, which stores the received samples.

[0048] Step 104: Based on the sample set, update the model parameters of the forward decision model through a reverse training model.

[0049] S22, parallel start model training and management process, including steps S221 to S229; wherein, the parallel means that the two steps S21 and S22 are performed simultaneously; the model training and management are responsible for training and managing the update of the sampling model using the deep reinforcement learning algorithm; the model training is responsible for using the training samples to achieve the reverse update of the neural network parameters; the model management is responsible for storing and calling the strategy populations generated by multiple participants using different population iteration algorithms on different computing nodes; the strategy population is composed of neural network models with different parameters; S221, the reverse training model object sends a request to the sample storage object to obtain a training sample; S222, the sample storage object performs structured processing and screening on the sample pool, generates training samples and sends them to the reverse training model object; S223, the reverse training model object uses the training samples to train the model and update the model parameters; S224, using the updated model parameters to update the model parameters of the forward decision model object in the same task; S225, repeat steps S221 to S224 until the number of single-generation training rounds is reached; S226, the model management object stores the model parameters of the latest reverse training model in the strategy population of the task; S227, start the game population iteration process, and the model management object reads the strategy models in the population generated under all tasks; S228. Calculate and update the probability distribution of the opponent pool of the task using the game population iteration object; S229. Use the game population evaluation object to evaluate the population strategy capability generated by the task.

[0050] S3. Tasks located on different computing nodes repeat step S2 until all tasks reach the specified number of training generations, the iteration is completed, and all processes are terminated.

[0051] Step 105: Establish strategy populations corresponding to different training tasks through a game population iteration algorithm; wherein the strategy population is represented as a set of forward decision models after parameter update.

[0052] According to the embodiment provided by the present invention, the strategy population corresponding to different training tasks is established by using the game population iteration algorithm, including: Generate opponent pools with different probability distributions through game population iteration algorithm; The strategy population is trained based on the opponent pool to obtain strategy populations corresponding to different training tasks.

[0053] The game population iteration algorithm is responsible for generating opponent pools with different probability distributions, and then training a strategy population with rich strategy diversity.

[0054] The specific form of the opponent pool is: ,in, Indicates the number of agents; Indicates the agent number; Represents a policy model.

[0055] According to the embodiment provided by the present invention, when the game population iteration algorithm is a self-game iteration algorithm, the opponents in the opponent pool are strategies generated in the previous round of the current population; In the case where the game population iteration algorithm is a virtual self-game iteration algorithm, the opponents in the opponent pool are all historical strategies in all populations, and the sampling probability of each opponent is the same; In the case where the game population iteration algorithm is a priority virtual self-game iteration algorithm, the opponents in the opponent pool are all historical strategies in all populations, and the sampling probability of each opponent is calculated based on the priority.

[0056] The population iteration algorithm includes: a self-game iteration algorithm, a virtual self-game iteration algorithm, and a priority virtual self-game iteration algorithm, wherein the opponents in the opponent pool for each round of training confrontation of the self-game iteration algorithm are the strategies generated by the population in the previous round; the opponents in the opponent pool for each round of training confrontation of the virtual self-game iteration algorithm are all historical strategies in all populations, and their probability distribution is uniformly distributed, that is, the sampling probability of each opponent is the same; the opponents in the opponent pool for each round of training confrontation of the priority virtual self-game iteration algorithm are all historical strategies in all populations, and their probability distribution is based on priority calculation, that is, the sampling probability of each opponent is different, wherein the calculation formula for the probability of each opponent's strategy is specifically: ,in, Indicates the number of agents; Indicates the agent number; Represents a policy model; Indicates the priority coefficient.

[0057] According to an embodiment provided by the present invention, the updating of the model parameters of the forward decision model through the reverse training model based on the sample set includes the following steps: Perform structured processing and screening on the sample set to generate training samples; Performing model training based on the training samples, and updating model parameters of the reverse training model; The model parameters of the forward decision model in the same task are updated based on the model parameters of the updated reverse training model.

[0058] The specific form of the sample set is: ,in, : Number of agents; : Agent number; : current moment; : Total task duration; : No. Agent Moments The following situational characteristics; : No. Agent Moments The action value is obtained by sampling the distribution of the policy network decision output; where the policy network is a deep neural network used for action decision; : No. Agent Moments Down, The reward calculation value obtained after conversion to environmental actions and execution; : No. Agent Moments Below, the evaluation value of the decision output of the value network; where the value network is a deep neural network used to evaluate actions; : No. Agent Moments Next, the logarithm of the distribution of the policy network’s decision outputs is calculated; : No. Agent Moments Under this condition, the advantage function value is calculated using the generalized advantage estimation algorithm; the specific formula of the generalized advantage estimation algorithm is: ,in, : Total length of agent samples; : Discount factor, the value is an adjustable coefficient greater than or equal to 0 and less than or equal to 1; : Deviation coefficient, the value is an adjustable coefficient greater than or equal to 0 and less than or equal to 1; : No. Agent Moments Below, the evaluation value of the decision output of the value network; where the value network is a deep neural network used to evaluate actions; : No. Agent Moments Below, the evaluation value of the decision output of the value network; where the value network is a deep neural network used to evaluate actions.

[0059] The specific method of the sample set structured processing is: using a random sampling method, extracting a fixed number of samples from a sample pool consisting of a single sample of each agent, and re-forming a training sample set. The specific form of the training sample set is: ,in, : A set of situation feature values ​​of all samples; : A set of action values ​​of all samples; : A collection of reward calculation values ​​for all samples; : A set of evaluation values ​​of all samples; : A set of logarithmic values ​​of all samples; : A set of advantage function values ​​of all samples; The elements in the above set are arranged in the same extraction order.

[0060] According to an embodiment provided by the present invention, the performing model training based on the training sample and updating the model parameters of the reverse training model includes: The model parameters of the reverse training model are reversely updated by the loss function gradient descent method, where the loss function is formally described as:

[0061]

[0062]

[0063]

[0064] in, Indicates at time Next, based on the current model strategy The calculated total loss includes the policy network model loss and the value network loss; Indicates at time The expected function under Indicates at time Next, based on the current model strategy The calculated loss of the policy network model; The coefficient representing the loss value; Indicates at time Next, based on the current model strategy The calculated value network model loss; Indicates at time Next, based on the current model strategy The calculated ratio of the new and old strategies; Indicates at time Below, the advantage value in the sample; Indicates at time Next, according to the scope Cropping The ratio of the new and old strategies calculated later is ,and and All are preset constants; Indicates that according to the time The situation characteristics , based on the current model strategy Calculate the action probability; Indicates that according to the time The situation characteristics , based on historical strategies Calculate the action probability; Indicates that according to the time The situation characteristics , based on the current model strategy The calculated evaluation value output by the value network model; Indicates at time The target value below.

[0065] According to an embodiment provided by the present invention, the method for improving the diversity of strategies of multi-agent game populations further includes: Based on the strategy populations corresponding to different training tasks, multiple agents compete with each other; Based on the result of the game, the game scores between the multiple agents are calculated by using a game population evaluation algorithm; Based on the game score, the diversity improvement effect of the strategy population is evaluated.

[0066] Among them, the multi-agents can be a group of drones, a group of driverless cars, a group of robot dogs, etc.

[0067] For example, in the case of multiple parties using multiple drones for confrontation drills, in actual combat, different strategies can be generated based on the strategy populations corresponding to different training tasks according to the actual combat environment and opponent strategies to execute the next action of the drone.

[0068] Furthermore, based on the results of the drone swarm game, that is, the victory or defeat of different drones, the population game population evaluation algorithm (population diversity evaluation algorithm) can be used to evaluate the effect of improving the population strategy during the training process.

[0069] The population diversity evaluation algorithm includes a replicator dynamic algorithm and a ranking algorithm, wherein the replicator dynamic algorithm is based on a basic winning rate matrix cyclic iterative calculation, and the single-step calculation formula is: ,in, : No. The proportion of strategies, that is, the current state of the strategy in the dynamic process; :time; : No. The fitness of a strategy; : Strategy number; ,in, ,in, ,in, : Win rate matrix.

[0070] The rating algorithm is based on the original real environment score matrix cyclic iterative calculation, and the single-step calculation formula is: ,in, : The updated rating of Party A; : constant value; : The real environment score of participant A in the whole game; ,in, Indicates the rating of participant A before adjustment; Indicates the rating of Party B before adjustment.

[0071] The present invention provides a method for improving the strategy diversity of a multi-agent game population. Based on a game population iterative algorithm, an opponent pool with different probability distributions is generated, different training tasks are performed, and forward decision models with different parameters are obtained, thereby obtaining a diverse strategy population for multi-agent games. The method realizes the generation of decision strategies and the improvement of strategy diversity in a complex multi-agent game environment with multiple participants, so that multi-agents have a wider variety of and more robust strategies when playing games under the condition that environmental variables and opponent strategies are unknown.

[0072] The device for improving the strategy diversity of a multi-agent game population provided by the present invention is described below. The device for improving the strategy diversity of a multi-agent game population described below and the method for improving the strategy diversity of a multi-agent game population described above can be referred to each other.

[0073] Based on any of the above embodiments, Figure 3 Schematic diagram of a device for improving the diversity of strategies of a multi-agent game population provided by an embodiment of the present invention. Figure 3 As shown, the multi-agent game population strategy diversity improvement device provided by the embodiment of the present invention includes an acquisition module 301, a decision module 302, an action module 303, an update module 304 and an establishment module 305, wherein: The acquisition module 301 is used to obtain the situation characteristics of the current situation of the intelligent agent; the decision module 302 is used to input the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; the action module 303 is used to obtain the environmental action through the intelligent agent model based on the network decision result, and store it in the sample set; the update module 304 is used to update the model parameters of the forward decision model through the reverse training model based on the sample set; the establishment module 305 establishes the strategy population corresponding to different training tasks through the game population iteration algorithm; wherein, the strategy population is represented as a set of forward decision models after updating the parameters.

[0074] The present invention provides a device for improving the strategy diversity of multi-agent game populations. Based on a game population iterative algorithm, an opponent pool with different probability distributions is generated, different training tasks are performed, and forward decision models with different parameters are obtained, thereby obtaining a diverse strategy population for multi-agent games. The device realizes the generation of decision strategies and the improvement of strategy diversity in a complex multi-agent game environment with multiple participants, so that multi-agents have a wider variety of more robust strategies when playing games under the condition that environmental variables and opponent strategies are unknown.

[0075] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communications interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the multi-agent game population strategy diversity improvement method, which includes: Obtain the situational characteristics of the current situation of the agent; Inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; Based on the network decision result, the environment action is obtained through the agent model and stored in the sample set; Based on the sample set, updating the model parameters of the forward decision model through a reverse training model; Through the game population iteration algorithm, strategy populations corresponding to different training tasks are established; wherein the strategy population is represented as a set of forward decision models after updating parameters.

[0076] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0077] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the multi-agent game population strategy diversity improvement method provided by the above methods, the method includes: Obtain the situational characteristics of the current situation of the agent; Inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; Based on the network decision result, the environment action is obtained through the agent model and stored in the sample set; Based on the sample set, updating the model parameters of the forward decision model through a reverse training model; Through the game population iteration algorithm, strategy populations corresponding to different training tasks are established; wherein the strategy population is represented as a set of forward decision models after updating parameters.

[0078] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the multi-agent game population strategy diversity improvement method provided by the above methods, the method comprising: Obtain the situational characteristics of the current situation of the agent; Inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; Based on the network decision result, the environment action is obtained through the agent model and stored in the sample set; Based on the sample set, updating the model parameters of the forward decision model through a reverse training model; Through the game population iteration algorithm, strategy populations corresponding to different training tasks are established; wherein the strategy population is represented as a set of forward decision models after updating parameters.

[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for improving the diversity of strategies in a multi-agent game population, characterized in that: include: Obtain the situational characteristics of the current situation of the agent; Inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; Based on the network decision result, the environment action is obtained through the agent model and stored in the sample set; Based on the sample set, updating the model parameters of the forward decision model through a reverse training model; Through the game population iteration algorithm, strategy populations corresponding to different training tasks are established; wherein the strategy population is represented as a set of forward decision models after updating parameters.

2. The method for improving the diversity of multi-agent game population strategies according to claim 1, characterized in that: The strategy populations corresponding to different training tasks are established through the game population iteration algorithm, including: Generate opponent pools with different probability distributions through game population iteration algorithm; The strategy population is trained based on the opponent pool to obtain strategy populations corresponding to different training tasks.

3. The method for improving the diversity of multi-agent game population strategies according to claim 2, characterized in that: The method of generating opponent pools with different probability distributions through the game population iteration algorithm includes: In the case where the game population iteration algorithm is a self-game iteration algorithm, the opponents in the opponent pool are strategies generated in the previous round of the current population; In the case where the game population iteration algorithm is a virtual self-game iteration algorithm, the opponents in the opponent pool are all historical strategies in all populations, and the sampling probability of each opponent is the same; In the case where the game population iteration algorithm is a priority virtual self-game iteration algorithm, the opponents in the opponent pool are all historical strategies in all populations, and the sampling probability of each opponent is calculated based on the priority.

4. The method for improving the diversity of multi-agent game population strategies according to claim 1, characterized in that: The method of updating the model parameters of the forward decision model by the reverse training model based on the sample set comprises the following steps: Perform structured processing and screening on the sample set to generate training samples; Performing model training based on the training samples, and updating model parameters of the reverse training model; The model parameters of the forward decision model in the same task are updated based on the model parameters of the updated reverse training model.

5. The method for improving the diversity of multi-agent game population strategies according to claim 4, characterized in that: The performing model training based on the training samples and updating the model parameters of the reverse training model includes: The model parameters of the reverse training model are reversely updated by the loss function gradient descent method, where the loss function is formally described as: ; ; ; ; in, Indicates at time Next, based on the current model strategy The total loss calculated; Indicates at time The expected function under Indicates at time Next, based on the current model strategy The calculated loss of the policy network model; The coefficient representing the loss value; Indicates at time Next, based on the current model strategy The calculated value network model loss; Indicates at time Next, based on the current model strategy The calculated ratio of the new and old strategies; Indicates at time Below, the advantage value in the sample; Indicates at time Next, according to the scope Cropping The ratio of the new and old strategies calculated later is ,and and All are preset constants; Indicates that according to the time The situation characteristics , based on the current model strategy Calculate the action The probability of Indicates that according to the time The situation characteristics , based on historical strategies Calculate the action The probability of Indicates that according to the time The situation characteristics , based on the current model strategy The calculated evaluation value output by the value network model; Indicates at time The target value below.

6. The method for improving the diversity of multi-agent game population strategies according to claim 1, characterized in that: Also includes: Based on the strategy populations corresponding to different training tasks, multiple agents compete with each other; Based on the result of the game, the game scores between the multiple agents are calculated by using a game population evaluation algorithm; Based on the game score, the diversity improvement effect of the strategy population is evaluated.

7. A device for improving the diversity of strategies of multi-agent game populations, characterized in that: include: An acquisition module is used to obtain the situation characteristics of the current situation of the intelligent agent; A decision module, used for inputting the situation characteristics into the forward decision model to obtain the network decision result output by the forward decision model; An action module, used to obtain environmental actions through an agent model based on the network decision result and store them in a sample set; An updating module, used for updating the model parameters of the forward decision model through a reverse training model based on the sample set; A module is established to establish strategy populations corresponding to different training tasks through a game population iteration algorithm; wherein the strategy population is represented as a set of forward decision models after updating parameters.

8. 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 computer program, the method for improving the strategy diversity of a multi-agent game population is implemented as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the method for improving the strategy diversity of a multi-agent game population as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the method for improving the strategy diversity of a multi-agent game population as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Universal multi-agent game algorithm

    CN112755538A

  • Fast self-gaming reinforcement learning method and device, computer equipment and storage medium

    CN115033878A

  • Multi-agent game control strategy optimization method and device

    CN116224799A

  • Strategy evolution training method, device and equipment for strong random game of war game and medium

    CN117151224A

Cited By

  • Multi-robot game simulation method, simulation platform, electronic equipment and storage medium

    CN119227814A

  • Multi-robot game simulation method, simulation platform, electronic device and storage medium

    CN119227814B

  • Intelligent decision-making method and system based on distributed training framework

    CN119831048A