Intelligent agent decision-making method, computer equipment and storage medium

By determining the action benefits based on random strategic interaction and training result prediction models in the game agent, the problem of insufficient accuracy and interpretability of agent decision-making in the existing technology is solved, and efficient agent decision-making and interaction capabilities are improved. .

CN118698131APending Publication Date: 2024-09-27超参数科技(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410872880.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When training game agent control models, the existing technology is difficult to output decisions that are better than those of human players, and it is difficult to handle the diversity and complexity of data. In addition, reinforcement learning training requires a large amount of computing resources and time, and the output results lack interpretability. sex.

Method used

By controlling multiple preset agents to interact in a preset environment based on random strategies, obtaining interaction data, training result prediction models, determining the target benefits of preset actions, and determining the actions output by the agents based on the benefits, improving the accuracy of decision-making. and interpretability.

Benefits of technology

It achieves the accuracy and interpretability of the agent's decision-making, improves the interaction ability between the agent and the environment, and reduces the computing resources and time required for training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118698131A
    Figure CN118698131A
Patent Text Reader

Abstract

The invention relates to the field of artificial intelligence, and provides an agent decision-making method, computer equipment and a storage medium, the method comprises the following steps: controlling a plurality of preset agents to interact in a preset environment based on a random strategy, and obtaining interaction data of the preset agents and the preset environment; according to the interaction data, training a preset result prediction model until a target result prediction model is obtained; based on the target result prediction model, determining a target revenue of outputting a preset action by a target agent, wherein the target revenue is a difference value between a first revenue of outputting the preset action by the target agent in the current environment and a second revenue of not outputting the preset action; and according to the target income of each preset action, determining a target action output by the target agent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a decision-making method, computer equipment and storage medium for an intelligent agent. Background Art

[0002] When training a game agent control model, it is usually necessary to use auxiliary decision-making rules written by human developers based on experience, or to imitate the behavior of human players through machine learning. However, the model trained by this method is difficult to output better decisions than human players, and may even amplify the mistakes or defects of human players as the imitation object. It is also difficult to handle the diversity and complexity of data, and reflect the preferences and styles of decision-making. Training a game agent control model through reinforcement learning requires collecting a large amount of high-quality data, consuming a lot of computing resources and time, and the output results lack interpretability. The existing technology urgently needs a more flexible, accurate, easy to implement and interpretable agent decision-making method. Summary of the invention

[0003] The main purpose of this application is to provide a decision-making method, computer device and storage medium for an intelligent agent, aiming at improving the accuracy and explainability of the intelligent agent's decision-making.

[0004] In a first aspect, the present application provides a decision-making method for an intelligent agent, the decision-making method for an intelligent agent comprising the following steps:

[0005] Controlling a plurality of preset intelligent agents to interact in a preset environment based on a random strategy, and obtaining interaction data between the preset intelligent agents and the preset environment;

[0006] According to the interaction data, a preset result prediction model is trained until a target result prediction model is obtained;

[0007] Determine, based on the target result prediction model, a target benefit of the target agent outputting a preset action, wherein the target benefit is the difference between a first benefit of the target agent outputting the preset action in the current environment and a second benefit of not outputting the preset action;

[0008] According to the target benefits of each of the preset actions, the target action output by the target agent is determined.

[0009] In a second aspect, the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the decision-making method of the intelligent agent as described in any one of the embodiments of the present application are implemented.

[0010] In a third aspect, the present application provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, wherein when the computer program is executed by a processor, the steps of the decision-making method of the intelligent agent as described in any one of the embodiments of the present application are implemented.

[0011] The present application provides a decision-making method, computer device and storage medium for an intelligent agent, which controls multiple preset intelligent agents to interact in a preset environment based on a random strategy, and obtains interaction data between the preset intelligent agents and the preset environment, thereby obtaining interaction data with a certain diversity, so as to train a result prediction model; based on the interaction data, the preset result prediction model is trained until a target result prediction model is obtained, so that the target result prediction model can predict the results of intelligent agent interaction under different circumstances; based on the target result prediction model, a target benefit of the target intelligent agent outputting a preset action is determined, and the target benefit is the difference between a first benefit of the target intelligent agent outputting the preset action in the current environment and a second benefit of not outputting the preset action, and the target benefit that can be obtained by the intelligent agent outputting each preset action is determined by comparing the first benefit and the second benefit, thereby improving the interpretability of the intelligent agent action output; based on the target benefit of each preset action, a target action to be output by the target intelligent agent is determined, and the preset action with an advantage in the target benefit is determined as the target action, thereby improving the interaction ability of the intelligent agent with the environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0013] Figure 1 A flowchart of a decision-making method of an intelligent agent provided in one embodiment of the present application;

[0014] Figure 2 A schematic block diagram of an implementation process of a decision-making method for an intelligent agent provided in an embodiment of the present application;

[0015] Figure 3 is a schematic diagram of a decision-making device of an intelligent agent provided by an embodiment of the present application;

[0016] Figure 4 The present invention is a block diagram showing the structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0019] The embodiments of the present application provide a decision-making method for an intelligent agent, a computer device, and a storage medium.

[0020] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0021] Please refer to Figure 1 , Figure 1 A flow chart of a decision-making method for an intelligent agent provided in an embodiment of the present application. The decision-making method of the intelligent agent can be used in a terminal or a server to determine the target action output by the intelligent agent to improve the accuracy and interpretability of the intelligent agent's decision. Among them, the terminal can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device; the server can be an independent server, or a server cluster, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0022] like Figure 1 As shown, the decision-making method of the intelligent agent includes steps S101 to S104.

[0023] Step S101: Control multiple preset agents to interact in a preset environment based on a random strategy, and obtain interaction data between the preset agents and the preset environment.

[0024] Exemplarily, the interaction data is used to train the result prediction model. In order to improve the diversity of the interaction data and thus improve the generalization ability of the result prediction model, preset intelligent agents controlled by different random strategies are set to interact in a preset environment, wherein the preset intelligent agents can interact in the preset environment according to their corresponding preset strategies, and can also interact with other preset intelligent agents, which is not limited here.

[0025] Exemplarily, multiple preset intelligent agents play games in multiple running devices respectively, and continuously generate interaction data. One running device can run multiple game games. For example, if the running device is an 8-core device and each CPU core can run 2 game games, each running device supports 16 game games running simultaneously.

[0026] In some implementations, controlling multiple preset agents to interact in a preset environment based on a random strategy and obtaining interaction data between the preset agents and the preset environment includes:

[0027] Randomly sampling multiple preset strategies to determine the random strategy corresponding to the preset agent;

[0028] Based on the random strategy, control the preset agent to output a current action to interact with the preset environment;

[0029] The current action output by the preset agent is obtained, and the first state data before the current action is output, and the second state data after the current action is output.

[0030] Exemplarily, the interaction data is obtained by random sampling using the Monte Carlo method. Specifically, a plurality of preset strategies are pre-set, and the preset strategies may be, for example, strategies with a defense goal, a strategy with an attack goal, a strategy with a goal of obtaining a score, etc., thereby simulating game players of different styles.

[0031] Exemplarily, the current action is output based on the random strategy corresponding to the preset agent to interact with the preset environment or other preset agents in the preset environment. The first state data and the second state data are used to indicate the state of the agent itself, the state of the enemy agent, and the state of the environment before and after the output of the current action.

[0032] Exemplarily, by acquiring the state changes of multiple preset agents before and after interacting in a preset environment based on multiple random strategies, diverse interaction data is obtained, which can cover the situations that may occur in different situations for game players of different styles.

[0033] Step S102: training a preset result prediction model according to the interaction data until a target result prediction model is obtained.

[0034] In some implementations, controlling multiple preset agents to interact in a preset environment based on a random strategy and obtaining interaction data between the preset agents and the preset environment includes:

[0035] Storing the interaction data of the plurality of preset agents running synchronously into a data cache pool;

[0036] The step of training a preset result prediction model according to the interaction data includes:

[0037] When the preset result prediction model is trained, the interaction data is randomly extracted from the data cache pool.

[0038] Exemplarily, in step S101, game matches are continuously conducted to generate interaction data. It is usually difficult to digest such a large amount of interaction data in a timely manner during model training. Therefore, the interaction data can be first stored in a data cache pool (DataPool), and then the interaction data can be randomly extracted from the data cache pool during model training, thereby improving the randomness of the interaction data and improving the generalization ability of the trained model.

[0039] In some implementations, training a preset result prediction model according to the interaction data until a target result prediction model is obtained includes:

[0040] The preset result prediction model is trained according to the first state data, the current action and the second state data until the target result prediction model is obtained.

[0041] Exemplarily, the second state data is the state obtained by the preset intelligent agent outputting the current action under the premise of the first state data. Therefore, the preset result prediction model can be trained through the first state data, the current action and the second state data, so that the preset result prediction model can obtain the target result prediction model that can predict the result obtained by outputting the action to be output under the current situation based on the actual state data and the action to be output.

[0042] Exemplarily, whether the target result prediction model is obtained can be determined based on the loss value of the preset result prediction model, where the loss function used to calculate the loss value can be a mean square error function, a cross entropy loss function, an absolute error loss function, etc., which is not limited here.

[0043] In some implementations, the training of the preset result prediction model according to the first state data, the current action, and the second state data until the target result prediction model is obtained includes:

[0044] Based on the preset result prediction model, according to the first state data and the current action, predict the state after outputting the current action to obtain target state data;

[0045] Adjusting the preset result prediction model according to the target state data and the second state data;

[0046] When the mean square error between the target state data and the second state data meets a preset condition, the target result prediction model is obtained.

[0047] Exemplarily, the target state data obtained by outputting the current action prediction of the preset result prediction model under the first state data is compared with the actual second state data, and the preset result prediction model is adjusted according to the comparison result to improve the prediction accuracy of the preset result prediction model, until the mean square error of the preset result prediction model meets the preset conditions, and the target result prediction model is confirmed to be obtained.

[0048] In some implementations, when the mean square error between the target state data and the second state data satisfies a preset condition, obtaining the target result prediction model includes:

[0049] When the rate of change of the mean square error between the target state data and the second state data is less than a preset threshold, it is determined that the target result prediction model is obtained.

[0050] Exemplarily, the preset condition may be that the mean square error of the preset result prediction model is less than a preset value, but it is certainly not limited to this. It may also be that the rate of change of the mean square error is less than a preset threshold, indicating that the preset result prediction model has reached convergence and the benefits of continued training are small. At this time, the training of the preset result prediction model can be stopped.

[0051] In some implementations, adjusting the preset result prediction model according to the target state data and the second state data includes:

[0052] Starting from the output layer of the preset result prediction model, the mean square error is derived with respect to the model parameters of each layer of the preset result prediction model to obtain the gradient of each layer of the preset result prediction model;

[0053] According to the gradient, the parameters of each layer of the preset result prediction model are updated.

[0054] Exemplarily, the preset result prediction model can be a Transformer model, which can efficiently extract features from the game state and predict the corresponding game results. In the process of training the Transformer model, the parameters of the model can be updated by back propagation. Specifically, the mean square error between the target state data and the second state data is derived with respect to the model parameters of each layer from the output layer to the input layer to obtain the gradient of each layer, and then the model parameters of each layer are updated according to the gradient, ensuring that information can flow effectively between different layers of the Transformer model, thereby improving the learning ability of the model and avoiding overfitting.

[0055] Step S103, determining the target benefit of the target agent outputting the preset action based on the target result prediction model, wherein the target benefit is the difference between a first benefit of the target agent outputting the preset action in the current environment and a second benefit of not outputting the preset action.

[0056] For example, through the target benefits of each preset action, the difference between outputting the preset action and not outputting the preset action can be intuitively compared. Compared with only calculating the first benefit of outputting the preset action, the target benefit also takes into account the second benefit of not outputting the preset action, thereby improving the comprehensiveness and rationality of the intelligent agent's decision-making.

[0057] In some embodiments, determining the target benefit of the target agent outputting a preset action based on the target result prediction model includes:

[0058] Based on the target result prediction model, predicting a first target state obtained by the target agent outputting the preset action in the current environment, and a second target state obtained by not outputting the preset action;

[0059] The first benefit is calculated according to the first target state, and the second benefit is calculated according to the second target state, and the target benefit is determined according to the difference obtained by subtracting the second benefit from the first benefit.

[0060] Exemplarily, a target result prediction model is used to predict a first target state obtained by outputting a preset action and a second target state obtained by not outputting a preset action. The target state may include, for example, the agent's experience score, level score, physical strength score, health score, etc. in the game.

[0061] Exemplarily, according to the correspondence between the target state and the benefit, the first benefit corresponding to the first target state and the second benefit corresponding to the second target state are determined. Specifically, assuming that the first target state obtained by outputting the preset action is action, and the second target state obtained by not outputting the preset action is ~action, then the first benefit corresponding to the first target state is Q(action), and the second benefit corresponding to the second target state is Q(~action), then the target benefit P(action) = Q(action)-Q(~action).

[0062] Step S104: Determine the target action output by the target agent according to the target benefits of each of the preset actions.

[0063] Exemplarily, a preset action with the highest target benefit is determined as the target action to be output by the target intelligent agent, wherein the target intelligent agent is an intelligent agent controlled according to the decision-making method for an intelligent agent provided in an embodiment of the present application.

[0064] Of course, it is not limited to this. The target action can also be determined from preset actions with target benefits higher than preset benefits according to a certain target strategy to ensure the flexibility of the target action.

[0065] Exemplarily, since the decision-making method of the intelligent agent provided in the embodiment of the present application calculates the first benefit and the second benefit for each preset action respectively, the user can intuitively understand the output results predicted by each preset action and the advantages of the output target action, thereby improving the interpretability of the intelligent agent's decision.

[0066] Please refer to Figure 2 , Figure 2 A schematic block diagram of the implementation process of a decision-making method for an intelligent agent provided in an embodiment of the present application.

[0067] like Figure 2 As shown, multiple runners are synchronously run in the running device, and the interaction data generated for training the model (such as Transformer) is stored in the data cache pool, and the model extracts the interaction data from the data cache pool for training. After the model training is completed, the first benefits and the second benefits of multiple preset actions are calculated respectively, so as to determine the target benefit according to the difference between the first benefit and the second benefit, so as to determine the target action from the preset actions according to the target benefit.

[0068] See also Figure 3 , Figure 3 It is a schematic diagram of a decision-making device of an intelligent agent provided in one embodiment of the present application. The decision-making device of the intelligent agent can be configured in a server or a terminal to execute the aforementioned decision-making method of the intelligent agent.

[0069] like Figure 3As shown, the decision-making device of the intelligent agent includes: an interaction data generation module 110, a prediction model training module 120, a target benefit calculation module 130, and a target action determination module 140.

[0070] An interaction data generating module 110 is used to control a plurality of preset agents to interact in a preset environment based on a random strategy, and obtain interaction data between the preset agents and the preset environment;

[0071] A prediction model training module 120, used to train a preset result prediction model according to the interaction data until a target result prediction model is obtained;

[0072] A target benefit calculation module 130, for determining a target benefit of a target agent outputting a preset action based on the target result prediction model, wherein the target benefit is the difference between a first benefit of the target agent outputting the preset action in the current environment and a second benefit of not outputting the preset action;

[0073] The target action determination module 140 is used to determine the target action output by the target agent according to the target benefits of each of the preset actions.

[0074] The decision-making method of the intelligent agent provided in the embodiment of the present application controls multiple preset intelligent agents to interact in a preset environment based on a random strategy, and obtains the interaction data between the preset intelligent agent and the preset environment; trains the preset result prediction model according to the interaction data until the target result prediction model is obtained; determines the target benefit of the target intelligent agent outputting the preset action based on the target result prediction model, and the target benefit is the difference between the first benefit of the target intelligent agent outputting the preset action in the current environment and the second benefit of not outputting the preset action; determines the target action output by the target intelligent agent according to the target benefit of each preset action. Compare the benefits obtained by outputting and not outputting the preset action to determine the best target action, thereby improving the rationality, comprehensiveness and explainability of the intelligent agent's decision.

[0075] The method and apparatus of the present application can be used in many general or special computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0076] Exemplarily, the above-mentioned decision-making method of the intelligent agent can be implemented in the form of a computer program, which can be used in Figure 4 Runs on the computer device shown.

[0077] See also Figure 4 , Figure 4 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application.

[0078] like Figure 4 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and an internal memory.

[0079] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any decision-making method of an intelligent agent.

[0080] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0081] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute the decision-making method of any intelligent agent.

[0082] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0083] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0084] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0085] Controlling a plurality of preset intelligent agents to interact in a preset environment based on a random strategy, and obtaining interaction data between the preset intelligent agents and the preset environment;

[0086] According to the interaction data, a preset result prediction model is trained until a target result prediction model is obtained;

[0087] Determine, based on the target result prediction model, a target benefit of the target agent outputting a preset action, wherein the target benefit is the difference between a first benefit of the target agent outputting the preset action in the current environment and a second benefit of not outputting the preset action;

[0088] According to the target benefits of each of the preset actions, the target action output by the target agent is determined.

[0089] In one embodiment, when the processor implements the random strategy-based control of multiple preset agents to interact in a preset environment and obtains the interaction data between the preset agents and the preset environment, it is used to implement:

[0090] Storing the interaction data of the plurality of preset agents running synchronously into a data cache pool;

[0091] The step of training a preset result prediction model according to the interaction data includes:

[0092] When the preset result prediction model is trained, the interaction data is randomly extracted from the data cache pool.

[0093] In one embodiment, when the processor is implementing the target benefit of the target agent outputting a preset action based on the target result prediction model, it is used to implement:

[0094] Based on the target result prediction model, predicting a first target state obtained by the target agent outputting the preset action in the current environment, and a second target state obtained by not outputting the preset action;

[0095] The first benefit is calculated according to the first target state, and the second benefit is calculated according to the second target state, and the target benefit is determined according to the difference obtained by subtracting the second benefit from the first benefit.

[0096] In one embodiment, when the processor implements the random strategy-based control of multiple preset agents to interact in a preset environment and obtains the interaction data between the preset agents and the preset environment, it is used to implement:

[0097] Randomly sampling multiple preset strategies to determine the random strategy corresponding to the preset agent;

[0098] Based on the random strategy, control the preset agent to output a current action to interact with the preset environment;

[0099] The current action output by the preset agent is obtained, and the first state data before the current action is output, and the second state data after the current action is output.

[0100] In one embodiment, the processor, when training a preset result prediction model according to the interaction data until a target result prediction model is obtained, is used to implement:

[0101] The preset result prediction model is trained according to the first state data, the current action and the second state data until the target result prediction model is obtained.

[0102] In one embodiment, when the processor trains the preset result prediction model according to the first state data, the current action, and the second state data until the target result prediction model is obtained, it is used to implement:

[0103] Based on the preset result prediction model, according to the first state data and the current action, predict the state after outputting the current action to obtain target state data;

[0104] Adjusting the preset result prediction model according to the target state data and the second state data;

[0105] When the mean square error between the target state data and the second state data meets a preset condition, the target result prediction model is obtained.

[0106] In one embodiment, when the processor adjusts the preset result prediction model according to the target state data and the second state data, it is used to implement:

[0107] Starting from the output layer of the preset result prediction model, the mean square error is derived with respect to the model parameters of each layer of the preset result prediction model to obtain the gradient of each layer of the preset result prediction model;

[0108] According to the gradient, the parameters of each layer of the preset result prediction model are updated.

[0109] In one embodiment, when the processor obtains the target result prediction model when the mean square error between the target state data and the second state data satisfies a preset condition, it is used to implement:

[0110] When the rate of change of the mean square error between the target state data and the second state data is less than a preset threshold, it is determined that the target result prediction model is obtained.

[0111] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and brevity of description, the specific working process of the above-mentioned description of the intelligent agent's decision-making can refer to the corresponding process in the aforementioned intelligent agent's decision-making method embodiment, and will not be repeated here.

[0112] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the decision-making method of the intelligent agent of the present application.

[0113] The computer-readable storage medium may be an internal storage unit of the robot described in the above embodiments, such as a hard disk or memory of the robot. The computer-readable storage medium may also be an external storage device of the robot, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the robot.

[0114] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0115] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0116] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A decision-making method for an intelligent agent, characterized in that: The method comprises: Controlling a plurality of preset intelligent agents to interact in a preset environment based on a random strategy, and obtaining interaction data between the preset intelligent agents and the preset environment; According to the interaction data, a preset result prediction model is trained until a target result prediction model is obtained; Determine, based on the target result prediction model, a target benefit of the target agent outputting a preset action, wherein the target benefit is the difference between a first benefit of the target agent outputting the preset action in the current environment and a second benefit of not outputting the preset action; According to the target benefits of each of the preset actions, the target action output by the target agent is determined.

2. The decision-making method of an intelligent agent according to claim 1, characterized in that: The method of controlling a plurality of preset agents to interact in a preset environment based on a random strategy and obtaining interaction data between the preset agents and the preset environment includes: Storing the interaction data of the plurality of preset agents running synchronously into a data cache pool; The step of training a preset result prediction model according to the interaction data includes: When the preset result prediction model is trained, the interaction data is randomly extracted from the data cache pool.

3. The decision-making method of an intelligent agent according to claim 1, characterized in that: The step of determining the target benefit of the target agent outputting a preset action based on the target result prediction model includes: Based on the target result prediction model, predicting a first target state obtained by the target agent outputting the preset action in the current environment, and a second target state obtained by not outputting the preset action; The first benefit is calculated according to the first target state, and the second benefit is calculated according to the second target state, and the target benefit is determined according to the difference obtained by subtracting the second benefit from the first benefit.

4. The decision-making method of an intelligent agent according to claim 1, characterized in that: The method of controlling a plurality of preset agents to interact in a preset environment based on a random strategy and obtaining interaction data between the preset agents and the preset environment includes: Randomly sampling multiple preset strategies to determine the random strategy corresponding to the preset agent; Based on the random strategy, control the preset agent to output a current action to interact with the preset environment; The current action output by the preset agent is obtained, and the first state data before the current action is output, and the second state data after the current action is output.

5. The decision-making method of an intelligent agent according to claim 4, characterized in that: The step of training a preset result prediction model according to the interaction data until a target result prediction model is obtained includes: The preset result prediction model is trained according to the first state data, the current action and the second state data until the target result prediction model is obtained.

6. The decision-making method of an intelligent agent according to claim 5, characterized in that: The step of training the preset result prediction model according to the first state data, the current action, and the second state data until the target result prediction model is obtained includes: Based on the preset result prediction model, according to the first state data and the current action, predict the state after outputting the current action to obtain target state data; Adjusting the preset result prediction model according to the target state data and the second state data; When the mean square error between the target state data and the second state data meets a preset condition, the target result prediction model is obtained.

7. The decision-making method of an intelligent agent according to claim 6, characterized in that: The adjusting the preset result prediction model according to the target state data and the second state data includes: Starting from the output layer of the preset result prediction model, the mean square error is derived with respect to the model parameters of each layer of the preset result prediction model to obtain the gradient of each layer of the preset result prediction model; According to the gradient, the parameters of each layer of the preset result prediction model are updated.

8. The decision-making method of an intelligent agent according to claim 6, characterized in that: When the mean square error between the target state data and the second state data satisfies a preset condition, obtaining the target result prediction model comprises: When the rate of change of the mean square error between the target state data and the second state data is less than a preset threshold, it is determined that the target result prediction model is obtained.

9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the decision-making method of the intelligent agent as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the decision-making method of an intelligent agent as described in any one of claims 1 to 7 are implemented.