Card game deep learning training method and system based on adaptive strategy adjustment
By using value neural network and adaptive loss function to optimize strategy training in card games, the problem of slow training speed of the deep Monte Carlo method is solved and faster training and convergence speeds are achieved.
Patent Information
- Application Number
- CN202410614584.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-17
AI Technical Summary
Existing deep Monte Carlo methods are slow to train in card games and difficult to control the similarity between state actions, resulting in misleading strategy selection and slow convergence.
The value neural network is used to build the basic model of the strategy, obtain empirical knowledge, establish adaptive empirical knowledge fusion regular terms and adaptive state action reduction loss calculation rules, update model parameters through self-game method combined with gradient descent method, and optimize strategy training.
It accelerates the training speed of card games and improves the convergence speed, making strategy learning more efficient.
Smart Images

Figure CN118657189A
Abstract
Description
Technical Field
[0001] The present invention relates to artificial intelligence technology, and in particular to a card game deep learning training method and system based on adaptive strategy adjustment. Background Art
[0002] In recent years, intelligent decision-making has become an important direction of artificial intelligence research, and many efficient algorithms and AI systems have emerged. Among them, dealing with imperfect information games is particularly difficult because it involves uncertainty and multiple complexities in the decision-making process. Card games have become the main platform for studying such games due to their typical imperfect information characteristics, as well as clear and intuitive state actions and game rules.
[0003] The current methods for solving imperfect information game problems mainly include game equilibrium solving methods and deep reinforcement learning methods. Both methods have their own advantages and disadvantages for different specific scenarios. Currently, many top card game AIs are designed based on these algorithms. For card games with complex state spaces, deep reinforcement learning algorithms are often used for offline self-game training to obtain a better strategy, which is then used to make decisions in the online confrontation stage. The Deep Monte Carlo (DMC) method is a commonly used training method in card games, but it has some problems. On the one hand, since DMC uses a self-game method, the Q value is unstable in the early stage of training, so the choice of strategy will be misleading and the training speed will be slow; on the other hand, DMC is difficult to control the similarity between state actions. For a large number of state-action pairs, continuous sampling and learning are required, which will also lead to slow convergence and slow training speed. Summary of the invention
[0004] In view of the problems existing in the prior art, the purpose of the present invention is to provide a card game deep learning training method and system based on adaptive strategy adjustment with faster training speed.
[0005] In order to achieve the above-mentioned object of the invention, the card game deep learning training method based on adaptive strategy adjustment described in the present invention comprises the following steps:
[0006] Step 1: Use a value neural network to construct a basic strategy model for card games, where the basic strategy model is used to predict the reward value of executing each game action in each game state in the card game;
[0007] Step 2: Acquire empirical knowledge of card games, where the empirical knowledge is a set of state-action pairs with the largest reward value among game actions executed in each game state;
[0008] Step 3: Establish a calculation rule for the adaptive experience knowledge fusion regularization term, where the adaptive experience knowledge fusion regularization term is the difference loss between all state-action pairs and the experience knowledge;
[0009] Step 4: Establish an adaptive state-action simplification loss calculation rule, where the adaptive state-action simplification loss is the difference loss between the difference between the cumulative rewards obtained at the end of the game when any two different state-action pairs are executed and the similarity between the two state-action pairs;
[0010] Step 5: Sample the basic model of the strategy through self-game, and use the total loss function including self-game loss and adaptive strategy adjustment loss and gradient descent method to update the model parameters to complete the training; wherein the adaptive strategy adjustment loss includes an adaptive experience knowledge fusion regularization term and an adaptive state-action reduction loss.
[0011] Furthermore, the empirical knowledge is specifically a state-action pair that satisfies the following rules:
[0012] F={(s,f(s))|Q(s,f(s))≥Q(s,a)},svS,f(s)∈A,a∈A
[0013] Where F is the empirical knowledge, f(s) is the game action executed when the reward value is the largest under the game state s, Q(s,f(s)) is the reward value corresponding to executing the game action f(s) under the game state s, Q(s,a) is the reward value corresponding to executing the game action a under the game state s, S is the game state set, and A is the game action set.
[0014] Furthermore, the adaptive empirical knowledge fusion regularization term calculation rule is specifically as follows:
[0015] R E (θ)=E[max(Q(s,a|θ)-Q(s,f(s)|θ),0)]
[0016] In the formula, R E (θ) is the regularization term for adaptive empirical knowledge fusion, and E[] represents averaging.
[0017] Furthermore, the adaptive state-action reduction loss calculation rule is specifically as follows:
[0018]
[0019]
[0020] In the formula, is the adaptive state-action reduction loss, S is the game state set, A is the game action set, s i ,s j is the i,jth game state in S, a i ,a jis the i,jth game action in A, and i≠j, G(s i ,a i ) is in game state s i Execute game action a i The cumulative reward obtained by the end of the game, G(s j ,a j ) is in game state s j Execute game action a j The cumulative reward obtained by the end of the game, U(φ(s i ,a i ),φ(s j ,a j )) is the state-action pair (s i ,a i ) and (s j ,a j ), φ() is the model parameter of the representation layer in the value neural network, β is the hyperparameter, δ() means finding the angle, and ||||2 means the 2-norm.
[0021] Furthermore, the adaptive strategy adjusts the loss specifically as follows:
[0022]
[0023] In the formula, Adjust the loss for the adaptive strategy, α E and α S are the weights of the corresponding losses, R E (θ) is the regularization term for adaptive empirical knowledge fusion, is the adaptive state-action reduction loss.
[0024] The card game deep learning training system based on adaptive strategy adjustment of the present invention comprises:
[0025] A model building module, used to build a basic strategy model of a card game using a value neural network, wherein the basic strategy model is used to predict the reward value of executing each game action in each game state in the card game;
[0026] An experience knowledge acquisition module, used to acquire experience knowledge of card games, wherein the experience knowledge is a set of state-action pairs with the largest reward value among game actions executed in each game state;
[0027] A first calculation rule establishment module is used to establish a calculation rule for an adaptive experience knowledge fusion regularization term, wherein the adaptive experience knowledge fusion regularization term is a difference loss between all state-action pairs and experience knowledge;
[0028] A second calculation rule establishment module is used to establish an adaptive state-action simplification loss calculation rule, wherein the adaptive state-action simplification loss is a difference loss between a difference between cumulative rewards obtained at the end of a game when any two different state-action pairs are executed and a similarity between the two state-action pairs;
[0029] A training module is used to sample the basic strategy model through self-game, and use the total loss function including self-game loss and adaptive strategy adjustment loss and gradient descent method to update the model parameters to complete the training; wherein the adaptive strategy adjustment loss includes an adaptive experience knowledge fusion regularization term and an adaptive state-action reduction loss.
[0030] Furthermore, the empirical knowledge is specifically a state-action pair that satisfies the following rules:
[0031] F={(s,f(s))|Q(s,f(s))≥Q(s,a)},s∈S,f(s)∈A,a∈A
[0032] Where F is the empirical knowledge, f(s) is the game action executed when the reward value is the largest under the game state s, Q(s,f(s)) is the reward value corresponding to executing the game action f(s) under the game state s, Q(s,a) is the reward value corresponding to executing the game action a under the game state s, S is the game state set, and A is the game action set.
[0033] Furthermore, the adaptive empirical knowledge fusion regularization term calculation rule is specifically as follows:
[0034] R E (θ)=E[max(Q(s,a|θ)-Q(s,f(s)|θ),0)]
[0035] In the formula, R E (θ) is the regularization term for adaptive empirical knowledge fusion, and E[] represents averaging.
[0036] Furthermore, the adaptive state-action reduction loss calculation rule is specifically as follows:
[0037]
[0038]
[0039] In the formula, is the adaptive state-action reduction loss, S is the game state set, A is the game action set, s i ,s j is the i,jth game state in S, a i ,a j is the i,jth game action in A, and i≠j, G(si ,a i ) is in game state s i Execute game action a i The cumulative reward obtained by the end of the game, G(s j ,a j ) is in game state s j Execute game action a j The cumulative reward obtained by the end of the game, U(φ(s i ,a i ),φ(s j ,a j )) is the state-action pair (s i ,a ix and j ,a j ), φ() is the model parameter of the representation layer in the value neural network, β is the hyperparameter, δ() means finding the angle, and ||||2 means the 2-norm.
[0040] Furthermore, the adaptive strategy adjusts the loss specifically as follows:
[0041]
[0042] In the formula, Adjust the loss for the adaptive strategy, α E and α S are the weights of the corresponding losses, R E (θ) is the regularization term for adaptive empirical knowledge fusion, is the adaptive state-action reduction loss.
[0043] Compared with the prior art, the present invention has the following beneficial effects: the present invention aims at the problem of offline strategy training for card games, and proposes a card game deep learning training method and system based on adaptive strategy adjustment. The present invention designs adaptive loss through adaptive experience knowledge fusion and adaptive state action simplification, and combines the gradient descent method to update the strategy model, so that the training in large card games can be accelerated, the training speed is fast, the convergence speed is fast, and it can be used for AI decision-making in card games. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A flowchart of a card game deep learning training method based on adaptive strategy adjustment provided by an embodiment of the present invention;
[0045] Figure 2 It is a simplified schematic diagram of the adaptive state action of the present invention;
[0046] Figure 3 It is a schematic diagram of the adaptive loss design of the present invention;
[0047] Figure 4 This is a graph showing the score changes of each algorithm during the training process in the UNO environment in the experiment of the present invention;
[0048] Figure 5 This is a graph showing the score changes of various algorithms during the training process in the Landlords environment in the experiment of the present invention. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0050] Embodiment 1
[0051] The embodiment of the present invention provides a card game deep learning training method based on adaptive strategy adjustment, such as Figure 1 As shown, the following steps are included:
[0052] Step 1: Use the value neural network to build a basic strategy model for card games.
[0053] Among them, the basic strategy model is a value network Q(s,a|θ) based on a deep neural network, which can be used to predict the reward value Q for executing each game action a in each game state s in card games. The input of the value network Q(s,a|θ) is the game state s observed by the agent in the card game, such as public card information, private hand information, historical action sequence, etc., and the game action a taken by the agent, such as playing cards, etc., s∈S, a∈A, S is the set of all possible game states of the agent, A is the set of all possible game actions that the agent can perform, and θ is the model parameter of the basic strategy model. The value network Q(s,a|θ) is as follows Figure 2 As shown in the figure, it specifically includes two parts: the representation layer and the linear layer. The last layer is the linear layer, and the previous part is the representation layer, i.e., Q(s,a|ψ,ω). Among them, φ is the representation layer parameter, and ω is the linear layer parameter. The output of the representation layer represents a certain feature of the state-action pair (s,a), which can be represented by φ(s,a|ψ).
[0054] Step 2: Gain experience and knowledge of card games.
[0055] The empirical knowledge is a set of state-action pairs with the largest reward value among the game actions executed in each game state, specifically, a state-action pair that satisfies the following rules:
[0056] F={(s,f(s))|Q(s,f(s))≥Q(s,a)},s∈S,f(s)∈A,a∈A
[0057] In the formula, F is experiential knowledge, f(s) is the game action executed when the reward value is the largest in game state s, Q(s,f(s)) is the reward value corresponding to executing game action f(s) in game state s, and Q(s,a) is the reward value corresponding to executing game action a in game state s. Experiential knowledge can be directly obtained through game experience.
[0058] Step 3: Establish the calculation rules of the adaptive empirical knowledge fusion regularization term.
[0059] Among them, the adaptive experience knowledge fusion regularization term is the difference loss between all state-action pairs and experience knowledge, and its calculation rule is:
[0060] R E (θ)=E[max(Q(s,a|θ)-Q(s,f(s)|θ),0)]
[0061] In the formula, R E (θ) is the regularization term for adaptive empirical knowledge fusion, and E[] represents averaging.
[0062] The main idea of the adaptive experience knowledge fusion of the present invention is to use experience knowledge to introduce a regularization term to control the learning of Q value. The regularization term penalizes the Q value part of some actions that is better than experience knowledge, thereby alleviating the fluctuation of Q value in the initial stage of training.
[0063] Step 4: Establish adaptive state-action reduction loss calculation rules.
[0064] The main idea of the adaptive state-action reduction of the present invention is to measure the similarity of state-action pairs by introducing a state-action feature layer and a distance metric. The representation layer of the value network is used as the feature representation of the state-action pair, that is, the output φ(s,a) after (s,a) is input into the representation layer represents the feature of the state-action pair. Then the state-action pair similarity metric function U:Φ×Φ→R, where R is a real number space, then two state-actions (s i ,a i ) and (s j ,a j ) can be expressed similarly as:
[0065] U(φ(s i ,a i ),φ(s j ,a j ))→0
[0066] s i ,s j is the i,jth game state in S, a i ,a jis the i,jth game action in A, and i≠j. In other words, we hope that the U value of similar state-action pairs is as small as possible. During the training process, supervisory information is needed to measure the similarity of two state-action pairs, and in DMC, all the final effects are reflected in the form of game benefits. Therefore, we choose the expected benefit G as the supervisory information. Right now
[0067]
[0068] Where C∈R is a constant, in this embodiment, C=1, G(s i ,a i ) is in game state s i Execute game action a i The cumulative reward obtained by the end of the game, G(s j ,a j ) is in game state s j Execute game action a j The cumulative reward obtained by the end of the game. For the similarity measurement function U, it is designed as:
[0069]
[0070] Where δ() represents φ(s i ,a i ),φ(s j ,a j ), β is a hyperparameter, and ||||2 represents the 2-norm. The training goal is to make U The closer the better. Therefore, the adaptive state-action reduction loss is defined as the difference between the cumulative rewards obtained at the end of the game when any two different state-action pairs are executed, and the difference loss between the similarities of these two state-action pairs. The calculation rule is established as follows:
[0071]
[0072] In the formula, is the adaptive state-action reduction loss. This loss term enables the network to fit the state-action similarity at the representation layer.
[0073] Step 5: The basic model of the strategy is sampled through self-game, and the total loss function including the self-game loss and the adaptive strategy adjustment loss and the gradient descent method are used to update the model parameters to complete the training.
[0074] The adaptive strategy adjustment loss includes an adaptive experience knowledge fusion regularization term and an adaptive state-action reduction loss, specifically:
[0075]
[0076] In the formula, Adjust the loss for the adaptive strategy, α E and α s are the weights of the corresponding losses, R E (θ) is the regularization term for adaptive empirical knowledge fusion, is the adaptive state-action reduction loss.
[0077] Total loss function for:
[0078]
[0079] In the formula, It is the loss of self-gaming.
[0080] Note that R E And the function In the calculation process, each set of sampling data is targeted. It is performed on two sets of sampled data. When optimizing the loss function, a small batch gradient descent method is used, and the data in the batch is rearranged and The relationship between the network and the loss function and the generation diagram are as follows: Figure 3 shown.
[0081] During training, multiple samplers (Actors) and a trainer (Learner) are used. The sampler continuously interacts with the environment according to the current policy model, obtains trajectories, and stores them in the experience pool; the trainer obtains trajectory data from the experience pool, calculates the total loss, and uses the gradient descent method to update the Q value network, i.e., the policy model. After training is completed, the optimal action a can be selected according to the state s at each step in the real-time confrontation process according to the basic policy model obtained through training, and the corresponding hand can be played.
[0082] In order to verify the effect, the present invention was used to conduct experiments in two card games, UNO and Landlord. The experiment compared the training process curves of the present invention (AdaDMC) and DMC while ensuring that all conditions except the algorithm itself were the same, and the evaluation index was represented by the benefits of fighting against random strategies and specified rule strategies. At the same time, an ablation experiment analysis was conducted on AdaDMC, showing and comparing the training process curves of DMC+Sim (i.e., AdaDMC without empirical knowledge fusion, only state-action simplification). In addition, the SDMC method is also an improved algorithm for accelerating DMC strategy training, and it is also compared and analyzed. The results are as follows: Figure 4 and Figure 5As shown, it is concluded that AdaDMC reduces the training time overhead and accelerates strategy learning in larger card games compared with DMC; the effect of AdaDMC is better than SDMC, because AdaDMC overcomes the defect that the acceleration effect of SDMC is highly dependent on expert knowledge; in the absence of empirical knowledge, using DMC+Sim, that is, AdaDMC without empirical knowledge fusion, can also effectively accelerate strategy learning.
[0083] Embodiment 2
[0084] The embodiment of the present invention provides a card game deep learning training system based on adaptive strategy adjustment, including:
[0085] A model building module, used to build a basic strategy model of a card game using a value neural network, wherein the basic strategy model is used to predict the reward value of executing each game action in each game state in the card game;
[0086] An experience knowledge acquisition module, used to acquire experience knowledge of card games, wherein the experience knowledge is a set of state-action pairs with the largest reward value among game actions executed in each game state;
[0087] A first calculation rule establishment module is used to establish a calculation rule for an adaptive experience knowledge fusion regularization term, wherein the adaptive experience knowledge fusion regularization term is a difference loss between all state-action pairs and experience knowledge;
[0088] A second calculation rule establishment module is used to establish an adaptive state-action simplification loss calculation rule, wherein the adaptive state-action simplification loss is a difference loss between a difference between cumulative rewards obtained at the end of a game when any two different state-action pairs are executed and a similarity between the two state-action pairs;
[0089] A training module is used to sample the basic strategy model through self-game, and use the total loss function including self-game loss and adaptive strategy adjustment loss and gradient descent method to update the model parameters to complete the training; wherein the adaptive strategy adjustment loss includes an adaptive experience knowledge fusion regularization term and an adaptive state-action reduction loss.
[0090] Furthermore, the empirical knowledge is specifically a state-action pair that satisfies the following rules:
[0091] F={(s,f(s))|Q(s,f(s))≥Q(s,a)},s∈S,f(s)∈A,a∈A
[0092] Where F is the empirical knowledge, f(s) is the game action executed when the reward value is the largest under the game state s, Q(s,f(s)) is the reward value corresponding to executing the game action f(s) under the game state s, Q(s,a) is the reward value corresponding to executing the game action a under the game state s, S is the game state set, and A is the game action set.
[0093] Furthermore, the adaptive empirical knowledge fusion regularization term calculation rule is specifically as follows:
[0094] R E (θ)=E[max(Q(s,a|θ)-Q(s,f(s)|θ),0)]
[0095] In the formula, R E (θ) is the regularization term for adaptive empirical knowledge fusion, and E[] represents averaging.
[0096] Furthermore, the adaptive state-action reduction loss calculation rule is specifically as follows:
[0097]
[0098]
[0099] In the formula, is the adaptive state-action reduction loss, S is the game state set, A is the game action set, s i ,s j is the i,jth game state in S, a i ,a j is the i,jth game action in A, and i≠j, G(s i ,a i ) is in game state s i Execute game action a i The cumulative reward obtained by the end of the game, G(s j ,a j ) is in game state s j Execute game action a j The cumulative reward obtained by the end of the game, U(φ(s i ,a i ),φ(s j ,a j )) is the state-action pair (s i ,a i ) and (s j ,a j ), φ() is the model parameter of the representation layer in the value neural network, β is the hyperparameter, δ() means finding the angle, and ||||2 means the 2-norm.
[0100] Furthermore, the adaptive strategy adjusts the loss specifically as follows:
[0101]
[0102] In the formula, Adjust the loss for the adaptive strategy, α E and α S are the weights of the corresponding losses, R E (θ) is the regularization term for adaptive empirical knowledge fusion, is the adaptive state-action reduction loss.
[0103] The system can be implemented in software and / or hardware and can be configured in a terminal device. The system can be used to execute the method provided in the first embodiment of the present invention and has the corresponding functions and beneficial effects of the execution method. For details not detailed, please refer to the method description and will not be repeated.
[0104] It is worth noting that in the embodiment of the above system, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The embodiments described above are only schematic, in which the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented only by hardware, as long as the function or effect can be achieved.
Claims
1. A card game deep learning training method based on adaptive strategy adjustment, characterized in that: The steps include: Step 1: Use a value neural network to construct a basic strategy model for card games, where the basic strategy model is used to predict the reward value of executing each game action in each game state in the card game; Step 2: Acquire empirical knowledge of card games, where the empirical knowledge is a set of state-action pairs with the largest reward value among game actions executed in each game state; Step 3: Establishing a calculation rule for the adaptive experience knowledge fusion regularization term, wherein the adaptive experience knowledge fusion regularization term is the difference loss between all state-action pairs and the experience knowledge; Step 4: Establish an adaptive state-action simplification loss calculation rule, where the adaptive state-action simplification loss is the difference loss between the difference between the cumulative rewards obtained at the end of the game when any two different state-action pairs are executed and the similarity between the two state-action pairs; Step 5: Sample the basic model of the strategy through self-game, and use the total loss function including self-game loss and adaptive strategy adjustment loss and gradient descent method to update the model parameters to complete the training; wherein the adaptive strategy adjustment loss includes an adaptive experience knowledge fusion regularization term and an adaptive state-action reduction loss.
2. The card game deep learning training method based on adaptive strategy adjustment according to claim 1 is characterized in that: The empirical knowledge is specifically a state-action pair that satisfies the following rules: F={(s,f(s))|Q(s,f(s))≥Q(s,a)},s∈S,f(s)∈A,a∈A Where F is the empirical knowledge, f(s) is the game action executed when the reward value is the largest under the game state s, Q(s,f(s)) is the ideal reward value corresponding to the execution of the game action f(s) under the game state s in the card game, Q(s,a) is the ideal reward value corresponding to the execution of the game action a under the game state s, S is the game state set, and A is the game action set.
3. The card game deep learning training method based on adaptive strategy adjustment according to claim 2 is characterized in that: The specific calculation rules of the adaptive experience knowledge fusion regularization term are as follows: R E (θ)=E[max(Q(s,a|θ)-Q(s,f(s)|θ),0)] In the formula, R E (θ) is the regularization term for adaptive empirical knowledge fusion, and E[] represents averaging.
4. The card game deep learning training method based on adaptive strategy adjustment according to claim 1 is characterized in that: The adaptive state-action reduction loss calculation rule is specifically as follows: In the formula, is the adaptive state-action reduction loss, S is the game state set, A is the game action set, s i ,s j is the i,jth game state in S, a i ,a j is the i,jth game action in A, and i≠j, G(s i ,a i ) is in game state s i Execute game action a i The cumulative reward obtained by the end of the game, G(s j ,a j ) is in game state s j Execute game action a j The cumulative reward obtained by the end of the game, U(φ(s i ,a i ),φ(s j ,a j )) is the state-action pair (s i ,a i ) and (s j ,a j ), φ() is the model parameter of the representation layer in the value neural network, β is the hyperparameter, δ() means finding the angle, and || ||2 means the 2-norm.
5. The card game deep learning training method based on adaptive strategy adjustment according to claim 1, characterized in that: The adaptive strategy adjusts the loss specifically as follows: In the formula, Adjust the loss for the adaptive strategy, α E and α S are the weights of the corresponding losses, R E (θ) is the regularization term for adaptive empirical knowledge fusion, is the adaptive state-action reduction loss.
6. A card game deep learning training system based on adaptive strategy adjustment, characterized in that: include: A model building module, used to build a basic strategy model of a card game using a value neural network, wherein the basic strategy model is used to predict the reward value of executing each game action in each game state in the card game; An experience knowledge acquisition module, used to acquire experience knowledge of card games, wherein the experience knowledge is a set of state-action pairs with the largest reward value among game actions executed in each game state; A first calculation rule establishment module is used to establish a calculation rule for an adaptive experience knowledge fusion regularization term, wherein the adaptive experience knowledge fusion regularization term is a difference loss between all state-action pairs and experience knowledge; A second calculation rule establishment module is used to establish an adaptive state-action simplification loss calculation rule, wherein the adaptive state-action simplification loss is a difference loss between a difference between cumulative rewards obtained at the end of a game when any two different state-action pairs are executed and a similarity between the two state-action pairs; A training module is used to sample the basic strategy model through self-game, and use the total loss function including self-game loss and adaptive strategy adjustment loss and gradient descent method to update the model parameters to complete the training; wherein the adaptive strategy adjustment loss includes an adaptive experience knowledge fusion regularization term and an adaptive state-action reduction loss.
7. The card game deep learning training system based on adaptive strategy adjustment according to claim 6 is characterized in that: The empirical knowledge is specifically a state-action pair that satisfies the following rules: F={(s,f(s))|Q(s,f(s))≥Q(s,a)},s∈S,f(s)∈A,a∈A Where F is the empirical knowledge, f(s) is the game action executed when the reward value is the largest under the game state s, Q(s,f(s)) is the reward value corresponding to executing the game action f(s) under the game state s, Q(s,a) is the reward value corresponding to executing the game action a under the game state s, S is the game state set, and A is the game action set.
8. The card game deep learning training system based on adaptive strategy adjustment according to claim 7 is characterized in that: The specific calculation rules of the adaptive experience knowledge fusion regularization term are as follows: R E (θ)=E[max(Q(s,a|θ)-Q(s,f(s)|θ),0)] In the formula, R E (θ) is the regularization term for adaptive empirical knowledge fusion, and E[] represents averaging.
9. The card game deep learning training system based on adaptive strategy adjustment according to claim 6, characterized in that: The adaptive state-action reduction loss calculation rule is specifically as follows: In the formula, is the adaptive state-action reduction loss, S is the game state set, A is the game action set, s i ,s j is the i,jth game state in S, a i ,a j is the i,jth game action in A, and i≠j, G(s i ,a i ) is in game state s i Execute game action a i The cumulative reward obtained by the end of the game, G(s j ,a j ) is in game state s j Execute game action a j The cumulative reward obtained by the end of the game, U(φ(s i ,a i ),φ(s j ,a j )) is the state-action pair (s i ,a i ) and (s j ,a j ), φ() is the model parameter of the representation layer in the value neural network, β is the hyperparameter, δ() means finding the angle, and || ||2 means the 2-norm.
10. The card game deep learning training system based on adaptive strategy adjustment according to claim 6, characterized in that: The adaptive strategy adjusts the loss specifically as follows: In the formula, Adjust the loss for the adaptive strategy, α E and α S are the weights of the corresponding losses, R E (θ) is the regularization term for adaptive empirical knowledge fusion, is the adaptive state-action reduction loss.
