Reinforcement learning program, reinforcement learning method, and information processing device

By performing preliminary reinforcement learning for various δ values and selecting based on efficiency metrics, the method addresses the challenge of determining optimal δ in reinforcement learning, enhancing efficiency and reducing calculation costs.

JP2024148223AInactive Publication Date: 2024-10-18FUJITSU LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023061163
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-05
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In reinforcement learning, determining an appropriate value for the hyperparameter δ, which controls the maximum KL distance during policy updates, is challenging as it affects learning time and reward convergence, leading to excessive calculation costs due to repeated trials.

Method used

A method that performs preliminary reinforcement learning for multiple candidate values of δ, terminating each trial based on a predetermined index without waiting for reward convergence, and selects the most suitable δ based on efficiency metrics, reducing overall calculation time.

Benefits of technology

This approach allows for the efficient acquisition of appropriate hyperparameter values, significantly reducing the computational burden and optimizing the learning process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024148223000001_ABST
    Figure 2024148223000001_ABST
Patent Text Reader

Abstract

To easily acquire an appropriate value of a parameter used for reinforcement learning.SOLUTION: An information processing device 10 performs reinforcement learning for each of a plurality of candidate values with respect to a model 2. At that time, the information processing device 10 sets each of the plurality of candidate values, as an upper limit of a difference between behavior probability distributions 3a, 3b obtained from the model 2 before and after update of a strategy applied to the model 2 corresponding to a problem being an object of the reinforcement learning. Next, the information processing device 10 ends the reinforcement learning for each of the plurality of candidate values, without waiting for convergence of reward, on the basis of a predetermined index value. Then, the information processing device 10 selects at least one candidate value from the plurality of candidate values, on the basis of the predetermined index value.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a reinforcement learning program, a reinforcement learning method, and an information processing device. [Background technology]

[0002] Reinforcement learning is one of the machine learning techniques. In reinforcement learning, an agent in an environment observes the current state and decides what action to take. The agent obtains rewards from the environment by selecting an action. In reinforcement learning, a policy is learned that maximizes rewards through a series of actions. Reinforcement learning can, for example, involve constraints that must be satisfied.

[0003] As a technique related to reinforcement learning, for example, a hyperparameter determination method that shortens the calculation time for determining the hyperparameters of a learning model has been proposed. A hyperparameter management device that identifies hyperparameters using a reinforcement learning technique has also been proposed. A technique for generating a probabilistic model to be incorporated into a reinforcement learning system has also been proposed. Furthermore, a method for training a policy neural network used to select actions to be executed by an agent has also been proposed.

[0004] As a technique for constrained reinforcement learning, for example, a method for updating a policy using constrained policy optimization (CPO) has been proposed. CPO allows constraints to be satisfied even during learning. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2022-150947 A [Patent Document 2] JP 2020-201870 A [Patent Document 3] US Patent Application Publication No. 2020 / 0218999 [Patent Document 4] US Patent Application Publication No. 2020 / 0244707 [Non-patent literature]

[0006] [Non-Patent Document 1] Achiam, J., Held, D., Tamar, A., & Abbeel, P., "Constrained policy optimization", International conference on machine learning, PMLR, 2017 July, volime 70, pp. 22-31 Summary of the Invention [Problem to be solved by the invention]

[0007] In reinforcement learning that optimizes policies such as CPO, a hyperparameter δ is used. δ is the maximum value of the KL (Kullback-Leibler) distance of the action probability distribution before and after updating the policy parameter (θ). The KL distance is a value that indicates the difference between two probability distributions. The KL distance is also called the Kullback-Leibler divergence or Kullback-Leibler divergence. δ defines how much the action probability distribution is allowed to change in one update.

[0008] If the value of δ is too small, learning tends to take a long time. Also, if δ is too large, the reward may not be high enough. Therefore, it is necessary to set δ to an appropriate value. However, the appropriate value of δ differs for each problem, and it is not possible to know which value is best until learning converges. For this reason, in the past, reinforcement learning was repeated using various values ​​of δ until the reward converged, which resulted in excessive computational costs.

[0009] In one aspect, the present invention aims to make it possible to easily obtain appropriate values ​​for parameters used in reinforcement learning. [Means for solving the problem]

[0010] In one proposal, a reinforcement learning program is provided that causes a computer to perform the following processes. The computer performs reinforcement learning for each of the multiple candidate values ​​on the model, using each of the multiple candidate values ​​as an upper limit of the difference in the action probability distribution obtained from the model before and after updating the policy to be applied to the model corresponding to the problem that is the target of the reinforcement learning. The computer terminates the reinforcement learning for each of the multiple candidate values ​​based on a predetermined index value without waiting for the convergence of the reward. Then, the computer selects at least one candidate value from the multiple candidate values ​​based on the predetermined index value. Effect of the Invention

[0011] According to one aspect, it is possible to easily obtain appropriate values ​​for parameters used in reinforcement learning. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a diagram illustrating an example of a reinforcement learning method according to a first embodiment. [Diagram 2] FIG. 2 illustrates an example of computer hardware. [Diagram 3] FIG. 1 is a diagram illustrating the KL distance. [Figure 4] FIG. 13 is a diagram illustrating an example of the relationship between the number of epochs and reward for each value of δ. [Diagram 5] FIG. 1 is a block diagram showing an example of a function for reinforcement learning that a computer has. [Figure 6] 11 is a flowchart illustrating an example of a procedure for a model generation process. [Figure 7] 13 is a flowchart illustrating an example of a procedure for a δ pre-learning process. [Figure 8] 13 is a flowchart illustrating an example of a procedure for a policy update process. [Figure 9] 11 is a flowchart illustrating an example of a procedure for a reinforcement learning process. [Figure 10]FIG. 1 is a diagram illustrating an example of reinforcement learning of a model for performing sleep control of a base station in a wireless access network. [Figure 11] FIG. 13 is a diagram illustrating an example of a result of a δ pre-learning process. [Figure 12] It shows the average value of P for each candidate value of δ. In graph 63, the horizontal axis represents the candidate value of δ, and the vertical axis represents the average value of P. [Figure 13] FIG. 13 is a diagram illustrating an example of a change in reward according to an increase in the number of epochs for each value of δ. [Figure 14] FIG. 13 is a diagram showing an example of final rewards for each value of δ. [Figure 15] FIG. 1 illustrates an example of a base station management system in a wireless access network. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, the present embodiment will be described with reference to the drawings. Note that each embodiment can be implemented in combination with a plurality of other embodiments within a range that does not cause inconsistency. First Embodiment Fig. 1 is a diagram showing an example of a reinforcement learning method according to a first embodiment. Fig. 1 shows an information processing device 10 that implements the reinforcement learning method. The information processing device 10 can implement the reinforcement learning method according to the first embodiment by, for example, executing a reinforcement learning program.

[0014] The information processing device 10 includes a storage unit 11 and a processing unit 12. The storage unit 11 is, for example, a memory or a storage device included in the information processing device 10. The processing unit 12 is, for example, a processor or an arithmetic circuit included in the information processing device 10.

[0015] The storage unit 11 stores a candidate value group 1 including multiple candidate values ​​“δ1, δ2, . . . ” of a hyperparameter δ of reinforcement learning. For example, the hyperparameter δ is a value indicating an upper limit of the difference between action probability distributions 3a and 3b obtained from a model 2 corresponding to a reinforcement learning problem before and after updating a policy applied to the model 2.

[0016] The processing unit 12 performs pre-learning for the model 2 for each of the multiple candidate values ​​included in the candidate value group 1. The pre-learning is a simple reinforcement learning. During the pre-learning, the processing unit 12 sets each of the multiple candidate values ​​included in the candidate value group 1 as an upper limit of the difference between the action probability distributions 3a and 3b obtained from the model 2 before and after updating the policy applied to the model 2.

[0017] For example, in pre-learning, the processing unit 12 obtains action probability distributions 3a and 3b indicating the action probability of each of a plurality of possible actions when a state s is input to the model 2 while changing the policy applied to the model 2. The policy to be applied is represented by, for example, a parameter θ.

[0018] The processing unit 12 determines the policy to be used in the next learning for each learning using one policy. For example, the processing unit 12 determines the value of the parameter θ of the policy by approximation calculation so that the difference between the action probability distributions 3a and 3b is equal to or smaller than the applied candidate value. The processing unit 12 applies the determined policy to the next learning. That is, in the next learning, the processing unit 12 performs learning by applying the policy updated by approximation calculation based on the previous learning to the model 2, and calculates the difference in the action probability distribution before and after the policy update.

[0019] In addition, when the updated policy is calculated by approximation calculation, the difference in the action probability distribution obtained as a result of applying the policy may exceed a candidate value (the value of the hyperparameter δ) indicating the upper limit of the difference. Therefore, the processing unit 12 judges whether or not the condition that the difference in the action probability distribution is equal to or less than the applied candidate value is satisfied. If the difference exceeds the upper limit indicated by the applied candidate value, the processing unit 12 modifies the policy obtained by the approximation calculation and applies the modified policy to the next learning. In modifying the policy obtained by the approximation calculation, for example, the processing unit 12 reduces the update amount of the parameter θ indicating the policy. The model 2 is learned by repeating such policy updates.

[0020] The processing unit 12 terminates the reinforcement learning for each of the multiple candidate values ​​based on a predetermined index value without waiting for the convergence of the reward. The index value is, for example, a value related to the efficiency of generating an appropriate policy when updating the policy. The efficiency of generating an appropriate policy is represented, for example, by the probability P that the policy calculated by the approximation calculation does not need to be modified. In other words, when a policy is modified, the action probability distribution obtained by the policy before the modification is discarded, and the action probability distribution is recalculated by the policy after the modification. Such rework reduces the efficiency of generating an appropriate policy.

[0021] For example, the processing unit 12 terminates the pre-learning of each of the multiple candidate values ​​when an index value (e.g., probability P) obtained for each learning stops changing. The degree of change in the index value can be expressed, for example, by the variance of the index value in the most recent several learnings. For example, when the variance of the index value in the most recent N learnings (N is a natural number) for model 2 falls within a predetermined value, the processing unit 12 determines that the index value has stopped changing and terminates the reinforcement learning.

[0022] Furthermore, the processing unit 12 selects at least one candidate value from the plurality of candidate values ​​based on the index value. For example, the processing unit 12 selects a candidate value based on the magnitude of the index value at the end of reinforcement learning for each of the plurality of candidate values.

[0023] Specifically, the processing unit 12 selects the candidate value with the maximum index value. When the index value is a probability P, the processing unit 12 selects, for example, the candidate value with the maximum corresponding probability "P1, P2, ..." from among the candidate values ​​"δ1, δ2, ...". In this way, the candidate value indicating the appropriate value of the hyperparameter δ is selected.

[0024] Furthermore, the processing unit 12 may select at least one of one or more candidate values ​​whose index value is greater than the threshold value based on the magnitude of the candidate value. For example, the processing unit 12 selects the largest candidate value among the candidate values ​​whose index value is greater than the threshold value. The larger the candidate value (the upper limit of the difference between the action probability distributions 3a and 3b), the larger the amount of change in the policy for each learning session, and the more likely it is that the reward in reinforcement learning will converge early. Therefore, by selecting the largest candidate value among the candidate values ​​whose index value is greater than the threshold value, the overall amount of calculation is reduced.

[0025] When the candidate value is selected, the processing unit 12 performs reinforcement learning on the model 2 until the reward converges, with the selected candidate value being the upper limit of the difference in the behavior probability distribution. In this way, the processing unit 12 terminates the reinforcement learning to which each of the multiple candidate values ​​of the hyperparameter δ is applied before the reward converges, and selects the candidate value selected based on a predetermined index value as the appropriate value of the hyperparameter δ. Here, the appropriate value of the hyperparameter δ is a value that obtains a reward close to the maximum.

[0026] By performing simple reinforcement learning for each of the multiple candidate values, an appropriate value for the hyperparameter δ is selected, and the reinforcement learning until the reward converges only requires learning when the selected hyperparameter δ value is applied. As a result, the amount of calculation for the reinforcement learning is reduced.

[0027] Second Embodiment The second embodiment is a computer that can easily obtain an appropriate value for the hyperparameter δ that indicates the maximum value of the KL distance when performing constrained reinforcement learning.

[0028] 2 is a diagram showing an example of computer hardware. The entire computer 100 is controlled by a processor 101. A memory 102 and a plurality of peripheral devices are connected to the processor 101 via a bus 109. The processor 101 may be a multiprocessor. The processor 101 is, for example, a central processing unit (CPU), a micro processing unit (MPU), or a digital signal processor (DSP). At least a part of the functions realized by the processor 101 executing a program may be realized by an electronic circuit such as an application specific integrated circuit (ASIC) or a programmable logic device (PLD).

[0029] The memory 102 is used as a main storage device of the computer 100. The memory 102 temporarily stores at least a part of the OS (Operating System) program and application programs to be executed by the processor 101. The memory 102 also stores various data used in the processing by the processor 101. As the memory 102, for example, a volatile semiconductor storage device such as a RAM (Random Access Memory) is used.

[0030] The peripheral devices connected to the bus 109 include a storage device 103, a GPU (Graphics Processing Unit) 104, an input interface 105, an optical drive device 106, a device connection interface 107, and a network interface 108.

[0031] The storage device 103 electrically or magnetically writes and reads data to and from a built-in recording medium. The storage device 103 is used as an auxiliary storage device for the computer 100. The storage device 103 stores an OS program, application programs, and various data. Note that, for example, a hard disk drive (HDD) or a solid state drive (SSD) can be used as the storage device 103.

[0032] The GPU 104 is an arithmetic device that performs image processing. The GPU 104 is an example of a graphic controller. The monitor 21 is connected to the GPU 104. The GPU 104 displays an image on the screen of the monitor 21 in accordance with an instruction from the processor 101. The monitor 21 may be a display device using an organic EL (Electro Luminescence) display device or a liquid crystal display device.

[0033] The input interface 105 is connected to the keyboard 22 and the mouse 23. The input interface 105 transmits signals sent from the keyboard 22 and the mouse 23 to the processor 101. Note that the mouse 23 is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.

[0034] The optical drive device 106 uses a laser beam or the like to read data recorded on the optical disc 24 or write data to the optical disc 24. The optical disc 24 is a portable recording medium on which data is recorded so that it can be read by reflection of light. The optical disc 24 includes a DVD (Digital Versatile Disc), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), etc.

[0035] The device connection interface 107 is a communication interface for connecting peripheral devices to the computer 100. For example, a memory device 25 or a memory reader / writer 26 can be connected to the device connection interface 107. The memory device 25 is a recording medium equipped with a function for communicating with the device connection interface 107. The memory reader / writer 26 is a device for writing data to the memory card 27 or reading data from the memory card 27. The memory card 27 is a card-type recording medium.

[0036] The network interface 108 is connected to the network 20. The network interface 108 transmits and receives data to and from other computers or communication devices via the network 20. The network interface 108 is a wired communication interface that is connected by a cable to a wired communication device such as a switch or a router. The network interface 108 may also be a wireless communication interface that is communicatively connected by radio waves to a wireless communication device such as a base station or an access point.

[0037] The computer 100 can realize the processing functions of the second embodiment by the above-mentioned hardware. The information processing device 10 shown in the first embodiment can also be realized by the same hardware as the computer 100 shown in FIG.

[0038] The computer 100 executes a program recorded in, for example, a computer-readable recording medium to realize the processing function of the second embodiment. The program describing the processing contents to be executed by the computer 100 can be recorded in various recording media. For example, the program to be executed by the computer 100 can be stored in the storage device 103. The processor 101 loads at least a part of the program in the storage device 103 into the memory 102 and executes the program. The program to be executed by the computer 100 can also be recorded in a portable recording medium such as the optical disk 24, the memory device 25, or the memory card 27. The program stored in the portable recording medium becomes executable after being installed in the storage device 103 under the control of, for example, the processor 101. The processor 101 can also directly read out and execute the program from the portable recording medium.

[0039] Here, an appropriate value for the hyperparameter δ used in reinforcement learning will be described with reference to FIGS. 3 and 4. FIG. FIG. 3 is a diagram explaining the KL distance. In reinforcement learning, a model 31 is first prepared. The model 31 is, for example, a neural network. A policy that is a rule for determining an action is set in the model 31. The policy is represented by a parameter θ. The parameter θ is, for example, a plurality of weight parameters that indicate the relationship between neurons included in the model 31. In reinforcement learning, when a state s is input to the model 31, for example, the probability of executing each of a plurality of possible actions is calculated using the model 31 to which the policy represented by the parameter θ is applied.

[0040] An action probability distribution a, which indicates the calculated probability for each action, is represented, for example, by a frequency distribution diagram 32. The horizontal axis of the frequency distribution diagram 32 is the action, and the vertical axis is the probability of each action. When an action is determined according to the calculated probability, a reward for that action is calculated. The reward is given when a desirable result is obtained for the environment. The model 31 is then updated so that the reward is maximized.

[0041] In the updated model 33, the policy parameters have been updated from θ to θ'. When a state s is input to the model 33, for example, the probability of executing each possible action when the updated policy parameters θ' are applied to the state s is calculated. An action probability distribution a' indicating the calculated probability for each action is represented by a frequency distribution diagram 34. The horizontal axis of the frequency distribution diagram 34 represents the action, and the vertical axis represents the probability of each action.

[0042] The action probability distribution a' after the update is different from the action probability distribution a before the update. The KL distance is an index that indicates the magnitude of the difference between the action probability distribution a' and the action probability distribution a. Hereinafter, the KL distance calculated from the action probability distributions before and after the policy update is called the actual KL distance.

[0043] The parameter θ of the policy can be represented by a vector having multiple values ​​(e.g., weight values). When updating the parameter θ of the policy, the update direction and update width of the parameter θ of the policy are calculated. That is, the parameter θ of the policy after update is obtained by shifting the parameter θ of the policy in the calculated update direction by the calculated update width.

[0044] In CPO, the maximum value of the KL distance of the performance before and after updating the policy parameter θ is specified by the hyperparameter δ. In other words, δ is a value that indicates how much change in the action probability distribution due to one update is tolerated. Therefore, in CPO, the update direction and update size of the policy parameter θ are determined so that the KL distance of the performance is less than or equal to δ.

[0045] The update direction and update size of the policy parameter θ such that the KL distance of the results is equal to or smaller than δ can be obtained by approximation. Since this is an approximation, an error may occur, and the KL distance of the results after the update may exceed δ. In that case, the update size of the policy parameter θ is corrected to a size smaller than the update size calculated by the approximation, and the update process of the policy parameter θ is redone.

[0046] The value of δ also affects the number of epochs it takes for the reward to converge, and the value of the reward when it does. The number of epochs is the number of times the policy is updated. FIG. 4 is a diagram showing an example of the relationship between the number of epochs and the reward for each value of δ. In FIG. 4, the relationship between the number of epochs and the reward for each value of δ is shown in graph 35. The horizontal axis of graph 35 is the number of epochs, and the vertical axis is the reward. Graph 35 shows the relationship between the number of epochs and the reward for each value of δ, -1 ,10 -2 ,10 -3 ,10 -4 ,10 -5 For each, a line graph shows the change in reward with increasing number of epochs when reinforcement learning is performed with that value of δ.

[0047] For example, δ=10 -5 In the case of δ=10, the increase in reward with an increase in the number of epochs is small. Therefore, the number of epochs required for the reward to converge is excessive. Note that the reward converges when, for example, the increase in reward when the number of epochs is increased is below a threshold value. In the example of Graph 35, -5 In this case, the reward has not converged even after 20,000 epochs.

[0048] For example, δ=10 -4 Even so, the increase in reward with the increase in the number of epochs is still small. Therefore, in the example of Graph 35, δ = 10 -4 Even if δ=10 -5 Similarly, the reward has not converged even after 20,000 epochs.

[0049] δ=10 -3 Then, the increase in reward with the increase in the number of epochs is δ=10 -4 Moreover, in the example of Graph 35, δ = 10 -3 In this case, the reward converges before the number of epochs reaches 20,000.

[0050] δ=10 -2 Then, when the number of epochs is small, the increase in reward with the increase in the number of epochs is δ=10 -3However, δ=10 -2 In the case of , when the number of epochs is about 4000, the increase in reward with the increase in the number of epochs decreases, and when the number of epochs exceeds 6000, the change in reward becomes δ=10 -3 The results are almost the same as in the case of

[0051] δ=10 -1 Then, when the number of epochs is small, the increase in reward with the increase in the number of epochs is δ = 10 -2 However, there is no significant difference from the case of δ=10 -1 In the case of , when the number of epochs exceeds 4000, the increase in rewards with increasing number of epochs stops.

[0052] As can be seen from Graph 35, if the value of δ is too small, it will take a long time for the reward to converge, whereas if δ is too large, the reward may not be high enough before it converges. In the example of Graph 35, δ = 10 -2 or δ=10 -3 is found to be appropriate.

[0053] The appropriate value of δ differs for each problem. Conventionally, it is not possible to determine the appropriate value of δ unless learning is continued until the reward converges for each of the multiple values ​​of δ. Therefore, in order to find the appropriate value of δ, the user has to repeatedly execute reinforcement learning on the computer 100 while changing the value of δ. As a result, the calculation cost becomes excessive.

[0054] Therefore, in the computer 100 according to the second embodiment, a short learning process is performed in advance to select an appropriate δ, and the selected δ is used to perform full-scale learning (until convergence). 5 is a block diagram showing an example of functions for reinforcement learning that a computer has. The computer 100 has a storage unit 110, a δ learning unit 120, a reinforcement learning unit 130, and an environment simulation unit 140.

[0055] The storage unit 110 stores a δ candidate list 111 and environment definition information 112. The δ candidate list 111 is a list of candidate values ​​of δ. For example, the δ candidate list 111 includes a list of “10 -1 ,10 -2 A value such as ",..." is set. The environment definition information 112 is information about the environment corresponding to the reinforcement learning problem. For example, when a model capable of reducing power consumption of a base station of a wireless access network is obtained by constrained reinforcement learning, information such as the performance of the base station is set in the environment definition information 112.

[0056] The δ learning unit 120 performs simplified learning in cooperation with the environment simulation unit 140 for each value of δ shown in the δ candidate list 111. The δ learning unit 120 then selects an appropriate value of δ based on the learning results. Here, simplified learning means that learning is not continued until the reward converges, but rather learning is terminated when a predetermined condition is satisfied even if the reward has not converged.

[0057] For example, the δ learning unit 120 defines the proportion of the most recent N policy updates in which the difference between the actual KL distance and δ falls within a predetermined range as P (P is a real number). For example, P is defined as "the proportion of 0.9≦(actual KL distance / δ)≦1.0". Note that other definitions may be used as long as it can be shown that the difference between the actual KL distance and δ is small. P indicates the probability that the update of the policy represented by the parameter θ will not cause the actual KL distance to exceed δ and will be sufficiently close to δ. This is also the probability that the result of the approximation calculation of the update direction and update width of the policy parameter θ such that the actual KL distance is equal to or smaller than δ can be applied as the policy parameter θ in the next epoch without modification. The larger the value of P, the less frequently the policy parameter θ is modified (the update width is reduced) and learning is repeated, making the processing more efficient.

[0058] The δ learning unit 120 calculates P from preliminary simple learning for all candidate δ. For example, the δ learning unit 120 selects the value of δ that maximizes P as an appropriate value of δ. The δ learning unit 120 also selects the maximum value of δ that maximizes P to a threshold value X (X is a positive real number) or more as an appropriate value of δ.

[0059] If the value of δ that maximizes P is selected, the calculation time until convergence may be long. If the maximum value of δ that maximizes P is selected, the minimum value required for P is set as the threshold value X, and the maximum value of δ (predicted to have the shortest calculation time) is selected from among the δ values ​​with P exceeding X.

[0060] The reinforcement learning unit 130, in cooperation with the environment simulation unit 140, executes reinforcement learning until the reward converges with the value of δ selected by the δ learning unit 120. As a result of the reinforcement learning unit 130, a trained model is generated.

[0061] The environment simulation unit 140 simulates changes in the state of the environment defined by the reinforcement learning problem based on the environment definition information 112. For example, the environment simulation unit 140 simulates the utilization rate or power consumption of each base station based on the sleep control (which base station is to be put into a sleep state) of the base station in the wireless access network. The environment simulation unit 140 transmits the simulation result to the δ learning unit 120 or the reinforcement learning unit 130.

[0062] The function of each element shown in FIG. 5 can be realized, for example, by causing the processor 101 to execute a program module corresponding to that element. Next, a procedure for model generation processing by reinforcement learning involving pre-learning of δ will be described.

[0063] 6 is a flowchart showing an example of a procedure for a model generation process. The process shown in FIG. 6 will be described below in order of step numbers. [Step S 101 ] The δ learning unit 120 acquires candidates for the value of δ from the δ candidate list 111 .

[0064] [Step S102] The δ learning unit 120 performs a δ pre-learning process. The details of the δ pre-learning process will be described later (see FIG. 7). As a result of the δ pre-learning process, for each candidate value of δ, an average value of P calculated multiple times by changing the initial value of the policy parameter θ is obtained. The reason for calculating P multiple times for each candidate value and taking the average value is to prevent P from fluctuating significantly due to the influence of random numbers when generating the initial value.

[0065] [Step S103] Based on the result of the δ pre-learning process, the δ learning unit 120 selects an appropriate value of δ from among the candidate values ​​of δ. For example, the δ learning unit 120 selects the value of δ that maximizes the average value of P. Alternatively, the δ learning unit 120 may select the maximum value of δ that maximizes the average value of P to a threshold value or more.

[0066] [Step S104] The reinforcement learning unit 130 performs reinforcement learning processing based on the selected value of 6. The details of the reinforcement learning processing will be described later (see FIG. 9). [Step S105] The reinforcement learning unit 130 outputs a model generated by reinforcement learning. The generated model is a model to which a parameter θ of a policy with the highest reward has been assigned.

[0067] Next, the δ pre-learning process will be described in detail. 7 is a flowchart showing an example of a procedure for a δ pre-learning process. The process shown in FIG. 7 will be described below in order of step numbers.

[0068] [Step S111] The δ learning unit 120 sets an initial value of “1” to a variable i. [Step S112] The δ learning unit 120 sets the i-th candidate value of δ set in the δ candidate list as the δ to be used in the δ pre-learning.

[0069] [Step S113] The δ learning unit 120 sets the initial value of the variable j to “1”. [Step S114] The δ learning unit 120 performs an initial setting of a parameter θ (a set of multiple parameter values) of the policy. For example, the δ learning unit 120 generates multiple random numbers and sets the generated random numbers as initial values ​​of the parameter θ of the policy.

[0070] [Step S115] The δ learning unit 120 calculates action probabilities indicating the probability that each possible action will be taken, according to a model to which a policy represented by the parameter θ is applied. [Step S116] The δ learning unit 120 updates the policy. The procedure of the policy update process will be described later (see FIG. 8). The policy is updated so that the KL distance between the action probability distributions before and after the update is equal to or smaller than the hyperparameter δ. As a result of the policy update process, the KL distance of the performance and the updated parameter θ are obtained.

[0071] [Step S117] The δ learning unit 120 calculates P (the proportion of the difference between the actual KL distance and δ that falls within a predetermined range) for the actual KL distance obtained in the past N policy updates. Then, the δ learning unit 120 calculates the variance of P obtained for each policy update for the i-th candidate value of δ.

[0072] [Step S118] The δ learning unit 120 judges whether or not the condition that the epochs in which the variance of P is within an error e (e is a positive real number) (the variance of P≦e) continue for n epochs (n is a natural number) is satisfied. If the condition is satisfied, the δ learning unit 120 proceeds to step S119. If the condition is not satisfied, the δ learning unit 120 proceeds to step S116.

[0073] [Step S119] The δ learning unit 120 judges whether the value of the variable j is equal to r (r is a natural number). If the value of the variable j is equal to r, the δ learning unit 120 proceeds to step S121. If the value of the variable j is less than r, the δ learning unit 120 proceeds to step S120.

[0074] [Step S120] The δ learning unit 120 adds 1 to the variable j (j=j+1). After that, the δ learning unit 120 advances the process to step S114. [Step S121] The δ learning unit 120 calculates the average value of r Ps (Ps when the condition in step S118 is satisfied) obtained by repeating the process of steps S114 to S118 r times.

[0075] [Step S122] The δ learning unit 120 judges whether the number of candidates for the variable i is equal to that for δ. If the number of candidates for the variable i is equal to that for δ, the δ learning unit 120 ends the δ pre-learning process. If the number of candidates for the variable i is less than the number of candidates for δ, the δ learning unit 120 advances the process to step S123.

[0076] [Step S123] The δ learning unit 120 adds 1 to the variable i (i=i+1). After that, the δ learning unit 120 advances the process to step S112. In this manner, the average value of P for each candidate value of δ is calculated by the δ pre-learning process.

[0077] Next, the policy update process will be described in detail. 8 is a flowchart showing an example of a procedure for a policy update process. The process shown in FIG. 8 will be described below in order of step numbers.

[0078] [Step S131] The δ learning unit 120 calculates an update direction and an update width of the policy parameter θ based on δ. For example, when updating the policy parameter θ by CPO, the δ learning unit 120 solves the optimization problems shown in Equations (1) and (2).

[0079]

number

[0080]

number

[0081] π indicates a policy. Policy π is a model that outputs the probability of each action a when state s is given, for example. A neural network can be used as a model of policy π. Π_θ is a set of policies parameterized by θ. J(π) is the cumulative reward that takes into account the discount rate for the calculation results according to the model that applies policy π. The discount rate is a hyperparameter that indicates how much to discount future value. J c (π) is the cumulative cost taking into account the discount rate. Costs are incurred according to constraints.

[0082] d is J c (π). D(π,π k ) is π,π k δ is a measure of the distance between D(π,π k ) δ can also be thought of as the step size when updating the policy.

[0083] In formula (1), "arg max J(π)" is a set of arguments that gives the maximum value of J(π). In other words, the parameter θ (including multiple values) that maximizes the cumulative reward considering the discount rate is the updated policy π. k+1 It becomes.

[0084] The δ learning unit 120 can solve the above optimization problem by, for example, approximation. For example, the δ learning unit 120 can solve the above optimization problem by, for example, approximation calculation, the policy π is set as a parameter θ, and the objective function J(θ) and the cost function J c (θ) is expanded to the first order by Taylor. The δ learning unit 120 also calculates the KL distance D(π,π k ) is expanded to second order by the Taylor series. As a result, equations (1) and (2) become the following equations (3) and (4).

[0085]

number

[0086]

number

[0087] g is θ=θ k is the gradient of J(θ) at θ=θ k J in c (θ). H is the gradient of D(π,π k Here, equation (5) can be considered as the dual problem of the optimization problem of equation (3).

[0088]

number

[0089] In formula (5), "r = g T H -1 b", "s=b T H -1 b". * ,v * Taking the solution of the dual problem as the solution, the solution θ of the approximate optimization problem (3) is * is given by equation (6).

[0090]

number

[0091] In this way, it is possible to approximately determine a parameter θ indicating a post-update policy such that the KL distance is equal to or smaller than δ (the maximum value of the KL distance). For example, the direction of a vector indicating a difference between a vector having elements of multiple values ​​included in the parameter θ of the post-update policy and a vector having elements of multiple values ​​included in the parameter θ of the policy before the update is the update direction of the parameter θ. The length of the vector indicating the difference is the update width of the parameter θ.

[0092] [Step S132] The δ learning unit 120 updates the policy. For example, the δ learning unit 120 sets the updated parameter θ calculated in step S131 as the updated policy. [Step S133] The δ learning unit 120 calculates an action probability based on the parameter θ. For example, the δ learning unit 120 calculates an action probability indicating the probability that each possible action will be performed according to a model to which a policy represented by the updated parameter θ is applied.

[0093] [Step S134] The δ learning unit 120 calculates the KL distance between the results before and after the update. [Step S135] The δ learning unit 120 judges whether the KL distance of the result is less than or equal to δ. If the KL distance of the result is less than or equal to δ, the δ learning unit 120 proceeds to step S136. If the KL distance of the result exceeds δ, the δ learning unit 120 proceeds to step S137.

[0094] [Step S136] The δ learning unit 120 judges whether or not a given constraint is satisfied. If the constraint is satisfied, the δ learning unit 120 ends the policy update process. If the constraint is not satisfied, the δ learning unit 120 advances the process to step S137.

[0095] [Step S137] The δ learning unit 120 decreases the update width of the parameter θ. After that, the δ learning unit 120 proceeds to step S132. In this way, the policy is updated so that the KL distance of the actual results is less than or equal to δ and the predetermined constraints are observed.

[0096] Next, the reinforcement learning process will be described in detail. 9 is a flowchart showing an example of a procedure for a reinforcement learning process. The process shown in FIG. 9 will be described below in order of step numbers.

[0097] [Step S201] The reinforcement learning unit 130 sets a selected value of δ. [Step S202] The reinforcement learning unit 130 sets an initial value of a parameter θ of the policy. [Step S203] The reinforcement learning unit 130 calculates the action probability based on the parameter θ.

[0098] [Step S204] The reinforcement learning unit 130 updates the policy. The procedure for updating the policy is similar to the process shown in FIG. [Step S205] The reinforcement learning unit 130 judges whether the reward has converged. For example, the reinforcement learning unit 130 judges that the reward has converged when the difference between the reward before and after the policy update is equal to or less than a predetermined threshold. If the reward has converged, the reinforcement learning unit 130 ends the reinforcement learning process. If the reward has not converged, the reinforcement learning unit 130 advances the process to step S204.

[0099] In this way, in the reinforcement learning process, reinforcement learning is performed by applying a preselected value of δ. Reinforcement learning is performed until the reward converges, but there is no need to change the setting of the δ value by trial and error, and the computational cost is low.

[0100] Next, an example of generating a model for a specific reinforcement learning problem will be described. FIG. 10 is a diagram showing an example of reinforcement learning of a model for performing sleep control of base stations in a wireless access network. In the sleep control of base stations in a wireless access network, for example, a base station to be made active and a base station to be made sleep are determined so as to suppress power consumption as much as possible. An active base station is a base station that is in a state in which communication with surrounding wireless terminals is possible. A sleep base station is a base station that is in a state in which communication with surrounding wireless terminals is impossible. A sleep base station consumes less power than an active base station.

[0101] Fig. 10 shows the arrangement of base stations on a map. The base stations include macro base station 40 and small base stations 41 to 48. The macro base station 40 is a base station that can cover a wider area than the small base stations 41 to 48. The small base stations 41 to 48 are base stations that cover narrower areas. In the state shown in Fig. 10, the macro base station 40 is in an active state, some of the small base stations 41 and 42 are also in an active state, and the other small base stations 43 to 48 are in a sleep state.

[0102] For example, in places or during times when traffic volume is low, it is desirable to put the surrounding small base stations into a sleep state. On the other hand, to ensure communication quality, it is necessary to keep the utilization rate of active base stations below a certain value.

[0103] In the reinforcement learning of the model for performing such sleep control, the time, traffic volume, and utilization rate of the base station one hour before are used as the state. The state of the small base station (active or sleeping) is used as the action. The reward is higher as the power consumption is smaller. The constraint is, for example, the condition that the utilization rate of the active base station is below a set value.

[0104] The following parameters are used in this type of reinforcement learning: P: The ratio of N policy updates where 0.9≦(actual KL distance / δ)≦1.0 Candidate value for δ: 10 -6 ,10 -5 ,···,10 -2 e=1% n=100 epochs ·r=3 times · Selection criteria for δ: Select the maximum δ such that P is greater than or equal to X (X = 0.60). Under these conditions, the δ pre-learning process is first executed.

[0105] FIG. 11 is a diagram showing an example of the results of the δ pre-learning process. Graph 61 shows the change in variance of P with an increase in the number of epochs for each candidate value of δ. In graph 61, the horizontal axis represents the number of epochs, and the vertical axis represents the variance of P. Since the number of candidate values ​​of δ is "5" and r is "3", 15 broken lines are shown in graph 61. The end points of each broken line show the number of epochs and P when the stopping condition of "the error of the variance of P is within 1% for 100 epochs" is satisfied.

[0106] Graph 62 shows the number of epochs until the stopping condition is satisfied for each candidate value of δ. In graph 62, the horizontal axis is the number of epochs, and the vertical axis is the candidate value of δ. The circle at the end of the line shown next to the candidate value of δ indicates the number of epochs when the stopping condition is satisfied in pre-learning for that candidate value of δ.

[0107] FIG. 12 shows the average value of P for each candidate value of δ. In the graph 63, the horizontal axis is the candidate value of δ, and the vertical axis is the average value of P. -2 ,10 -3 The average value of P is less than or equal to X. Also, the candidate value of δ is 10 -4 ,10 -5 ,10 -6 The average value of P is equal to or greater than X. In this case, among the candidate values ​​of δ for which the average value of P is equal to or greater than X, the largest value is 10 -4 Therefore, the candidate value of δ is 10 -4 is selected as the value of δ that is adaptive to reinforcement learning.

[0108] FIG. 13 is a diagram showing an example of the change in reward as the number of epochs increases for each value of δ. In graph 64, the horizontal axis represents the number of epochs, and the vertical axis represents the reward. Each of the lines in graph 64 corresponds to a value of δ. Each line represents the change in reward as the number of epochs increases when reinforcement learning is performed with the corresponding value of δ. The candidate value of δ selected in the example shown in FIG. 12 is 10 -4 However, Graph 64 shows the results of reinforcement learning for other candidate values ​​of δ for comparison. As shown in Graph 64, when the value of δ is 10 -6 If it is too small, such as , the reward will not converge easily and the number of epochs until convergence will be excessive.

[0109] FIG. 14 is a diagram showing an example of the final reward for each value of δ. In the graph 65, the horizontal axis is the value of δ, and the vertical axis is the reward. As shown in the graph 65, -2 In this case, the value of δ is too large and convergence occurs before the reward is large enough.

[0110] As can be seen from FIG. 13 and FIG. 14, δ=10 was selected by performing δ pre-learning. -4 In reinforcement learning using this method, it is possible to obtain rewards close to the maximum while keeping the number of epochs to a minimum.

[0111] In addition, if full-scale reinforcement learning (reinforcement learning until the reward converges) is performed for each candidate value of δ without pre-learning, 408,585 epochs are required. -4 The total number of epochs for full-scale reinforcement learning is 79,558 epochs. This shows that the amount of computation is reduced to about 1 / 5 by using delta pre-learning.

[0112] A model trained by such reinforcement learning can be effectively used for managing wireless base stations in organizations that operate wireless access networks, such as mobile phone companies.

[0113] 15 is a diagram showing an example of a base station management system in a wireless access network. For example, a base station management server 200 manages the operation states (active or sleep) of wireless base stations 71-74. The base station management server 200 can also acquire information such as the traffic volume at each time in each of the base stations 71-74, the usage rate of the base station, and power consumption. The base station management server 200 transmits the acquired information to the computer 100 as status data 81.

[0114] The computer 100 executes reinforcement learning with δ pre-learning by imitating the operation of the wireless access network by the environment simulation unit 140, and generates a model in which a policy that maximizes the reward is set. The computer 100 then inputs the state indicated by the state data 81 acquired from the base station management server 200 into the model, and determines the action (whether to activate or sleep each base station). The computer 100 transmits action data 82 indicating the determined action to the base station management server 200. The base station management server 200 controls the operation states of the base stations 71 to 74 based on the action data 82.

[0115] When the computer 100 obtains the status data 81 indicating the status of the base stations 71-74 after transmitting the action data 82 from the base station management server 200, the computer 100 calculates the reward for the instructed action. Then, the computer 100 updates the policy of the model so as to increase the reward. This generates an accurate model and promotes power saving in the wireless access network.

[0116] Other embodiments In the second embodiment, the reinforcement learning is performed in the computer 100 separate from the base station management server 200 . However, the reinforcement learning may be performed within the base station management server 200 .

[0117] In the second embodiment, a method for selecting an appropriate δ in CPO has been shown, but the present invention can also be applied to a method for selecting an appropriate hyperparameter in other policy optimization methods in reinforcement learning. For example, the present invention can be applied to Trust Region Policy Optimization (TRPO), which is a method for updating a policy in reinforcement learning.

[0118] Although the embodiments have been described above, the configurations of the parts shown in the embodiments can be replaced with other configurations having similar functions. Any other components or steps may be added. Furthermore, any two or more configurations (features) of the above-described embodiments may be combined. [Explanation of symbols]

[0119] 1 Candidate value set 2 Models 3a,3b Action probability distribution 10. Information processing device 11 Storage section 12 Processing section

Claims

1. performing the reinforcement learning for each of a plurality of candidate values ​​on the model corresponding to the problem to be subjected to the reinforcement learning, with each of the plurality of candidate values ​​being set as an upper limit of a difference in an action probability distribution obtained from the model before and after updating a policy to be applied to the model; terminating the reinforcement learning for each of the plurality of candidate values ​​based on a predetermined index value without waiting for convergence of a reward; selecting at least one candidate value from the plurality of candidate values ​​based on the predetermined index value; A reinforcement learning program that causes a computer to carry out processing.

2. The selected candidate value is set as an upper limit of a difference in the action probability distribution obtained from the model before and after updating the policy, and the reinforcement learning is performed on the model until the reward converges. The reinforcement learning program according to claim 1 , further causing a computer to execute a process.

3. In the process of performing the reinforcement learning for each of the plurality of candidate values ​​on the model, an updated policy in which a difference in the action probability distribution before and after the update of the policy becomes one candidate value is calculated by approximation calculation, the updated policy is applied to the model to calculate a difference in the action probability distribution before and after the update of the policy, and if the difference in the action probability distribution exceeds the one candidate value, the updated policy is modified, and the modified policy is applied to learn the model; In the process of terminating the reinforcement learning for each of the plurality of candidate values, a probability that the updated policy calculated by the approximation calculation is corrected is set as the index value. The reinforcement learning program according to claim 1 or 2.

4. In the process of terminating the reinforcement learning for each of the plurality of candidate values, the reinforcement learning is terminated when a variance of the index values ​​in the most recent N times (N is a natural number) of learning for the model falls within a predetermined value. The reinforcement learning program according to claim 1 or 2.

5. In the process of selecting the candidate value, the candidate value is selected based on the magnitude of the index value at the end of the reinforcement learning for each of the plurality of candidate values. The reinforcement learning program according to claim 1 or 2.

6. In the process of selecting the candidate value, at least one of the first candidate values ​​having the index value greater than a threshold value is selected based on the magnitude of each of the first candidate values. The reinforcement learning program according to claim 1 or 2.

7. performing the reinforcement learning for each of a plurality of candidate values ​​on the model corresponding to the problem to be subjected to the reinforcement learning, with each of the plurality of candidate values ​​being set as an upper limit of a difference in an action probability distribution obtained from the model before and after updating a policy to be applied to the model; terminating the reinforcement learning for each of the plurality of candidate values ​​based on a predetermined index value without waiting for convergence of a reward; selecting at least one candidate value from the plurality of candidate values ​​based on the predetermined index value; A reinforcement learning method in which processing is carried out by a computer.

8. a processing unit that performs the reinforcement learning for each of a plurality of candidate values ​​on the model corresponding to a problem that is a target of reinforcement learning, using each of the plurality of candidate values ​​as an upper limit of a difference in an action probability distribution obtained from the model before and after updating a policy to be applied to the model, terminates the reinforcement learning for each of the plurality of candidate values ​​based on a predetermined index value without waiting for convergence of a reward, and selects at least one candidate value from the plurality of candidate values ​​based on the predetermined index value; An information processing device having the above configuration.

Citation Information

Patent Citations

  • Hyper-parameter management device, hyper-parameter management method and hyper-parameter management program product

    JP2020201870A

  • Learning model hyper parameter determination method, hyperparameter determination device, and production schedule creation system

    JP2022150947A

  • Machine learning system

    US20200218999A1

  • Multi-agent reinforcement learning with matchmaking policies

    US20200244707A1