Measure creation device, control device, measure creation method, and program
The policy creation device uses a rule-based approach to create clear and visible policies, addressing the challenge of understanding neural network representations in reinforcement learning, enabling efficient transfer of know-how.
Patent Information
- Application Number
- JP2022541325
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-03
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2040-08-03
AI Technical Summary
Existing reinforcement learning methods, such as those exemplified in Non-Patent Document 1, struggle with the difficulty in understanding and deciphering policies represented by neural networks, making it challenging to transfer know-how effectively between workers.
A policy creation device and method that utilizes a rule-based approach, creating a decision list of rules with conditions and actions, allowing for a clear and visible representation of policies through a rule set, order determination, and action determination based on satisfied conditions.
Enables the creation of high-quality and highly visible policies, facilitating efficient transfer of know-how by clearly defining actions based on conditions, thereby improving the understanding and implementation of processes.
Smart Images

Figure 0007559821000002 
Figure 0007559821000003 
Figure 0007559821000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a policy creation device, a control device, a policy creation method, and a program. To Regarding. [Background technology]
[0002] Workers at processing plants and the like can process high-quality products by being familiar with the work procedures from turning materials into products. For example, in these work procedures, workers process materials using processing machines. The work procedures for processing good products are accumulated as know-how for each worker. However, in order for a worker who is familiar with the work procedures to pass on the know-how to other workers, it is necessary for a skilled worker to teach other workers how to use the processing machines, the amount of materials, and the timing for feeding materials into the processing machines, etc. For this reason, it takes a long time and a lot of work to pass on know-how.
[0003] As a method for learning the know-how by machine learning, a reinforcement learning method may be used as exemplified in Non-Patent Document 1. In this case, in the reinforcement learning method, a measure representing the know-how is expressed in the form of a model. In Non-Patent Document 1, the model is expressed by a neural network. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Richard S. Sutton and Andrew G. Barto, Reinforcement Learning: An Introduction., The MIT Press, 2017 Summary of the Invention [Problem to be solved by the invention]
[0005] However, it is difficult for users to understand how the know-how is expressed. The reason for this is that in the reinforcement learning method exemplified in Non-Patent Document 1, the policy expressing the know-how is expressed by a neural network, and further, it is difficult for users to decipher the model created by the neural network.
[0006] One of the objectives of the present disclosure has been made to solve such problems, and is to provide a policy creation device, a control device, a policy creation method, and a program that are capable of creating high-quality, highly visible policies. [Means for solving the problem]
[0007] The policy creation device according to the present disclosure has a rule creation means for creating a rule set including a plurality of rules that are combinations of a condition for determining whether or not an action is required to be taken with respect to a target and the action to be taken when the condition is satisfied, an order determination means for determining an order of the rules in the plurality of rule sets, and an action determination means for determining whether or not the condition is satisfied in accordance with the determined order, and for determining the action to be taken when the condition is satisfied.
[0008] In addition, the policy creation method disclosed herein involves using an information processing device to create a rule set including multiple rules that are combinations of conditions for determining whether or not an action is necessary to be taken on a target and the action to be taken when the condition is met, determining the order of the rules in the multiple rule sets, determining whether or not the condition is met in accordance with the determined order, and determining the action to be taken when the condition is met.
[0009] In addition, the program disclosed herein causes a computer to realize a function of creating a rule set including multiple rules that are combinations of a condition for determining whether or not an action is required to be performed on an object and the action to be performed when the condition is met, a function of determining the order of the rules in the multiple rule sets, and a function of determining whether or not the condition is met in accordance with the determined order, and determining the action to be performed when the condition is met. Effect of the Invention
[0010] According to the present disclosure, it is possible to provide a policy creation device, a control device, a policy creation method, and a program capable of creating high-quality and highly visible policies. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing a configuration of a measure creating device according to a first embodiment. [Diagram 2] 3 is a flowchart showing a measure creating method executed by the measure creating device according to the first embodiment. [Diagram 3] 3 is a flowchart showing a measure creating method executed by the measure creating device according to the first embodiment. [Figure 4] 3 is a flowchart showing a measure creating method executed by the measure creating device according to the first embodiment. [Diagram 5] FIG. 2 is a diagram conceptually illustrating a process of determining an action according to a measure according to the first embodiment. [Figure 6] FIG. 2 is a diagram conceptually illustrating an example of a target according to the first embodiment. [Figure 7] FIG. 2 is a diagram illustrating an example of a rule set created by a rule creating unit according to the first embodiment. [Figure 8] FIG. 11 is a diagram for explaining an example of a process for generating a probabilistic decision list calculated by an order parameter calculation unit according to the second embodiment. [Figure 9] FIG. 11 is a diagram illustrating an update of an order parameter according to the second embodiment. [Figure 10] FIG. 11 is a diagram illustrating a process of generating a decision list by an order decision unit according to the second embodiment. [Figure 11] FIG. 11 is a diagram showing a configuration of a measure creating device according to a third embodiment. [Figure 12] 13 is a flowchart showing a policy creating method executed by a policy creating device according to a third embodiment. [Figure 13] FIG. 2 is a block diagram illustrating an example of a hardware configuration of a calculation processing device capable of realizing the policy creation device according to each embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] (First embodiment) Hereinafter, the embodiments will be described with reference to the drawings. For clarity of explanation, the following description and drawings are omitted and simplified as appropriate. In addition, in each drawing, the same elements are given the same reference numerals, and duplicate explanations are omitted as necessary.
[0013] Fig. 1 is a block diagram showing the configuration of a measure creation device 100 according to the first embodiment. Fig. 2 to Fig. 4 are flowcharts showing a measure creation method executed by the measure creation device 100 according to the first embodiment. The flowcharts shown in Fig. 2 to Fig. 4 will be described later.
[0014] A configuration of the measure creation device 100 according to the first embodiment will be described in detail with reference to Fig. 1. The measure creation device 100 is, for example, a computer. The measure creation device 100 according to the first embodiment has a rule creation unit 102, an order parameter calculation unit 104, an order determination unit 106, an action determination unit 108, a measure evaluation unit 110, and a measure selection unit 120. The measure evaluation unit 110 has an action evaluation unit 112 and a comprehensive evaluation unit 114. The measure creation device 100 may further have a criterion update unit 122 and a measure evaluation information storage unit 126.
[0015] The rule creation unit 102 functions as a rule creation means. The order parameter calculation unit 104 functions as an order parameter calculation means. The order determination unit 106 functions as an order determination means. The action determination unit 108 functions as an action determination means. The measure evaluation unit 110 functions as a measure evaluation means. The action evaluation unit 112 functions as an action evaluation means. The overall evaluation unit 114 functions as an overall evaluation means. The measure selection unit 120 functions as a measure selection means. The criterion update unit 122 functions as a criterion update means. The measure evaluation information storage unit 126 functions as a measure evaluation information storage means.
[0016] The measure creation device 100 executes processing in, for example, the control device 50. The control device 50 includes the measure creation device 100 and a control unit 52. The measure creation device 100 creates a measure represented by a decision list using the rule creation unit 102, the order parameter calculation unit 104, and the order determination unit 106. The control unit 52 executes control on the target 170 according to an action determined according to the measure created by the measure creation device 100. The measure represents information that is the basis for determining an action to be taken on the target 170 when the target 170 is in a certain state. A method for creating a measure represented by a decision list will be described later.
[0017] Fig. 5 is a diagram conceptually showing a process of determining an action according to a policy according to the first embodiment. As illustrated in Fig. 5, in the policy creation device 100, the action determination unit 108 acquires information representing a state of a target 170. Then, the action determination unit 108 determines an action to be taken on the target 170 according to the created policy. The state of the target 170 can be represented, for example, by using an observation value output by a sensor observing the target 170. For example, the sensor is a temperature sensor, a position sensor, a speed sensor, an acceleration sensor, or the like.
[0018] In this embodiment, the measure is represented by a decision list. The decision list is an ordered list of a plurality of rules, each of which combines a condition for determining the state of the object 170 and an action in that state. The condition is expressed, for example, such that the state (or the observation value) represented by a certain feature (type of observation) is equal to or greater than a criterion (threshold value), is less than the criterion, or matches the criterion. When a state is given, the action decision unit 108 sequentially follows this decision list, adopts the first rule that meets the condition, and decides that the action of that rule is the action to be executed on the object 170. Details of the rules will be described later with reference to FIG. 7.
[0019] For example, in the example of FIG. 5, the decision list (measure) is composed of I rules, rules #1 to #I (I; I is an integer of 2 or more). The order of these rules #1 to #I is determined in the decision list. In the example of FIG. 5, the first rule is rule #2, the second rule is rule #5, and the I-th rule is rule #4. When a certain state is given, the action determination unit 108 judges whether the state meets the condition of rule #2. When the given state meets the condition of rule #2, the action determination unit 108 determines the action corresponding to rule #2 as the action to be executed on the target 170. On the other hand, when the given state does not meet the condition of rule #2, the action determination unit 108 judges whether the state meets the condition of rule #5, which is the next rule after rule #2. When the given state meets the condition of rule #5, the action determination unit 108 determines the action corresponding to rule #5 as the action to be executed on the target 170. The same applies to the subsequent rules in the order.
[0020] For example, when the target 170 is a vehicle such as an autonomous vehicle, the operation determination unit 108 acquires observed values (feature values) such as the engine RPM, the vehicle speed, and the surrounding conditions. The operation determination unit 108 executes the above-mentioned processing based on these observed values (feature values) to determine an operation. Specifically, the operation determination unit 108 determines an operation such as turning the steering wheel to the right, stepping on the accelerator, or stepping on the brake. The control unit 52 controls the accelerator, steering wheel, or brake according to the operation determined by the operation determination unit 108.
[0021] Furthermore, for example, if the target 170 is a generator, the operation determination unit 108 acquires observation values (values of characteristic quantities) such as the number of revolutions of the turbine, the temperature of the combustion furnace, and the pressure of the combustion furnace. The operation determination unit 108 determines an operation by executing the above-mentioned processing based on these observation values (values of characteristic quantities). Specifically, the operation determination unit 108 determines an operation such as increasing the amount of fuel or decreasing the amount of fuel. The control unit 52 executes control such as closing a valve that adjusts the amount of fuel or opening a valve in accordance with the operation determined by the operation determination unit 108.
[0022] In the following description, the type of observation (speed, number of rotations, etc.) may be represented as a feature, and the value observed for that type may be represented as the value of the feature. The policy creation device 100 acquires evaluation information indicating the level of quality of the determined action. The policy creation device 100 selects a high-quality policy based on the acquired evaluation information. The evaluation information will be described later.
[0023] FIG. 6 is a diagram conceptually showing an example of the object 170 according to the first embodiment. The terms used in the present specification will be described with reference to FIG. 6. The object 170 shown in FIG. 6 includes a rod-shaped pendulum and a rotating shaft capable of applying torque to the pendulum. State I represents the initial state of the object 170, where the pendulum exists below the rotating shaft. State VI represents the final state of the object 170, where the pendulum exists upside down above the rotating shaft. Actions A to F represent the force that applies torque to the pendulum. State I to State VI represent the state of the object 170. Regarding the state of the object 170, each state from the first state to the second state is collectively referred to as an "episode". An episode does not necessarily represent each state from the initial state to the final state, and may represent, for example, each state from state II to state III, or each state from state III to state VI.
[0024] The measure creation device 100 creates a measure (illustrated in FIG. 5) that determines a series of actions that can realize a state VI starting from a state I, for example, based on action evaluation information for the actions. The process of creating a measure by the measure creation device 100 will be described later with reference to FIG. 2, etc. In this embodiment, the measures are represented in a list format, such as a decision list, and therefore can be said to be easily visible to the user.
[0025] Next, specific processing of each component of the policy creating device 100 will be described with reference to FIGS. 2 is a flowchart showing a policy creation method executed by the policy creation device 100. The rule creation unit 102 generates N (N is a predetermined integer of 2 or more) rule parameter vectors θ according to a predetermined (predetermined) rule creation criterion (step S104). The specific process of S104 will be described later with reference to FIG. 3.
[0026] Here, the rule creation criterion may be a probability distribution such as a uniform distribution or a Gaussian distribution. The rule creation criterion may be a distribution based on parameters calculated by executing a process to be described later. Furthermore, the rule parameter vector θ (rule parameters) may be parameters that represent the characteristics of the rule. The rule parameter vector θ(θ (1) ~θ (n) ~θ (N) ) will be described later. Note that n is an index for identifying each rule parameter vector (and a rule set, which will be described later), and is an integer from 1 to N. Note that in the initial process of S104, the parameters of the distribution (such as the mean value and standard deviation) can be any (for example, random) value.
[0027] Next, the policy creation device 100 initializes n (i.e., n=1) (step S106). Then, the rule creation unit 102 calculates the rule parameter vector θ (n) (step S108). Thus, the rules are represented by a set of rule parameters that comply with a predetermined rule creation standard. In the first processing of S108, n=1. As will be described later, the rule set #n is represented by a rule parameter vector θ (n) can be uniquely generated from
[0028] FIG. 7 is a diagram illustrating a rule set #n created by the rule creating unit 102 according to the first embodiment. The rule set #n is composed of I rules #1 to #I. In other words, the rule set includes a plurality of rules. As described above, each rule #i (i is an integer from 1 to I) includes a condition under which a feature amount corresponding to a state meets a judgment criterion, and an action (control amount) to be executed when the condition is met. In the example shown in FIG. 7, the condition is shown between "IF" and "THEN". The action is shown to the right of "THEN".
[0029] For example, in the example shown in FIG. 7, rule #1 corresponds to the rule "IF (feat_1>θt1) THEN action=θa1". This rule expresses that when the feature amount feat_1 exceeds the judgment criterion θt1, an action θa1 (action corresponding to the parameter θa1) is performed on the object 170. In rule #1, the condition is (feat_1>θt1). In rule #1, the action is (action=θa1). Moreover, rule #2 corresponds to the rule "IF (feat_1>θt2 AND feat_2<θt3) THEN action=θa2." This rule expresses that when the feature amount feat_1 exceeds the judgment criterion θt2 and the feature amount feat_2 falls below the judgment criterion θt3, the action θa2 (the action corresponding to the parameter θa2) is performed on the object 170. In rule #2, the condition is (feat_1>θt2 AND feat_2<θt3). In rule #2, the action is (action=θa2).
[0030] In addition to the rules illustrated in FIG. 7, the rule may include rules such as "IF(feat_3=θt4) THEN action=θa3" in which the condition is expressed by the value itself or the state discrimination rather than the threshold value. In the present embodiment, the feature value to be judged (i.e., the type of observation) is set in advance in the rule set. The types of observation set in the feature value in the rule set may be all types or some types. However, the rule creating unit 102 may set the feature value using the above-mentioned probability distribution. That is, the rule is not limited to the example illustrated in FIG. 7. The action θa may be, for example, a value (control amount, control value) of the object to be controlled. For example, if the controlled object is the speed of a vehicle, the action θa may correspond to the speed value of the vehicle. Also, if the controlled object is an inverted pendulum (FIG. 6), the action θa may correspond to the magnitude of the torque (force) applied to the pendulum.
[0031] As described above, a rule is expressed by a combination of a condition for determining the state of an object and an action in that state. In other words, a rule can be expressed by a combination of a condition for determining whether or not an action needs to be taken on an object and an action to be taken when the condition is satisfied.
[0032] Here, the indexes #1 to #I of the rules #1 to #I in the rule set #n do not indicate the order in which the condition judgment is performed in the decision list, but are set arbitrarily. The order of the rules #1 to #I in each rule set #n may be fixed. Therefore, all rule sets #n may have the rules #1 to #I in this order. Furthermore, in all rule sets #n, the framework of each rule #i is fixed, and only the judgment criterion θt and the action θa are variable. In other words, in each rule set #n, the rules #1 to #I included are the same except for the judgment criterion θt and the action θa. In other words, the feature feat_m (m is an integer of 2 or more, and is an index representing the feature) and the inequality related to the feature are fixed for each of the rules #1 to #I of all rule sets #n. As described above, the rule creating unit 102 may set the feature quantity by using the probability distribution as described above.
[0033] In the example shown in FIG. 7, rule #1 in all rule sets #n includes part of the condition "feature feat_1>", but the judgment criterion θt1 may differ for each rule set #n. Similarly, the action θa1 in rule #1 in all rule sets #n may differ for each rule set #n. Furthermore, rule #2 in all rule sets #n includes part of the condition "feature feat_1>" and "feat_2<", but the judgment criteria θt2 and θt3 may differ for each rule set #n. Similarly, the action θa2 in rule #2 in all rule sets #n may differ for each rule set #n.
[0034] The rule parameter vector θ generated in the process of S104 is a vector whose components are the above-mentioned variable parameters (rule parameters θt, θa) in rules #1 to #I. For example, the rule parameter vector θ is a vector whose components are rule parameters θt, θa in the order from rule #1. Therefore, the rule parameter vector θ (rule parameters) can be said to be parameters that represent the characteristics of the rules.
[0035] In the example of FIG. 7, the rule parameter vector θ (n) is expressed, for example, by the following Equation 1. (Formula 1) θ (n) =(θt1,θa1,θt2,θt3,θa2,...)
[0036] In the above formula 1, "θt1, θa1" are components related to rule #1, and "θt2, θt3, θa2" are components related to rule #2. Note that as the number of rules I increases, the size (number of components) of the rule parameter vector θ also increases. Here, as described above, the rule parameters can be generated by a distribution (probability distribution, etc.) such as a Gaussian distribution. Therefore, the rule creation unit 102 can create rules in which conditions and actions are randomly combined.
[0037] The order parameter calculation unit 104 calculates order parameters for each of the rules #1 to #I using the rule parameter vector θ (step S110). Specifically, the order parameter calculation unit 104 calculates the order parameters for each of the rules #1 to #I using the rule parameter vector θ for each rule set #n. (n) The order parameter is calculated using the above formula. Here, the order parameter is a parameter for determining the order of the rules #1 to #I constituting the rule set #n in the decision list #n. The order parameter may also indicate the weight of each of the rules #1 to #I. Then, the order parameter calculation unit 104 outputs an order parameter vector having the order parameter of each of the rules #1 to #I as its components. The order parameter will be described later in the second embodiment with reference to Figs. 8 to 10.
[0038] For example, the order parameter calculation unit 104 calculates the order parameters by using a model such as a neural network (NN). That is, the order parameter calculation unit 104 calculates the order parameters by applying the rule parameter vector θ (n) By inputting the rule parameter vector θ, an order parameter for determining the order of rules #1 to #I in the decision list #n corresponding to the rule set #n is calculated. Thus, the order parameter calculation unit 104 functions as a function approximator that receives the rule parameter vector θ as an input and outputs an order parameter. As will be described later, a model such as a neural network may be updated based on, for example, a loss function. In the case of reinforcement learning, the model may be updated based on a reward achieved by determining an action according to a policy (i.e., an ordered rule set) determined based on the order parameter.
[0039] The order parameter calculation unit 104 may update the parameters (weights) of the neural network so as to maximize the reward. In the case of reinforcement learning, the loss function is, for example, a function that has a smaller value as the reward is higher and a larger value as the reward is lower. The order parameter calculation unit 104, for example, determines an order parameter for each rule based on the parameters, and determines the order of the rules based on the determined order parameters. In other words, the order parameter calculation unit 104 determines the ordered rules (i.e., a policy). The order parameter calculation unit 104 determines an action according to the determined policy, and calculates a reward obtained (achieved) by the determined action. Then, the order parameter calculation unit 104 calculates a parameter in a case where the difference between a desired reward and the calculated reward decreases. It can also be said that the order parameter calculation unit 104 calculates a parameter in a case where the calculated reward increases. In other words, the order parameter calculation unit 104 evaluates the state of the object 170 after an action is applied to the object 170 according to the determined policy, and updates the parameter based on the evaluation result.
[0040] The order parameter calculation unit 104 may update the parameters by executing a process according to a procedure for calculating parameters such as a gradient descent method. The order parameter calculation unit 104 calculates the value of the parameters when minimizing a loss function expressed in a quadratic form, for example. The loss function is a function that has a smaller value as the quality of the movement is higher and a larger value as the quality of the movement is lower. The loss function is a function that has a smaller value as the reward is higher and a larger value as the reward is lower.
[0041] For example, the order parameter calculation unit 104 calculates the gradient of the loss function, and calculates the parameter value when the value of the loss function becomes smaller (or is minimized) along the gradient. The order parameter calculation unit 104 executes such processing to update the model of the neural network. Thereby, as the actions determined for each policy are executed and the quality of the actions is evaluated, the model in the order parameter calculation unit 104 can calculate order parameters that make the order of rules #1 to #I in the decision list more appropriate.
[0042] The order parameter calculation unit 104 may repeatedly execute the parameter update process. The parameter update process has the effect of improving the quality of the order parameters when a rule set is created according to a certain rule parameter vector θ.
[0043] The order determination unit 106 determines the order of the rules #1 to #I constituting the rule set #n based on the calculated order parameter (step S120). As a result, the order determination unit 106 creates a decision list #n corresponding to the rule set #n in which the order of the rules #1 to #I has been determined. In other words, the order determination unit 106 creates a policy #n represented by the decision list #n. Specifically, the order determination unit 106 uses the order parameter vector output by the order parameter calculation unit 104 to determine the order of the rules #1 to #I constituting the rule set #n. Then, the order determination unit 106 generates the decision list #n by rearranging the rules #1 to #I in the determined order. A more detailed process of the order determination unit 106 will be described later in the second embodiment.
[0044] Next, the action determination unit 108 determines an action according to the measures (determination list) created by the order determination unit 106. In other words, the action determination unit 108 judges whether or not the conditions in the rules are satisfied according to the determined order, and determines an action when the conditions are satisfied. The measure evaluation unit 110 evaluates the quality of the measure based on the quality of the determined action (step S130). At this time, the measure evaluation information storage unit 126 stores an identifier #n indicating the measure and evaluation information indicating the quality of the measure in association with each other. For example, an identifier #1 indicating the measure #1 corresponding to the determination list #1 and evaluation information are stored in association with each other.
[0045] The policy evaluation unit 110 may calculate the fitness of each policy as the quality of the policy. The fitness will be described later with reference to FIG. 4. The policy evaluation unit 110 evaluates the quality of each policy created by the order determination unit 106. In the process in step S130, the policy evaluation unit 110 may determine the quality of the action based on the quality of a state included in an episode as described above with reference to FIG. 6. As described above with reference to FIG. 6, an action performed in a certain state can be associated with a next state in the target 170. For this reason, the policy evaluation unit 110 may use the quality of a state (next state) as the quality of an action that realizes the state (next state). For example, in the example of an inverted pendulum as illustrated in FIG. 6, the quality of a state can be represented by a value representing the difference between a target state (for example, a final state; an inverted state) and the state. Details of the process in step S130 will be described later with reference to FIG. 4.
[0046] The policy creation device 100 increments n by one (step S142). Then, the policy creation device 100 judges whether n has exceeded N (step S144). That is, the policy creation device 100 increments n by one for all the rule parameter vectors θ(1) to θ (N) It is determined whether or not policies have been created for rule sets #1 to #N related to and the quality of the policies has been evaluated. If n does not exceed N, that is, if processing has not been completed for all policies (NO in S144), the process returns to S108 and the processes of S108 to S142 are repeated. As a result, the next policy is created and the quality of that policy is evaluated. On the other hand, if n exceeds N, that is, if processing has been completed for all policies (YES in S144), the process proceeds to S156.
[0047] The measure selection unit 120 selects a measure (determination list) with high quality from among the multiple measures (determination list) based on the quality evaluated by the measure evaluation unit 110 (step S156). For example, the measure selection unit 120 selects a measure (determination list) with a higher quality (goodness of fit) from among the multiple measures. Alternatively, the measure selection unit 120 selects a measure with the quality above average from among the multiple measures. Alternatively, the measure selection unit 120 selects a measure with the quality above a desired quality from among the multiple measures. Alternatively, the measure selection unit 120 may select a measure with the highest quality from among the measures created in the repetition of steps S108 to S154 (or S152). The process of selecting a measure is not limited to the above example.
[0048] Next, the criterion update unit 122 updates the rule creation criterion that is the basis for generating the rule parameter vector θ in step S104 (step S158). The criterion update unit 122 may update the distribution (rule creation criterion) by, for example, calculating the average and standard deviation of the parameter values for each parameter included in the policy selected by the policy selection unit 120. That is, the criterion update unit 122 uses the rule parameters representing the policy selected by the policy selection unit 120 to update the distribution for the rule parameters. The criterion update unit 122 may update the distribution by, for example, using a cross-entropy method.
[0049] The repetitive process from step S102 (loop start) to step S160 (loop end) may be repeated a given number of times, for example. Alternatively, the repetitive process may be repeated until the quality of the policy meets or exceeds a desired standard. By repeatedly executing the process from step S102 to step S160, the distribution (rule creation criterion) on which the rule parameter vector θ is created tends to gradually approach a distribution reflecting the observed values related to the target 170. Therefore, the policy creation device 100 according to this embodiment can create a policy according to the target 170.
[0050] The action determination unit 108 may input an observation value representing the state of the target 170, and determine an action to be taken on the target 170 according to the input observation value and the highest quality measure. The control unit 52 may further control the action to be taken on the target 170 according to the action determined by the action determination unit 108.
[0051] Next, the process of generating the rule parameter vector θ (S104 in FIG. 2) will be described with reference to FIG. Fig. 3 is a flowchart showing the processing in the rule creating unit 102 according to the first embodiment. The rule creating unit 102 inputs an initial state rule parameter vector θ in which the values of the rule parameters θt and θa in Fig. 7 have not been input (step S104A). As described above, the framework of the rules #1 to #I in each rule list is fixed, so it is predetermined which value (criterion or action) of which rule is input to which component in the rule parameter vector θ.
[0052] Next, the rule creating unit 102 calculates a judgment criterion θt for the feature amount using the rule creating criterion (step S104B). The rule creating unit 102 also calculates an action θa for each condition using the rule creating criterion (step S104C). The rule creating unit 102 may determine at least one of the conditions and actions in the rule according to the rule creating criterion. Also, at least some of the types of observations of the target 170 may be set in advance as feature amounts. This process eliminates the need to perform a process for determining feature amounts, which has the effect of reducing the amount of processing in the rule creating unit 102.
[0053] Specifically, the rule creation unit 102 provides the value of the rule determination parameter Θ for determining the rule parameters (the judgment criterion θt and the action θa) according to a certain distribution (for example, a probability distribution). The distribution that the rule determination parameter follows may be, for example, a Gaussian distribution. Alternatively, the distribution that the rule determination parameter follows does not necessarily have to be a Gaussian distribution, and may be a uniform distribution, a binomial distribution, a multinomial distribution, or other distribution. Furthermore, the distributions for each rule determination parameter do not necessarily have to be the same distribution, and may be different distributions for each rule determination parameter. For example, the parameter Θ for determining the judgment criterion θt t The parameter Θ for determining the distribution (rule creation criterion) and the action θa that a The distributions (rule creation criteria) that the rule determination parameters follow may be different from each other. Alternatively, the distributions for each rule determination parameter may be distributions with different means and standard deviations. That is, the distributions are not limited to the above-mentioned examples. In the following example, it is assumed that each rule determination parameter (rule parameter) follows a Gaussian distribution.
[0054] Next, a process of calculating the value of each rule determination parameter (rule parameter) according to a certain distribution will be described. For convenience of explanation, it is assumed that the distribution regarding a certain rule determination parameter is a Gaussian distribution with a mean μ and a standard deviation σ. Here, μ is a real number, and σ is a positive real number. Moreover, μ and σ may be different values for each rule determination parameter, or may be the same value.
[0055] In the processes of S104B and S104C described above, rule creation unit 102 calculates the value of the rule decision parameter (rule decision parameter value) according to the Gaussian distribution. For example, rule creation unit 102 calculates each rule decision parameter value (Θ t and Θ a) is randomly generated. The rule creation unit 102 calculates the rule determination parameter value so that the value follows the Gaussian distribution, for example, using random numbers or pseudo-random numbers using a certain random number seed. In other words, the rule creation unit 102 calculates the random number following the Gaussian distribution as the value of the rule determination parameter. In this way, the rule set is expressed by rule determination parameters following a predetermined distribution, and the rules (the judgment criterion θt and the action θa) in the rule set are determined by calculating each rule determination parameter according to the distribution. Then, by rearranging these rules, the determination list (measure) can be expressed more efficiently. Note that instead of the rule parameter vector θ, a rule determination parameter vector having Θ as a component may be input to the order parameter calculation unit 104. Therefore, it can be said that the rule determination parameter (rule determination parameter vector) is a type of rule parameter (rule parameter vector).
[0056] The rule creating unit 102 calculates the judgment criterion θt (S104B). Specifically, the rule creating unit 102 calculates a rule determination parameter Θ t At this time, the rule creating unit 102 calculates a plurality of judgment criteria θt (rule decision parameters Θ t ) may be calculated to follow different Gaussian distributions (i.e., Gaussian distributions with different average values and / or standard deviations). Therefore, the distribution that θt1 follows may be different from the distribution that θt2 follows.
[0057] The rule creating unit 102 calculates the value Θ t θt is calculated by executing the process shown in the following equation 2 for (Formula 2) θt = (V max -V min )×g(Θ t )+V min
[0058] However, V minrepresents the minimum observed value of the feature. V max represents the maximum value observed for the feature. g(x) is a function that gives a value between 0 and 1 for a real number x, and represents a monotonically changing function. g(x) is also called an activation function, and is realized by, for example, a sigmoid function.
[0059] Therefore, the rule creating unit 102 calculates the parameter Θ according to a distribution such as a Gaussian distribution. t Then, as shown in Equation 2, the rule creating unit 102 calculates the value of the parameter Θ t The value of is used to determine the range of observed values for the feature (in this example, V min From V max A judgment criterion θt (for example, a threshold value) for the feature amount is calculated from the range of the feature amount.
[0060] Next, the rule creating unit 102 calculates the motion θa (state) for each condition (rule) (step S104C). Here, the motion may be represented by a continuous value or a discrete value. In the case of a continuous value, the value θa indicating the motion may be a control value of the object 170. For example, in the case where the object 170 is an inverted pendulum shown in FIG. 6, the value θa may be a torque value or the angle of the pendulum. In addition, in the case where the motion is represented by a discrete value, the value θa indicating the motion may be a value corresponding to the type of motion.
[0061] First, a process for when the action (state) is a continuous value will be described. The rule creating unit 102 calculates a value Θ that follows a distribution (probability distribution) such as a Gaussian distribution for a certain action θa. a At this time, the rule creating unit 102 calculates a rule determination parameter Θ related to a plurality of actions θa such as θa1 and θa2 in FIG. a ) may be calculated to follow different Gaussian distributions (i.e., Gaussian distributions with different average values and / or standard deviations). Therefore, the distribution that θa1 follows may be different from the distribution that θa2 follows.
[0062] The rule creating unit 102 calculates the value Θa By executing the process shown in the following equation 3, an action value θa that indicates an action related to a certain condition (rule) is calculated for the above. (Formula 3) θa = (U max -U min )×h(Θ a )+U min
[0063] However, U min represents the minimum value of a certain action (state). max represents the maximum value of a certain action (state). min and U max may be predetermined by a user, for example. h(x) is a function that gives a value between 0 and 1 for a real number x and represents a monotonically changing function. h(x) is also called an activation function, and may be realized by, for example, a sigmoid function.
[0064] Therefore, the rule creating unit 102 calculates the parameter Θ according to a distribution such as a Gaussian distribution. a Then, as shown in Equation 3, the rule creating unit 102 calculates the value of the parameter Θ a Using the value of , we estimate the range of observations (in this example, U min From U max From the range of the first to fourth motions (a range from 0 to 100), rule creating section 102 calculates one motion value θa that indicates a motion in a certain rule. Rule creating section 102 executes such a process for each motion.
[0065] In addition, the rule creating unit 102 uses "U max -U min The rule creating unit 102 may select the maximum action value from the history of action values for U. max The minimum operating value is U minAlternatively, when an action is defined by a "state", rule creation unit 102 may determine the range of values (state values) indicating the next state in the rule from the maximum and minimum values in the history of observed values representing the state. By such processing, rule creation unit 102 can efficiently determine actions included in rules for determining the state of object 170.
[0066] Next, a process when the action (state) is a discrete value will be described. For convenience of explanation, it is assumed that there are A types of actions (states) for the object 170 (where A is a natural number). In other words, there are A types of action candidates for a certain rule. The rule creating unit 102 calculates the parameters Θ, which are (number of rules I×A). a The rule creating unit 102 calculates the values of the (I×A) parameters Θ so that they follow a distribution (probability distribution) such as a Gaussian distribution. a may be calculated to follow different Gaussian distributions (that is, Gaussian distributions with different means and / or standard deviations).
[0067] When determining an action in a certain rule, the rule creating unit 102 uses a parameter Θ a Then, the rule creating unit 102 determines an action (state) corresponding to a rule, for example, a rule that selects the largest value, among the parameter values corresponding to the action (state). For example, the parameter Θ of rule #1 a (1,1) ~Θ a (1,A) In Θ a (1,2) If the value of is the largest, the rule creating unit 102 selects Θ as the action in rule #1. a (1,2) Determine the action corresponding to
[0068] As a result of the processing in steps S104A to S104C shown in FIG. 3, rule creation unit 102 creates one rule parameter vector θ (rule set). Rule creation unit 102 creates multiple rule parameter vectors θ (rule sets) by repeatedly executing such processing. Note that the rule parameters are calculated randomly according to a distribution (probability distribution) such as a Gaussian distribution, and therefore the value of each rule parameter may differ in each of the multiple rule sets. That is, rule creation unit 102 creates rules in which conditions and actions are randomly combined. Therefore, multiple different rule sets can be efficiently created. Since it is possible to reduce bias in rules due to the processing of creating rules in which conditions and actions are randomly combined, for example, the control device 50 can achieve an effect of being able to accurately control the action of target 170.
[0069] Next, the process (S130 in FIG. 2) in which the policy evaluation unit 110 evaluates the quality of a policy will be described with reference to FIG. Fig. 4 is a flowchart showing the processing in the policy evaluation unit 110 according to the first embodiment. Here, the processing of the flowchart in Fig. 4 is executed for each of the multiple policies (decision lists) that have been created.
[0070] The action determination unit 108 acquires an observed value (state value) observed for the target 170. Then, the action determination unit 108 determines an action in the state for the acquired observed value (state value) according to one of the measures created by the process of S120 in Fig. 2 (step S132). That is, the action determination unit 108 determines a control value for controlling the action of the target 170 using the state of the target 170 and the created measure, and issues an instruction to execute the action according to the determined control value.
[0071] Next, the action evaluation unit 112 receives evaluation information indicating an evaluation value for the action determined by the action determination unit 108, thereby determining the evaluation value for the action (step S134). The action evaluation unit 112 may determine the evaluation value for the action by creating an evaluation value for the action according to a difference between a desired state and a state caused by the action. In this case, the action evaluation unit 112 creates an evaluation value indicating, for example, that the larger the difference, the lower the quality of the action, and that the smaller the difference, the higher the quality of the action. Then, for an episode including multiple states, the action evaluation unit 112 determines the quality of the action that realizes each state (the loop shown in steps S131 to S136).
[0072] Next, the overall evaluation unit 114 calculates the sum of the evaluation values for each action. That is, the overall evaluation unit 114 calculates the degree of suitability for the measure by calculating the sum of the series of actions determined according to the measure (step S138). In this way, the overall evaluation unit 114 calculates the degree of suitability (evaluation value) for the measure for one episode. Note that the overall evaluation unit 114 may create evaluation information in which the degree of suitability calculated for the measure (i.e., the quality of the measure) is associated with an identifier representing the measure, and the created measure evaluation information may be stored in the measure evaluation information storage unit 126.
[0073] 4 for each of a plurality of episodes and calculate the average value to calculate the fitness (evaluation value) of the policy. The action determination unit 108 may first determine the action that realizes the next state. That is, the action determination unit 108 may first determine all the actions included in the episode according to the policy, and the action evaluation unit 112 may execute a process of determining the evaluation value of the state included in the episode.
[0074] The process shown in FIG. 4 will be described with reference to a specific example. For convenience of explanation, one episode is assumed to be composed of 200 steps (i.e., 201 states). Also, for each step, an evaluation value is assumed to be (+1) if the behavior in the state of each step is good, and (-1) if it is not good. In this case, when an action is determined according to a certain policy, the evaluation value (fit) for the policy is a value between -200 and 200. Whether or not the action is good can be determined based on, for example, the difference between a desired state and a state reached by the action. In other words, the action may be determined to be good when the difference between the desired state and the state reached by the action is equal to or less than a predetermined threshold. In the following description, for convenience of explanation, it is assumed that the larger the value of the evaluation information, the higher the quality of the policy, and the smaller the value of the evaluation information, the lower the quality of the policy.
[0075] The action determination unit 108 determines an action for a certain state according to one measure to be evaluated. The action determination unit 108 instructs the control unit 52 to perform the determined action. The control unit 52 executes the determined action. Next, the action evaluation unit 112 calculates an evaluation value for the action determined by the action determination unit 108. For example, the action evaluation unit 112 calculates an evaluation value that is (+1) if the action is good and (-1) if the action is not good. The action evaluation unit 112 calculates an evaluation value for each action in one episode including 200 steps.
[0076] In the policy evaluation unit 110, the overall evaluation unit 114 calculates the degree of suitability for one policy by calculating the sum of the evaluation values calculated for each step. For example, it is assumed that the policy evaluation unit 110 calculates the degrees of suitability for policies #1 to #4 as shown below. Strategy #1: 200 Strategy #2: -200 Strategy #3: -40 Strategy #4: 100
[0077] In this case, the policy selection unit 120 selects, for example, policy #1 and policy #4 with large evaluation values when selecting two policies that are in the top 50% of the evaluation values calculated by the policy evaluation unit 110 from among the four policies. In other words, the policy selection unit 120 selects high-quality policies from among multiple policies (S156 in FIG. 2).
[0078] The criterion update unit 122 calculates the average and standard deviation of the parameter values for each rule parameter included in the high-quality policy selected by the policy selection unit 120. As a result, the criterion update unit 122 updates a distribution (rule creation criterion) such as a Gaussian distribution to which each rule parameter follows (S158 in FIG. 2). Then, the process of FIG. 2 is performed again using the updated distribution. That is, the rule creation unit 102 executes the process shown in FIG. 8 using the updated distribution to create multiple (N) new rule parameter vectors θ and rule sets. Then, the action determination unit 108 determines an action to follow for each of the multiple policies newly created using the rule parameter vector θ created again. Then, the policy evaluation unit 110 determines an evaluation value (goodness of fit) for each of the multiple newly created policies.
[0079] In this way, since the distribution is updated using a high-quality policy, the average value μ in the distribution that the rule parameters follow can approach a value that can realize a higher-quality policy. Furthermore, the standard deviation σ in the distribution that the rule parameters follow can become smaller. Therefore, the width of the distribution can become narrower as the distribution is updated. As a result, the rule creation unit 102 is more likely to calculate rule parameters corresponding to a policy with a higher evaluation value (higher quality) by using the updated distribution. In other words, the rule creation unit 102 is more likely to create a high-quality policy by calculating rule parameters using the updated distribution and generating a policy (determination list) using order parameters calculated using the rule parameters. Therefore, by repeating the process shown in FIG. 2, the evaluation value of the policy can be improved. Then, for example, such a process may be repeated a predetermined number of times, and the policy with the maximum evaluation value among the multiple policies obtained may be determined as the policy for the target 170. This makes it possible to obtain a high-quality policy.
[0080] The action determination unit 108 may specify an identifier representing the policy with the highest evaluation value (i.e., the highest quality) from among the policy evaluation information stored in the policy evaluation information storage unit 126, and determine the action according to the policy represented by the specified identifier. That is, when creating a plurality of new policies, the rule creation unit 102 may, for example, create (N-1) policies using the updated distribution, and the remaining one may be the policy with the highest evaluation value among the policies created in the past. Then, the action determination unit 108 may determine actions for the (N-1) policies created using the updated distribution and the policy with the highest evaluation value among the policies created in the past. In this way, if a policy with a high evaluation value in the past has a relatively high evaluation even after the distribution has been updated, the policy can be appropriately selected. Therefore, it is possible to create high-quality policies more efficiently.
[0081] In the example of the inverted pendulum shown in Fig. 6, the judgment of whether the operation is good or not may be made based on the difference between the state caused by the operation and state VI where the pendulum is inverted. For example, if the state caused by the operation is state III, the judgment of whether the operation is good or not may be made based on the angle between the direction of the pendulum in state VI and the direction of the pendulum in state III.
[0082] In the above example, the policy evaluation unit 110 evaluates a policy based on each state included in an episode. However, a state that can be reached in the future by executing an action may be predicted, and the policy may be evaluated by calculating the difference between the predicted state and a desired state. In other words, the policy evaluation unit 110 may evaluate a policy based on an estimated value (or an expected value) of an evaluation value related to a state determined by executing an action. In addition, the policy evaluation unit 110 may calculate an evaluation value of a policy for each episode by repeatedly executing the process shown in FIG. 4 using a plurality of episodes for a certain policy, and calculate the average value (median, etc.) of the evaluation values as the goodness of fit. In other words, the process executed by the policy evaluation unit 110 is not limited to the above example.
[0083] Next, effects of the policy creation device 100 according to the first embodiment will be described. According to the policy creation device 100 according to the first embodiment, it is possible to create high-quality and highly visible policies. This is because the policy creation device 100 creates a policy configured with a decision list including a predetermined number of rules so as to be suitable for the target 170.
[0084] Moreover, according to the policy creation device 100 of this embodiment, the order parameter calculation unit 104 calculates an order parameter, and the order determination unit 106 is configured to determine the order of rules in the rule set according to the order parameter. This makes it possible to create a decision list (policy) in which the order of rules is appropriately determined.
[0085] Furthermore, according to the policy creation device 100 of this embodiment, the rule creation unit 102 is configured to calculate the value of the rule parameter according to the rule creation criterion, and the order parameter calculation unit 104 is configured to calculate the order parameter according to the rule parameter. Here, as described above, the rule parameter can be a parameter that represents the feature of the rule. In this way, the order parameter calculation unit 104 can calculate the order parameter according to the feature of the rule, and therefore it becomes possible to create an order determination list according to the feature of the rule.
[0086] Furthermore, according to the measure creation device 100 of this embodiment, the order parameter calculation unit 104 updates the model so that the quality of the movement is maximized (or the quality of the movement is increased). This enables the measure creation device 100 (order determination unit 106) to more reliably create a decision list that can achieve good quality.
[0087] Although the process in the policy creation device 100 has been described using the term "state of the target 170," the state does not necessarily have to be the actual state of the target 170. For example, it may be information representing the result calculated by a simulator that simulates the state of the target 170. In this case, the control unit 52 may be realized by the simulator.
[0088] Second embodiment Next, a second embodiment will be described below. In the second embodiment, the details of the process of the above-mentioned order parameter calculation unit 104 will be described.
[0089] The order parameter calculation unit 104 generates a list in which rules are associated with order parameters indicating the degree to which the rules appear. The order parameters are values indicating the degree to which the rules appear at a particular position in the decision list. The order parameter calculation unit 104 of this embodiment generates a list in which each rule included in the accepted set of rules is assigned to a plurality of positions on the decision list with order parameters indicating the degree of appearance. In the following description, for convenience of explanation, the order parameters are treated as the probability that a rule appears on the decision list (hereinafter, referred to as the appearance probability). Therefore, the generated list is hereinafter referred to as a probabilistic decision list. The probabilistic decision list will be described later with reference to FIG. 8.
[0090] The method by which the order parameter calculation unit 104 assigns rules to multiple positions on the decision list is arbitrary. However, in order for the order parameter calculation unit 104 to properly update the order of the rules on the decision list, it is preferable to assign rules so as to cover the context of each rule. Therefore, when assigning a first rule and a second rule, for example, the order parameter calculation unit 104 preferably assigns the second rule after the first rule and the first rule after the second rule. The number of rules assigned by the order parameter calculation unit 104 may be the same for each rule or may be different.
[0091] Furthermore, the order parameter calculation unit 104 may generate a probabilistic decision list of length δ|I| by duplicating and concatenating a rule set R (rule set #n) including I rules so that the number of rules becomes δ. In this way, by duplicating the same rule set to generate a probabilistic decision list, it is possible to improve the efficiency of the order parameter update process by the order parameter calculation unit 104, which will be described later.
[0092] In the above example, rule #j appears a total of δ times in the probabilistic decision list, and its appearance position is represented by the following formula 4. Note that j is an integer from 1 to I. (Formula 4) π(j,d)=(d-1)*|I|+j (d∈[1,δ])
[0093] The order parameter calculation unit 104 calculates the probability p π(j,d)、 may be calculated using a temperature softmax function as shown in the following formula 5, where τ is a temperature parameter and W j,d is a parameter that indicates the degree (weight) that rule #j appears at position π(j,d) in the list, and d is an index that indicates the position (hierarchy) at which rule #j appears in the probabilistic decision list. (Formula 5)
number
[0094] In this way, the order parameter calculation unit 104 may generate a probabilistic decision list in which each rule is assigned to a plurality of positions on the decision list with an occurrence probability defined by a softmax function as shown in the example of Equation 5. In addition, in the above Equation 5, the parameter W j,d is an arbitrary real number in the range [-∞,∞]. However, the probability p j,d are normalized to a sum of 1. That is, for each rule #n, the sum of the occurrence probabilities at δ positions in the probabilistic decision list is 1. Also, in equation 5, as the temperature parameter τ approaches 0, the output of the softmax function approaches a one-hot vector. That is, for a certain rule #j, the probability is 1 only at one of positions d=1 to δ, and the probability can be 0 at other positions. Therefore, the order parameter calculation unit 104 according to this embodiment determines the order parameters such that the sum of the order parameters of the same rule assigned to multiple positions is 1.
[0095] 8 is a diagram for explaining an example of a process for generating a probabilistic decision list calculated by the order parameter calculation unit 104 according to the second embodiment. The order parameter calculation unit 104 calculates a rule parameter vector θ (n)In response to the input, the order parameter calculation unit 104 generates a rule set #n (R1). Furthermore, the order parameter calculation unit 104 generates a probabilistic decision list #n (R2) including δ copies of the rule set #n from the rule set #n.
[0096] Furthermore, the order parameter calculation unit 104 uses a model such as the above-mentioned neural network to calculate order parameters P corresponding to each rule #(J, d) included in the probabilistic decision list R2. jd As a result, the order parameter calculation unit 104 calculates an order parameter vector w (n) Calculate. (Formula 6) w (n) =(P 11 ,P 21 ,···,P I1 ,···,P 1δ ,P 2δ ,···,P Iδ )
[0097] In the above formula 6, "P 11 ~P I1 " is a component for stratum d=1, and "P 1δ ~P Iδ " is a component related to the hierarchy d=δ. For each rule #j, the sum of the order parameters for d=1 to δ is 1. Therefore, for each rule #j, Σ d=1 δ (P jd )=1. For example, P 11 +P 12 +···+P 1δ = 1, and P 21 +P 22 +···+P 2δ =1.
[0098] Then, the order parameter calculation unit 104 calculates the order parameter P jdFor example, in the example of FIG. 8, the order parameter calculation unit 104 assigns an order parameter P 11 In this manner, the order parameter calculation unit 104 generates a probabilistic decision list.
[0099] The action determination unit 108 determines an action by using the probabilistic decision list. When determining an action in a state, the action determination unit 108 may determine an action for the highest rule that matches the condition in the probabilistic decision list as an action to be executed.
[0100] Alternatively, the action determination unit 108 may determine the action to be performed by considering the actions for the lower rules in the probabilistic decision list. In this case, the action determination unit 108 extracts all rules having conditions that match the state from among rules #1 to #I. Then, the action determination unit 108 sums up the actions by weighting the subsequent rules so that the weight of the subsequent rules is less than that of the higher-level rules using a weighted linear sum. This sum of the actions is called the "integrated action."
[0101] In the second embodiment, the actions included in each rule are the same control parameters. For example, if the object 170 is an inverted pendulum, the action may be "torque value" for all rules. Also, if the object 170 is a vehicle, the action may be "vehicle speed" for all rules.
[0102] For example, in the examples of FIGS. 7 and 8, when δ=2 and the state satisfies the conditions of rule #1 and rule #2, the action determination unit 108 determines the combined action according to the following equation 7. (Formula 7) Integrated action = θa1*P 11 +θa2*{(1-P 11 )*P 21} +θa1*{(1-P 11 )*(1-P 21 )*P 12} +θa2*{(1-P 11 )*(1-P 21 )*(1-P 12 )*P 22}
[0103] The policy evaluation unit 110 obtains a reward (evaluation value) for a state realized (obtained) by an integration action for each state. In this way, a reward for each integration action is obtained for each rule parameter vector θ. The policy evaluation unit 110 outputs the reward for the integration action for each rule parameter vector to the order parameter calculation unit 104.
[0104] The order parameter calculation unit 104 updates the model so that the reward obtained by the determined action (or integrated action) is maximized (or the reward is increased). This causes the order parameters (weights) of the rules to be updated. As a result, rules that are likely to fit the state may have higher order parameters in the higher hierarchy d, and rules that are unlikely to fit the state may have higher order parameters in the lower hierarchy d. Furthermore, as the model is updated, the order parameter values of rules with similar characteristics may become closer to each other.
[0105] FIG. 9 is a diagram for explaining the update of the order parameter according to the second embodiment. In FIG. 9, δ=3, I=5. In the initial state, the order parameters of all rules in the stochastic decision list R2 are 0.3 in the hierarchical levels d=1 and d=2, and 0.4 in the hierarchical level d=3. In the updated stochastic decision list R2′, the order parameters of the rules #2 and #5 in the hierarchical level d=1 are updated to 0.8 by the update process of the order parameter calculation unit 104. Similarly, the order parameter of the rule #3 in the hierarchical level d=2 is updated to 0.8, and the order parameters of the rules #1 and #4 in the hierarchical level d=3 are updated to 0.8. The other order parameters are updated to 0.1. In other words, it can be seen that the rules #2 and #5 with high order parameter values in the higher hierarchical levels have a high possibility of conformance, and the rules #1 and #4 with high order parameter values in the lower hierarchical levels have a low possibility of conformance.
[0106] The order determination unit 106 uses the updated probabilistic decision list to determine the order of the rules. In this way, the order determination unit 106 generates decision list candidates. Thus, the order determination unit 106 creates policy candidates. Specifically, for each rule, the order determination unit 106 extracts that rule from the hierarchical level with the largest order parameter value. Then, the order determination unit 106 arranges the extracted rules in order from the highest hierarchical level. In this way, the order determination unit 106 generates a decision list in which the rules are ordered.
[0107] 10 is a diagram for explaining the process of generating a decision list by the order determination unit 106 according to the second embodiment. In the updated probabilistic decision list R2', the order determination unit 106 extracts rules #2 and #5 from hierarchy d=1. Similarly, the order determination unit 106 extracts rule #3 from hierarchy d=2. Furthermore, the order determination unit 106 extracts rules #1 and #4 from hierarchy d=3. Then, the order determination unit 106 arranges the rules extracted from hierarchy d=1. As a result, a decision list R8 is generated in which the order of rules #2, #5, #3, #1, and #4 is generated.
[0108] Here, the process flow of the measure creation device 100 according to the second embodiment will be described with reference to Fig. 2. Steps S104 to S108 are substantially similar to those in the first embodiment. Next, in the process of S110, as described above, the order parameter calculation unit 104 copies the rule set to generate a probabilistic decision list. Then, as described above, the order parameter calculation unit 104 uses the model to calculate order parameters corresponding to each rule included in the probabilistic decision list. Then, based on the calculated order parameters, the order parameter calculation unit 104 determines the order in which the rules are applied, and determines the operation to be performed according to the determined order. Alternatively, the order parameter calculation unit 104 determines an integrated operation based on the calculated order parameters and the probabilistic decision list. The order parameter calculation unit 104 calculates a reward to be obtained by the determined operation (or integrated operation), and updates the parameters in the model using the calculated reward. The order parameter calculation unit 104 may repeatedly execute the process of updating the parameters. The order parameter calculation unit 104 creates multiple decision lists (i.e., policies).
[0109] Next, in the process of S130, as described above, the action determination unit 108 determines an action according to the determined measure and state. Then, the measure evaluation unit 110 evaluates the quality of the action for each state and obtains an evaluation value. After that, the measure creation device 100 updates the rule creation criteria using the measure with the high evaluation value (S156, S158).
[0110] As described above, in this embodiment, the order parameter calculation unit 104 assigns each rule included in the set of rules to multiple positions on the decision list with an order parameter attached. Then, the order parameter calculation unit 104 updates the parameter that determines the order parameter so as to maximize the reward realized by the action for the rule whose state satisfies the condition (or so as to increase the reward). Here, a large amount of processing is required to optimize the order of the rules in the decision list. In contrast, in this embodiment, the processing as described above can reduce the amount of processing in the creation process of the decision list.
[0111] While a normal decision list is discrete and non-differentiable, a probabilistic decision list is continuous and differentiable. In this embodiment, the order parameter calculation unit 104 generates a probabilistic decision list by assigning each rule to multiple positions on the list with an order parameter. The generated probabilistic decision list is a decision list that exists probabilistically by considering the rules to be distributed probabilistically, and can be optimized by gradient descent. Therefore, the amount of processing required to create a more accurate decision list can be reduced.
[0112] Moreover, the policy creation device 100 according to this embodiment is configured such that the order parameter calculation unit 104 calculates order parameters for determining an order in the decision list, using the rule parameter vector. This allows the order parameter calculation unit 104 to stably update the model even if the rule parameters are changed (updated) by updating the distribution. That is, the framework of the rule set is invariant. Then, the order parameter calculation unit 104 calculates order parameters from the rule parameters, and the decision list is determined from the order parameters. This allows the model to be stably updated (gradient learning). Therefore, as the loop in FIG. 2 progresses, the rule set (rule parameter vector) and the order of the rules are more appropriately optimized.
[0113] (Third embodiment) Next, a third embodiment will be described. FIG. 11 is a diagram showing a configuration of a measure creation device 300 according to the third embodiment. The measure creation device 300 according to the third embodiment has a rule creation unit 302, an order determination unit 304, and an action determination unit 306. The rule creation unit 302 has a function as a rule creation means. The order determination unit 304 has a function as an order determination means. The action determination unit 306 has a function as an action determination means. The rule creation unit 302 can be realized by a function substantially similar to the function possessed by the rule creation unit 102 described with reference to FIG. 1 and the like. The order determination unit 304 can be realized by a function substantially similar to the function possessed by the order determination unit 106 described with reference to FIG. 1 and the like. The action determination unit 306 can be realized by a function substantially similar to the function possessed by the action determination unit 108 described with reference to FIG. 1 and the like.
[0114] FIG. 12 is a flowchart showing a policy creating method executed by the policy creating device 300 according to the third embodiment.
[0115] The rule creating unit 302 creates multiple rule sets including a predetermined number of rules each combining a condition for determining the state of an object and an action in the state (step S302). For example, the rule creating unit 302 creates N rule sets each including I rules as described above. In other words, the rule creating unit 302 creates multiple rule sets including a combination of a condition for determining whether an action needs to be taken on the object and the action to be taken when the condition is satisfied.
[0116] The order determination unit 304 determines the order of rules for each of the multiple rule sets, and creates a measure represented by a decision list corresponding to the rule set whose rule order has been determined (step S304). That is, the order determination unit 304 determines the order of the rules in the multiple rule sets.
[0117] Then, the action determination unit 306 determines whether or not the target state meets the conditions for the rules in the determined order, and determines the action to be executed (step S306). That is, the action determination unit 306 determines whether or not the conditions are met according to the determined order, and determines the action when the conditions are met.
[0118] The measure creation device 300 according to the third embodiment is configured as described above, and can create a decision list in which an order is determined as a measure. Here, the decision list is expressed in a list format such as a decision list, and therefore has good visibility for the user. Therefore, it is possible to create a high-quality and highly visible measure.
[0119] (Hardware configuration example) An example of the configuration of hardware resources for implementing the policy creation device according to each of the above-mentioned embodiments using one calculation processing device (information processing device, computer) will be described. However, the policy creation device according to each of the embodiments may be implemented physically or functionally using at least two calculation processing devices. Furthermore, the policy creation device according to each of the embodiments may be implemented as a dedicated device or a general-purpose information processing device.
[0120] FIG. 13 is a block diagram showing an example of a hardware configuration of a calculation processing device capable of realizing the policy creation device according to each embodiment. The calculation processing device 20 has a CPU 21 (Central Processing Unit), a volatile storage device 22, a disk 23, a non-volatile recording medium 24, and a communication IF 27 (IF: Interface). Therefore, it can be said that the policy creation device according to each embodiment has the CPU 21, the volatile storage device 22, the disk 23, the non-volatile recording medium 24, and the communication IF 27. The calculation processing device 20 may be connectable to an input device 25 and an output device 26. The calculation processing device 20 may include the input device 25 and the output device 26. In addition, the calculation processing device 20 can transmit and receive information to and from other calculation processing devices and communication devices via the communication IF 27.
[0121] The non-volatile recording medium 24 is a computer-readable medium, such as a compact disc or a digital versatile disc. The non-volatile recording medium 24 may also be a universal serial bus (USB) memory, a solid state drive, or the like. The non-volatile recording medium 24 holds the relevant program without the need for a power supply, making it possible to carry the program. The non-volatile recording medium 24 is not limited to the above-mentioned medium. Instead of the non-volatile recording medium 24, the relevant program may be supplied via the communication IF 27 and a communication network.
[0122] The volatile storage device 22 is computer-readable and can temporarily store data. The volatile storage device 22 is a memory such as a dynamic random access memory (DRAM) or a static random access memory (SRAM).
[0123] That is, when the CPU 21 executes a software program (computer program: hereinafter simply referred to as a "program") stored in the disk 23, the CPU 21 copies the program to the volatile storage device 22 and executes arithmetic processing. The CPU 21 reads data required for executing the program from the volatile storage device 22. When display is required, the CPU 21 displays the output result on the output device 26. When a program is input from the outside, the CPU 21 acquires the program from the input device 25. The CPU 21 interprets and executes a policy creation program (FIGS. 2 to 4 or FIG. 12) corresponding to the function (processing) of each component shown in FIG. 1 or FIG. 11 described above. The CPU 21 executes the processing described in each of the above-mentioned embodiments. In other words, the function of each component shown in FIG. 1 or FIG. 11 described above can be realized by the CPU 21 executing the policy creation program stored in the disk 23 or the volatile storage device 22.
[0124] That is, each of the embodiments can be realized by the above-mentioned measure creation program.Furthermore, each of the embodiments can be realized by a computer-readable non-volatile recording medium on which the above-mentioned measure creation program is recorded.
[0125] (Modification) The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present invention. For example, in the above-described flowchart, the order of each process (step) can be modified as appropriate. Also, one or more of the multiple processes (steps) may be omitted.
[0126] The order parameter calculation unit 104 may update the model at any timing. Therefore, in a certain loop (S102 to S160) in the flowchart of Fig. 2, the processes of S156 to S158 may be executed without updating the model. In other words, it is not necessary to always update the model in all loops.
[0127] In the above example, the program can be stored and provided to the computer using various types of non-transitory computer readable media. The non-transitory computer readable medium includes various types of tangible storage media. Examples of the non-transitory computer readable medium include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROM (Read Only Memory), CD-R, CD-R / W, and semiconductor memory (e.g., mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM (Random Access Memory)). The program may also be provided to the computer by various types of transitory computer readable media. Examples of the transitory computer readable medium include electric signals, optical signals, and electromagnetic waves. The transitory computer readable medium can provide the program to the computer via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path.
[0128] Although the present invention has been described above with reference to the embodiment, the present invention is not limited to the above. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the invention.
[0129] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. (Appendix 1) a rule creating means for creating a rule set including a plurality of rules each of which is a combination of a condition for determining whether or not an action to be taken with respect to an object is necessary and the action to be taken when the condition is satisfied; an ordering means for ordering the rules in the plurality of rule sets; an action determination means for determining whether or not the condition is satisfied according to the determined order and determining the action when the condition is satisfied; A policy creation device having the following. (Appendix 2) The rules are expressed as a set of rule parameters according to predetermined rule creation criteria; The rule creation means determines at least one of the condition and the action in the rule by calculating a value of the rule parameter according to the rule creation criterion. 2. A methodology generating device as claimed in claim 1. (Appendix 3) The rule creating means creates the rule in which the conditions and the actions are randomly combined. 3. A methodology generating device as claimed in claim 2. (Appendix 4) an order parameter calculation means for calculating an order parameter for determining an order of the plurality of rules in the rule set; and The order determining means determines an order of the rules in the rule set in response to the order parameter. 4. A methodology generating device according to claim 1. (Appendix 5) The rules are expressed as a set of rule parameters according to predefined rule creation criteria; The rule creation means determines at least one of the condition and the action in the rule by calculating a value of the rule parameter according to the rule creation criterion; The order parameter calculation means calculates the order parameter in response to the rule parameter. 5. A methodology generating device as claimed in claim 4. (Appendix 6) a movement evaluation means for determining a quality of said determined movement; and The order parameter calculation means updates a model for calculating the order parameter so that the quality of the movement is increased. 6. A methodology generating device according to claim 4 or 5. (Appendix 7) The order determination means creates a plurality of measures corresponding to the ordered rule sets; a strategy evaluation means for determining a quality of the determined motion and for determining a quality of the strategy for each of a plurality of the strategies based on the determined quality of the motion; a policy selection means for selecting the determined policy having high quality from among the plurality of policies created; 7. The method generating device according to claim 1, further comprising: (Appendix 8) The rule creating means creates a new rule set using the selected measure. 8. A methodology generating device as claimed in claim 7. (Appendix 9) The rules are expressed as a set of rule parameters according to predetermined rule creation criteria; The rule creation criteria is updated using the selected strategy; and The rule creating means creates the new rule set by calculating the rule parameters according to the updated rule creating criteria. 9. A methodology generating device as claimed in claim 8. (Appendix 10) The operation determination means determines a control value for controlling the operation of the object using a state of the object and the created measure, and issues an instruction to execute the operation according to the determined control value. 10. A method creating device according to any one of claims 1 to 9. (Appendix 11) A method for creating a policy according to any one of claims 1 to 10, a control unit that performs control regarding the object in accordance with the action determined by the policy creation device; A control device comprising: (Appendix 12) creating a rule set including a plurality of rules each of which is a combination of a condition for determining whether or not an action is required to be performed on a target and the action to be performed when the condition is satisfied, by using an information processing device; determining an order of the rules in a plurality of the rule sets; According to the determined order, it is determined whether the condition is satisfied, and the operation to be performed when the condition is satisfied is determined. How to create a policy. (Appendix 13) A function of creating a rule set including a plurality of rules each of which is a combination of a condition for determining whether or not an action needs to be taken with respect to a target and the action to be taken when the condition is satisfied; determining an order for said rules in a plurality of said rule sets; a function of judging whether or not the condition is satisfied according to the determined order, and determining the operation to be performed when the condition is satisfied; A non-transitory computer-readable medium on which a program for causing a computer to execute the above is stored. [Explanation of symbols]
[0130] 50 Control device 52 Control section 100 Policy creation device 102 Rule Creation Department 104 Order parameter calculation unit 106 Order determining part 108 Action decision unit 110 Policy Evaluation Department 112 Operation Evaluation Section 114 General Evaluation Department 120 Policy Selection Division 122 Standards Update Department 126 Policy evaluation information storage unit 170 Target 300 Strategy Creation Device 302 Rules Creation Department 304 Order determining part 306 Action Decision Unit
Claims
1. a rule creation means for creating a rule set including a plurality of rules each of which is a combination of a condition for determining whether or not an action is required to be performed on an object and the action to be performed when the condition is satisfied, the rules being expressed by a set of rule parameters according to a predetermined rule creation criterion, by determining at least one of the condition and the action in the rule by calculating a value of the rule parameter according to the rule creation criterion; an order parameter calculation means for calculating an order parameter for determining an order of the plurality of rules in the rule set in response to the rule parameters; an ordering means for ordering the rules in the plurality of rule sets in response to the ordering parameter; an action determination means for determining whether or not the condition is satisfied according to the determined order and determining the action when the condition is satisfied; A policy creation device having the following.
2. The rules are expressed as a set of rule parameters according to predetermined rule creation criteria; The rule creation means determines at least one of the condition and the action in the rule by calculating a value of the rule parameter according to the rule creation criterion.
2. The method generating device according to claim 1.
3. The rule creating means creates the rule in which the conditions and the actions are randomly combined.
3. The method creating device according to claim 2.
4. a movement evaluation means for determining a quality of said determined movement; and The order parameter calculation means updates a model for calculating the order parameter so that the quality of the movement is increased.
2. The method generating device according to claim 1.
5. The order determination means creates a plurality of measures corresponding to the ordered rule sets; a strategy evaluation means for determining a quality of the determined motion and for determining a quality of the strategy for each of a plurality of the strategies based on the determined quality of the motion; a policy selection means for selecting the determined high-quality policy from among the plurality of policies created; 5. The method creating device according to claim 1, further comprising:
6. A method creating device according to any one of claims 1 to 5, a control unit that performs control regarding the object in accordance with the action determined by the policy creation device; A control device comprising:
7. creating a rule set including a plurality of rules each of which is a combination of a condition for determining whether or not an action is required to be performed on a target and the action to be performed when the condition is satisfied, the rules being expressed by a set of rule parameters according to a predetermined rule creation criterion, by determining at least one of the condition and the action in the rule by calculating a value of the rule parameter according to the rule creation criterion; calculating an order parameter for determining an order of the rules in the rule set in response to the rule parameters; determining an order of the rules in the plurality of rule sets in response to the order parameter; According to the determined order, it is determined whether or not the condition is satisfied, and the operation to be performed when the condition is satisfied is determined. How to create a policy.
8. a function of creating a rule set including a plurality of rules each of which is a combination of a condition for determining whether or not an action is required to be performed on an object and the action to be performed when the condition is satisfied, the rules being expressed by a set of rule parameters according to a predetermined rule creation criterion, by determining at least one of the condition and the action in the rule by calculating a value of the rule parameter according to the rule creation criterion; calculating an order parameter for determining an order of the rules in the rule set in response to the rule parameters; determining an order of the rules in the plurality of rule sets in response to the order parameter; a function of judging whether or not the condition is satisfied according to the determined order, and determining the operation to be performed when the condition is satisfied; A program that enables a computer to achieve the above.
Citation Information
Patent Citations
Learning method for sorting element system
JP1999015807A
Strengthened learning system and method for the same
JP2003233503A
Parameterized dynamic models for cloud migration
JP2015502616A
Information processing apparatus and program
JP2019074907A
Scheme generating device, control device, scheme generating method, and non-transitory computer readable medium storing scheme generation program
WO2020137019A1
