Action determination method and action determination device
The behavior determination method and device address the limitations of existing reinforcement learning by dynamically adjusting action decision randomness based on environmental changes, enhancing adaptability and responsiveness through optimization calculations, ensuring suitable action selection in evolving conditions.
Patent Information
- Application Number
- PCT/JP2023/016404
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-10-31
AI Technical Summary
Reinforcement learning methods, such as those described in Patent Document 1, require re-learning every time the environment changes, limiting their ability to adapt to new conditions and select optimal actions effectively.
A behavior determination method and device that adjusts the randomness of action decisions based on environmental changes by modifying calculation parameters, allowing for optimization calculations using models like quantum annealing or genetic algorithms to select actions suitable for the new environment.
Enables the system to increase the likelihood of selecting suitable actions in changed environments by dynamically adjusting the optimization calculation randomness, thereby improving adaptability and responsiveness to environmental fluctuations.
Smart Images

Figure JP2023016404_31102024_PF_FP_ABST
Abstract
Description
Behavior decision method and behavior decision device
[0001] The present invention relates to a behavior determination method and a behavior determination device.
[0002] Machine learning can be broadly divided into supervised learning, unsupervised learning, and reinforcement learning. Reinforcement learning is said to be suitable for learning autonomous driving and behavior optimization, and is attracting attention.
[0003] Reinforcement learning is a learning method in which an agent executes a task by repeatedly interacting with the environment through trial and error. Interaction refers to the mutual exchange of information between the agent and the environment.
[0004] In reinforcement learning, the agent and the environment send and receive information about the state, action, and reward. The state is the situation the agent is in, and the action is the agent's behavior. The reward is an evaluation index for the agent's state after the action. The agent inputs actions based on the policy to the environment. The environment inputs the state and reward to the agent according to the agent's actions. The agent and the environment repeatedly interact through trial and error to maximize the reward.
[0005] For example, Patent Document 1 discloses a reinforcement learning method that applies optimization calculation to a reward function.
[0006] Patent No. 7111178
[0007] In the reinforcement learning method described in Patent Document 1, the distribution function Z R The probability distribution function (π(a|s) = exp(r a (s)) / Z R) represents the policy. The agent decides on an action according to the policy. If the policy is defined by a probability distribution, the randomness of the action decision is uniquely determined. When the real environment does not change, there is no problem in deciding on an action according to the learned policy. However, when the real environment changes, the action is decided based on the policy learned in the real environment before the change. In this case, the action decision in the changed real environment is made based on the policy learned in the real environment before the change, which may reduce the validity of the action decision. Therefore, the reinforcement learning method described in Patent Document 1 requires re-learning every time the real environment changes, and cannot adequately respond to changes in the real environment.
[0008] The present invention has been made in consideration of the above circumstances, and aims to provide a behavior decision-making method and a behavior decision-making device that can increase the probability of selecting an action that is not truly optimal during learning by changing the randomness of behavior decision-making in response to changes in the real environment, and can increase the possibility of selecting an action that is appropriate for a changed environment even when the environment changes.
[0009] In order to solve the above problems, the present invention provides the following means.
[0010] The behavior decision method according to the first aspect includes a behavior decision step, a state change step, and a learning step. In the behavior decision step, an optimization calculation is performed based on a policy represented by a model applicable to the optimization calculation to decide the behavior of an agent. In the state change step, the behavior is input into a real environment, causing an interaction between the real environment and the agent and changing the state of the agent. In the learning step, the value of the agent's state after the behavior is obtained as a reward, and the next policy is decided based on the reward. The randomness of the optimization calculation can be changed by calculation parameters. The calculation parameters are changed based on the amount of change in the real environment between the learning step and the behavior decision step.
[0011] A behavior determination device according to a second aspect includes a learning unit, a first control unit, and a second control unit. The first control unit executes optimization calculations based on a policy expressed by a model applicable to optimization calculations to determine an agent's behavior. The second control unit inputs the behavior into a real environment and changes the state of the agent. The learning unit obtains the state of the agent after the behavior as a reward and determines a next policy based on the reward. The optimization calculations can change randomness using calculation parameters. The calculation parameters are changed based on the amount of change in the real environment between when the agent's behavior is determined and when the policy is determined.
[0012] The behavior decision-making method and behavior decision-making device according to the present invention can be adapted to environmental changes by changing the randomness of behavior decisions in response to changes in the environment.
[0013] FIG. 1 is a conceptual diagram of reinforcement learning that is a part of the behavior decision-making method according to the first embodiment. FIG. 2 is a conceptual diagram showing changes in state in reinforcement learning that is a part of the behavior decision-making method according to the first embodiment. FIG. 3 is an image of the probability distribution of a solution obtained by optimization calculation using quantum annealing. FIG. 4 is an image of the probability distribution of an action selected by performing optimization calculation, with a policy represented by an optimization calculation model. FIG. 5 is an image showing the relationship between an action selected by an agent based on a policy and changes in the real environment. FIG. 6 is an example of a flow diagram of reinforcement learning according to the first embodiment. FIG. 7 is a block diagram of a behavior decision-making device according to the first embodiment.
[0014] The present embodiment will be described in detail below with reference to the drawings as appropriate. The drawings used in the following description may show characteristic portions enlarged for the sake of clarity, and the dimensional ratios of each component may differ from the actual ones. The materials, dimensions, etc. exemplified in the following description are merely examples, and the present invention is not limited thereto. Appropriate modifications may be made within the scope of the present invention.
[0015] 1 is a conceptual diagram of reinforcement learning, which is a part of the behavior decision-making method according to the first embodiment. Reinforcement learning is performed by interacting with an agent 1 and a real environment 2, and the state S of the agent 1 after an action a is a The action a of the agent 1 is determined according to the policy π, and the agent 1 performs the determined action a. The action a of the agent 1 is, for example, an action vector (a 1 , a 2 , a 3 , ..., a n ) The state of agent 1, S a changes depending on the action a. The state S of agent 1 a is, for example, the state vector (S a0 , S a1 , S a2 , ..., S an ) can be expressed as
[0016] For example, a specific explanation will be given using the control of a robot arm. In this case, agent 1 is the control unit of the robot arm. Real environment 2 is the environment in which the robot arm operates. Real environment 2 includes, for example, the temperature and humidity at which the robot arm operates, the wear state of parts, the material of the floor on which the robot arm operates, the movement of adjacent robot arms, etc.
[0017] For example, if a robot arm operates by passing a current through n conductors connected to the robot arm, then the action a of agent 1 corresponds to passing a current through the conductors. For example, one action a of the robot arm is determined by specifying how many amperes of current should be passed through each of the n conductors.
[0018] Action vector (a 1 , a 2 , a 3 , ..., a n Each element of a corresponds to the choice of how many A to pass through the lth (l = an integer from 1 to n) conductor. For example, a 1 is the choice of how many A to pass through the first conductor, and a 2 is the option for how many A to flow in the second conductor. For example, if there are Kn options for the current to flow in the lth conductor, then {Il 1 , I l 2 , …, I l Kl}.
[0019] The policy π that determines the behavior of the agent 1 is, for example, a guideline for controlling a robot arm. Based on the guideline for controlling the robot arm (policy π), the control of the robot arm (action a) is determined.
[0020] When agent 1 performs action a, agent 1's state S a changes. Agent 1's state S a is, for example, the angle of the joint of the robot arm. For example, when a current is applied to each of the n conductors connected to the robot arm, the angle of the joint of the robot arm changes, and the state S a changes.
[0021] The reward r is, for example, the state S of the robot arm. a For example, if the precise control of the robot arm is to bend the arm by 30 degrees, the state S of the robot arm caused by the action a of agent 1 is a The closer to a 30 degree bend, the higher the reward r.
[0022] 2 is a conceptual diagram showing state changes in reinforcement learning that is the basis of the behavior decision-making method according to the first embodiment. In reinforcement learning, the state of the agent 1 transitions as a result of learning.
[0023] S in FIG. a0 , S a1 , S a2 , S a3 , S a4 Each of these represents the state of agent 1. The state of agent 1 is the initial state S a0 An action is selected by applying optimization calculation to the policy π from a0 , S a1 , S a2 , S a3For example, in the case of controlling a robot arm, the initial state S a0 to the next state S a0 , S a1 , S a2 , S a3 The next state is the original state S where the joint is not bent. a0 You can leave it as it is, or you can move it to another state S with the joint bent. a1 , S a2 , S a3 The state to which the robot transitions may be determined based on the policy π. For example, in the state S where the joint is bent, a2 If the state transitions to , the next action will result in another state S a0 , S a3 , S a4 In reinforcement learning, for example, a reward r is calculated for each action a that causes a state transition. Alternatively, the reward r may be calculated after selecting and executing an action multiple times (for each episode) according to the same policy.
[0024] In this embodiment, the policy π is represented by a model that can be optimized. Then, an action a is determined based on the policy π by performing an optimization calculation. The optimization calculation can change the randomness using calculation parameters. Although details will be described later, by determining the action a based on the policy π using an optimization calculation that can change the randomness using calculation parameters, even if the real environment 2 has changed (fluctuated) since the time of learning to determine the policy π, the possibility of selecting an action a that suits the environment increases.
[0025] The optimization calculation may be performed by, for example, adiabatic quantum calculation performed by a quantum computer, quantum annealing, or a genetic algorithm.
[0026] For example, when the optimization calculation is performed using quantum annealing, an Ising model or QUBO can be used as a model applicable to the optimization calculation. Furthermore, when the optimization calculation is performed using adiabatic quantum computing, any Hermitian matrix can be used as a model applicable to the optimization calculation. Furthermore, when the optimization calculation is performed using a genetic algorithm, any real-valued function can be used as a model applicable to the optimization calculation.
[0027] For example, when the policy π is expressed by the Ising model, the policy π is expressed by the following formula (1).
[0028]
[0029] where π(a|S a ) is an optimization calculation model that represents the relationship between each element of the behavior vector a. i , σ j is an input variable and takes on two values: +1 or -1. ij is the interaction parameter. ij For example, the state S of agent 1 a When the options are expressed in one-hot notation, N is expressed as N=K. 1 +K 2 +...+K n It is expressed as follows. l is the number of options for the amount of current that can be applied to the lth conductor (l=a natural number from 1 to n).
[0030] In optimization calculations using quantum annealing, the probability of finding the true optimal value may vary depending on the calculation time. For example, the optimal value found after calculations that last for an infinite amount of time will not necessarily be the same as the optimal value found after calculations that last for a short time.
[0031] FIG. 3 is an image of the probability distribution of a solution obtained by optimization calculation using quantum annealing. (a) in FIG. 3 is the probability distribution of a solution output after performing optimization calculation for a long time, and (b) is the probability distribution of a solution output after performing optimization calculation for a short time. The true optimal value is v 0 and the probability distribution is expressed by, for example, a normal distribution.
[0032] When quantum annealing is used for a long time, the true optimal value v 0 The probability of selecting the true optimal value v 0 Values other than v 1 On the other hand, if the optimization calculation time using quantum annealing is short, the true optimal value v 0 The probability of selecting the true optimal value v 0 Values other than v 1 The probability of outputting the optimal value v is high. This is because the short calculation time in quantum annealing is generally treated as noise. In short calculations, the true optimal value v 0 Values other than v 1 In general optimization calculations, the true optimal value v 0 Values other than v 1 Although it is problematic to output as an optimal value, the behavior decision method according to this embodiment utilizes this characteristic.
[0033] 4 shows an image of the probability distribution of an action a selected by performing optimization calculations, where the policy π is represented by an optimization calculation model. Figure 4(a) shows the probability distribution of an action a selected after performing optimization calculations based on the policy π for a long time, and Figure 4(b) shows the probability distribution of an action a selected after performing optimization calculations based on the policy π for a short time.
[0034] When the policy π is expressed as an optimization calculation model and an action a is obtained by performing optimization calculation, the optimal action a is 0 Actions other than a 1 For example, the longer the calculation time, the more likely it is that the optimal action a 0 Actions other than a 1 The probability of selecting the optimal action a is lower, and the shorter the calculation time, the 0 Actions other than a 1 The probability of selecting increases. Changing the calculation time in quantum annealing can change the randomness of the optimization calculation.
[0035] FIG. 5 is an image diagram showing the relationship between the action selected by the agent based on the policy and changes in the real environment. When the real environment 2 changes, the optimal action may change. For example, in the real environment 2 before the change, 0 Even if the real environment 2 changes, the behavior a 0 ' may be optimal.
[0036] When the randomness of the optimization calculation is small (for example, the optimization calculation time is long), the optimal action a in a given real environment 2 is 0 In this case, even when the real environment 2 changes, the probability of selecting an action other than the optimal action a 0 In other words, the probability of continuing to select the optimal action a in the changed real environment 2 increases. 0 The probability of selecting ' is low, and the optimal action in the changed real environment 2 is 0 ' may not be done.
[0037] On the other hand, if the optimization calculation has a high degree of randomness (for example, if the optimization calculation takes a short time), the optimal action a in the given real environment 2 is 0 In this case, even if the real environment 2 changes, the behavior a that is optimal in the real environment 2 before the change is selected. 0 In other words, the optimal behavior in the real environment 2 before the change is a 0 The fact that the probability of selecting an action other than 0 This is equivalent to saying that there is a high probability of selecting '.
[0038] In the behavior determination method according to this embodiment, the randomness of the optimization calculation is changed based on the amount of change in the real environment. The randomness of the optimization calculation can be changed by changing the calculation parameters. As described above, when the optimization calculation is performed using quantum annealing, the calculation time of the optimization calculation is one of the calculation parameters.
[0039] When optimization calculations are performed using a genetic algorithm, the probability of mutation is one of the calculation parameters that contributes to the randomness of the optimization calculation. The randomness of the optimization calculation can be changed by changing the mutation parameter. When optimization is performed using adiabatic quantum computing, which is performed on a quantum computer, noise such as heat applied to the computer is one of the calculation parameters that contributes to the randomness.
[0040] 6 is an example of a flow diagram of reinforcement learning according to the first embodiment. The behavior decision method according to the first embodiment includes a behavior decision step S1, a state change step S2, and a learning step S3.
[0041] In the action decision step S1, optimization calculation is performed based on a policy π expressed by a model applicable to the optimization calculation, and an action a of the agent 1 is determined. In the state change step S2, the action a is input to the real environment 2, whereby the real environment 2 and the agent 1 interact with each other, and the state of the agent 1 changes. In the learning step S3, the state S of the agent 1 after the action a is calculated. a The value of is obtained as a reward r, and the next policy π is determined based on the reward r.
[0042] The behavior decision step S1 includes, for example, an environment change amount measurement step S11, a calculation parameter setting step S12, and an optimization calculation step S13.
[0043] In the environmental change amount measurement step S11, the real environment 2 at the time of action decision (action decision step S1) is measured, and the amount of change from each parameter of the real environment 2 at the time of learning (learning step S3) is obtained. For example, the temperature at which the robot arm operates, humidity, wear state of parts, material of the floor on which the robot arm operates, and the amount of change in the movement of an adjacent robot arm are measured. The real environment 2 is measured, for example, using a sensor or the like. Each parameter to be measured is set in advance. The amount of environmental change is found, for example, by adding the amount of change in each measured parameter. A coefficient may be applied to a parameter with a higher importance among the parameters.
[0044] In the calculation parameter setting step S12, calculation parameters are set based on the amount of environmental change found in the environmental change amount measurement step S11. The calculation parameters differ depending on the optimization calculation method. For example, when the optimization calculation is performed using quantum annealing, the calculation time of quantum annealing is one of the calculation parameters. Also, for example, when the optimization calculation is performed using a genetic algorithm, the probability of mutation is one of the calculation parameters. Also, for example, when the optimization calculation is performed using adiabatic quantum computing, noise such as heat added to the calculation is one of the calculation parameters.
[0045] For example, the amount of environmental change may be input to a sigmoid function and converted into a numerical value (calculation parameter) between 0 and 1. By such conversion, the amount of change in the calculation parameter can be reduced when the amount of environmental change is small, and increased when the amount of environmental change is large.
[0046] For example, when optimization calculations are performed using quantum annealing, the greater the amount of environmental change, the shorter the quantum annealing calculation time. Also, when optimization calculations are performed using a genetic algorithm, the greater the amount of environmental change, the higher the probability of mutation. Also, when optimization calculations are performed using adiabatic quantum computing, the greater the amount of environmental change, the more noise sources are added.
[0047] In the optimization calculation step S13, optimization calculation is performed according to the calculation parameters determined in the calculation parameter setting step S12. By performing the optimization calculation step S13, an action a is determined. As shown in FIG. 4, the action a selected in the optimization calculation step S13 is the truly optimal action a. 0 Not limited to.
[0048] In the optimization calculation step S13, the truly optimal action a in the predetermined real environment 2 is calculated. 0 Actions other than a 1 For example, the smaller the randomness of the calculation parameters, the more likely it is that the truly optimal action a 0 Actions other than a 1 The probability of selecting the truly optimal action a becomes lower, and the greater the randomness of the calculation parameters, the lower the probability of selecting the truly optimal action a 0 Actions other than a 1In the optimization calculation step S13, the truly optimal action a 0 Actions other than a 1 By being able to select the above, it is possible to adapt to changes in the real environment 2.
[0049] The state change step S2 includes, for example, a behavior step S21 and an operation step S22.
[0050] In the action step S21, an action a determined in accordance with the policy π is input to the agent 1 in the real environment 2. For example, the action a is input to the robot arm by applying a current to each of the conductors that control the movement of the robot arm. The currents applied to each are determined based on optimization calculations. The policy π is represented by an optimization calculation model.
[0051] In the action step S22, the agent 1 acts in accordance with the action a determined in the action step S21. For example, in the action step S21, a current is applied to each of the conductors that control the movement of the robot arm, causing the robot arm to operate. As the agent 1 operates, the state S of the agent 1 is a For example, when the robot arm operates, the state of the robot arm (for example, the angle of the joint) changes. When the real environment 2 and the agent 1 interact with each other, the state S of the agent 1 changes. a changes.
[0052] The learning step S3 includes, for example, a real environment measuring step S31, a reward calculation step S32, and a strategy determination step S33.
[0053] In the real environment measurement step S31, the real environment 2 in the learning step S3 is measured. The real environment 2 in the learning step S3 does not necessarily match the real environment 2 in the above-mentioned action decision step S1. By measuring the real environment 2 in the learning step S3 where a strategy is decided, it is possible to determine the amount of change in the real environment 2 between the learning step S3 and the action decision step S1, and to set calculation parameters. The real environment measurement step S31 may be performed after the reward calculation step S32.
[0054] In the reward calculation step S32, the state S of the agent 1 after the action a is calculated. a The higher the reward r, the more appropriate the action a of agent 1 was.
[0055] In the policy decision step S33, the next policy is decided based on the reward r. For example, in the policy decision step S33, the result of the previous action is reflected and a model of the optimization calculation representing the policy π is reconstructed. The policy π is determined by taking into account the relationship between each action (the state S of the agent 1) a If the reward r is high, it can be said that the previous policy π was an appropriate model, and a similar model is created. If the reward r is low, it can be said that the relationship expressed by the previous policy π was inappropriate, and a new model that takes the previous action into account is created.
[0056] In the reinforcement learning according to the first embodiment, learning is performed to maximize the value of data (maximize the reward) by repeating the action decision step S1, the state change step S2, and the learning step S3. The environmental change amount measurement step S11, the calculation parameter setting step S12, and the real environment measurement step S31 do not have to be performed every time these steps are repeated. For example, the environmental change amount measurement step S11, the calculation parameter setting step S12, and the real environment measurement step S31 may be performed every time the steps are repeated multiple times, or the environmental change amount measurement step S11, the calculation parameter setting step S12, and the real environment measurement step S31 may be performed randomly.
[0057] The behavior decision method according to the first embodiment can also adapt to changes in the real environment 2.
[0058] For example, if a policy π is expressed by a certain probability distribution and an action is determined probabilistically according to this policy, the policy does not change even if the environment changes, and the probability of determining an action also does not change. Therefore, once reinforcement learning is performed in a predetermined real environment 2 and a policy π is specified, the method of determining an action does not change even if an environmental change occurs. This policy π can select an optimal action a before the real environment 2 changes, but it cannot be confirmed that the action a is optimal even after the real environment 2 changes.
[0059] In this strategy, even if the real environment 2 changes between the time of action decision and the time of learning, the action a is selected probabilistically according to the probability distribution learned in the real environment 2 before the change. In other words, if the real environment 2 changes and the truly optimal action (a 0 →a 0 ') But a 0 or a 0 The probability that "a" will be selected remains unchanged from the time the policy is decided. As a result, the agent 1 is more likely to select an inappropriate action a in the changed real environment 2.
[0060] For example, if the degree of wear at the joints of the robot arm worsens, the movement of the robot arm will become less smooth. Even if current is applied to each conductor of the robot arm according to the strategy determined in the actual environment 2 before wear, it is possible that the robot arm will not reach the desired state in the actual environment after wear.
[0061] In contrast, in the behavior decision-making method according to this embodiment, the policy π is expressed as a model that can be applied to optimization calculations. This model is set in the real environment 2 during learning, and the same policy π can be used even if the real environment 2 changes. The behavior decision based on the policy π is made by optimization calculations. The probability distribution of the behavior a obtained as a result of the optimization calculations changes depending on the calculation parameters. When the real environment 2 does not change, the truly optimal behavior a 0 When the actual environment 2 changes, the truly optimal action a in the policy π is 0 Decrease the probability that the action will be selected, and other actions a 1 can increase the probability of being selected.
[0062] For example, if the degree of wear at the joints of the robot arm worsens, it is possible to apply current to each conductor of the robot arm under conditions other than those that were optimal in the actual environment 2 before wear. For example, in the behavior decision-making method according to this embodiment, it is also possible to select, in accordance with the policy π, to apply to each conductor of the robot arm an amount of current greater than that which was optimal in the actual environment 2 before wear. In reality, in a post-wear state after the actual environment 2 has changed, it is appropriate to select to apply to each conductor of the robot arm an amount of current greater than that which was optimal in the actual environment 2 before wear.
[0063] The real environment 2 when the action is decided does not necessarily match the real environment 2 when the policy π is obtained by learning. Nevertheless, the action is decided based on the policy π learned in the previous real environment 2. In the action decision-making method according to this embodiment, by changing the randomness of the action decision, the action a that is optimal in the real environment 2 before the change can be decided. 0 This increases the probability that an action other than the above will be selected, enabling the robot to adapt to changes in the real environment 2. Therefore, by using the action decision-making method according to this embodiment, it becomes easier to select an action that is adapted to the new real environment 2, and the robot can advance learning by utilizing the progress of learning up to that point.
[0064] 7 is a block diagram of the behavior determination device 10 according to the first embodiment. The behavior determination device 10 includes, for example, a learning unit 11, a first control unit 12, a second control unit 13, a memory 14, a measurement unit 15, and a transmission / reception unit 16.
[0065] The learning unit 11 calculates the state S of the agent 1 after the action a. a The learning unit 11 acquires the reward r as a reward r and determines the next policy π based on the reward r. The learning unit 11 performs learning so as to maximize the reward r. For example, the learning unit 11 acquires the action a and the state S of the agent 1 as a result of the action a. a The learning unit 11 obtains the obtained action a and state S a The learning unit 11 determines the policy π based on the reward r.
[0066] The learning unit 11 includes, for example, a computing unit (CPU). The learning unit 11 performs, for example, learning step S3.
[0067] The first control unit 12 executes an optimization calculation based on a policy expressed by a model applicable to the optimization calculation, and determines an action of the agent. The first control unit 12 performs, for example, an action determination step S1.
[0068] The policy π determined by the learning unit 11 is transmitted to the first control unit 12. The first control unit 12 sets calculation parameters based on the amount of change in the real environment 2 measured by the measurement unit 15. The first control unit 12 then executes optimization calculations using the set calculation parameters and determines an action a for the agent 1. The first control unit 12 has, for example, a computing unit (CPU).
[0069] The second control unit 13 inputs the action a into the real environment 2 and changes the state S of the agent 1. a The second control unit 13 instructs the agent 1 to perform action a. The second control unit 13 issues the instruction to the agent 1 via, for example, the transmitting / receiving unit 16. The second control unit 13 has, for example, a computing unit (CPU).
[0070] The memory 14 stores learning data, a program that follows the behavior decision method, and information on environmental changes. The learning data includes, for example, an agent's behavior a, and the state S of the agent 1 as a result of the agent 1's behavior a. a , state S a The reward r etc.
[0071] The measurement unit 15 is, for example, a sensor. The measurement unit 15 measures the real environment 2. The measurement unit 15 is used, for example, when performing the real environment measurement step S31 and the environment change amount measurement step S11. The measurement unit 15 measures, for example, each parameter representing the real environment 2.
[0072] The transmitting / receiving unit 16 transmits the action a to the device, for example, in accordance with an instruction from the second control unit 13. For example, the transmitting / receiving unit 16 transmits the action a based on the strategy π to the control unit of the robot arm. Furthermore, the transmitting / receiving unit 16 transmits the state S of the agent 1 as a result of the action a. a The transmitter / receiver 16 may be wired or wireless. The transmitter / receiver 16 controls the state change step S2. The reward r obtained in the reward calculation step S32 is stored in the memory 14 via the transmitter / receiver 16, for example.
[0073] The behavior decision device 10 according to the first embodiment operates according to the behavior decision method described above, and is therefore also able to respond to changes in the real environment 2 .
[0074] The above describes the embodiments of the present invention in detail with reference to the drawings. However, each configuration and combination thereof in each embodiment is an example, and additions, omissions, substitutions, and other modifications of the configurations are possible within the scope that does not deviate from the spirit of the present invention.
[0075] REFERENCE SIGNS LIST 1 Agent 2 Real environment 10 Action decision device 11 Learning unit 12 First control unit 13 Second control unit 14 Memory 15 Measurement unit 16 Transmitting / receiving unit a Action r Reward π Policy S a State S1 Action decision step S11 Environmental change amount measurement step S12 Calculation parameter setting step S13 Optimization calculation step S2 State change step S21 Action step S22 Operation step S3 Learning step S31 Real environment measurement step S32 Reward calculation step S33 Strategy decision step
Claims
1. A behavior decision method comprising: a behavior decision step of executing an optimization calculation based on a strategy represented by a model applicable to the optimization calculation, and deciding an agent's behavior; a state change step of inputting the behavior into a real environment, whereby the real environment and the agent interact and the agent's state changes; and a learning step of obtaining the value of the agent's state after the behavior as a reward and deciding a next strategy based on the reward, wherein the optimization calculation can change randomness by calculation parameters, and the calculation parameters are changed based on the amount of change in the real environment between the learning step and the behavior decision step.
2. The behavior determination method according to claim 1, wherein the optimization calculation is an adiabatic quantum calculation performed on a quantum computer.
3. The behavior determination method according to claim 1, wherein the optimization calculation is quantum annealing, and the model is an Ising model or QUBO.
4. The behavior determination method according to claim 1, wherein the optimization calculation is performed using a genetic algorithm.
5. A behavior decision device having a learning unit, a first control unit, and a second control unit, wherein the first control unit executes an optimization calculation based on a strategy represented by a model applicable to the optimization calculation and determines the behavior of an agent, the second control unit inputs the behavior into a real environment and changes the state of the agent, the learning unit obtains the state of the agent after performing the behavior as a reward and determines the next strategy based on the reward, the optimization calculation can change randomness by calculation parameters, and the calculation parameters are changed based on the amount of change in the real environment between when the agent's behavior is determined and when the strategy is determined.
Citation Information
Patent Citations
A method of reinforcement learning, corresponding computer program product, and data storage device therefor
EP2386987A1
Machine learning for weldment classification and correlation
JP2019005809A
Adiabatic evolution path prediction method, device, equipment, and computer program
JP2022522180A
