Confidence interval-based deep reinforcement learning action decision-making method
By building a confidence interval span fitting model and a dynamic balance factor in deep reinforcement learning, the problem of confidence interval estimation in high-dimensional state space is solved, more efficient training and decision-making effects are achieved, and the slow convergence in the existing technology is overcome. and dependence on the initial state.
Patent Information
- Application Number
- PCT/CN2023/129286
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2023-11-02
- Publication Date
- 2024-10-31
AI Technical Summary
Existing deep reinforcement learning algorithms have problems such as slow convergence, inability to learn optimal strategies, and difficulty in processing continuous action spaces when dealing with high-dimensional state spaces and complex reinforcement learning problems. In particular, the confidence interval upper bound algorithm cannot effectively estimate high-dimensional state spaces. The size of the confidence interval for the next action.
A confidence interval span fitting model based on deep neural network is designed. By building Q network and U network, neural network backpropagation is used to update the confidence interval span, and a dynamic balance factor α is introduced to balance exploration and utilization to achieve confidence interval span. dynamic balance.
It effectively solves the confidence interval estimation problem of UCB in high-dimensional state space, improves training efficiency and decision-making effect, avoids excessive randomness and initial state dependence, and can handle complex reinforcement learning problems.
Smart Images

Figure CN2023129286_31102024_PF_FP_ABST
Abstract
Description
A deep reinforcement learning action decision-making method based on confidence interval Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to a deep reinforcement learning action decision-making method based on deep neural networks and confidence intervals. Background Art
[0002] Over the past decade, deep reinforcement learning has become a hot topic, with applications in numerous industries, including autonomous driving, intelligent manufacturing, and robotic control. Deep neural networks, particularly convolutional networks, can extract image features through multiple layers of convolution kernels. They offer significant advantages in perceiving image information and processing high-dimensional data, and are therefore widely used in fields such as computer vision and natural language processing. While deep learning based on deep neural networks is highly effective at feature extraction, it lacks the ability to understand the environment and make decisions. Reinforcement learning, on the other hand, is essentially about decision-making: allowing an intelligent agent to continuously trial and error, accumulating experience and learning through rewards from the environment, thereby estimating the true value of each state and action, and ultimately developing a decision-making strategy that maximizes returns. Combining deep neural networks with reinforcement learning, deep reinforcement learning can both perceive complex environments and make appropriate decisions.
[0003] A standard deep reinforcement learning algorithm must include an appropriate action decision-making method to strike a good balance between the two situations of each action selection: exploration and exploitation; the action decision-making method has a direct impact on the convergence speed of the deep reinforcement learning algorithm and whether it can learn the optimal strategy.
[0004] In traditional reinforcement learning, there are three main action decision-making methods: ①∈-greedy algorithm, which balances exploration and exploitation based on a probability; ②Softmax method, which balances exploration and exploitation based on the average reward of currently known actions; ③Confidence Interval Upper Bound Algorithm (UCB), which uses confidence levels to achieve a balance between exploration and exploitation.
[0005] Complex reinforcement learning problems typically involve high-dimensional state spaces or high-dimensional action spaces. Traditional reinforcement learning algorithms lack appropriate methods to handle these, often leading to dimensionality explosion. Consequently, they can only handle small-scale problems and are limited in their capabilities. Existing deep reinforcement learning algorithms primarily use the ε-greedy and softmax methods for action decision-making. While the ε-greedy method is highly universal, its excessive randomness can lead to slow convergence or the agent's inability to learn the optimal strategy. The softmax method, on the other hand, is prone to over-reliance on initial states, making it incapable of solving continuous action spaces, struggling to handle high-dimensional state spaces, and ineffective in solving complex reinforcement learning problems. Unified Combination (UCB) effectively overcomes the shortcomings of the ε-greedy and softmax methods, but existing techniques lack the ability to handle high-dimensional state spaces for complex problems, making it difficult to apply to deep reinforcement learning algorithms.
[0006] Summary of the Invention
[0007] In response to the shortcomings of the existing technology, the present invention provides a deep reinforcement learning action decision-making method based on confidence intervals to solve complex reinforcement problems. This method proposes a confidence interval span fitting model based on a deep neural network, which fundamentally solves the problem that UCB cannot estimate the confidence interval size of each action in a high-dimensional state space; and designs a method to balance the confidence interval span and exploration and utilization during the training process, so that this method achieves ideal training results.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] A confidence interval-based deep reinforcement learning action decision method, characterized by comprising: two deep reinforcement learning networks, a Q network and a U network, for respectively obtaining action values and confidence interval spans; a confidence interval span balancing model constructed in situ based on a target value, which utilizes the characteristics of neural network backpropagation to update the parameters of the U network after each action decision, thereby balancing the confidence interval span; and a dynamic balancing factor α for balancing the exploration and utilization of the two indicators, value and confidence interval span, during the training process; wherein 0 < α < 1 and gradually decreases with increasing training times.
[0010] Preferably, the method is characterized in that it includes the following steps: (1) building two deep neural networks, a Q network and a U network, wherein the Q network and the U network have the same structure;
[0011] (2) Set the training termination conditions and iteration parameters, and initialize the Q network and U network parameters ω and μ respectively;
[0012] (3) Initialize the environment;
[0013] (4) Obtain the dynamic balance factor α under the current training cycle;
[0014] (5) Input the environment state sequence into the Q network and U network in parallel to obtain the current action value Q t (α, ω) and the current action confidence interval span U t (α, μ);
[0015] (6) Based on the dynamic balance factor α obtained in step (3) and Q obtained in step (4) t (α, ω), U t (α, μ), calculate the UCB value of each action, and select the action A with the largest UCB value, that is, select the action according to the following formula:
[0016] A random number between 0 and 1 is obtained as the base value. If α is greater than the base value, the U network parameter μ is updated; if α is less than the base value, the U network parameter μ is not updated.
[0017] (8) Execute action A and update the Q network parameter ω;
[0018] (9) Loop through steps (5) to (8), traverse each environment state, and update the Q network parameter ω and the U network parameter μ;
[0019] (10) Repeat steps (3) to (8) until the training termination condition is reached.
[0020] Preferably, the method for updating the U network parameter in the above method and steps includes: (1) changing the current confidence interval span U t The values of (α, μ) are arranged in reverse order as target values to calculate the loss; (2) Based on the loss, the parameters μ of the U network are updated through the gradient backpropagation of the neural network.
[0021] Preferably, the dynamic balance factor α in the above method and steps is obtained according to the following formula: α = 0.05 + 0.95 × e^(-f / base)
[0022] Among them, f is the number of training frames, e is a natural constant, and base is a constant used to control the decay rate.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] 1. This invention builds two deep neural networks, one for fitting the utilization and the other for fitting the exploration data in the UCB algorithm, to achieve the goal of reducing the dimensionality of the state space data. This fundamentally solves the problem that UCB cannot estimate the confidence interval size of each action in a high-dimensional state space.
[0025] 2. Because the present invention uses the back propagation and gradient descent characteristics of deep neural networks to achieve confidence interval span balance, and uses the original U t The (α, μ) values are arranged in reverse order as the target values, that is, the target values of the U network are constructed in situ, which has high efficiency and good balancing effect.
[0026] 3. Because the present invention introduces a dynamic balance factor α to balance exploration and utilization during training, the dynamic balance factor α acts directly on the two values representing exploration and utilization as a weighting coefficient, which is more strategic and does not cause excessive randomness. In addition, the dynamic balance factor α also determines whether the U network backpropagation and parameter update are required in the current iteration, effectively improving training efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] FIG1 is a framework diagram of a deep reinforcement learning action decision method based on confidence intervals, namely Deep UCB, according to an embodiment of the present invention;
[0028] FIG2 is a schematic diagram of a method for constructing a U network target value according to an embodiment of the present invention;
[0029] FIG3 is a screen shot of three game environments used in the Deep UCB experiment based on the Nature DQN algorithm according to an embodiment of the present invention when running;
[0030] FIG4 is a reward curve during the training process of Deep UCB and ε-greedy method based on the Nature DQN algorithm according to an embodiment of the present invention;
[0031] FIG5 is a reward curve during the training process of Deep UCB and ε-greedy method based on the Double DQN algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is specifically described in the following examples in conjunction with the accompanying drawings. It should be noted that the description of these implementation methods is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0033] The present invention proposes a deep reinforcement learning action decision-making method based on confidence intervals, which aims to apply the UCB algorithm to complex reinforcement learning with high-dimensional state space, so as to overcome the shortcomings of existing complex reinforcement learning action decision-making methods such as excessive randomness and obtain better training results than existing technologies.
[0034] Since this method is an improvement and development of the traditional UCB action decision method, we first introduce the concepts related to UCB and confidence intervals to clearly illustrate the design ideas, technical problems solved, and technical effects achieved by the technical solution of the present invention.
[0035] Confidence interval is a very important concept in probability statistics, which is used to measure the confidence level of the distribution of a random variable. The larger the confidence interval, the larger the fluctuation range of the random variable. The essence of the problem solved by action decision is: facing K fixed environmental state data (items), we have no prior knowledge, and the reward of each data (item) is completely unknown. We have to choose one of them in each experiment. How to maximize our reward in this selection process. UCB (Upper Confidence Bound) is also called the confidence interval upper bound algorithm. Its idea of solving action decision problems is to use confidence intervals to try algorithms for actions with large uncertainty in the reward probability distribution. The steps of the UCB algorithm include: first try all items, and then choose the one with the largest UCB value each time. In the UCB algorithm, the upper bound of the confidence interval is called the UCB value, and the UCB value of action α is α t Composed of two parts Q t (α) and U t (α) is composed of, and is expressed as:
[0036] Here, Q t (α) represents utilization, which indicates the expected reward of the current action (also known as the current mean return); U t (α) represents exploration, which indicates the confidence interval of the current action; usually Right now
[0037] In formula 2, t represents the total number of moments or actions, lnt represents the natural logarithm of t, and N t (α) represents the number of times action α is selected before time t, and c is a weight, a constant, which controls the degree of exploration.
[0038] This formula shows that if action α is selected a small number of times, that is, N t (α) is very small, as the number of explorations gradually increases, lnt increases, and the confidence interval of action α will increase rapidly, that is, the uncertainty will increase rapidly. When the uncertainty is large enough to maximize its UCB value, action α will be selected. At this time, the UCB algorithm approaches the exploration U t (α); U in each action t When the (α) value is equal, the UCB value is almost determined by Q t (α) value determines the UCB algorithm is close to being used.
[0039] In the UCB algorithm, as the number of times an action is selected increases, its confidence interval becomes narrower, and the probability of gain becomes more certain. A larger mean gain increases the chance of being selected, thus acting as an exploit. A smaller mean gain decreases the probability of being selected. Furthermore, actions that are selected less frequently also have a chance of being selected, thus acting as an explorer.
[0040] Because Unified Combination (UCB) is based on a theoretical model for single-step reinforcement learning tasks—the rocking-arm bandit—it cannot handle high-dimensional state spaces, making it difficult to apply to complex reinforcement learning problems. This paper proposes a new action decision method, Deep UCB, to address this issue. As shown in Figure 1, this method combines confidence intervals with deep neural networks. Its main architecture consists of three components: a confidence interval span fitting model based on a deep neural network, a confidence interval span balancing model constructed in situ based on the target value, and a dynamic exploration-exploitation balance factor α.
[0041] (1) Confidence interval span fitting model based on deep neural network
[0042] Build two deep neural networks, Q network and U network, with the same network structure but completely unrelated network parameters, respectively used to fit the utilization and exploration data in the UCB algorithm to achieve the purpose of state space data dimensionality reduction and full utilization: the state space data sequence (state sequence) of the environment is input into the two networks in parallel for fitting operation, and then the output values Q of the two networks are combined. t (α, ω), U t (α, μ) is used in action decision making.
[0043] Specifically, when the Q network and U network obtain the state sequence from the environment and input it into the network, they will output Q t (α, ω), U t (α, μ). Corresponds to Q in the UCB algorithm for single-step reinforcement learning tasks t (α) (represents the expected reward of the current action), U t (α) (represents the confidence interval of the current action), the output Q of the Q network t (α, ω) represents the value of the high-dimensional action associated with the current state of the input Q network, and the output U of the U network t (α, μ) represents a measure of the uncertainty of the high-dimensional action associated with the current state of the input U network (the span of the confidence interval), that is, the span of the high-dimensional action confidence interval. t (α, ω), U t(α, μ) jointly determine the UCB value under the allocation of the dynamic balance factor α, and then make action decisions. How the dynamic balance factor α is allocated will be explained in detail in the subsequent sections.
[0044] The output values Q of the Q network and the U network are t (α, ω), U t (α, μ) is summed to calculate the UCB value of each high-dimensional action, and then the high-dimensional action A with the largest UCB value is selected. The selection formula is:
[0045] Where ω is the parameter of the current Q network and μ is the parameter of the U network, both of which are initialized to random values at the beginning of training.
[0046] The action decision method Deep UCB of the present invention uses the powerful ability of deep neural networks in processing high-dimensional data to fit the value and confidence interval span of complex states, and then calculates UCB and selects actions. The confidence interval span is calculated by counting the number of times each action is selected in each state. The output value of the U network is generated by taking the feature vector of the current state as input. Therefore, the U network can be regarded as a confidence interval span fitting model based on a deep neural network. It fits the confidence interval U of each action in each state. t (α) is a function of the U network, so the output value of the U network can be regarded as the confidence interval span of each state. The difference between the Deep UCB strategy (Formula 3) and the traditional UCB strategy (Formula 1) is that the traditional UCB uses a table to obtain rewards and confidence intervals, while Deep UCB uses a deep neural network to obtain values and confidence interval spans. Therefore, Deep UCB can handle high-dimensional state spaces.
[0047] (2) Confidence interval span balance model based on the target value constructed in situ
[0048] In traditional UCB, the confidence interval values of each action will automatically balance under too many or too few selection times; in U network, the design utilizes the back propagation and gradient descent characteristics of deep neural networks to achieve confidence interval span balance. However, U network does not have a target value for updating parameters, so it is necessary to design a method to construct the target value. Therefore, the present invention proposes a confidence interval span balance model based on the target value in situ: for the U of the output node of the U network, t The (α, μ) value sequence {α1, α3, α2, α4, α6, α5} (the subscript indicates the order of numerical size, 1 is the smallest and 6 is the largest) is arranged in reverse order of its numerical size {α6, α4, α5, α3, α1, α2} as its target value, so as to calculate the loss and perform back propagation of the U network.
[0049] As shown in Figure 2, suppose the figure shows the U network with 6 output nodes. t The (α, μ) values are [1.0, 3.0, 2.0, 4.0, 6.0, 5.0], which are arranged in reverse order of value to [6.0, 4.0, 5.0, 3.0, 1.0, 2.0], that is, the maximum value and the minimum value are exchanged, the second largest value and the second smallest value are exchanged, and so on. This method uses the original U t The (α, μ) value constructs the target value of the U network in situ, and the way of arranging them in reverse order of the numerical value also makes the confidence interval span U of an action t The (α, μ) value is automatically balanced: the original large U t (α, μ) value will be small U t (α, μ) value is used as the target value, which will be greatly reduced after back propagation; and the small U t (α, μ) value will be large U t (α, μ) value is used as the target value, which will be greatly improved after back propagation; and U t Actions with intermediate (α, μ) values have just the right degree of update.
[0050] (3) Exploring and utilizing the dynamic balance factor α
[0051] Since different periods of the training process have different requirements for exploration and utilization, the present invention introduces an exploration-utilization dynamic balance factor α into the proposed action decision method to balance exploration and utilization during the experiment. In Formula 3, Q t (α, ω) represents the action value output by the current Q network, and its value indicates the degree of utilization; and U t (α, μ) represents the value output by the U network, and its value indicates the degree of exploration. After introducing the dynamic balance factor α, the high-dimensional action A selection formula becomes:
[0052] The dynamic balance factor α is a number between 0 and 1, which will decrease with the number of training iterations. At the beginning of the experiment, since the Q network has not yet accurately fitted the action value function, the dynamic balance factor α is taken as a large value close to 1, such as 0.95, then U t The weight of (α, μ) is 0.95, and Q t (α, ω) only accounts for 0.05, so the UCB value is largely determined by the U representing the exploration t (α, μ), then the action selection at this time tends to be exploration. As the number of iterations increases, the dynamic balance factor α will gradually decrease, and Q tThe importance of (α, ω) increases continuously. When the value of α is around 0.5, exploration and exploitation are balanced. In the middle and late stages of the experiment, the Q network has well approximated the action-value function, and the dynamic balance factor α is reduced to a value close to 0. At this time, the Q network is t (α, ω) gets almost all the weight, and the UCB value is represented by Q t (α, ω). The dynamic balance factor α of the present invention is gradually reduced according to Formula 5, where f is the number of training frames, e is a natural constant, and base is the base, which is a constant used to control the decay rate. α = 0.05 + 0.95 × e^(-f / base) (Formula 5)
[0053] The dynamic balance factor α is different from the ε in the ε-greedy method. ε is a probability used to control the degree of exploration. Using probability to control exploration is random, which will lead to the excessive randomness problem of the ε-greedy method. The dynamic balance factor α, on the other hand, acts directly on the two values representing exploration and utilization as a weighting coefficient. It is absolute, more strategic, and will not cause excessive randomness.
[0054] In addition to balancing exploration and utilization, as shown in Figure 1, the dynamic balance factor α also determines whether the iteration requires backpropagation and parameter update of the U network: when the dynamic balance factor α is large in the early and middle stages of the experiment, the experiment focuses on exploration, and each action decision depends largely on the U network given by the U network. t (α, μ) value, then at this time, it is necessary for the U network to perform back propagation parameter update for training; in the late stage of the experiment, when the dynamic balance factor α is small, the experiment focuses on utilization. Even if an action decision has been made, the action decision depends largely on Q representing utilization. t (α, ω) value, rather than depending on the U given by the U network t (α, μ) values, so the U network does not necessarily need to backpropagate to update its parameters at this time, because the action selection is largely unrelated to the U network. In this way, in the later stages of the experiment when the dynamic balance factor α is very small, the U network will no longer be updated, which can reduce experimental training time and improve training efficiency.
[0055] Comparative experiments conducted on two deep neural network models, Double DQN and Nature DQN, and in multiple experimental environments proved that compared with the ε-greedy method, the reward curve of the Deep UCB algorithm during training is greater than or equal to that of the ε-greedy method, and the scores in the test are all higher than that of the ε-greedy method. Therefore, Deep UCB can replace the ε-greedy method for action decision-making, thereby avoiding the excessive randomness brought by the ε-greedy method and achieving better training results.
[0056] Example 1
[0057] Deep UCB based on Nature DQN basic algorithm
[0058] Input: number of iterations T (training termination condition), state feature dimension n, number of actions K, learning rate, decay factor γ, exploration probability, current Q network Q, target Q network Q', dynamic balance factor α, U network U, number of samples m, target Q network update frequency c;
[0059] process:
[0060] 1: Randomly initialize the parameters of Q to ω, initialize the parameters of Q' to ω' = ω, clear the experience replay pool D; randomly initialize the parameters of U to μ;
[0061] 2: for i from 1 to T
[0062] 3(a): Initialize the environment
[0063] 3(b): Initialize S to the first state in the current environment and obtain its eigenvector
[0064] 4: Use in Q As input, the output is the value Q of all actions t (α, ω)
[0065] 5: Use in U As input, the output is the confidence level of all actions is U t (α, μ)
[0066] 6: According to To select action A
[0067] 7: if rand()<α:
[0068] 8: Use U t (α, μ) is arranged in reverse order as the target value to calculate the loss
[0069] 9: Update the parameters μ of the U network through the gradient back propagation of the neural network
[0070] 10: Execute action A in state S and get the next state S ’ and the corresponding eigenvectors And the reward R given by the environment, whether the state is terminated is_end
[0071] 11: Will As a five-tuple stored in the experience pool D
[0072] 12: Let S = S'
[0073] 13: Sample m samples from the experience pool D Calculate Q target With Q current :
[0074] 14: Use the mean square error loss function to calculate loss:
[0075] 15: Update the parameters ω of the Q network through the gradient back propagation of the neural network
[0076] 16: If i%c==0, then update Q ’ Parameters: ω'=ω
[0077] 17: If S' is the terminal state, go to step 2 to enter the next iteration, otherwise go to step 3(b);
[0078] _____________________________________________________________________
[0079] Using three games from the OpenAI Gym library—Pong, Breckout, and Space Invaders—as experimental environments, we first trained the agent for 1 million frames and then tested it for 200,000 frames. We compared the training and test results before and after algorithm improvements. The three game environments were trained at increasing levels of complexity. The game runtime screenshots are shown in Figure 3.
[0080] In the experiment, the Q network and the U network use the same neural network structure, and the parameters of each layer are shown in Table 1. The main hyperparameters used in the experiment are shown in Table 2.
[0081] Table 1 Q network and U network parameters
[0082] Table 2 Main hyperparameters used in the experiment
[0083] Using Nature DQN as the basic algorithm, comparative experiments were conducted in three different environments. The experimental results are shown in Figure 4.
[0084] Figure 4(a) shows that Deep UCB improves rapidly in the early stages of training and subsequently maintains a high score. While the ε-Greedy method eventually converges to the optimal level, it begins improving later and more gradually than Deep UCB. Furthermore, in the later stages of training, the curve for Deep UCB fluctuates less, while the curve for the original algorithm fluctuates more, indicating that Deep UCB is more fully utilized and achieves better results.
[0085] As can be seen from Figure 4(b), the ε-Greedy method is always in a stable upward trend and then a stable downward trend, and its reward curve does not fluctuate much in the short term; while Deep UCB improves rapidly in the early stages of training and its score remains higher than that of the ε-Greedy method. Due to the higher degree of exploration of Deep UCB, the fluctuation range of its reward curve is also greater than that of the ε-Greedy method.
[0086] As can be seen from Figure 4(c), the curves of Deep UCB and ε-Greedy method fluctuate greatly during the training process. Although it is not possible to intuitively see the training effects of the two, the advantages and disadvantages of the two can be measured by the average test score.
[0087] The trained agents were tested for 200,000 frames in these game environments, and the average scores were calculated and plotted in a table, as shown in Table 3. As can be seen from the table, in the Pong environment, the agents trained with the Deep UCB algorithm achieved an average score of 20.04, surpassing the ε-Greedy method's 16.18, a 23.86% improvement. In the Breakout environment, the agents trained with the Deep UCB algorithm achieved an average score of 21.27, surpassing the ε-Greedy method's 11.84, a 79.65% improvement. In the Space Invaders environment, the agents trained with the Deep UCB algorithm achieved an average score of 355.10, surpassing the ε-Greedy method's 227.37, a 56.18% improvement.
[0088] Table 3 Test scores of various action decision methods based on the Nature DQN basic algorithm
[0089] The above experiment compares Deep UCB and the ε-Greedy method based on Nature DQN. The results show that in three different environments, Deep UCB's reward curve during training is greater than or equal to the ε-Greedy method, and its average score in testing is greater than that of the ε-Greedy method.
[0090] Example 2
[0091] Deep UCB based on Double DQN basic algorithm
[0092] Using Double DQN as the base algorithm, comparative experiments were conducted in three different environments. The experimental results are shown in Figure 5. As shown in Figure 5(a), Deep UCB rapidly improves in the early stages of training and subsequently maintains a high score. While the ε-Greedy method eventually converges to the optimal level, its improvement is more gradual than that of Deep UCB. Furthermore, in the later stages of training, the reward curve of Deep UCB exhibits less fluctuation, while the reward curve of the ε-Greedy method exhibits greater fluctuation, indicating that Deep UCB is more fully utilized and achieves better results. As shown in Figure 5(b), during training, the reward curves of Deep UCB and the ε-Greedy method show similar improvement. Deep UCB's reward curve is slightly higher than that of the ε-Greedy method, while the ε-Greedy method's reward curve exhibits relatively greater fluctuation, with both extremely high and low values occurring. As shown in Figure 5(c), the scores of both Deep UCB and the ε-Greedy method fluctuate significantly during training, but both continue to rise slowly. In the early stages of training, Deep UCB's reward curve is slightly higher than that of the ε-Greedy method. However, in the later stages of training, the ε-Greedy method slightly outperforms Deep UCB. This is because the base value, when setting the decay rate of the dynamic balance factor α using Equation 5, is set too high. This results in slightly lower utilization of Deep UCB in the later stages of training. This issue can be resolved by reducing the base value in Equation 5. Whether this impacts Deep UCB's training performance can be measured in test results.
[0093] The trained agents were tested for 200,000 frames in these game environments, and the average scores were calculated and plotted in a table, as shown in Table 4. As can be seen from the table, in the Pong environment, the agents trained with the Deep UCB algorithm achieved an average score of 20.72, exceeding the original algorithm's 17.26, a 20.05% improvement. In the Breakout environment, the agents trained with the Deep UCB algorithm achieved an average score of 15.03, exceeding the original algorithm's 14.85, a 1.2% improvement. In the Space Invaders environment, the agents trained with the Deep UCB algorithm achieved an average score of 262.93, exceeding the original algorithm's 260.21, a 1.05% improvement.
[0094] Table 4 Test scores of various action decision methods based on the Double DQN basic algorithm
[0095] The above experiment compares Deep UCB and ε-Greedy based on Double DQN. The results show that in three different environments, Deep UCB's reward curve during training is greater than or equal to that of ε-Greedy, and its average score in testing is greater than that of ε-Greedy.
[0096] The above-mentioned embodiments are preferred cases of the present invention and are not intended to limit the scope of protection of the present invention. Various deformations or modifications that can be made by ordinary technicians in this field without creative work within the scope of the attached claims are still within the scope of protection of this patent.
Claims
1. A deep reinforcement learning action decision method based on confidence interval, It is characterized in that include: Two deep reinforcement learning networks, Q-network and U-network, for obtaining action values and confidence interval spans respectively; Based on the confidence interval span balance model constructed in situ based on the target value, the back propagation characteristics of the neural network are used to update the parameters of the U network after each action decision, thereby balancing the confidence interval span; The dynamic balance factor α is used to balance the exploration and utilization of the two indicators of value and confidence interval span during the training process; where 0<α<1, and it gradually decreases with the increase in the number of training times.
2. According to the deep reinforcement learning action decision method based on confidence interval according to claim 1, It is characterized in that The steps include: (1) Building two deep neural networks, a Q network and a U network, wherein the Q network and the U network have the same structure; (2) Set the training termination conditions and iteration parameters, and initialize the Q network and U network parameters ω and μ respectively; (3) Initialize the environment; (4) Obtain the dynamic balance factor α in the current training cycle; (5) Input the environment state sequence into the Q network and U network in parallel to obtain the current action value Q t (α, ω) and the current action confidence interval span U t (α, μ); (6) Based on the dynamic balance factor α obtained in step (3) and Q obtained in step (4) t (α, ω), U t (α, μ), calculate the UCB value of each action, and select the action A with the largest UCB value, that is, select the action according to the following formula: (7) Determine whether to update the U network parameter μ based on the dynamic balance factor α: randomly obtain a number between 0 and 1 as the base value. If α is greater than the base value, update the U network parameter μ; if α is less than the base value, do not update the U network parameter μ; (8) Execute action A and update the Q network parameter ω; (9) Loop through steps (5) to (8), traverse each environment state, and update the Q network parameter ω and the U network parameter μ; (10) Repeat steps (3) to (8) until the training termination condition is reached.
3. A deep reinforcement learning action decision method based on confidence interval according to claim 1 or 2, It is characterized in that The method for updating the U network parameters comprises: (1) Set the current confidence interval span U t The values of (α, μ) are arranged in reverse order as target values to calculate the loss; (2) Based on the loss, the parameters μ of the U network are updated through the gradient back propagation of the neural network.
4. A deep reinforcement learning action decision method based on confidence interval according to claim 1 or 2, It is characterized in that The dynamic balance factor α is obtained according to the following formula: α = 0.05 + 0.95 × e^(-f / base) Among them, f is the number of training frames, e is a natural constant, and base is a constant used to control the decay rate.
Citation Information
Patent Citations
Neural network and Q learning combined estimation method under non-complete information
CN107038477A
Method and system for adaptively adjusting congestion control initial window
CN111092823A
Mobile robot path planning method based on deep reinforcement learning
CN113885329A
Deep reinforcement learning action decision-making method based on confidence interval
CN116468081A
Cited By
Information analysis method and system based on student data traceability
CN119598413A
Complex scene-oriented intelligent robot perception decision-making method and system
CN120103719A
