Reward scheme determination method and device, electronic equipment and storage medium

By obtaining multiple sets of initial indicators and using reinforcement learning and diversity calculations, target reward schemes of diverse styles are automatically generated, solving the problem of low efficiency in the design of agent reward schemes in the existing technology, and achieving efficient multi-strategy formation of agents. sex.

CN118552045APending Publication Date: 2024-08-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310209463.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In existing reinforcement learning technology, the reward scheme design of the agent is inefficient, resulting in insufficient diversity of agents and low efficiency in strategy generation, making it impossible to effectively form multiple strategies.

Method used

By obtaining multiple groups of initial indicators, a reward scheme corresponding to each group of initial indicators is generated, and the prediction strategy is determined through reinforcement learning. Diversity calculation is used to determine the target prediction strategy from multiple prediction strategies, and a target reward scheme of diverse styles is automatically generated.

Benefits of technology

It reduces labor costs, improves the efficiency of multi-strategy formation of agents based on basic strength, ensures the diversity of target reward programs, and realizes the efficient formation of agents in multiple strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552045A
    Figure CN118552045A
Patent Text Reader

Abstract

The invention provides a reward scheme determination method and device, electronic equipment and a storage medium, and the method comprises the steps: firstly obtaining a plurality of groups of initial indexes, each group of initial indexes comprising initial values of a plurality of preset indexes; determining a first reward scheme corresponding to each group of initial indexes; determining a first prediction strategy corresponding to each first reward scheme through reinforcement learning, and obtaining a plurality of first prediction strategies corresponding to the plurality of first reward schemes; wherein the first prediction strategy comprises first prediction values of the plurality of preset indexes; and finally, determining a target prediction strategy from the plurality of first prediction strategies according to diversity calculation, and determining a first reward scheme corresponding to the target prediction strategy as a target reward scheme, thereby determining the target prediction strategy from the plurality of prediction strategies through diversity calculation. And the diversity of the finally obtained target reward scheme is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of reinforcement learning, and in particular to a method, device, electronic device and storage medium for determining a reward scheme. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] Reinforcement Learning (RL) is an artificial intelligence method for solving sequential decision-making problems. Different from the training methods of supervised learning and unsupervised learning, reinforcement learning obtains training samples through continuous interaction with the environment to iterate the optimal model. It is a semi-supervised learning method. Its main principle is that the intelligent agent (AI) perceives the current state (State) in the environment (Environment), takes corresponding actions (Action) according to the current policy (Policy) to interact with the environment and obtain feedback signals, i.e. rewards, and further adjusts its own behavior strategy according to the feedback rewards. The training cycle is repeated in this way until convergence, that is, the accumulated rewards are maximized or the ultimate goal of the task is achieved. In theory, an optimal behavior strategy can be generated. Among them, the ultimate goal of the task is generally set by adjusting the reward scheme, and a set of reward schemes can generally only produce one optimal strategy in reinforcement learning. In actual problems, there is more than one strategy to achieve the ultimate goal. For example, the strategy style to defeat the opponent in a competitive game can be conservative and aggressive, or it can be stable output.

[0004] However, current related technologies often face defects such as insufficient diversity of intelligent agents or inefficient generation of diverse strategies, which makes it impossible for intelligent agents to efficiently form multiple strategies while ensuring basic strength. Summary of the invention

[0005] In view of this, the purpose of this application is to propose a method, device, electronic device and storage medium for determining a reward scheme.

[0006] Based on the above purpose, this application provides a method for determining a reward scheme, including:

[0007] Acquire multiple groups of initial indicators; wherein each group of initial indicators includes initial values ​​of multiple preset indicators;

[0008] Determine the first reward scheme corresponding to each set of initial indicators;

[0009] Determine the first prediction strategy corresponding to each of the first reward schemes through reinforcement learning, and obtain multiple first prediction strategies corresponding to multiple first reward schemes; wherein the first prediction strategy includes the first prediction values ​​of the multiple preset indicators;

[0010] A target prediction strategy is determined from the plurality of first prediction strategies based on diversity calculation, and a first reward scheme corresponding to the target prediction strategy is determined as a target reward scheme.

[0011] Based on the same inventive concept, the exemplary embodiment of the present application further provides a device for determining a reward scheme, including:

[0012] An acquisition module is used to acquire multiple groups of initial indicators, wherein each group of initial indicators includes initial values ​​of multiple preset indicators;

[0013] A generation module generates a first reward scheme corresponding to each group of initial indicators based on the generator obtained through training;

[0014] A reinforcement learning module, which determines a first prediction strategy corresponding to the first reward scheme through reinforcement learning; wherein the first prediction strategy includes first prediction values ​​of the plurality of preset indicators;

[0015] A determination module determines a target prediction strategy from a plurality of the first prediction strategies based on diversity calculation, and determines a first reward scheme corresponding to the target prediction strategy as a target reward scheme.

[0016] Based on the same inventive concept, an exemplary embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method for determining the reward scheme as described above when executing the program.

[0017] Based on the same inventive concept, an exemplary embodiment of the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method for determining the reward scheme as described above.

[0018] From the above, it can be seen that the method, device, electronic device and storage medium for determining the reward scheme provided by the present application first obtain multiple groups of initial indicators; wherein each group of initial indicators includes the initial values ​​of multiple preset indicators; then determine the first reward scheme corresponding to each group of initial indicators; and determine the first prediction strategy corresponding to each of the first reward schemes through reinforcement learning, and obtain multiple first prediction strategies corresponding to multiple first reward schemes; wherein the first prediction strategy includes the first prediction values ​​of the multiple preset indicators; finally, determine the target prediction strategy from the multiple first prediction strategies according to diversity calculation, and determine the first reward scheme corresponding to the target prediction strategy as the target reward scheme, so that the target prediction strategy with diverse styles from each other is determined from the multiple prediction strategies through diversity calculation, thereby ensuring the diversity of the target reward scheme finally obtained, and further enabling the intelligent agent to efficiently form multiple strategies on the basis of having basic strength. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A flowchart of a method for determining a reward scheme according to an embodiment of the present application;

[0021] Figure 2 A flowchart of another method for determining a reward scheme according to an embodiment of the present application;

[0022] Figure 3 A schematic diagram of the structure of a device for determining a reward scheme for reinforcement learning according to an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the structure of a specific electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0025] According to the implementation mode of the present application, a method, system, electronic device and storage medium for determining a reward scheme are proposed.

[0026] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0027] The principles and spirit of the present application are explained in detail below with reference to several representative implementations of the present application. SUMMARY OF THE INVENTION

[0029] In reinforcement learning, adjusting rewards can indirectly change the agent's exploration space, thereby generating a variety of robust strategies. However, how to design a reward scheme has become one of the most critical issues in this type of method. In current related technologies, the reward schemes used to adjust agents are based on a large amount of manual operations, which consumes a lot of time and energy, and are highly dependent on expert experience. Therefore, the efficiency of the reward scheme is low, resulting in defects such as insufficient agent diversity or inefficient generation of diverse strategies.

[0030] In order to solve the above problems, this application provides a method for determining a reward scheme, which specifically includes:

[0031] First, multiple groups of initial indicators are obtained; wherein each group of initial indicators includes initial values ​​of multiple preset indicators; then, a first reward scheme corresponding to each group of initial indicators is generated according to the generator obtained through training; and a first prediction strategy corresponding to the first reward scheme is determined through reinforcement learning; wherein the first prediction strategy includes the first prediction values ​​of the multiple preset indicators; finally, a target prediction strategy is determined from multiple first prediction strategies according to diversity calculation, and the first reward scheme corresponding to the target prediction strategy is determined as the target reward scheme, so that multiple reward schemes are automatically generated by the generator obtained through training, which reduces a lot of labor costs, and a target prediction strategy with diverse styles is determined from multiple prediction strategies through diversity calculation, which ensures the diversity of the target reward scheme finally obtained, and further enables the intelligent agent to efficiently form multiple strategies on the basis of having basic strength.

[0032] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application are described in detail below.

[0033] Application Scenario Overview

[0034] In some specific application scenarios, the method for determining the reward scheme of the present application can be applied to various model trainings involving reinforcement learning. The application scenario includes at least one terminal. When there are multiple terminals, the multiple terminals can communicate through a network to achieve data transmission. Among them, the network can be a wired network or a wireless network, which is not specifically limited in the present application.

[0035] Optionally, in some implementations, the method for determining the reward scheme provided in the embodiments of the present application can be executed by a terminal. The terminal can be hardware or software. When the terminal is hardware, it can be implemented as a distributed terminal cluster consisting of multiple terminals, or it can be implemented as a single terminal. When the terminal is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. The embodiments of the present application do not specifically limit this.

[0036] An application may be installed and run on the terminal. For example, the application may be a game application, a social application, an image processing application, an instant messaging application, a shopping application, or a search application. The terminal may be, but is not limited to, a personal computer, a smart phone, a desktop computer, a game console, or a wearable device.

[0037] Optionally, the wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including hypertext mark-up language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure socket layer (SSL), transport layer security (TLS), virtual private network (VPN), and Internet protocol security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.

[0038] The following describes the method for determining the reward scheme according to the exemplary embodiment of the present application in conjunction with a specific application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.

[0039] Exemplary Methods

[0040] refer to Figure 1 The embodiment of the present application provides a method for determining a reward scheme, which can be performed by a training device. It is understandable that the training device can be implemented as software, or a combination of software and hardware. For example, the training device in the embodiment of the present application can be, but is not limited to, a server or a terminal device used by a user. The method includes the following steps:

[0041] S101, obtaining multiple groups of initial indicators; wherein each group of initial indicators includes initial values ​​of multiple preset indicators.

[0042] In specific implementation, the initial values ​​of multiple preset indicators for each group of initial indicators can be randomly generated. It is also possible to first design several groups of rewards based on multiple preset indicators, each group of rewards can generate a corresponding strategy, and then each strategy can correspond to a group of initial indicators.

[0043] It should be noted that multiple preset indicators can be set as needed, and there is no limitation on this. Optionally, multiple preset indicators can be set from the perspectives of competitiveness, state, action, function, and Turing test according to the style diversity requirements of the actual game scene. For example, in terms of state, the "movement" style of the game AI can be measured by calculating trajectory entropy. In terms of action, the timing of the key actions or skills (sequences) of the game AI can be calculated for the actual game scene to judge its behavior style, such as whether to "unleash the big move without thinking" at the beginning or "hide for a wave" before releasing it. The function aspect is reflected in the effect of the action. For example, the release of a skill by the game AI does not mean that it has caused damage. From this perspective, the actual skill efficiency and damage distribution can be judged to analyze its style.

[0044] S102, determining a first reward scheme corresponding to each group of initial indicators.

[0045] In specific implementation, after obtaining multiple groups of initial indicators, the first reward corresponding to each group of initial indicators is first determined to obtain multiple first reward schemes corresponding to the multiple groups of initial indicators.

[0046] In some embodiments, determining a first reward scheme corresponding to each group of initial indicators specifically includes:

[0047] The first reward scheme corresponding to each group of initial indicators is determined by a generator.

[0048] In specific implementation, after obtaining multiple sets of initial indicators, the multiple sets of initial indicators can be input into the generator to obtain the first reward scheme corresponding to each set of initial indicators. Optionally, the specific process of training the generator is not limited. Optionally, in order to improve the training efficiency of the generator, the generator can be trained by small sample learning and pre-training.

[0049] It should be noted that the producer in this embodiment can be a generator in the training process or a generator that has completed training, and there is no limitation on this. Since in this application, the target prediction strategy can be screened out from multiple first preset strategies through diversity calculation to obtain the target reward scheme corresponding to the target strategy, it is not necessarily required that the accuracy of the reward scheme generated by the generator reaches 100%. For example, the training goal of a generator is to be able to output 10 target reward schemes that meet the diversity calculation, but when the generator has not completed the training, it may only be able to output 3 target reward schemes that meet the diversity calculation. However, in this solution, since 3 target reward schemes can be screened out from the 10 reward schemes output, it is not necessarily necessary for the generator to be put into use after completing the training, so as to reduce the time spent on the generator training.

[0050] S103, determining a first prediction strategy corresponding to the first reward scheme through reinforcement learning; wherein the first prediction strategy includes first prediction values ​​of the plurality of preset indicators.

[0051] In specific implementation, the process of reinforcement learning is to constrain the behavior of the agent through the reward scheme so that it forms a strategy corresponding to the reward scheme. Therefore, the first prediction strategy corresponding to the first reward scheme can be determined through reinforcement learning.

[0052] It should be noted that each set of initial indicators can also be directly used as a strategy, but the initial values ​​of the multiple preset indicators corresponding to the strategy are not reinforced learning and are even randomly generated, so it is an inaccurate strategy.

[0053] S104: Determine a target prediction strategy from the plurality of first prediction strategies based on diversity calculation, and determine a first reward scheme corresponding to the target prediction strategy as a target reward scheme.

[0054] During specific implementation, the diversity among multiple first prediction strategies can be determined through diversity calculation, and the diversity refers to the degree of differentiation between each prediction strategy. The target prediction strategy determined from multiple first prediction strategies is the target prediction strategy that meets the differentiation. For example, if a group of reward schemes generates three prediction strategies, the index values ​​of the three prediction strategies in terms of damage index are 20, 50, and 80 respectively, and the range value of the damage index is set to 0-100, and the index values ​​corresponding to the three prediction strategies generated by another group of reward schemes are 40, 50, and 60 respectively, then the former scheme has better diversity in damage because the sub-strategy index values ​​it generates are more widely distributed within the range of the total value. It should be noted that the damage index here is one of the multiple preset indicators of the prediction strategy.

[0055] It should be noted that since the diversity calculation compares the differences between multiple prediction strategies, the number of target prediction strategies determined from the multiple first prediction strategies is at least 2, that is, there are large differences between two target prediction strategies, which meets the diversity calculation requirements.

[0056] In some embodiments, determining a target prediction strategy from a plurality of first prediction strategies based on diversity calculation specifically includes:

[0057] Determining a first diversity dispersion coefficient of each preset indicator in a plurality of the first prediction strategies;

[0058] A target prediction strategy is determined from a plurality of first prediction strategies based on the first diversity dispersion coefficient.

[0059] In some embodiments, determining a first diversity dispersion coefficient of each preset indicator in a plurality of the first prediction strategies specifically includes:

[0060] For each preset indicator of the multiple preset indicators, the first prediction value of the preset indicator corresponding to each first prediction strategy is normalized; based on the first prediction values ​​of all normalized preset indicators, the exponential distribution of the preset indicator in the multiple first prediction strategies is obtained, and the uniform distribution of the preset indicator in the multiple first prediction strategies is determined; based on the Euclidean distance between the exponential distribution and the uniform distribution, the first diversity dispersion coefficient of the preset indicator in the multiple first prediction strategies is determined.

[0061] In specific implementation, for n strategies and m preset indicators, taking the jth preset indicator as an example, the first prediction value of the corresponding different first prediction strategies is [a 1.j ,…,a n,j ], divide the interval from 0 to 1 into n parts, and [a 1.j ,…,an,j ] is divided into these intervals (normalized) and the frequency is calculated to obtain the corresponding exponential distribution [p 1.j ,…,p n,j ], and determine the corresponding uniform distribution as Then, the Euclidean distance between the exponential distribution and the uniform distribution is calculated, and the preset index is determined according to the Euclidean distance.

[0062] In some embodiments, the first diversity dispersion coefficient of each preset indicator in the plurality of the first prediction strategies is determined by the following formula:

[0063]

[0064] Among them, y i represents the diversity dispersion coefficient of the i-th preset indicator in the n first prediction strategies, d i It represents the Euclidean distance between the exponential distribution and the uniform distribution of the i-th preset indicator in n first prediction strategies, and n represents the number of the first prediction strategies.

[0065] It should be noted that when calculating the Euclidean distance, it is assumed that a1, a2, a3…a n is the exponential distribution corresponding to a preset indicator in n first prediction strategies, where a1+a2+a3+…+an=1, and the corresponding uniform distribution is: At this time, the Euclidean distance between the exponential distribution and the uniform distribution is: in,

[0066] Since a1+a2+a3+…+an=1, the maximum value of d is: And when When , the minimum value of d is 0. In order to ensure that the value of the first diversity dispersion coefficient is between 0 and 1, d is used with The ratio of is taken as the first diversity dispersion coefficient.

[0067] In some embodiments, determining a target prediction strategy from a plurality of first prediction strategies based on the first diversity dispersion coefficient specifically includes:

[0068] Obtaining a weight of each of the first diversity dispersion coefficients, and determining a first weighted average of a plurality of the first diversity dispersion coefficients;

[0069] In response to determining that the first weighted average value is greater than or equal to a preset threshold, determining each of the plurality of first prediction strategies as the target prediction strategy;

[0070] In response to determining that the first weighted average value is less than the preset threshold, selecting a first prediction strategy to be determined from the plurality of preset strategies, determining a second diversity dispersion coefficient of each preset indicator in the plurality of first prediction strategies to be determined, and determining a second weighted average value of the plurality of second diversity dispersion coefficients;

[0071] In response to determining that the second weighted average value is greater than or equal to the preset threshold, each of the plurality of first prediction strategies to be determined is determined as the target prediction strategy.

[0072] It should be noted that when it is determined that the second weighted average value is less than the preset threshold value, it is necessary to select multiple new first prediction strategies from the multiple first prediction strategies to be judged again, and determine the third diversity dispersion coefficient of each preset indicator in the multiple new first prediction strategies, and determine the second weighted average value of the multiple third diversity dispersion coefficients. That is, in this embodiment, it is necessary to continuously judge the new diversity dispersion coefficient until the target prediction strategy is found.

[0073] In some embodiments, a plurality of first prediction strategies to be determined are selected from the plurality of preset strategies, specifically including:

[0074] A preset strategy is randomly deleted from the multiple preset strategies to obtain the multiple first prediction strategies to be determined.

[0075] Considering that the number of target prediction strategies determined from the plurality of first prediction strategies does not meet the needs of the user, in some embodiments, after determining the target prediction strategy from the plurality of first prediction strategies based on the diversity calculation, the method further includes:

[0076] In response to determining that the number of all the target prediction strategies is less than a preset number, multiple second reward schemes are determined, and a second prediction strategy corresponding to the second reward scheme is determined through the reinforcement learning; wherein the second prediction strategy includes the second prediction values ​​of the multiple preset indicators; optionally, the preset number can be set as needed and is not limited to this.

[0077] A target prediction strategy is determined from a plurality of the second prediction strategies based on diversity calculation, and a second reward scheme corresponding to the target prediction strategy is determined as a target reward scheme.

[0078] In some embodiments, multiple second reward schemes are determined, specifically including:

[0079] A plurality of second reward schemes are determined by a generator.

[0080] In specific implementation, multiple randomly generated groups of initial indicators can be input into the generator, and then the generator generates multiple second reward schemes. In order to ensure that the multiple second reward schemes generated by the generator can meet the diversity calculation as much as possible, the value range of the initial values ​​of multiple preset indicators of each group of initial indicators can be set (the value range of different initial indicators is different), and then the group of initial indicators is randomly generated within the value range.

[0081] In some embodiments, before determining the plurality of second reward schemes by the generator, the method further comprises:

[0082] Calculating the loss function value of the first prediction strategy and the target group initial indicator corresponding to the first prediction strategy; wherein the first reward scheme corresponding to each group of initial indicators is determined by the generator;

[0083] The structural parameters of the generator are adjusted based on the loss function value to improve the accuracy of the generator in generating the second reward scheme corresponding to the target reward scheme.

[0084] It should be noted that, in order to improve the efficiency of the generator in generating the target reward scheme and reduce the number of diversity calculations, before determining multiple second reward schemes through the generator, the function loss can be calculated by the first preset strategy and initial indicators corresponding to the first reward scheme generated by the generator last time, and the loss function value can be obtained. Then, the structural parameters of the generator are adjusted by the loss function value to improve the accuracy of the generator in generating the second reward scheme corresponding to the target reward scheme. Optionally, when calculating the loss function, the loss function can be selected as needed, without limitation, such as the cross entropy loss function.

[0085] In some embodiments, determining a target prediction strategy from a plurality of the second prediction strategies based on diversity calculation specifically includes:

[0086] Determine a mixed diversity dispersion coefficient after mixing a plurality of the second prediction strategies corresponding to each preset indicator and the target prediction strategy;

[0087] A target prediction strategy is determined from a plurality of the second prediction strategies based on the mixed diversity dispersion coefficient corresponding to each prediction indicator.

[0088] In the specific implementation, considering that the ultimate goal of this scheme is to obtain multiple target reward schemes that meet the diversity requirements of each other, after obtaining the second prediction strategy, first determine the mixed diversity dispersion coefficient of the multiple second prediction strategies corresponding to each preset indicator and the target prediction strategy, that is, determine the diversity dispersion coefficient of each preset indicator in the mixed strategy composed of multiple second prediction strategies and all current target prediction strategies. Then determine a new target prediction strategy from the multiple second prediction strategies according to the mixed diversity dispersion coefficient corresponding to each prediction indicator.

[0089] In order to ensure the winning rate of the game while determining the diversity, in some embodiments, determining the first diversity dispersion coefficient of each preset indicator in the plurality of the first prediction strategies specifically includes:

[0090] In response to determining that the current preset indicator is a winning rate indicator, the diversity dispersion coefficients of multiple first prediction strategies corresponding to the current preset indicator are determined based on a preset basic winning rate and a first prediction value of the current preset indicator corresponding to each of the first prediction strategies.

[0091] refer to Figure 2 , is a flow chart of another method for determining a reward scheme according to an embodiment of the present application, wherein the generator may include a discriminator and a generator, and the generator acts as a meta-dispatcher to distribute different reward schemes (g1,…,g2) to different strategies. n ), input a set of indicators and output a corresponding reward plan. At the beginning, first input n groups of initial indicators to the generator, and then the generator generates n reward plans, namely reward plan 1 to reward plan n. Each reward plan can obtain a strategy through reinforcement learning, namely prediction strategy 1 to prediction strategy n. Then the prediction indicators of the n prediction strategies are combined to calculate the diversity of the indicators, and according to the diversity calculation results, the target prediction strategy is determined from the n prediction strategies. At this time, the reward plan corresponding to the target prediction strategy can be output as the target reward plan. At the same time, the parameters of the generator can be adjusted through n prediction strategies and n groups of initial indicators, so that the efficiency of the generator in generating the target reward plan is improved. Then the generator with improved efficiency generates new n reward plans, and continuously follows Figure 2 The process loops in the direction of the arrow until enough reward schemes corresponding to the target prediction strategy are obtained.

[0092] The method for determining the reward scheme provided in the present application first obtains multiple groups of initial indicators; wherein each group of initial indicators includes initial values ​​of multiple preset indicators; then generates a first reward scheme corresponding to each group of initial indicators according to a generator; and determines a first prediction strategy corresponding to the first reward scheme through reinforcement learning; wherein the first prediction strategy includes the first prediction values ​​of the multiple preset indicators; finally, determines a target prediction strategy from multiple first prediction strategies according to diversity calculation, and determines the first reward scheme corresponding to the target prediction strategy as the target reward scheme, so that the generator obtained through training automatically generates multiple reward schemes, reducing a lot of labor costs, and determines the target prediction strategy from multiple prediction strategies through diversity calculation, ensuring that the obtained target reward scheme can realize the diversity training of the intelligent body, and further enables the intelligent body to efficiently form multiple strategies on the basis of having basic strength.

[0093] Exemplary Devices

[0094] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a device for determining a reward scheme.

[0095] refer to Figure 3 , the device for determining the reward scheme of the reinforcement learning comprises:

[0096] The acquisition module 201 acquires multiple groups of initial indicators, wherein each group of initial indicators includes initial values ​​of multiple preset indicators;

[0097] A generating module 202 determines a first reward scheme corresponding to each group of initial indicators;

[0098] A reinforcement learning module 203 determines the first prediction strategy corresponding to each of the first reward schemes through reinforcement learning, and obtains a plurality of the first prediction strategies corresponding to the plurality of the first reward schemes; wherein the first prediction strategy includes the first prediction values ​​of the plurality of preset indicators;

[0099] The determination module 204 determines a target prediction strategy from the plurality of first prediction strategies based on diversity calculation, and determines a first reward scheme corresponding to the target prediction strategy as a target reward scheme.

[0100] For the convenience of description, the above system is described by dividing the functions into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0101] The system of the above embodiment is used to implement the determination method of the corresponding reward scheme in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0102] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for determining the reward scheme described in any of the above embodiments is implemented.

[0103] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0104] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0105] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0106] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0107] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0108] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0109] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0110] The electronic device of the above embodiment is used to implement the determination method of the corresponding reward scheme in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0111] Exemplary Program Products

[0112] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for determining the reward scheme as described in any of the above embodiments.

[0113] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0114] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute a method for determining a reward scheme as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0115] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; based on the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0116] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0117] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0118] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A method for determining a reward scheme, characterized in that: include: Acquire multiple groups of initial indicators; wherein each group of initial indicators includes initial values ​​of multiple preset indicators; Determine the first reward scheme corresponding to each set of initial indicators; Determine the first prediction strategy corresponding to each of the first reward schemes through reinforcement learning, and obtain multiple first prediction strategies corresponding to multiple first reward schemes; wherein the first prediction strategy includes the first prediction values ​​of the multiple preset indicators; A target prediction strategy is determined from the plurality of first prediction strategies based on diversity calculation, and a first reward scheme corresponding to the target prediction strategy is determined as a target reward scheme.

2. The method according to claim 1, characterized in that Determining a target prediction strategy from a plurality of first prediction strategies based on diversity calculation specifically includes: Determining a first diversity dispersion coefficient of each preset indicator in a plurality of the first prediction strategies; A target prediction strategy is determined from a plurality of first prediction strategies based on the first diversity dispersion coefficient.

3. The method according to claim 2, characterized in that Determining a first diversity dispersion coefficient of each preset indicator in a plurality of the first prediction strategies specifically includes: For each preset indicator of the multiple preset indicators, the first prediction value of the preset indicator corresponding to each first prediction strategy is normalized; based on the first prediction values ​​of all normalized preset indicators, the exponential distribution of the preset indicator in the multiple first prediction strategies is obtained, and the uniform distribution of the preset indicator in the multiple first prediction strategies is determined; based on the Euclidean distance between the exponential distribution and the uniform distribution, the first diversity dispersion coefficient of the preset indicator in the multiple first prediction strategies is determined.

4. The method according to claim 3, characterized in that Determining a target prediction strategy from a plurality of first prediction strategies based on the first diversity dispersion coefficient specifically includes: Obtaining a weight of each of the first diversity dispersion coefficients, and determining a first weighted average of a plurality of the first diversity dispersion coefficients; In response to determining that the first weighted average value is greater than or equal to a preset threshold, determining each of the plurality of first prediction strategies as the target prediction strategy; In response to determining that the first weighted average value is less than the preset threshold, selecting a first prediction strategy to be determined from the plurality of preset strategies, determining a second diversity dispersion coefficient of each preset indicator in the plurality of first prediction strategies to be determined, and determining a second weighted average value of the plurality of second diversity dispersion coefficients; In response to determining that the second weighted average value is greater than or equal to the preset threshold, each of the plurality of first prediction strategies to be determined is determined as the target prediction strategy.

5. The method according to claim 4, characterized in that Screening out a plurality of first prediction strategies to be determined from the plurality of preset strategies specifically includes: A preset strategy is randomly deleted from the multiple preset strategies to obtain the multiple first prediction strategies to be determined.

6. The method according to claim 3, characterized in that The first diversity dispersion coefficient of each preset indicator in the plurality of the first prediction strategies is determined by the following formula: Among them, y i represents the diversity dispersion coefficient of the i-th preset indicator in the n first prediction strategies, d i It represents the Euclidean distance between the exponential distribution and the uniform distribution of the i-th preset indicator in n first prediction strategies, and n represents the number of the first prediction strategies.

7. The method according to claim 4, characterized in that After determining the target prediction strategy from the plurality of first prediction strategies based on the diversity calculation, the method further includes: In response to determining that the number of all the target prediction strategies is less than a preset number, a plurality of second reward schemes are determined, and a second prediction strategy corresponding to the second reward scheme is determined through the reinforcement learning; wherein the second prediction strategy includes second prediction values ​​of the plurality of preset indicators; A target prediction strategy is determined from a plurality of the second prediction strategies based on diversity calculation, and a second reward scheme corresponding to the target prediction strategy is determined as a target reward scheme.

8. The method according to claim 7, characterized in that Determining a target prediction strategy from a plurality of the second prediction strategies based on diversity calculation specifically includes: Determine a mixed diversity dispersion coefficient after mixing a plurality of the second prediction strategies corresponding to each preset indicator and the target prediction strategy; A target prediction strategy is determined from a plurality of the second prediction strategies based on the mixed diversity dispersion coefficient corresponding to each prediction indicator.

9. The method according to claim 1, characterized in that: Determine the first reward plan corresponding to each set of initial indicators, including: The first reward scheme corresponding to each group of initial indicators is determined by a generator.

10. The method according to claim 7, characterized in that Identify multiple second incentive plans, including: A plurality of second reward schemes are determined by a generator.

11. The method according to claim 10, characterized in that Before determining the plurality of second reward schemes by the generator, the method further includes: Calculating the loss function value of the first prediction strategy and the target group initial indicator corresponding to the first prediction strategy; wherein the first reward scheme corresponding to each group of initial indicators is determined by the generator; The structural parameters of the generator are adjusted based on the loss function value to improve the accuracy of the generator in generating the second reward scheme corresponding to the target reward scheme.

12. The method according to claim 2, characterized in that: Determining a first diversity dispersion coefficient of each preset indicator in a plurality of the first prediction strategies specifically includes: In response to determining that the current preset indicator is a winning rate indicator, the diversity dispersion coefficient of the current preset indicator in multiple first prediction strategies is determined based on a preset basic winning rate and a first prediction value of the current preset indicator corresponding to each of the first prediction strategies.

13. A device for determining a reward scheme, characterized in that: include: An acquisition module is used to acquire multiple groups of initial indicators, wherein each group of initial indicators includes initial values ​​of multiple preset indicators; A generation module determines a first reward scheme corresponding to each set of initial indicators; A reinforcement learning module, which determines the first prediction strategy corresponding to each of the first reward schemes through reinforcement learning, and obtains a plurality of the first prediction strategies corresponding to the plurality of the first reward schemes; wherein the first prediction strategy includes the first prediction values ​​of the plurality of preset indicators; A determination module determines a target prediction strategy from a plurality of the first prediction strategies based on diversity calculation, and determines a first reward scheme corresponding to the target prediction strategy as a target reward scheme.

14. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 12 when executing the program.

15. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 12.