Learning device, control system, learning method and program

The learning device addresses the issue of forgotten learning results by dividing the state space into regions and updating models for each, allowing it to adapt to environmental changes effectively.

JP7533614B2Active Publication Date: 2024-08-14NEC CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022561712
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-10
Publication Date
2024-08-14
Estimated Expiration
2040-11-10

AI Technical Summary

Technical Problem

In reinforcement learning, when the environment changes significantly, previous learning results are often forgotten, requiring re-learning in similar environments, which is undesirable.

Method used

A learning device that divides the state space into regions, updates models for each region based on samples, and evaluates behavior using these models to adapt to environmental changes.

Benefits of technology

Enables the learning device to respond more appropriately to changes in the environment by maintaining relevant learning results across different conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533614000015
    Figure 0007533614000015
  • Figure 0007533614000023
    Figure 0007533614000023
  • Figure 0007533614000024
    Figure 0007533614000024
Patent Text Reader

Abstract

A training device comprises: a model-setting means for updating a model for a region that includes a given sample on the basis of the sample, among a plurality of models provided for each region into which is divided a state space that includes a sample that indicates a state about a control object and representing a value for the action of the control object; and a training means for evaluating the action of the control object in a given state, on the basis of the model for the region that includes a sample that indicates said state.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning device, a control system, a learning method, and program Regarding. [Background technology]

[0002] One type of machine learning is reinforcement learning (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2002-189502 A Summary of the Invention [Problem to be solved by the invention]

[0004] In reinforcement learning, when the environment changes significantly, learning in the new environment may cause the learning results in the past environment to be forgotten. Even if learning results suitable for the past environment are obtained, if they are forgotten in the new environment, when the agent is placed in an environment similar to the past environment again, the past learning results cannot be used and re-learning is required. In response to this, it is preferable to be able to respond appropriately to changes in the environment.

[0005] One object of the present invention is to provide a learning device, a control system, a learning method, and program The purpose of this project is to provide [Means for solving the problem]

[0006] According to a first aspect of the present invention, a learning device is provided that Abouta model setting means for updating a model for an area including a certain sample among a plurality of models each of which is provided for each divided area and expresses an evaluation of an action of the control object in response to control of the control object, based on the sample; and a learning means for evaluating the action of the control object in a certain state based on the model for the area including the sample showing the state. a region setting means for updating the division of the region based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; Equipped with.

[0007] According to a second aspect of the present invention, a learning device is provided, About The state space, which contains the samples that represent the states, is partitioned. Multiple region Each of In the case where there are a plurality of models representing an evaluation of the behavior of the control target in response to the control of the control target, Rusa a clustering means for determining regions containing samples; The sample and A model for the determined region and Based on 、 A learning means for evaluating the behavior; a region setting means for updating the division of the region based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; Equipped with. According to a third aspect of the present invention, a learning device includes a model setting means provided for each region into which a state space including samples indicating a state of a control object is divided, and which updates a model for a region including a certain sample among a plurality of models representing an evaluation of the behavior of the control object in response to control of the control object based on the sample; a learning means for evaluating the behavior of the control object in a certain state based on a model for a region including a sample indicating the state; and an area setting means provided for each representative point for determining the region, which determines a value of an error counter variable indicating the degree of difference between the representative point and the sample based on the distance between the sample and the representative point in the state space and the difference between the value calculated by applying the sample to the model and the value obtained based on the sample, and which determines a position to install a new representative point in the state space based on the value of the error counter variable and updates the region based on the new representative position.

[0008] The present invention 4 According to this aspect, the control system includes a learning device and a control object, and the learning device is configured to learn the control object. About a model setting means for updating a model for an area including a certain sample among a plurality of models each of which is provided for each divided area and expresses an evaluation of an action of the control object in response to control of the control object, based on the sample; and a learning means for evaluating the action of the control object in a certain state based on the model for the area including the sample showing the state. a region setting means for updating the division of the region based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; Equipped with.

[0010] The present invention 5 According to this embodiment, the learning method includes: AboutA state space including samples showing a state is provided for each divided region, and among a plurality of models showing an evaluation of the behavior of the control object in response to control of the control object, a model for a region including a certain sample is updated based on the sample, and the behavior of the control object in a certain state is evaluated based on the model for the region including the sample showing the state. The division of the region is updated based on the difference between a value calculated by applying the sample to the model and a value obtained based on the sample.

[0012] The present invention 6 According to the embodiment, the program causes a computer to About a state space including samples indicating a state is provided for each divided region, and among a plurality of models expressing an evaluation of an action of the control object in response to control of the control object, a model for an area including a certain sample is updated based on the sample, and the action of the control object in a certain state is evaluated based on the model for the area including the sample indicating the state; updating the division of the region based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; A program to execute In be. Effect of the Invention

[0014] The above-mentioned learning device, control system, learning method, and program According to this, it is possible to more appropriately respond to changes in the environment during reinforcement learning. [Brief description of the drawings]

[0015] [Figure 1] 1 is a schematic block diagram illustrating a configuration example of a control system according to an embodiment. [Diagram 2] 6A to 6C are diagrams illustrating examples of regions set by a region setting unit according to the embodiment. [Diagram 3] 11A and 11B are diagrams illustrating an example of an error calculated by a region setting unit according to the embodiment. [Figure 4] 11A and 11B are diagrams illustrating an example in which a region setting unit moves a representative point according to the embodiment. [Diagram 5]6A to 6C are diagrams illustrating examples of edges set by a region setting unit according to the embodiment. [Figure 6] 11A and 11B are diagrams illustrating examples of representative points newly set by a region setting unit according to the embodiment. [Figure 7] 13A and 13B are diagrams illustrating examples of edges after replacement by a region setting unit according to the embodiment. [Figure 8] 11 is a flowchart illustrating an example of a processing procedure performed by the learning device according to the embodiment. [Figure 9] 11 is a flowchart illustrating an example of a processing procedure for updating an area by the learning device according to the embodiment. [Figure 10] 11 is a flowchart illustrating an example of a processing procedure for adding a representative point by the learning device according to the embodiment. [Figure 11] FIG. 1 is a diagram illustrating an example of the configuration of a learning device according to an embodiment. [Figure 12] FIG. 1 is a diagram illustrating an example of the configuration of a control system according to an embodiment. [Figure 13] FIG. 11 is a diagram illustrating an example of a processing procedure in a learning method according to the embodiment. [Figure 14] FIG. 1 is a diagram illustrating an example of the configuration of a control system according to an embodiment. [Figure 15] FIG. 11 is a diagram illustrating an example of a processing procedure in a learning method according to the embodiment. [Figure 16] FIG. 11 is a diagram illustrating an example of a processing procedure in a learning method according to the embodiment. [Figure 17] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] The following describes embodiments of the present invention, but the following embodiments do not limit the scope of the invention. Also, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention. Fig. 1 is a schematic block diagram showing an example of the configuration of a control system according to an embodiment. In the configuration shown in Fig. 1, a control system 10 includes a learning device 100 and a control target 900. The learning device 100 includes a communication unit 110, a storage unit 180, and a control unit 190. The control unit 190 includes a region setting unit 191, a sample acquisition unit 192, a clustering unit 193, a model setting unit 194, a learning unit 195, and a target control unit 196.

[0017] The control system 10 learns a control rule for the control object 900 by reinforcement learning, and controls the control object 900 based on the obtained control rule. Reinforcement learning here refers to, for example, learning a policy that maximizes the expected value of a cumulative reward in a framework in which a state transition occurs when an agent performs an action determined by applying a policy to a state observed for the agent, and a reward is given according to the state at the transition destination. The agent may observe the state. In other words, the agent may obtain the state from the environment. Alternatively, the agent may obtain the state from both the agent itself and the environment. 1, the control object 900 corresponds to an example of an agent, and the control rule for the control object 900 corresponds to a policy. The control object 900 and the learning device 100 may be configured as one device, or may be configured separately.

[0018] The learning device 100 learns a control law for the control object 900, and controls the control object 900 according to the obtained control law. The learning device 100 learns the control law for the control object 900 by using a function configured of a model for each region (the regions will be described later with reference to FIG. 2) into which a state space is divided, for at least either the policy function or the reward function.

[0019] The state space is a collection of information that represents the states of the control object 900. The state space may include information that represents an action for the control object 900 in a certain state. A region represents a portion of a space obtained by dividing the state space based on similarity. A region may have a portion overlapping with another region. Alternatively, as will be described later with reference to FIG. 2, none of the regions may overlap with the other regions. The process of dividing a region so that a portion of the region overlaps with the other regions can be realized by, for example, a method such as the k-nearest neighbor algorithm. The similarity may also be measured by a distance, as described below, or by an index that indicates the degree to which states are similar to each other, such as one that does not satisfy a triangle inequality.

[0020] The model represents an evaluation of an action (or operation, process, etc.) for the control object 900. For example, when the state of the control object 900 is a certain state, and a certain action is performed on the control object 900, the value of the model represents how suitable the action is for the control object 900. In other words, the model can be said to be a process for evaluating the suitability (or value, goodness, desirability, etc.) of an action to be performed on the control object 900 in a certain state.

[0021] A domain-specific model corresponds to a partial function of a policy function defined for each domain, or a partial function of a reward function defined for each domain. A domain-specific model is also called a partial function model, or simply a model. The learning device 100 may be configured using a computer such as a personal computer (PC), a microcomputer, or a workstation (WS).

[0022] In reinforcement learning, the input distribution of the state may change, and the preferred policy may change accordingly. For example, when applying reinforcement learning to the driving control of a vehicle, the preferred control may be different when the road surface is dry and when the road surface is covered with water due to a sudden rain. If the vehicle's control device learns driving control when there is water on the road, and this affects the learning results when the road is dry, it is possible that the vehicle will not be able to perform proper driving control when the rain stops and the road is dry again.

[0023] In contrast, in the learning device 100, as described above, at least one of the policy function and the reward function is configured with a partial function model for each region, and the partial function model is learned for each region. In the above example, when the learning device 100 is used as a control device, since a state in which the road surface is dry and a state in which water accumulates on the road surface belong to different regions, it is expected that learning in a state in which the road surface is wet will not affect learning in a state in which the road surface is dry. According to the learning device 100, since learning in a state in which water accumulates on the road surface does not affect learning in a state in which the road surface is dry, when the rain stops and the road surface dries again, it is possible to perform driving control similar to that before the rain using the learning results from the period before the rain.

[0024] In this way, learning in a new state does not affect, or has only a small effect on, the learning results in a different state in learning device 100. As a result, when learning device 100 returns to a state similar to a previously learned state, it can use the learning results to perform the same processing as in the past.

[0025] The communication unit 110 communicates with other devices. For example, the communication unit 110 may communicate with the controlled object 900 to receive various information and transmit a control signal. The storage unit 180 stores various types of information. The storage unit 180 is configured using a storage device included in the learning device 100.

[0026] The control unit 190 performs various processes by controlling each unit of the learning device 100. The functions of the control unit 190 are performed, for example, by a CPU (Central Processing Unit) included in the learning device 100 reading a program from the storage unit 180 and executing it.

[0027] The region setting unit 191 sets a region in the state space. As described above, the region here refers to each of the parts (i.e., a part of the space) into which the state space is divided. The state space here is a vector space that represents the states that an agent acquires according to its actions. Each state that an agent acquires according to its actions is called a sample. A sample is represented by ξ, and the position vector of sample ξ is w ξ It is written as follows. Not limited to sample ξ, the position vector of point p in the state space is w p It is written as follows.

[0028] FIG. 2 is a diagram showing an example of the region set by the region setting unit 191. As shown in FIG. 2, the region setting unit 191 sets representative points a and b in the state space A1. A region is set by setting these representative points. In the explanation, the names of the representative points are also used as the names of the regions. In the example of Fig. 2, the region set based on the representative point a is called region a, and the region set based on the representative point b is called region b. The region set based on the representative point is also called the region of that representative point.

[0029] For each representative point, the part of the state space to which the representative point is closest may be set as the region of the representative point. In Fig. 2, the part of the state space A1 to which the closest representative point is representative point a is set as region a. The part of the state space A1 to which the closest representative point is representative point b is set as region b.

[0030] In this way, the region setting unit 191 sets a region in the state space by setting a representative point in the state space. By the region setting unit 191 setting the region, the learning device 100 can perform learning for each region, and it is expected that the learning device 100 can respond more appropriately to changes in the state. For example, as described above, when the road surface is dry and then rain falls, water accumulates on the road surface, and then the road surface dries again, the learning result for the period before the rain falls can be used to perform driving control similar to that before the rain fell.

[0031] Let M denote the number of representative points, and let r1, r2, . . . , r M M is an integer greater than or equal to 1. The value of M may be variable. In other words, the number of representative points that the region setting unit 191 sets in the state space may change dynamically. The representative point closest to sample ξ is also denoted as s1. The representative point second closest to sample ξ is also denoted as s2. In other words, representative point s2 is the representative point next closest to sample ξ after representative point s1. M The process of identifying the representative points s1 and s2 from among these is performed by the clustering unit 193 or the region setting unit 191, for example.

[0032] Moreover, the region setting unit 191 updates the region based on the sample ξ. Specifically, adding an edge connecting two representative points, deleting an edge, adding a representative point, deleting a representative point, and moving a representative point are performed. Adding an edge is also referred to as providing a new edge. Adding a representative point is also referred to as providing a new representative point. The region setting unit 191 combines the regions of the representative points into one by connecting the representative points with edges, and also divides one region into multiple regions by deleting edges.

[0033] In this way, the region setting unit 191 can dynamically adjust the setting of the region according to the obtained sample ξ. The region setting unit 191 corresponds to an example of a region setting means. For example, in a portion of the state space where the number of samples ξ obtained is large, the region setting unit 191 may set the region finely. This allows the learning device 100 to use a relatively simple model, such as a linear model, as the partial function model, and to improve the accuracy of the model.

[0034] The accuracy of the model here refers to the accuracy of the model output. In the case of a partial function model, the similarity (smallness of error) between the function value output by the partial function model and the correct answer value of that function value corresponds to the accuracy of the partial function model. The correct answer value here is a value that is a target value of the value output by the partial function model when learning data is input to the partial function model in learning of the partial function model. That is, the correct answer value here is a correct answer value in learning of the partial function model. Sample ξ may be used as learning data input to the partial function model.

[0035] Furthermore, in a portion of the state space where the number of samples ξ obtained is small, the region setting unit 191 may set the region to be large. This allows the learning device 100 to ensure the number of samples ξ in this region, and in this respect, the function (policy function or value function) can be appropriately learned.

[0036] The region setting unit 191 may select the representative point to be processed based on the distance in the state space. For example, when the sample ξ is obtained, the region setting unit 191 sets the representative point s1 and the representative point s t Here, the fact that two representative points are adjacent to each other via an edge means that there is an edge that is directly connected to both of the two representative points. The region setting unit 191 then determines the representative point s1 and the representative point s2 that is adjacent to the representative point s1 via an edge. t is moved closer to the sample ξ. Representative point s adjacent to representative point s1 via an edge t The set of is denoted as n. Set n is shown in equation (1).

[0037]

number

[0038] Fig. 3 is a diagram showing an example of an error calculated by the region setting unit 191. Fig. 3 shows a sample ξ and representative points s1 and s2. As described above, the representative point s1 is the representative point closest to the sample ξ. The representative point s2 is the representative point second closest to the sample ξ.

[0039] In the example of FIG. 3, the region setting unit 191 sets representative points r1, r2, . . . , r M For each of these, the square error "||w ξ -w ri || 2 As described above, M is a positive integer indicating the number of representative points. i is an integer in the range of 1≦i≦M. ξ -w ri || 2 " is the representative point r i and the square of the Euclidean distance between sample ξ.

[0040] The region setting unit 191 selects the representative point r that has the smallest calculated square error. i is identified as the representative point s1 closest to the sample ξ. Alternatively, the clustering unit 193 may specify the representative points s1 and s2, and the region setting unit 191 may use information on the result of the specification by the clustering unit 193.

[0041] Fig. 4 is a diagram showing an example of moving the representative point s1 by the region setting unit 191. In the example of Fig. 4, the region setting unit 191 moves the representative point s1, which is the representative point closest to the sample ξ, closer to the sample ξ. For example, the region setting unit 191 sets the position vector w s1 is updated based on equation (2).

[0042]

number

[0043] ε b 0 ≤ ε b Indicates a real constant ≦1. The region setting unit 191 calculates a vector "w ξ -w s1 " ε b Vector "ε b (w ξ -w s1 )" moves the representative point s1 closer to the sample ξ.

[0044] Also, for example, the region setting unit 191 may set the representative point s t Position vector w st is updated based on equation (3).

[0045]

number

[0046] In other words, the region setting unit 191 determines the representative point s t Vector "w" from sample ξ ξ -w st " ε n Vector "ε n (w ξ -w st )" only, representative point s t to approach the sample ξ. As mentioned above, n is the set of representative points adjacent to representative point s1 via edges, and s t ∈n. ε n 0 ≤ ε n Denotes a real constant ≦1. n The value of ε b It may be the same as or different from the value of

[0047] Furthermore, if the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ are not adjacent to each other via an edge, the region setting unit 191 connects the representative points s1 and s2 with an edge. That is, every time the region setting unit 191 obtains a sample ξ, it provides a new edge connecting the representative points s1 and s2, which are specified based on the distance from the sample ξ.

[0048] Fig. 5 is a diagram showing an example of edges set by the region setting unit 191. In the example of Fig. 5, the region setting unit 191 sets an edge e that connects the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ. As described above, the region setting unit 191 combines the regions of the representative points into one by connecting the representative points with edges. The learning device 100 sets one partial function model as a partial function model associated with a group of representative points connected with edges. That is, the learning device 100 sets a partial function model for each region.

[0049] In addition, the region setting unit 191 sets an error counter variable for each representative point and calculates the error counter variable value. The error counter variable is a variable used to determine the position of a new representative point when the region setting unit 191 sets the new representative point. i The error counter variable of error(r i ) is written as The region setting unit 191 initially sets the value of the error counter variable to 0. Then, the region setting unit 191 updates the value of the error counter variable error(s1) of the representative point s1 identified as the representative point closest to the sample ξ, for example, based on the formula (4).

[0050]

number

[0051] Squared error "||w ξ -w s1 || 2" indicates the square of the Euclidean distance between the sample ξ and the representative point s1. The region setting unit 191 calculates the value of the error counter variable error(s1) of the representative point s1 based on the formula (4) by multiplying the square error "||w ξ -w s1 || 2 That is, the region setting unit 191 increases the value of the error counter variable error(s1) of the representative point s1 by the square error "||w ξ -w s1 || 2 Then, the area setting unit 191 updates the value of the error counter variable error(s1) to the value of the addition result.

[0052] The region setting unit 191 identifies the representative point q having the maximum error counter variable value and the representative point f having the maximum error counter variable value among the representative points adjacent to the representative point q via an edge at each timing of adding a predetermined representative point. Then, the region setting unit 191 sets a new representative point r between the representative points q and f. The timing of adding the representative point may be set to, for example, at regular intervals. The region setting unit 191 calculates the position vector w of the representative point r based on the formula (5). r may be calculated.

[0053]

number

[0054] w q w denotes the position vector of the representative point q. f indicates the position vector of representative point f. According to equation (5), the region setting unit 191 sets a new representative point r at the midpoint between representative points q and f. However, the position at which the region setting unit 191 sets the representative point r is not limited to this. For example, the region setting unit 191 may set the new representative point r at the internal division point between representative points q and f.

[0055] 6 is a diagram showing an example of representative points newly set by the region setting unit 191. In FIG. 6, representative points q, f, and r, and an edge e connecting representative points q and f are shown. qf 6. The representative point q is the representative point with the maximum value of the error counter variable. The representative point f is the representative point with the maximum value of the error counter variable among the representative points adjacent to the representative point q at the edge. In the example shown in FIG. 6, the region setting unit 191 sets a new representative point r at the midpoint between the representative points q and f.

[0056] Furthermore, the area setting unit 191 replaces the edges. For example, the region setting unit 191 replaces the edge connecting the representative points q and f with an edge passing through the new representative point r. Specifically, the region setting unit 191 provides a new edge connecting the representative points q and r, and a new edge connecting the representative points r and f. Furthermore, the region setting unit 191 deletes the edge (the original edge) directly connecting the representative points q and f.

[0057] Fig. 7 is a diagram showing an example of edges after replacement by the region setting unit 191. Fig. 7 shows an example of an edge replacement by the region setting unit 191 from the state shown in Fig. 6. In the example shown in Fig. 7, an edge e connecting representative points q and f is qf is deleted, and the edge e connecting the representative points q and r is qr and the edge e connecting the representative points r and f. rf and is provided.

[0058] Regarding edge removal, the region setting unit 191 calculates the "age" for each edge. The age of an edge here is an index value based on the positional relationship between the sample ξ and the representative points at both ends of the edge. The region setting unit 191 sets the age of a newly created edge to 0. Furthermore, each time the region setting unit 191 acquires a sample ξ and identifies the representative point s1 closest to the sample ξ, it increases the age of all edges directly connected to the representative point s1, for example, by 1. Meanwhile, the region setting unit 191 sets the age of an edge connecting the representative points s1 and s2 to 0. For convenience, it is expressed as "age", but "age" may represent the number of times the representative point s1 has been identified (updated), etc.

[0059] The region setting unit 191 eliminates edges whose age is greater than a predetermined constant. Furthermore, the region setting unit 191 also erases representative points that are isolated due to the erasure of edges. An isolated representative point here is a representative point that is not connected to any edges.

[0060] As described above, each time the sample acquisition unit 192 acquires a sample ξ, the region setting unit 191 increments the ages of all edges directly connected to the representative point s1 closest to the sample ξ by 1. Then, the region setting unit 191 eliminates edges whose ages are greater than a predetermined constant. This is thought to make it easier to remove edges in regions with a large number of samples ξ to be classified. By removing edges, one region is divided into multiple regions, which is expected to enable more detailed setting of the function.

[0061] However, if the region setting unit 191 uniformly deletes edges in the vicinity of the sample ξ, the deletion of the edges may cause the representative point to be isolated, and the isolated representative point may also be deleted. As a result, the region may remain as it is without being divided even if the edges are deleted.

[0062] Therefore, as described above, the region setting unit 191 sets the age of the edge directly connecting the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ to 0. If there is no edge directly connecting the representative points s1 and s2, the region setting unit 191 newly creates this edge and sets the age to 0. This makes it possible to prevent the representative point s1 closest to the sample ξ from being deleted when the edge is deleted, and it is expected that the region will be divided.

[0063] In this way, even if the state space changes due to the process of erasing edges according to age, the area can be set appropriately. The age of an edge is an example of an index value based on the distance between the sample ξ and a representative point in the state space. The age of an edge being greater than a predetermined constant is an example of this index value satisfying a predetermined condition.

[0064] The sample acquisition unit 192 acquires the sample ξ. The method by which the sample acquisition unit 192 acquires the sample ξ is not limited to a specific method. For example, the control target 900, which corresponds to the example of an agent, may be equipped with a sensor, generate state information at a predetermined sampling period, and transmit the generated state information to the learning device. Then, the sample acquisition unit 192 may read out state information from the data received by the communication unit 110 from the control target 900, and acquire it as the sample ξ.

[0065] Alternatively, the sample acquiring unit 192 may acquire a batch including a plurality of samples as training data, and acquire the sample ξ by reading the sample ξ from the batch. Alternatively, the sample acquiring unit 192 may acquire a mini-batch in which some samples are extracted from the batch as training data, and acquire the sample ξ by reading the sample ξ from the mini-batch.

[0066] The method for the sample acquisition unit 192 to acquire a batch or a mini-batch is not limited to a specific method. For example, the sample acquisition unit 192 may access another device via the communication unit 110 and acquire a batch or a mini-batch from the other device. Alternatively, the sample acquiring unit 192 may accumulate samples acquired from, for example, the control target 900 as a batch. Furthermore, the sample acquiring unit 192 may extract a mini-batch from the batch.

[0067] The clustering unit 193 determines which region the sample ξ is included in. For example, the clustering unit 193 clusters the sample ξ acquired by the sample acquisition unit 192 and the representative points r1, r2, . . . , r M Then, the clustering unit 193 identifies the representative point s1 that is closest to the sample ξ and the representative point s2 that is second closest to the sample ξ. Clustering unit 193 corresponds to an example of clustering means.

[0068] The representative points s1 and s2 identified by the clustering unit 193 are used by the region setting unit 191 to update the above-mentioned region. Alternatively, the region setting unit 191 may identify the representative points s1 and s2 separately from the clustering unit 193. Furthermore, the clustering unit 193 determines that the sample ξ is included in the area defined by the representative point s1.

[0069] The distance index used by the clustering unit 193 is not limited to the Euclidean distance or its squared error, and may be any index indicating the magnitude of the difference in position in the state space. For example, the clustering unit 193 may calculate the Mahalanobis distance as the distance between the sample ξ and each of the representative points.

[0070] In this way, by changing the distance calculation index used by clustering unit 193, the space may become distorted in comparison with the case where Euclidean distance is used. 3, for example, the clustering unit 193 calculates the distance between the sample ξ and each of the representative points using the Euclidean distance to identify the representative points s1 and s2. As described above, the representative point s1 is the representative point closest to the sample ξ, and the representative point s2 is the representative point second closest to the sample ξ.

[0071] On the other hand, when the clustering unit 193 calculates the distance between the sample ξ and each representative point using the Mahalanobis distance, the distance between the sample ξ and the representative point s2 may be shorter than the distance between the sample ξ and the representative point s1. In this case, the clustering unit 193 specifies the representative point indicated as s2 in Fig. 3 as the representative point s1 closest to the sample ξ. The clustering unit 193 also specifies the representative point indicated as s1 in Fig. 3 as the representative point s2 second closest to the sample ξ.

[0072] In this way, when the clustering unit 193 uses the Mahalanobis distance, the order of closeness of the representative points to the sample ξ may differ from that when the Euclidean distance is used. This can be understood as a distortion of space when the clustering unit 193 uses the Mahalanobis distance. In the example of Fig. 3 described above, it can be understood that the representative point s2 is closer to the sample ξ than the representative point s1 by the clustering unit 193 shortening the distance in the horizontal axis direction using the Mahalanobis distance.

[0073] Here, we consider a case where the state space is constructed using horizontal and vertical coordinate axes, and the horizontal axis direction is more important than the vertical axis direction, so that the semantic coordinate space of the data becomes a space that is shrunk from the Euclidean space in the horizontal axis direction. When the clustering unit 193 uses the Euclidean distance as a distance calculation index, the difference between the coordinates of two points is used as it is to calculate the distance in both the vertical and horizontal directions, and the state space is not compressed. Therefore, the clustering unit 193 cannot calculate a distance that reflects the importance in the horizontal direction.

[0074] On the other hand, when the clustering unit 193 uses the Mahalanobis distance as a distance calculation index, different scales can be used for the vertical and horizontal directions, and the state space can be compressed in the horizontal direction. This allows the clustering unit 193 to calculate a distance that reflects the importance in the horizontal direction.

[0075] By using the Mahalanobis distance, the clustering unit 193 can expand and reduce the state space in various directions, not limited to the above-mentioned examples of the horizontal axis and vertical axis directions. This allows the clustering unit 193 to calculate a distance that reflects the difference in priority for each coordinate axis or the difference in the definition of distance for each coordinate axis.

[0076] Furthermore, the clustering unit 193 can learn the matrix itself that defines the Mahalanobis distance. In other words, the clustering unit 193 can learn how to distort the state space. By such processing, even if the importance of the coordinate axes is unknown or the importance changes, the state space can be divided into regions with higher accuracy. For example, the clustering unit 193 may use external information to learn a matrix that defines the Mahalanobis distance.

[0077] The learning of how to distort the state space by the clustering unit 193 and the learning of how to set the regions by the region setting unit 191 may be performed at the same time. Here, performing multiple learnings at the same time means performing the multiple learnings by a series of machine learning using the same learning data.

[0078] The method of distorting the state space by the clustering unit 193 is not limited to the method using the Mahalanobis distance. For example, the clustering unit 193 may calculate the distance by weighting the distance component for each coordinate axis by multiplying the distance component by a coefficient according to the importance of the coordinate axis.

[0079] A clustering unit 193 clusters the sample ξ and the representative points r1, r2, . . . , r based on a function value calculated by applying the sample ξ to the partial function model and a value obtained based on the sample ξ. M Alternatively, an index value of the distance between each of the above may be calculated. For example, the sample acquisition unit 192 acquires a new sample ξ, and the clustering unit 193 clusters this sample ξ and a representative point r i Consider the case where an index value of the distance between is calculated.

[0080] In this case, the clustering unit 193 clusters the sample ξ and the representative point r i Not only the distance to the representative point r i The distance index value may also be calculated based on the magnitude of the difference between a function value obtained by inputting the sample ξ into a partial function model associated with the function value and a ground truth value of the function value. This ground truth value corresponds to an example of a value obtained based on the sample ξ. The clustering unit 193 divides the sample ξ and the representative point r i As an index value of the distance between i )" may be used.

[0081]

number

[0082] As in the case of equation (4), ||w ξ -w ri ||" is the sample ξ and the representative point r i f ri is the representative point r i Denote the partial function model associated with f ri (ξ) is the partial function model f ri The function value obtained by inputting the sample ξ into f c indicates the correct value for sample ξ. ri (ξ)-f c |" is the function value f ri (ξ) and the correct value f cIt indicates the absolute value of the difference (magnitude of the difference).

[0083] The clustering unit 193 calculates a distance index value for each of the representative points, and identifies the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ based on the calculated values.

[0084] A known method can be used as a method for calculating the correct value of the function value output by the partial function model. For example, when a combination of partial function models is used as a value function, a value obtained by integrating the expected value of the reward over time may be used as the correct value. In the following, an example will be described in which the learning unit 195 calculates the correct answer value. However, the functional unit that calculates the correct answer value is not limited to a specific functional unit. Alternatively, the learning device 100 may obtain the correct answer value from another device.

[0085] When the clustering unit 193 uses the above-mentioned distance index value, the learning unit 195 calculates the correct value of the function value obtained by inputting the sample ξ to the function (policy function or value function) represented by the combination of the partial function models. This correct value is the correct value f c This applies.

[0086] In addition, the clustering unit 193 inputs the sample ξ to the partial function model associated with each representative point to calculate a function value. This function value is the function value f ri This corresponds to (ξ). Here, although the domain of the partial function model can be considered to be limited to a region, the clustering unit 193 calculates the function value assuming that the domain of the partial function model is expanded to the entire state space. That is, the clustering unit 193 inputs the sample ξ to the partial function model and calculates the function value assuming that the sample ξ is included in the domain of the partial function model regardless of the region.

[0087] By using the index value of the distance described above, the clustering unit 193 is more likely to select a representative point, whose function value obtained by inputting the sample ξ to the partial function model is closer to the correct answer value, as the region containing the sample ξ than when the distance itself is used. In this respect, it is expected that the learning device 100 can calculate the function value using the partial function model with relatively high accuracy. When the clustering unit 193 uses the above-mentioned distance index value, the Mahalanobis distance may be used for calculating the distance in calculating the index value.

[0088] The region setting unit 191 may use the Mahalanobis distance or the index value of the distance in the calculation for updating the region. For example, the region setting unit 191 may use the Euclidean distance "||w ξ -w s1 Instead of "||", the Mahalanobis distance or the index value of the distance described above may be used.

[0089] The model setting unit 194 sets a partial function model for each region. In addition, the model setting unit 194 updates a partial function model associated with a region determined to include the sample ξ based on the sample ξ. Therefore, it can be said that the model setting unit 194 updates a partial function model for a region including the sample ξ, among a plurality of partial function models provided for each region, based on the sample ξ. The model setting unit 194 corresponds to an example of a model setting means.

[0090] The update of the partial function model by the model setting unit 194 corresponds to learning of the partial function model. As an algorithm for the model setting unit 194 to learn the partial function model, a known algorithm for learning a policy function or a known algorithm for learning a value function can be used. For example, the model setting unit 194 may update the parameter values ​​of the partial function model using a gradient method such as an error backpropagation method, but is not limited to this.

[0091] As the partial function model, various types of models that can be learned can be used. The model setting unit 194 may use the same type of model for all regions, or may use different types of models for each region. For example, the partial function model associated with at least one region may be a linear model, or the partial function model associated with at least one region may be a nonlinear model.

[0092] The partial function model associated with at least one region may be configured using a neural network. In this case, various neural networks can be used. For example, by using a neural network with fewer layers as the partial function model, the time required for learning can be shortened. In this way, the type of learning to be performed can be determined by selecting a neural network.

[0093] When the region setting unit 191 erases an edge, a region that was joined into one by the edge may be divided into multiple regions. When one region is divided into multiple regions, the model setting unit 194 assigns a partial function model to each of the divided regions and initializes the assigned partial function model.

[0094] In this case, the method for initializing the partial function model is not limited to a specific method. For example, the region setting unit 191 may perform initial setting for a partial function model for each region after division so that the partial function model indicates a function similar to that of the partial function model associated with the region before division. Alternatively, the region setting unit 191 may randomly initially set the parameter values ​​of the partial function model for each region after division.

[0095] Alternatively, the region setting unit 191 may perform initial setting so that the partial function model associated with the divided region becomes an average model of the partial function models associated with the neighboring regions of the divided region. The neighboring region of a certain region may be a region adjacent to the region. For example, the region setting unit 191 may calculate an average value of parameter values ​​of partial function models associated with regions adjacent to the region after division, and may initially set the average value as the parameter value of the partial function model associated with the region after division. The region setting unit 191 may calculate a median or a mode of the parameter values ​​of the partial function models instead of the average value.

[0096] Furthermore, when the region setting unit 191 newly provides an edge connecting two representative points, the regions of these two representative points are combined into one region. In this case, the model setting unit 194 assigns one partial function model to the combined region and initializes the assigned partial function model.

[0097] In this case, the method of initializing the partial function model is not limited to a specific method. For example, the region setting unit 191 may perform initial setting for the partial function model associated with the combined region so that the partial function model becomes an average model of the partial function models associated with the combined region. Furthermore, for example, the region setting unit 191 may calculate an average value of the parameter values ​​of the partial function models associated with the combined region, and initially set the average value as the parameter value of the partial function model associated with the combined region. In this case, the region setting unit 191 may also calculate a median or a mode of the parameter values ​​of the partial function models instead of the average value. Alternatively, the region setting unit 191 may link one of the partial function models linked to the regions before the combination to the region after the combination.

[0098] The learning unit 195 performs learning of control for the control object using at least one of a policy function and a value function based on a partial function model associated with a region determined to include the sample ξ. For example, consider a case where the state of the control object 900 is a certain state represented by using a "sample ξ." In this case, the learning unit 195 evaluates the behavior of the control object 900 in response to the control (operation, processing, etc.) on the control object 900 based on a model for an area including the sample ξ indicating that state (a model associated with that area). The learning unit 195 corresponds to an example of a learning means.

[0099] A known reinforcement learning algorithm can be used as the learning algorithm used by the learning unit 195. That is, by configuring a function (policy function or value function) in the state space by combining partial function models for each region, the learning algorithm performed by the learning unit 195 can be the same as a known reinforcement learning algorithm.

[0100] When the learning unit 195 uses a learning algorithm including learning of a partial function model, the model setting unit 194 may be configured as a part of the learning unit 195. An example of a case where the learning unit 195 uses a learning algorithm that includes learning of a partial function model is a case where the learning unit 195 performs Q-learning, and a Q function corresponding to an example of a value function is constructed by a combination of partial function models, but is not limited to this.

[0101] In the case where the learning unit 195 does not calculate the correct value until learning of the control for the control object, the clustering unit 193 may calculate the distance between the sample ξ and the representative point, and recalculate the index value of the distance described above after obtaining the correct value. For example, when the sample acquisition unit 192 acquires the sample ξ, the clustering unit 193 calculates the distance between the sample ξ and each of the representative points and classifies (clusters) the sample ξ into one of the regions. The learning unit 195 performs learning of control for the control target by using a function value according to a partial function model associated with the region including the sample ξ.

[0102] When the learning unit 195 calculates the correct answer value by learning, the clustering unit 193 calculates an index value of the distance between the sample ξ and each of the representative points, and identifies the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ. The region setting unit 191 updates the region based on the index value of the distance calculated by the clustering unit 193 and the representative points s1 and s2 identified by the clustering unit 193.

[0103] The clustering unit 193 may narrow down the representative points for which distance index values ​​are to be calculated based on the distance between the sample ξ and each of the representative points. For example, the clustering unit 193 may calculate the distance index values ​​between the sample ξ and its representative points only for the top five representative points in order of the shortest distance to the sample ξ.

[0104] The object control unit 196 controls the control object 900 based on the learning result by the learning unit 195 . For example, the object control unit 196 determines an action to be taken by the control object 900, using a policy function obtained by learning by the learning unit 195. Then, the object control unit 196 generates a control signal indicating the determined action, and transmits it to the control object 900 via the communication unit 110. As a result, the object control unit 196 controls the control object 900 so as to cause the control object 900 to perform the determined action.

[0105] FIG. 8 is a flowchart showing an example of a processing procedure performed by the learning device 100. (Step S101) The region setting unit 191 initially sets the representative points. Specifically, the region setting unit 191 places two representative points a and b at random positions in the state space.

[0106] As mentioned above, the position vector of the representative point a is w a and the position vector of the representative point b is w b Let the dimension of the state space be n, and let w a ,w b ∈R n Let us assume that R n denotes the n-dimensional real space. When a new representative point is set, the area setting unit 191 sets an error counter variable for the representative point, and sets the initial value of the error counter variable to zero. After step S101, the process proceeds to step S102.

[0107] (Step S102) A model setting unit 194 initializes a partial function model for each region determined based on the initially set representative points. As described above, the model setting unit 194 may set the same type of model for all regions, or may set a different type of model for each region.

[0108] Moreover, the model setting unit 194 may initialize the partial function models of all the regions in the same manner, for example by initially setting the outputs of the partial function models of all the regions to 0. Alternatively, when a certain degree of information is available about the reward or the policy, the model setting unit 194 may initialize the partial function model for each region individually. After step S102, the process proceeds to step S103.

[0109] (Step S103) The sample acquisition unit 192 acquires the sample ξ. As described above, the sample ξ is an individual state that the agent acquires in response to its action. As described above, the sample acquisition unit 192 may acquire samples ξ one by one, for example, from the control object 900. Alternatively, the sample acquisition unit 192 may acquire a batch or mini-batch of samples and read the sample ξ from the batch or mini-batch. After step S103, the process proceeds to step S104.

[0110] (Step S104) The clustering unit 193 clusters the samples ξ. As described above, the clustering unit 193 calculates the distance or the index value of the distance between the sample ξ and each of the representative points, and determines the area of ​​the representative point closest to the sample ξ as the area including the sample ξ. The clustering unit 193 may use the Euclidean distance as the distance.

[0111] The clustering unit 193 may identify and record the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ based on the calculated distance or distance index value. After step S104, the process proceeds to step S105.

[0112] (Step S105) The model setting unit 194 updates the partial function model associated with the region into which the sample ξ is classified. As described above, updating the partial function model by the model setting unit 194 corresponds to learning the partial function model. The model setting unit 194 may use a known algorithm as an algorithm for learning the partial function model. After step S105, the process proceeds to step S106.

[0113] (Step S106) The area setting unit 191 updates the area. In step S106, the region setting unit 191 moves the representative point, adds an edge when there is no edge directly connecting the representative point s1 and the representative point s2, deletes the edge, and deletes the representative point associated with the deletion of the edge. The region setting unit 191 adds the representative point and updates the edge associated with the addition of the representative point in step S111. After step S106, the process proceeds to step S107.

[0114] (Step S107) The region setting unit 191 determines whether or not the timing for adding a representative point has arrived. The timing of adding the representative point is not limited to a specific timing. For example, one representative point may be added (i.e., a new representative point is provided) every time the number of input signals becomes an integer multiple of the integer constant λ, but is not limited to this.

[0115] If the area setting unit 191 determines that it is time to add a representative point (step S107: YES), the process proceeds to step S111. If the area setting unit 191 determines that the timing to add a representative point has not yet arrived (step S107: NO), the process proceeds to step S112.

[0116] (Step S111) The region setting unit 191 adds a representative point. As described above, the region setting unit 191 updates the edges in accordance with the addition of the representative point. After step S111, the process proceeds to step S112.

[0117] (Step S112) The region setting unit 191 updates all error counter variables. Specifically, the region setting unit 191 discounts the values ​​of the error counter variables of all representative points by a coefficient d. The coefficient d is a real constant that satisfies 0≦d≦1. The region setting unit 191 discounts the values ​​of the error counter variables of all representative points r i (i is an integer between 1 and N) i ) by the coefficient d.

[0118]

number

[0119] After step S112, the process proceeds to step S113.

[0120] (Step S113) The region setting unit 191 determines whether or not a predetermined end condition is met. If the area setting unit 191 determines that the end condition is not met (step S113: NO), the process proceeds to step S103. If the area setting unit 191 determines that the end condition is met (step S113: YES), the learning device 100 ends the processing in FIG.

[0121] 9 is a flowchart showing an example of a processing procedure for updating an area by the learning device 100. The learning device 100 performs the processing of FIG. 9 in step S106 of FIG. (Step S201) The region setting unit 191 identifies the representative point s1 closest to the sample ξ and the representative point s2 second closest to the sample ξ.

[0122] The region setting unit 191 may obtain information indicating the representative points s1 and s2 identified by the clustering unit 193 in step S104 in Fig. 8. Alternatively, the region setting unit 191 may calculate the distance or the distance index value between the sample ξ and each of the representative points, separately from the clustering unit 193, and identify the representative points s1 and s2. After step S201, the process proceeds to step S202.

[0123] (Step S202) The region setting unit 191 adds, for example, 1 to the ages of all edges directly connected to the representative point s1. As described above, the age of an edge is a value used to determine whether or not to delete the edge. There are cases where no edge exists, such as the initial state of the region illustrated in Fig. 2. When no edge exists, the region setting unit 191 does not perform any other process related to the edge. In step S202, when no edge exists, the region setting unit 191 does not perform any process. After step S202, the process proceeds to step S203.

[0124] (Step S203) The region setting unit 191 updates the value of the error counter variable of the representative point s1. As described above, the error counter variable is a variable used for determining the position of a new representative point when the region setting unit 191 sets the new representative point. The region setting unit 191 adds the error to the value of the error counter variable of the representative point s1 based on, for example, the above equation (4). After step S203, the process proceeds to step S204.

[0125] (Step S204) The region setting unit 191 moves the position of the representative point. As described above, the region setting unit 191 sets the representative point s1 and the representative point s2 adjacent to the representative point s1 via an edge. t To move the representative point s1 closer to the sample ξ, for example, the region setting unit 191 updates the position of the representative point s1 based on the above formula (2). Also, the region setting unit 191 moves the representative point s t Update the position of. After step S204, the process proceeds to step S205.

[0126] (Step S205) The region setting unit 191 determines whether the representative point s1 and the representative point s2 are adjacent to each other via an edge. If the area setting unit 191 determines that the representative points s1 and s2 are adjacent to each other via an edge (step S205: YES), the process proceeds to step S211. If the area setting unit 191 determines that the representative points s1 and s2 are not adjacent to each other via an edge (step S205: NO), the process proceeds to step S221.

[0127] (Step S211) The region setting unit 191 increments the age of the edge connected to both the representative point s1 and the representative point s2 by 1. That is, the region setting unit 191 calculates a value by adding 1 to the age of the edge connected to both the representative point s1 and the representative point s2. Then, the region setting unit 191 updates the age of the edge connected to both the representative point s1 and the representative point s2 to the value of the addition result. After step S211, the process proceeds to step S231.

[0128] (Step S221) The region setting unit 191 connects the representative point s1 and the representative point s2 with an edge. That is, the region setting unit 191 sets a new edge connecting the representative point s1 and the representative point s2. The region setting unit 191 sets the age of the newly set edge to 0. After step S221, the process proceeds to step S231.

[0129] (Step S231) The region setting unit 191 sets the age to a predetermined constant a max The region setting unit 191 also erases representative points that are isolated due to the edge erasure. As described above, when the number of regions increases or decreases due to the addition or deletion of edges, the model setting unit 194 assigns partial function models to the regions so that one partial function model is associated with one region. Then, the model setting unit 194 initializes the newly assigned partial function model. After step S231, the learning device 100 ends the process in Fig. 9. Upon completion of the process in Fig. 9, the process transitions to step S107 in Fig. 8.

[0130] 10 is a flowchart showing an example of a processing procedure for adding a representative point by the learning device 100. The learning device 100 performs the processing of FIG. (Step S311) The region setting unit 191 identifies the representative point q at which the value of the error counter variable is maximum. After step S311, the process proceeds to step S312.

[0131] (Step S312) The region setting unit 191 specifies the representative point f having the maximum value of the error counter variable among the representative points adjacent to the representative point q via an edge. After step S312, the process proceeds to step S313.

[0132] (Step S313) The region setting unit 191 sets a new representative point r between the representative points q and f. For example, the region setting unit 191 may set the representative point r at the midpoint between the representative points q and f based on the above formula (5). After step S313, the process proceeds to step S314.

[0133] (Step S314) The region setting unit 191 replaces the edge connecting the representative point q and the representative point f with an edge passing through the new representative point r. For example, the region setting unit 191 creates a new edge connecting the representative points q and r, and sets the age of this edge to 0. The region setting unit 191 also creates a new edge connecting the representative points r and f, and sets the age of this edge to 0. Furthermore, the region setting unit 191 deletes the edge (the original edge) that directly connects the representative points q and f. After step S314, the process proceeds to step S315.

[0134] (Step S315) The region setting unit 191 updates the error counter variables of the representative points q and f that were used to determine the position of the new representative point r. Specifically, the region setting unit 191 discounts the value of the error counter variable error(q) of the representative point q by a coefficient α, where the coefficient α is a real constant that satisfies 0≦α≦1. Specifically, the region setting unit 191 multiplies the value of the error counter variable error(q) of the representative point q by the coefficient α as shown in equation (8). That is, the region setting unit 191 calculates a value obtained by multiplying the value of the error counter variable error(q) of the representative point q by the coefficient α. Then, the region setting unit 191 updates the value of the error counter variable error(q) to the value of the multiplication result.

[0135]

number

[0136] Furthermore, the region setting unit 191 discounts the value of the error counter variable error(f) of the representative point f by the coefficient α. Specifically, the region setting unit 191 multiplies the value of the error counter variable error(f) of the representative point f by the coefficient α, as shown in equation (9). That is, the region setting unit 191 calculates a value obtained by multiplying the value of the error counter variable error(f) of the representative point f by the coefficient α. Then, the region setting unit 191 updates the value of the error counter variable error(f) to the value of the multiplication result.

[0137]

number

[0138] After step S315, the process proceeds to step S316. (Step S316) The region setting unit 191 sets the initial value of the error counter variable error(r) of the representative point r to the value of the error counter variable error(q) of the representative point q after the discount in step S315. That is, the region setting unit 191 substitutes the value of the error counter variable error(q) for the error counter variable error(r) as shown in equation (10).

[0139]

number

[0140] "←" indicates an assignment. After step S316, the learning device 100 ends the process in Fig. 10. Upon completion of the process in Fig. 10, the process transitions to step S112 in Fig. 8.

[0141] As described above, the model setting unit 194 is provided for each region into which a state space including a sample ξ indicating a state related to the control object 900 is divided, and among a plurality of models that indicate an evaluation of the behavior of the control object 900 in response to control over the control object 900, the model setting unit 194 updates a model for a region including a certain sample based on that sample. The learning unit 195 evaluates the behavior of the control object 900 in a certain state based on a model for a region including a sample indicating that state. According to the learning device 100, learning can be performed for each region obtained by dividing the state space, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0142] Furthermore, the clustering unit 193 determines in which region in the state space the sample ξ is included. The determination result of the clustering unit 193 can be used for both updating the model and controlling the control target 900. The region indicated by the determination result of the clustering unit 193 is the region that includes the sample ξ.

[0143] The model setting unit 194 can use the sample ξ to update a model linked to the region in which the sample ξ is included. The learning unit 195 can learn the control of the control target 900 by using the state indicated by the sample ξ and a value obtained by inputting the sample ξ into a model linked to the region in which the sample ξ is included. The value obtained by inputting the sample ξ into a model linked to the region in which the sample ξ is included indicates a policy or a reward.

[0144] Moreover, the region setting unit 191 updates the region based on the sample ξ acquired by the sample acquisition unit 192 . It is expected that the learning device 100 can more appropriately respond to changes in the environment in reinforcement learning by the region setting unit 191 dynamically updating the region based on the sample ξ.

[0145] Moreover, the region setting unit 191 updates the regions based on the Mahalanobis distance between the point at which the sample ξ is positioned in the state space and the representative point for each region. This allows learning device 100 to perform weighting for each coordinate in the state space, and is expected to enable more appropriate learning.

[0146] Moreover, the region setting unit 191 updates the region based on the difference between a value calculated by applying the sample ξ to the partial function model and a value obtained based on the sample ξ. According to learning device 100, it is possible to set regions taking into consideration not only state values ​​but also values ​​of the function to be learned, and in this respect, it is expected that regions can be set more appropriately.

[0147] In addition, the area setting unit 191 determines the value of an error counter variable, which is provided for each representative point for determining the area and indicates the degree of difference between the representative point and the sample ξ, based on the distance between the sample ξ and its representative point in the state space and the difference between the value calculated by applying the sample ξ to the partial function model and the value obtained based on the sample ξ, and determines the installation position of a new representative point in the state space based on the value of the error counter variable. According to learning device 100, the location of a new representative point can be determined taking into account not only the state value but also the value of the function to be learned, and in this respect, it is expected that the area can be set more appropriately.

[0148] Furthermore, the region setting unit 191 divides the region when the age of the edge satisfies a predetermined condition. As described above, the age of the edge corresponds to an example of an index value based on the distance between the sample ξ and the representative point in the state space. This allows the region setting unit 191 to divide a region in which the number of samples ξ to be classified is large. This division allows the model setting unit 194 to set a function (policy function or value function) in detail for a portion of the state space in which the samples ξ are relatively concentrated.

[0149] Furthermore, the partial function model associated with at least one region is a linear model. This makes it possible to reduce the possibility of overlearning in the learning device 100. Furthermore, the learning device 100 can obtain a piecewise linear model, making it relatively easy to give meaning to the learning.

[0150] Furthermore, the partial function model associated with at least one region is a nonlinear model. As a result, it is expected that learning device 100 will be able to properly learn even complex functions.

[0151] Furthermore, the clustering unit 193 is provided in each of a plurality of regions into which a state space including a sample ξ indicating a state related to the control object 900 is divided, and determines a region including a certain sample ξ when there is a model representing an evaluation of the behavior of the control object 900 according to the control of the control object 900. The learning unit 195 evaluates the behavior of the control object 900 based on the sample and the model for the determined region. According to the learning device 100, learning can be performed for each region into which the state space is divided, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0152] 11 is a diagram showing an example of the configuration of a learning device according to an embodiment. In the configuration shown in FIG. In this configuration, the model setting unit 611 is provided for each region into which a state space including samples showing states of the control object is divided, and among a plurality of models that represent evaluations of the behavior of the control object according to control over the control object, the model setting unit 611 updates a model for a region including a certain sample based on the sample. The learning unit 612 evaluates the behavior of the control object in a certain state based on the model for the region including the sample showing the state.

[0153] The model setting unit 611 corresponds to an example of a model setting means, and the learning unit 612 corresponds to an example of a learning means. According to the learning device 610, learning can be performed for each region obtained by dividing the state space, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0154] The model setting unit 611 can be realized, for example, by using the functions of the model setting unit 194 shown in Fig. 1. The learning unit 612 can be realized, for example, by using the functions of the learning unit 195 shown in Fig. 1.

[0155] 12 is a diagram showing another example of the configuration of the learning device according to the embodiment. In the configuration shown in FIG. In this configuration, the clustering unit 621 determines an area including a certain sample when a model that represents an evaluation of the behavior of the control object according to the control of the control object is provided in each of a plurality of areas into which a state space including samples indicating a state of the control object is divided. The learning unit 622 evaluates the behavior of the control object based on the sample and the model for the determined area.

[0156] The clustering unit 621 corresponds to an example of a clustering means. The learning unit 622 corresponds to an example of a learning means. According to the learning device 610, learning can be performed for each region into which the state space is divided, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0157] The clustering unit 621 can be realized, for example, by using the functions of the clustering unit 193 shown in Fig. 1. The learning unit 612 can be realized, for example, by using the functions of the learning unit 195 shown in Fig. 1.

[0158] Fig. 13 is a diagram showing an example of the configuration of a control system according to an embodiment. In the configuration shown in Fig. 13, a control system 630 includes a learning device 631 and a control target 634. The learning device 631 includes a model setting unit 632 and a learning unit 633.

[0159] In this configuration, the model setting unit 632 is provided for each region into which a state space including samples showing a state related to the control object 634 is divided, and among a plurality of models that represent an evaluation of the behavior of the control object 634 in response to control over the control object 634, the model setting unit 632 updates a model for a region including a certain sample based on that sample. The learning unit 633 evaluates the behavior of the control object 634 in a certain state based on the model for the region including the sample showing that state.

[0160] The model setting unit 632 corresponds to an example of a model setting means. The learning unit 633 corresponds to an example of a learning means. According to the control system 630, learning can be performed for each region obtained by dividing the state space, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0161] The model setting unit 632 can be realized, for example, by using the functions of the model setting unit 194 shown in Fig. 1. The learning unit 633 can be realized, for example, by using the functions of the learning unit 195 shown in Fig. 1. The control object 634 can be realized, for example, by using the functions of the control object 900 shown in Fig. 1.

[0162] Fig. 14 is a diagram showing an example of the configuration of a control system according to an embodiment. In the configuration shown in Fig. 14, a control system 640 includes a learning device 641 and a control target 644. The learning device 641 includes a clustering unit 642 and a learning unit 643.

[0163] In this configuration, the clustering unit 642 is provided in each of a plurality of regions into which a state space including samples indicating states related to the control object 644 is divided, and determines a region including a certain sample when there is a model expressing an evaluation of the behavior of the control object 644 in response to control over the control object 644. The learning unit 643 evaluates the behavior of the control object 644 based on the sample and the model for the determined region.

[0164] The clustering unit 642 corresponds to an example of a clustering means. The learning unit 643 corresponds to an example of a learning means. According to the control system 640, learning can be performed for each region into which the state space is divided, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0165] The clustering unit 642 can be realized, for example, by using the function of the clustering unit 193 shown in Fig. 1. The learning unit 643 can be realized, for example, by using the function of the learning unit 195 shown in Fig. 1. The control object 644 can be realized, for example, by using the function of the control object 900 shown in Fig. 1.

[0166] Fig. 15 is a diagram showing an example of a processing procedure in a learning method according to the embodiment. The learning method shown in Fig. 15 includes updating a model (step S611) and performing learning (step S612).

[0167] In updating the model (step S611), a state space including samples showing states of the control object is provided for each divided region, and among a plurality of models showing evaluation of the behavior of the control object according to control over the control object, a model for a region including a certain sample is updated based on the sample. In performing learning (step S612), the behavior of the control object in a certain state is evaluated based on a model for a region including samples showing the state. According to the process of FIG. 15, learning can be performed for each region obtained by dividing the state space, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0168] Fig. 16 is a diagram showing another example of a processing procedure in the learning method according to the embodiment. The learning method shown in Fig. 16 includes classifying samples (step S621) and performing learning (step S622).

[0169] In classifying the samples (step S621), a state space including samples showing states related to the control object is provided for each divided region, and when there are a plurality of models showing evaluation of the behavior of the control object according to control over the control object, a region including samples showing the state of the control object in a certain state is determined. In learning (step S622), the behavior of the control object is evaluated based on the model for the determined region. According to the process of FIG. 16, learning can be performed for each region obtained by dividing the state space, and in this respect, it is possible to more appropriately respond to environmental changes in reinforcement learning.

[0170] FIG. 17 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. In the configuration shown in FIG. 17, a computer 700 includes a CPU 710, a main memory device 720, an auxiliary memory device 730, an interface 740, and a non-volatile recording medium 750.

[0171] Any one or more of the learning device 100, learning device 610, learning device 620, learning device 631, and learning device 641, or a part thereof, may be implemented in the computer 700. In this case, the operation of each of the above-mentioned processing units is stored in the auxiliary storage device 730 in the form of a program. The CPU 710 reads the program from the auxiliary storage device 730, develops it in the main storage device 720, and executes the above-mentioned processing according to the program. The CPU 710 also secures a storage area corresponding to each of the above-mentioned storage units in the main storage device 720 according to the program. Communication between each device and other devices is executed by the interface 740 having a communication function and performing communication according to the control of the CPU 710. The interface 740 also has a port for the non-volatile recording medium 750, and reads information from the non-volatile recording medium 750 and writes information to the non-volatile recording medium 750.

[0172] When learning device 100 is implemented in computer 700, the operations of control unit 190 and each of its units are stored in the form of a program in auxiliary storage device 730. CPU 710 reads the program from auxiliary storage device 730, loads it into main storage device 720, and executes the above-mentioned processing according to the program.

[0173] Furthermore, the CPU 710 allocates a storage area corresponding to the storage unit 180 in the main storage device 720 in accordance with the program. Communication with other devices by the communication unit 110 is performed by an interface 740 having a communication function and operating under the control of the CPU 710. Interaction between study device 100 and a user is carried out by interface 740 having an input device and an output device, presenting information to the user via the output device under the control of CPU 710, and accepting user operations via the input device.

[0174] When the learning device 610 is implemented in the computer 700, the operations of the model setting unit 611 and the learning unit 612 are stored in the form of a program in the auxiliary storage device 730. The CPU 710 reads the program from the auxiliary storage device 730, loads it into the main storage device 720, and executes the above-mentioned processing according to the program.

[0175] Furthermore, the CPU 710 allocates a storage area in the main storage device 720 for the processing performed by the learning device 610 in accordance with the program. Communication between the learning device 610 and other devices is performed by the interface 740 having a communication function and operating under the control of the CPU 710. Interaction between the learning device 610 and the user is carried out by the interface 740 having an input device and an output device, presenting information to the user via the output device under the control of the CPU 710, and accepting user operations via the input device.

[0176] When the learning device 620 is implemented in the computer 700, the operations of the clustering unit 621 and the learning unit 622 are stored in the form of a program in the auxiliary storage device 730. The CPU 710 reads the program from the auxiliary storage device 730, loads it in the main storage device 720, and executes the above-mentioned processing according to the program.

[0177] Furthermore, the CPU 710 allocates a storage area in the main storage device 720 for the processing performed by the learning device 620 in accordance with the program. Communication between the learning device 620 and other devices is performed by the interface 740 having a communication function and operating under the control of the CPU 710. Interaction between the learning device 620 and the user is carried out by the interface 740 having an input device and an output device, presenting information to the user via the output device under the control of the CPU 710, and accepting user operations via the input device.

[0178] When the learning device 631 is implemented in the computer 700, the operations of the model setting unit 632 and the learning unit 633 are stored in the form of a program in the auxiliary storage device 730. The CPU 710 reads the program from the auxiliary storage device 730, loads it in the main storage device 720, and executes the above-mentioned processing in accordance with the program.

[0179] Furthermore, the CPU 710 allocates a storage area in the main storage device 720 for the processing performed by the learning device 631 in accordance with the program. Communication between the learning device 631 and other devices is performed by an interface 740 having a communication function and operating under the control of the CPU 710. Interaction between the learning device 631 and a user is carried out by the interface 740 having an input device and an output device, presenting information to the user via the output device under the control of the CPU 710, and accepting user operations via the input device.

[0180] When the learning device 641 is implemented in the computer 700, the operations of the clustering unit 642 and the learning unit 643 are stored in the form of a program in the auxiliary storage device 730. The CPU 710 reads the program from the auxiliary storage device 730, loads it in the main storage device 720, and executes the above-mentioned processing according to the program.

[0181] Furthermore, the CPU 710 allocates a storage area in the main storage device 720 for the processing performed by the learning device 641 in accordance with the program. Communication between the learning device 641 and other devices is performed by the interface 740 having a communication function and operating under the control of the CPU 710. Interaction between the learning device 641 and the user is carried out by the interface 740 having an input device and an output device, presenting information to the user via the output device under the control of the CPU 710, and accepting user operations via the input device.

[0182] Any one or more of the above-mentioned programs may be recorded in non-volatile recording medium 750. In this case, interface 740 may read the program from non-volatile recording medium 750. Then, CPU 710 may directly execute the program read by interface 740, or may temporarily store the program in main storage device 720 or auxiliary storage device 730 and execute it.

[0183] Note that a program for executing all or part of the processing performed by learning device 100, learning device 610, learning device 620, learning device 631, and learning device 641 may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed to perform processing of each part. Note that the term "computer system" here includes hardware such as an OS (Operating System) and peripheral devices. Furthermore, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs (Read Only Memory), and CD-ROMs (Compact Disc Read Only Memory), as well as storage devices such as hard disks built into computer systems. The above-mentioned program may be for realizing part of the above-mentioned functions, or may be capable of realizing the above-mentioned functions in combination with a program already recorded in the computer system.

[0184] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. In addition, some or all of the above embodiments can be described as follows, but are not limited to the following.

[0185] (Appendix 1) a model setting means for updating a model for an area including a certain sample among a plurality of models representing an evaluation of an action of the control object in response to control of the control object, the model setting means providing a state space including samples showing a state of the control object for each divided area, based on the sample; learning means for evaluating the behavior of the controlled object in a certain state based on a model for a region including samples showing the state; A learning device comprising:

[0186] (Appendix 2) A clustering means for determining whether the sample is included in any of the regions in the state space. 2. The learning device of claim 1, further comprising:

[0187] (Appendix 3) a region setting means for updating the region based on the samples; 3. The learning device of claim 1 or 2, further comprising:

[0188] (Appendix 4) the region setting means updates the region based on a Mahalanobis distance between the sample in the state space and a representative point for determining the region. 4. A learning device as described in appended claim 3.

[0189] (Appendix 5) the region setting means updates the division of the region based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample. 5. A learning device according to any one of claims 2 to 4.

[0190] (Appendix 6) the region setting means determines a value of an error counter variable provided for each representative point for determining the region and indicating a degree of difference between the representative point and the sample, based on a distance between the sample and its representative point in the state space and a difference between a value calculated by applying the sample to the model and a value obtained based on the sample, and determines a position for setting a new representative point in the state space based on the value of the error counter variable; 6. A learning device according to any one of claims 2 to 5.

[0191] (Appendix 7) The region setting means divides the region when an index value based on a distance between the sample and the representative point in the state space satisfies a predetermined condition. 7. A learning device according to any one of claims 1 to 6.

[0192] (Appendix 8) The model associated with at least one of the regions is a linear model. 8. A learning device according to any one of claims 1 to 7.

[0193] (Appendix 9) The model associated with at least one of the regions is a nonlinear model. 9. A learning device according to any one of claims 1 to 8.

[0194] (Appendix 10) a clustering means for determining an area including a certain sample when a state space including samples indicating a state of a control object is provided in each of a plurality of divided areas and a model is present that represents an evaluation of an action of the control object in response to control of the control object; learning means for evaluating the behavior based on the samples and a model for the determined domain; A learning device comprising:

[0195] (Appendix 11) A learning device and a control object are provided, The learning device includes: a model setting means for updating a model for an area including a certain sample among a plurality of models representing an evaluation of an action of the control object in response to control of the control object, the model setting means providing a state space including samples showing a state of the control object for each divided area, based on the sample; learning means for evaluating the behavior of the controlled object in a certain state based on a model for a region including samples showing the state; Equipped Control system.

[0196] (Appendix 12) A learning device and a control object are provided, The learning device includes: a clustering means for determining an area including a sample showing a state of the control object for an action of the control object in a certain state when a state space including a sample showing a state of the control object is provided for each divided area and there are a plurality of models showing an evaluation of the action of the control object in response to control of the control object; A learning means for evaluating the action based on a model for the determined area; Equipped Control system.

[0197] (Appendix 13) a state space including samples showing states of a control object is provided for each divided region, and a model for a region including a certain sample is updated based on the sample among a plurality of models showing an evaluation of an action of the control object in response to control of the control object; Evaluating the behavior of the controlled object in a certain state based on a model for a region that includes samples that represent the state. How to learn.

[0198] (Appendix 14) In a case where a state space including samples showing states related to a control object is provided for each divided region, and there are a plurality of models showing evaluations of behavior of the control object in response to control of the control object, determining an area including samples showing a state of the control object for the behavior of the control object in a certain state; Evaluating the behavior based on the determined model for the area. Learning device.

[0199] (Appendix 15) On the computer, a state space including samples showing states of a control object is provided for each divided region, and a model for a region including a certain sample is updated based on the sample among a plurality of models that represent an evaluation of an action of the control object in response to control of the control object; evaluating a behavior of the controlled object in a state based on a model for a region including samples representative of the state; A recording medium for recording a program for executing the above.

[0200] (Appendix 16) On the computer, In a case where a state space including samples showing states related to a control object is provided for each divided region and there are a plurality of models showing evaluations of behavior of the control object in response to control of the control object, determining an area including samples showing a state of the control object for the behavior of the control object in a certain state; evaluating the behavior based on the determined model for the region; and A recording medium for recording a program for executing the above. [Industrial Applicability]

[0201] The embodiments of the present invention may be applied to a learning device, a learning method, a control system, and a recording medium. [Explanation of symbols]

[0202] 10, 630, 640 Control System 100, 610, 620, 631, 641 Learning device 110 Communications Department 180 Storage section 190 Control section 191 Area setting section 192 Sample Acquisition Section 193, 621, 642 Clustering Department 194, 611, 632 Model setting section 195, 612, 622, 633, 643 Learning Department 196 Object Control Unit 900, 634, 644 Control target

Claims

1. a model setting means for updating a model for an area including a certain sample among a plurality of models representing an evaluation of an action of the control object in response to control of the control object, the model setting means providing a state space including samples showing a state of the control object for each divided area, based on the sample; a learning means for evaluating a behavior of the controlled object in a certain state based on a model for a region including samples showing the state; an area setting means for updating the division of the area based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; A learning device comprising:

2. A clustering means for determining whether the sample is included in any of the regions in the state space. The learning device according to claim 1 , further comprising:

3. the region setting means determines a value of an error counter variable provided for each representative point for determining the region and indicating a degree of difference between the representative point and the sample, based on a distance between the sample and its representative point in the state space and a difference between a value calculated by applying the sample to the model and a value obtained based on the sample, and determines a position for setting a new representative point in the state space based on the value of the error counter variable; The learning device according to claim 1 or 2.

4. the region setting means divides the region when an index value based on a distance between the sample in the state space and a representative point for determining the region satisfies a predetermined condition. A learning device according to any one of claims 1 to 3.

5. a clustering means for determining an area including a certain sample when a state space including samples indicating a state of a control object is provided in each of a plurality of divided areas and a model is present that represents an evaluation of an action of the control object in response to control of the control object; learning means for evaluating said behavior based on the samples and a model for said determined domain; an area setting means for updating the division of the area based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; A learning device comprising:

6. A model setting means for updating a model for an area including a certain sample among a plurality of models each representing an evaluation of an action of the control object in response to control of the control object, the model setting means providing a state space including samples each showing a state of the control object for each divided area, the model setting means updating a model for an area including a certain sample based on the sample; a learning means for evaluating a behavior of the controlled object in a certain state based on a model for a region including samples showing the state; a region setting means for determining a value of an error counter variable provided for each representative point for determining the region and indicating a degree of difference between the representative point and the sample, based on a distance between the sample and its representative point in the state space and a difference between a value calculated by applying the sample to the model and a value obtained based on the sample, determining a new installation position of the representative point in the state space based on the value of the error counter variable, and updating the region based on the new representative position; A learning device comprising:

7. A learning device and a control object are provided, The learning device includes: a model setting means for updating a model for an area including a certain sample among a plurality of models representing an evaluation of an action of the control object in response to control of the control object, the model setting means providing a state space including samples showing a state of the control object for each divided area, based on the sample; a learning means for evaluating a behavior of the controlled object in a certain state based on a model for a region including samples showing the state; an area setting means for updating the division of the area based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; Equipped Control system.

8. a state space including samples showing states of a control object is provided for each divided region, and a model for a region including a certain sample is updated based on the sample among a plurality of models showing an evaluation of an action of the control object in response to control of the control object; evaluating a behavior of the control object in a state based on a model for a region including samples representative of the state; The division of the region is updated based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample. How to learn.

9. On the computer, a state space including samples showing states of a control object is provided for each divided region, and a model for a region including a certain sample is updated based on the sample among a plurality of models that represent an evaluation of an action of the control object in response to control of the control object; evaluating a behavior of the control object in a state based on a model for a region including samples representative of the state; updating the division of the region based on a difference between a value calculated by applying the sample to the model and a value obtained based on the sample; A program for executing the above.

Citation Information

Patent Citations

  • target identifier

    JP1993059372U

  • Robust reinforce learning system

    JP2002189502A

  • Traffic signal control using plurality of q-learning categories

    JP2018147489A

  • Clustering method, clustering program, and information processor

    JP2018195089A

  • Vehicle control device, risk map generation device, and program

    JP2019106049A