MODEL GENERATION DEVICE, ESTIMATION DEVICE, MODEL GENERATION METHOD, AND MODEL GENERATION PROGRAM
The model generation device enhances the accuracy of graph-based task estimation by using a feature embedding network with deep hierarchies and a residual structure to prevent smoothing, addressing the limitations of conventional network models.
Patent Information
- Application Number
- JP2021013294
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-01-29
AI Technical Summary
Conventional methods for solving graph-based inference tasks using network models, such as Graph Convolutional Networks, face issues with excessive smoothing due to weighted sum calculations of vertex features, limiting the depth of the network and accuracy of estimating task solutions.
A model generation device that utilizes a feature embedding network with multiple layers to extract and integrate features of input graphs, employing an estimator to derive relative feature quantities without calculating weighted sums, allowing for deeper network hierarchies and preventing excessive smoothing, and includes a residual structure to further enhance accuracy.
The configuration improves the accuracy of estimating solutions to complex tasks by deepening the feature-integrated network, enabling highly accurate estimation of graph-based tasks.
Smart Images

Figure 0007543933000057 
Figure 0007543933000030 
Figure 0007543933000049
Abstract
Description
[Technical field]
[0001] The present invention relates to a model generation device, an estimation device, a model generation method, and a model generation program. [Background technology]
[0002] When solving various inference tasks such as matching and path finding, graphs may be used to represent various information. A graph is basically composed of vertices (nodes) and edges. Depending on the task, graphs with various structures such as directed graphs and bipartite graphs can be used.
[0003] As an example, bipartite graphs can be used to solve stable matching problems, which are two-sided market allocation problems, such as matching job seekers and employers. A bipartite graph is a graph constructed by dividing a set of vertices into two subsets such that there are no edges between vertices in each subset (i.e., the vertices that make up a bipartite graph belong to one of the two subsets, and are divided such that there are no edges within each subset).
[0004] As an example of how to represent the stable matching problem, each subset corresponds to a party to which matching is to be performed, and the vertices in each subset correspond to the matching targets (e.g., job seekers / employers). Each target (vertex) has a desirability (e.g., a desirability ranking) for targets in the other party. The matching is represented by a set of edges that represent combinations of vertices in one subset and vertices in the other subset, and are assigned so that no vertices are shared.
[0005] If there exists a combination of vertices that is more desirable than the combination of edges belonging to the edge set that constitutes the matching, the edge representing this combination blocks the matching (i.e., indicates that there is another matching that is more desirable than the matching represented by the edge set). In the stable matching problem, a combination of vertices is searched for that does not have such blocking pairs and satisfies an arbitrary criterion (e.g., fairness).
[0006] Conventionally, various algorithms have been developed to solve such tasks expressed by graphs. The GS algorithm proposed in Non-Patent Document 1 is known as an example of a classical method for solving the above-mentioned stable matching problem. However, such a method using a specific algorithm is poor in versatility because it becomes unusable if the content of the task is changed even slightly, and since many parts are configured manually, the cost of generating a solver is high.
[0007] In recent years, research has been conducted into a method of using a machine learning model such as a neural network as a general-purpose method for solving tasks expressed by a graph. For example, Non-Patent Document 2 proposes solving a stable matching problem using a five-layer neural network. According to such a method of using a machine learning model, if training data corresponding to a task is prepared, a trained model (solver) that has acquired the ability to solve the task can be generated. Therefore, the versatility of the generated model can be increased and the generation cost can be reduced. [Prior art documents] [Non-patent literature]
[0008] [Non-Patent Document 1] David Gale, Lloyd S Shapley, "College admissions and the stability of marriage", The American Mathematical Monthly, 69(1):9?15, 1962. [Non-Patent Document 2] Shira Li, "Deep Learning for Two-Sided Matching Markets", PhD thesis, Harvard University, 2019. Summary of the Invention [Problem to be solved by the invention]
[0009] The present inventors have found that the network model (e.g., Graph Convolutional Networks) proposed in Non-Patent Document 2 and the like for solving an inference task for data having a graph structure has the following problems. That is, in order to solve a complex task with high accuracy, it is desirable to make the network hierarchy deep. However, in the conventional method, a convolution operation is performed on the features of each vertex by calculating a weighted sum of the features of adjacent vertices for each type of edge. This weighted sum calculation causes excessive smoothing, so that the more layers there are, the more features are lost. Therefore, the network hierarchy cannot be made deep (for example, five layers in the method proposed in Non-Patent Document 2), and this makes it difficult to improve the accuracy of estimating the solution to the task.
[0010] In one aspect, the present invention has been made in view of the above circumstances, and an object of the present invention is to provide a technique for improving the accuracy of estimating a solution to a task represented by a graph. [Means for solving the problem]
[0011] In order to solve the above-mentioned problems, the present invention employs the following configuration.
[0012] That is, a model generating device according to one aspect of the present invention includes an acquisition unit configured to acquire a plurality of training graphs, and a learning processing unit configured to use the acquired plurality of training graphs to perform machine learning of an estimation module. The estimation module includes a feature weaving network and an estimator. The feature weaving network includes a plurality of feature weaving layers, and is configured to receive an input of an input graph and output feature information related to the input graph. The estimator is configured to estimate a solution to a task for the input graph from the feature information output from the feature weaving network. Each feature weaving layer is configured to receive an input of a first input tensor and a second input tensor of the third order. The first input tensor is configured to have a first axis along which first vertices belonging to a first set of the input graph are arranged as elements, a second axis along which second vertices belonging to a second set of the input graph are arranged as elements, and a third axis along which feature quantities related to branches flowing out from the first vertices to the second vertex are arranged as elements. The second input tensor is configured to have a first axis along which the second vertices are arranged as elements, a second axis along which the first vertices are arranged as elements, and a third axis along which features related to edges flowing from the second vertices to the first vertex are arranged as elements. Each feature weaving layer includes an encoder. Each feature weaving layer is configured to generate a third-order first connected tensor by fixing the third axis of the second input tensor, rotating the other axes other than the third axis of the second input tensor one by one, and concatenating the features of the first input tensor and each element of the rotated second input tensor, generate a third-order second connected tensor by fixing the third axis of the first input tensor, rotating the other axes other than the third axis of the first input tensor one by one, and concatenating the features of the second input tensor and each element of the rotated first input tensor, divide the generated first connected tensor for each element of the first axis, input the divided tensor to the encoder, and execute the encoder operation to generate a third-order first output tensor corresponding to the first input tensor, and divide the generated second connected tensor for each element of the first axis, input the divided tensor to the encoder, and execute the encoder operation to generate a third-order second output tensor corresponding to the second input tensor. The encoder is configured to derive a relative feature of each element from the features of all the input elements.A first feature weaving layer of the plurality of feature weaving layers is configured to receive a first input tensor and a second input tensor from the input graph, and the feature information is configured with a first output tensor and a second output tensor output from a last feature weaving layer of the plurality of feature weaving layers. The machine learning is configured by training an estimation module such that an estimation result obtained by an estimator by inputting each training graph as an input graph to the feature weaving network matches a ground truth for the task for each training graph.
[0013] In this configuration, the feature of the input graph is extracted by the feature weaving network. In this feature weaving network, the data of the input graph is represented by an input tensor. Each input tensor is configured to indicate the feature amount of an outflowing edge from a vertex belonging to each set to a vertex belonging to another set. In other words, the feature weaving network is configured to refer to the feature of the input graph not for each vertex but for each edge.
[0014] In each feature weaving layer, a connection tensor is generated by aligning the axes of each input tensor and concatenating them. Each connection tensor is configured to indicate the features of the outflowing and inflowing branches based on the vertices belonging to each set. Then, in each feature weaving layer, each connection tensor is divided into elements of the first axis and input to the encoder, where the encoder's calculations are performed. This makes it possible to reflect the features of other branches in the features of each branch based on each vertex. The more feature weaving layers are stacked, the more the features of branches related to vertices farther away from each vertex can be reflected in the features of the branches related to each vertex.
[0015] In addition, the encoder is configured to derive the relative feature value of each branch from the feature values of all input branches, rather than calculating the weighted sum of the features of adjacent branches for each vertex. This encoder configuration can prevent excessive smoothing from occurring even when feature weaving layers are stacked. Therefore, the hierarchy of the feature weaving network can be deepened according to the difficulty of the task, and as a result, it is possible to expect the feature extraction of the input graph appropriate for solving the task in the feature weaving network. This allows the estimator to expect high-precision estimation based on the obtained feature value. Therefore, according to this configuration, even for complex tasks, the hierarchy of the feature weaving network can be deepened to improve the accuracy of estimating the solution of the task represented by the graph for the generated trained estimation module.
[0016] In the model generating device according to the above aspect, the feature weaving network may be configured to have a residual structure. The residual structure refers to a structure having a shortcut path such that the output of at least one of the multiple feature weaving layers is input to the next adjacent feature weaving layer as well as to other feature weaving layers (feature weaving layers two or more layers away) subsequent to the next adjacent feature weaving layer. According to this configuration, the residual structure can easily deepen the hierarchy of the feature weaving network. This can improve the estimation accuracy of the generated trained estimation module.
[0017] In the model generating device according to the above aspect, the encoder of each feature weaving layer may be configured with a single encoder commonly used between each element of the first axis of the first connected tensor and the second connected tensor. According to this configuration, the number of parameters of the estimation module can be reduced by using a common encoder for the calculation of each connected tensor element in each feature weaving layer. This reduces the amount of calculation of the estimation module (i.e., reduces consumption of computing resources used for the calculation of the estimation module), and improves the efficiency of machine learning.
[0018] In the model generating device according to the above aspect, each feature weaving layer may further include a normalizer configured to normalize the result of the operation of the encoder for each concatenated tensor. When the first input tensor and the second input tensor obtained belong to different distributions, a situation may arise in which there are two types of domains of input to the encoder. The bias due to this distribution difference is amplified each time the encoder (feature weaving layer) is stacked, and this may result in a state in which a single encoder solves two different tasks instead of solving a common task. As a result, the accuracy of the encoder may deteriorate, which may lead to a deterioration in the accuracy of the entire estimation module. In response to this problem, according to the configuration, the amplification of the bias can be suppressed by normalizing the result of the operation of the encoder by the normalizer, and thus the deterioration of the accuracy of the estimation module can be prevented.
[0019] In the model generating device according to the above aspect, each feature weaving layer may be further configured to assign a condition code to the third axis of each of the first input tensor and the second input tensor before executing the operation of the encoder. In this configuration, the encoder can identify the origin of the data based on the condition code when encoding the feature. Therefore, even if the first input tensor and the second input tensor belong to different distributions, the encoder can be trained to eliminate bias due to the difference in distributions during the machine learning process by the action of the condition code. Therefore, according to this configuration, it is possible to prevent deterioration of the accuracy of the estimation module caused by the difference in the distributions to which the input tensors belong.
[0020] In the model generation device according to the above aspect, each training graph may be a directed bipartite graph, and a plurality of vertices constituting the directed bipartite graph may be divided to belong to one of two subsets. A first set of input graphs may correspond to one of the two subsets of the directed bipartite graph, and a second set of input graphs may correspond to the other of the two subsets of the directed bipartite graph. With this configuration, in a situation where a given task is represented by a directed bipartite graph, it is possible to improve the accuracy of estimating a solution to the task for the generated trained estimation module.
[0021] In the model generating device according to the above aspect, the task may be a matching task between two parties, and may determine an optimal pairing between objects belonging to each party. The two subsets of the directed bipartite graph may correspond to the two parties in the matching task, and the vertices belonging to each subset of the directed bipartite graph may correspond to objects belonging to each party. A feature value related to an edge flowing from the first vertex to the second vertex may correspond to a desirability from an object belonging to one of the two parties to an object belonging to the other of the two parties, and a feature value related to an edge flowing from the second vertex to the first vertex may correspond to a desirability from an object belonging to the other of the two parties to an object belonging to one of the two parties. With this configuration, it is possible to improve the accuracy of estimating a solution to two sided matching represented by a directed bipartite graph for a generated trained estimation module.
[0022] In the model generation device according to the above aspect, each training graph may be an undirected bipartite graph, and a plurality of vertices constituting the undirected bipartite graph may be divided to belong to one of two subsets. A first set of input graphs may correspond to one of the two subsets of the undirected bipartite graph, and a second set of input graphs may correspond to the other of the two subsets of the undirected bipartite graph. With this configuration, when a given task is represented by an undirected bipartite graph, it is possible to improve the accuracy of estimating a solution to the task for the generated trained estimation module.
[0023] In the model generating device according to the above aspect, the task may be a matching task between two parties, and may determine an optimal pairing of objects belonging to each party. The two subsets of the undirected bipartite graph may correspond to the two parties in the matching task, and the vertices belonging to each subset of the undirected bipartite graph may correspond to objects belonging to each party. The feature value related to the branch flowing from the first vertex to the second vertex and the feature value related to the branch flowing from the second vertex to the first vertex may both correspond to a cost or reward of pairing an object belonging to one of the two parties and an object belonging to the other party. With this configuration, it is possible to improve the accuracy of estimating a solution to one sided matching represented by an undirected bipartite graph for the generated trained estimation module.
[0024] In the model generating device according to the above aspect, each training graph may be a directed graph. A first vertex belonging to a first set of the input graph may correspond to a start point of a directed branch constituting the directed graph, and a second vertex belonging to a second set may correspond to an end point of the directed branch. An edge flowing out from the first vertex to the second vertex may correspond to a directed branch flowing out from the start point to the end point, and an edge flowing out from the second vertex to the first vertex may correspond to a directed branch flowing in from the start point to the end point. According to this configuration, when a given task is expressed by a general directed graph, it is possible to improve the accuracy of estimating a solution to the task for the trained estimation module to be generated.
[0025] In the model generating device according to the above aspect, the directed graph may be configured to represent a network, and the task may be to estimate an event occurring on the network. A feature value related to an edge flowing from a first vertex to a second vertex and a feature value related to an edge flowing from the second vertex to the first vertex may correspond to an attribute of a connection between each of the vertices constituting the network. With this configuration, it is possible to improve the accuracy of estimating an event occurring on a network represented by a general directed graph for a generated trained estimation module.
[0026] In the model generating device according to the above aspect, each training graph may be an undirected graph. A first vertex belonging to a first set and a second vertex belonging to a second set of the input graph may correspond to each vertex constituting the undirected graph. A first input tensor and a second input tensor input to each feature weaving layer may be identical to each other. A first output tensor and a second output tensor generated by each feature weaving layer may be identical to each other, and a process for generating the first output tensor and a process for generating the second output tensor may be commonly executed. According to this configuration, when a given task is expressed by a general undirected graph, it is possible to improve the accuracy of estimating a solution to the task for the generated trained estimation module.
[0027] In the model generating device according to the above aspect, each training graph may be a vertex feature graph composed of a plurality of vertices, each vertex having an attribute. A first vertex belonging to a first set and a second vertex belonging to a second set of the input graph may correspond to each vertex constituting the vertex feature graph. A feature amount related to an edge flowing from the first vertex to the second vertex may correspond to an attribute of a vertex in the vertex feature graph corresponding to the first vertex, and a feature amount related to an edge flowing from the second vertex to the first vertex may correspond to an attribute of a vertex in the vertex feature graph corresponding to the second vertex. According to this configuration, when a given task is expressed by a vertex feature graph (e.g., a vertex weighted graph) in which vertices have features (attributes), it is possible to improve the accuracy of estimating a solution to the task for the generated trained estimation module.
[0028] In the model generating device according to the above aspect, each element of the third axis of each of the first input tensor and the second input tensor from the input graph may be concatenated or multiplied with information indicating a relationship between corresponding vertices in the vertex feature graph, and the task may be to estimate an event derived from the vertex feature graph. With this configuration, it is possible to improve the accuracy of estimating an event related to an object represented in the vertex feature graph for the generated trained estimation module.
[0029] In the model generating device according to the above aspect, the task may be to estimate a relationship between each of the vertices constituting a vertex feature graph. With this configuration, it is possible to improve the accuracy of estimating the relationship between each of the objects represented by each of the vertices of the vertex feature graph for the generated trained estimation module.
[0030] In the model generating device according to each of the above aspects, the branch is configured to represent a combination of two vertices (i.e., to show a relationship between two vertices). However, the configuration of the branch may not be limited to such an example. In another example, the branch may be configured to represent a combination of three or more vertices. That is, the graph may be a hypergraph. For example, a model generating device according to one aspect of the present invention includes an acquisition unit configured to acquire a plurality of training graphs, and a learning processing unit configured to perform machine learning of the estimation module using the acquired plurality of training graphs. Each training graph is a K-part hypergraph. K is 3 or more. The plurality of vertices constituting the hypergraph are divided so as to belong to any one of K subsets. The estimation module includes a feature weaving network and an estimator. The feature weaving network includes a plurality of feature weaving layers, and is configured to receive an input of an input graph and output feature information related to the input graph. The estimator is configured to estimate a solution to a task for the input graph from the feature information output from the feature weaving network. Each feature weaving layer receives an input of K (K+1)-th order input tensors. The i-th input tensor among the K input tensors is configured such that the i-th vertex belonging to the i-th subset of the input graph is arranged as an element on the first axis, the vertices belonging to the (j-1)-th subset are arranged as elements on the j-th axis from the i-th axis to the K-th axis, and the features related to the edges flowing from the i-th vertex belonging to the i-th subset to combinations of vertices belonging to each of the (K-1) other subsets are arranged as elements on the (K+1)-th axis. Each feature weaving layer has an encoder.Each feature weaving layer is configured to fix the (K+1)-th axis of each of the (K-1) other input tensors other than the i-th input tensor from the 1st to the Kth input tensor, rotate the axes other than the (K+1)-th axis of each of the other input tensors so as to align with the axes of the i-th input tensor, and generate K (K+1)-th-order concatenated tensors by concatenating features of each element of the i-th input tensor and each of the rotated other input tensors, and to generate K (K+1)-th-order output tensors corresponding to each of the K input tensors by dividing each of the generated K concatenated tensors into elements of the first axis and inputting them to the encoder and executing the encoder operation. The encoder is configured to derive a relative feature of each element from the features of all the input elements. The first feature weaving layer of the multiple feature weaving layers is configured to receive K input tensors from the input graph. The feature information is composed of K output tensors output from the last feature weaving layer of the multiple feature weaving layers. The machine learning is configured by inputting each training graph as an input graph into the feature weaving network, and training an estimation module so that the estimation result obtained by the estimator matches the correct answer of the task for each training graph. With this configuration, when a given task is expressed by a hypergraph, the accuracy of estimating the solution of the task can be improved for the trained estimation module generated.
[0031] Moreover, the form of the present invention may not be limited to the form of the model generation device. One aspect of the present invention may be an estimation device configured to estimate a solution of a task for a graph using a trained estimation module generated by a model generation device according to any of the above aspects. For example, an estimation device according to one aspect of the present invention includes an acquisition unit configured to acquire a target graph, an estimation unit configured to estimate a solution of a task for the acquired target graph using a trained estimation module by machine learning, and an output unit configured to output information on the result of estimating the solution of the task. The estimation module is configured in the same manner as described above. Estimating a solution of a task for a target graph using a trained estimation module is configured by inputting the target graph as an input graph into a feature weaving network and obtaining a result of estimating the solution of the task from an estimator. Note that the estimation device may be read as, for example, a matching device, a prediction device, or the like, depending on the type of task in the application scene.
[0032] As another aspect of each of the model generating device and the estimation device according to the above-mentioned embodiments, one aspect of the present invention may be an information processing method or a program that realizes all or part of each of the above-mentioned configurations, or may be a storage medium that stores such a program and is readable by a computer or other device, machine, etc. Here, a storage medium that is readable by a computer, etc. is a medium that accumulates information such as a program by electrical, magnetic, optical, mechanical, or chemical action. Another aspect of the present invention may be an estimation system constituted by the model generating device and the estimation device according to any of the above-mentioned embodiments.
[0033] For example, a model generation method according to one aspect of the present invention is an information processing method in which a computer executes a step of acquiring a plurality of training graphs and a step of implementing machine learning of an estimation module using the acquired plurality of training graphs. Also, for example, a model generation program according to one aspect of the present invention is a program for causing a computer to execute a step of acquiring a plurality of training graphs and a step of implementing machine learning of an estimation module using the acquired plurality of training graphs. The estimation module is configured in the same manner as above. The machine learning is configured by inputting each training graph as an input graph into a feature weaving network, and training the estimation module so that the estimation result obtained by the estimator matches the correct answer for the task for each training graph. Effect of the Invention
[0034] According to the present invention, it is possible to improve the accuracy of estimating a solution to a task represented by a graph. [Brief description of the drawings]
[0035] [Figure 1] FIG. 1 illustrates a schematic example of a situation in which the present invention is applied. [Figure 2A] FIG. 2A illustrates an example of a configuration of an estimation module according to an embodiment. [Figure 2B] FIG. 2B is a schematic diagram illustrating an example of a configuration of a feature weaving layer according to an embodiment. [Diagram 3] FIG. 3 illustrates an example of a hardware configuration of the model generating device according to the embodiment. [Figure 4] FIG. 4 illustrates an example of a hardware configuration of the estimation device according to the embodiment. [Diagram 5] FIG. 5 illustrates an example of a software configuration of the model generating device according to the embodiment. [Figure 6A] FIG. 6A illustrates an example of a configuration of an encoder disposed in a feature weaving layer according to an embodiment. [Figure 6B]FIG. 6B illustrates an example of a configuration of an encoder disposed in a feature weaving layer according to an embodiment. [Figure 7] FIG. 7 illustrates an example of a software configuration of the estimation device according to the embodiment. [Figure 8] FIG. 8 is a flowchart illustrating an example of a processing procedure of the model generating device according to the embodiment. [Figure 9] FIG. 9 is a flowchart illustrating an example of a processing procedure of the estimation device according to the embodiment. [Figure 10] FIG. 10 is a schematic diagram illustrating an example of passing through two feature weaving layers according to an embodiment. [Figure 11] FIG. 11 illustrates a schematic example of another situation to which the present invention is applied (a situation in which a task is represented by a directed bipartite graph). [Figure 12] FIG. 12 illustrates a schematic example of another situation to which the present invention is applied (a situation in which a task is represented by an undirected bipartite graph). [Figure 13] FIG. 13 illustrates a schematic example of another situation to which the present invention is applied (a situation in which a task is represented by a general directed graph). [Figure 14] FIG. 14 illustrates a schematic example of another situation to which the present invention is applied (a situation in which a task is represented by a general undirected graph). [Figure 15] FIG. 15 illustrates a schematic example of the computational process of the feature weaving layer in a scenario where a task is represented by a general undirected graph. [Figure 16] FIG. 16 illustrates an example of another situation to which the present invention is applied (a situation in which a task is represented by a vertex feature graph in which relationships between vertices are given). [Figure 17] FIG. 17 illustrates a schematic example of another situation to which the present invention is applied (a situation in which a task of estimating relationships between objects is represented by a vertex feature graph). [Figure 18] FIG. 18 illustrates a schematic example of another scene to which the present invention is applied (a scene in which a task is represented by a hypergraph). [Figure 19]FIG. 19 illustrates a schematic example of the computational processing of the feature weaving layer in a scene where a task is represented by a hypergraph. [Figure 20] FIG. 20 illustrates an example of a machine learning process according to the modified example. [Figure 21] FIG. 21 illustrates an example of an input form of an estimation module according to a modified example. [Figure 22] FIG. 22 illustrates an example of a configuration of an estimation module according to a modified example. [Figure 23] FIG. 23 illustrates an example of a configuration of a feature weaving layer according to a modified example. [Figure 24A] FIG. 24A shows the results of calculating the matching success rate for validation samples of each size for the example. [Figure 24B] FIG. 24B shows the results of calculating the matching success rate for verification samples of each size for the comparative example. [Figure 25A] FIG. 25A shows the results of calculating the success rate of fairness matching for validation samples of each size for the example. [Figure 25B] FIG. 25B shows the results of calculating the success rate of fairness matching for validation samples of each size for the comparative example. [Figure 25C] FIG. 25C shows the results of calculating the average fairness costs of all matching results for the second and third embodiments. [Figure 26A] FIG. 26A shows the results of calculating the success rate of balance matching for validation samples of each size for the example. [Figure 26B] FIG. 26B shows the results of calculating the success rate of balance matching for verification samples of each size for the comparative example. [Figure 26C] FIG. 26C shows the results of calculating the average value of the balance costs of all matching results for the second and fourth embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0036] An embodiment according to one aspect of the present invention (hereinafter, also referred to as "the present embodiment") will be described below with reference to the drawings. However, the present embodiment described below is merely an example of the present invention in every respect. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. In other words, in implementing the present invention, a specific configuration according to the embodiment may be appropriately adopted. Note that while the data appearing in this embodiment is described in natural language, more specifically, it is specified in pseudo-language, commands, parameters, machine language, etc. that can be recognized by a computer.
[0037] §1 Examples of application 1 is a schematic diagram illustrating an example of a situation in which the present invention is applied. As shown in FIG. 1, an estimation system 100 according to the present embodiment includes a model generating device 1 and an estimation device 2.
[0038] (Model Generator) The model generation device 1 according to the present embodiment is a computer configured to generate a trained estimation module 5 by performing machine learning. Specifically, the model generation device 1 acquires a plurality of training graphs 30. The type of each training graph 30 may be appropriately selected according to the ability to solve a task that the estimation module 5 is to acquire. Each training graph 30 may be configured, for example, of a directed bipartite graph, an undirected bipartite graph, a general directed graph, a general undirected graph, a vertex feature graph, a hypergraph, or the like. The model generation device 1 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30. As a result, a trained estimation module 5 is generated.
[0039] (estimation device) On the other hand, the estimation device 2 according to the present embodiment is a computer configured to estimate a task solution for a graph using a trained estimation module 5. Specifically, the estimation device 2 acquires a target graph 221. The target graph 221 is a graph from which a task solution is to be estimated, and the type of the target graph 221 may be appropriately selected according to the acquired ability of the trained estimation module 5, similar to the above-mentioned training graph 30. The estimation device 2 estimates a task solution for the acquired target graph 221 using the trained estimation module 5 by machine learning. Then, the estimation device 2 outputs information related to the result of estimating the task solution.
[0040] (Estimation module) Further referring to FIG. 2A, an example of the configuration of the estimation module 5 will be described. FIG. 2A illustrates a schematic example of the configuration of the estimation module 5 according to the present embodiment. The estimation module 5 includes a feature weaving network 50 and an estimator 55. The feature weaving network 50 includes a plurality of feature weaving layers 500 arranged in series. Thus, the feature weaving network 50 is configured to receive an input of an input graph and output feature information related to the input graph. The estimator 55 is configured to estimate a solution to a task for the input graph from the feature information output from the feature weaving network.
[0041] An example of the configuration of the feature weaving network 50 will be described further with reference to FIG. 2B. FIG. 2B illustrates a schematic example of the configuration of the feature weaving layer 500 according to the present embodiment. Each feature weaving layer 500 receives a third-order first input tensor (Z A l ) and the second input tensor (Z B l ), where the subscript “l” corresponds to the layer number of the feature weaving layer 500. That is, each input tensor (Z A l , Z B l) corresponds to the input to the l+1-th feature weaving layer 500. An integer from 0 to L-1 is substituted for the subscript "l" of the input tensor. L indicates the number of feature weaving layers 500. The value of L may be set appropriately according to the embodiment as long as it is 2 or more.
[0042] The first input tensor (Z A l ) is a feature (D l In this embodiment, for convenience of explanation, it is assumed that the number of first vertices is N, the number of second vertices is M, and the number of dimensions of the feature amount is D. l Assume that N, M, and D l The values of may be appropriately set depending on the embodiment. For convenience, it is assumed in the figure that N is 4 and M is 3. B l ) is a feature quantity (D l The dimension is constructed to have a third axis along which the elements are aligned.
[0043] Each feature weaving layer 500 includes an encoder 505 and is configured to perform the following operations: fix the third axis of the second input tensor and rotate the other axes of the second input tensor one by one (P A ⇔ B (Z B l In this embodiment, the second input tensor (Z B l Since the number of axes of the tensor (P) is three, rotating the axes other than the third axis one by one is equivalent to swapping the first and second axes. When viewed from the element of the first axis, the second input tensor (P A ⇔ B (ZB l Each element on the third axis of the feature weaving layer 500 corresponds to a feature related to an edge flowing from the second vertex to the first vertex. In addition, each feature weaving layer 500 receives the first input tensor (Z A l ) and the second input tensor (P A ⇔ B (Z B l )) and concatenate the features of each element (cat operation). An example of the cat operation is A l ) at the end of the third axis of the second input tensor (P A ⇔ B (Z B l By these operations, each feature weaving layer 500 combines the elements of the third axis of the first connected tensor (cat(Z A l ,P A ⇔ B (Z B l ))∈R N × M × 2Dl )
[0044] In addition, each feature weaving layer 500 fixes the third axis of the first input tensor and rotates the other axes other than the third axis of the first input tensor one by one (P A ⇔ B (Z A l )). As with the above operation of the second input tensor, rotating the axes other than the third axis of the first input tensor one by one is equivalent to swapping the first and second axes of the first input tensor. When viewed from the element of the first axis, the first input tensor (P A ⇔ B (Z A l Each element on the third axis of the feature weaving layer 500 corresponds to a feature related to an edge flowing from the first vertex to the second vertex. In addition, each feature weaving layer 500 receives a second input tensor (Z B l ) and the first input tensor (P A ⇔B (Z A l )) and concatenate the features of each element (cat operation). An example of the cat operation is B l ) at the end of the third axis of the first input tensor (P A ⇔ B (Z A l By these operations, each feature weaving layer 500 combines the elements of the third axis of the second connected tensor (cat(Z B l ,P A ⇔ B (Z A l ))∈R M × N × 2Dl )
[0045] Next, each feature weaving layer 500 divides the generated first connected tensor into elements of the first axis, and each element (z ai l ∈R 1 × M × 2Dl ) is input to the encoder 505, and the encoder 505 performs its calculation. Each feature weaving layer 500 obtains the calculation result of the encoder 505 element by element, and converts the first input tensor (Z A l ) corresponding to the first output tensor of the third order (Z A l+1 ∈R N × M × Dl+1 In addition, each feature weaving layer 500 divides the generated second connected tensor into elements of the first axis, and each element (z bj l ∈R 1 × N × 2Dl ) is input to the encoder 505, and the encoder 505 performs its calculation. Each feature weaving layer 500 obtains the calculation result of the encoder 505 element by element, and converts the second input tensor (Z B l ) corresponding to the second output tensor (ZB l+1 ∈R M × N × Dl+1 ) is generated. The third axis of each output tensor is the number of dimensions of the feature (D l+1 ) may be appropriately determined depending on the embodiment, and the number of dimensions before encoding (D l ) may be the same as or different from each other. Each feature weaving layer 500 is configured to perform each of the above operations.
[0046] The encoder 505 is configured to derive the relative feature of each element from the feature of all the input elements. That is, each element of the first axis of the object connectivity tensor corresponds to each vertex of the object set (first vertex a i , second vertex b j ), and the target connection tensor indicates a state in which the feature amounts of the outgoing branches and the incoming branches for each vertex are connected. The encoder 505 is configured to derive a relative feature amount of the target outgoing branch from all feature amounts related to the outgoing branches and the incoming branches for the target vertex. The configuration of the encoder 505 is not particularly limited as long as such a calculation is possible, and may be appropriately selected depending on the embodiment. A specific example will be described later.
[0047] As shown in FIG. 2B, in one example of this embodiment, the encoder 505 of each feature weaving layer 500 calculates the first axis elements (z ai l , z bj l ) may be configured with a single encoder shared among the feature weaving layers 500. That is, the feature weaving network 50 may be configured to include a single encoder for each feature weaving layer 500 (L encoders for the L feature weaving layers 500). This can reduce the number of parameters that the estimation module 5 has. As a result, the amount of calculation of the estimation module 5 can be reduced, and the efficiency of machine learning can be improved.
[0048] However, the number of encoders 505 constituting the feature weaving layer 500 may not be limited to this example. In another example, each element of the first axis of the first connected tensor (z ai l ) is used, and each element of the first axis of the second connected tensor (z bj l ) may be used. That is, the encoder 505 may be composed of two encoders used separately for each connected tensor. This allows the feature amount of the branch seen from the first vertex and the feature amount of the branch seen from the second vertex to be encoded separately, and each individual feature can be reflected by inference. As a result, improvement in the accuracy of the estimation module can be expected. When the distribution of the feature amounts for the first set and the second set is different, the encoder 505 may be provided separately for the first connected tensor and the second connected tensor in this way. In yet another example, the encoder 505 encodes the elements (z ai l , z bj l ) may be provided separately for each
[0049] As shown in FIG. 2A, the first feature weaving layer 5001 (i.e., the feature weaving layer located on the most input side) of the multiple feature weaving layers 500 receives a first input tensor 601 (Z A 0) and the second input tensor 602 (Z B 0). In one example, the input graph is provided in a general graph format, and each input tensor (601, 602) may be directly obtained from the provided input graph. In another example, each input tensor (601, 602) may be obtained from a result of a predetermined operation performed on the input graph. The predetermined operation may be performed by an operator having any configuration, such as a convolution layer. In other words, any operator may be provided to be performed before the feature weaving network 50. In yet another example, the input graph may be directly obtained in the form of each input tensor (601, 602).
[0050] In one example, the feature weaving layers 500 may be arranged in series. In this case, the feature weaving layers 500 other than the first feature weaving layer 5001 (i.e., the second and subsequent feature weaving layers) are configured to receive, as input tensors, the output tensors generated by the immediately preceding feature weaving layer 500. In other words, the l+1-th feature weaving layer 500 receives, as input tensors, the output tensors (Z A l+1 , Z B l+1 ) as each input tensor, where l is an integer from 1 to L-1.
[0051] However, the arrangement of each feature weaving layer 500 may not be limited to such an example. For example, other types of layers (e.g., convolutional layers, fully connected layers, etc.) may be inserted between adjacent feature weaving layers 500. In this case, the inserted other layers are configured to perform calculation processing on each output tensor obtained from the immediately preceding feature weaving layer 500. The feature weaving layer 500 arranged after the inserted other layer is configured to obtain each input tensor from the calculation result of the other layer. The number of inserted other layers is not particularly limited and may be appropriately selected depending on the embodiment. The configuration of the inserted other layers may be appropriately determined depending on the embodiment. When other types of layers are inserted at multiple locations, the configuration of each layer may be the same or different depending on the location where it is inserted.
[0052] The feature information is a first output tensor 651 (Z A L ) and the second output tensor 652(Z B L). The estimator 55 is appropriately configured to derive a result of estimating a solution to a task from each output tensor (651, 652). The configuration of the estimator 55 is not particularly limited as long as such a calculation can be executed, and may be appropriately determined depending on the embodiment (for example, the configuration of each output tensor, the derivation format of the estimation result, etc.).
[0053] The estimator 55 may be configured, for example, by a data table, a function formula, a rule, or the like. In an example of the case where the estimator 55 is configured by a function formula, the estimator 55 may be configured by a neural network having an arbitrary structure, such as one convolution layer or one fully connected layer. In this case, the estimator 55 may include a plurality of nodes (neurons), and the weight of the connection between each node and the threshold of each node are examples of the parameters of the estimator 55. The threshold of each node may be configured by an arbitrary activation function. In addition, the output format of the estimator 55 is not particularly limited and may be appropriately selected according to the embodiment. In one example, the output of the estimator 55 may be configured to directly indicate the estimation result. In another example, the output of the estimator 55 may be configured to indirectly indicate the estimation result. In this case, the estimation result may be derived from the output of the estimator 55 by performing a predetermined calculation process, such as a threshold determination, on the output of the estimator 55.
[0054] 2A, the feature weaving network 50 may be configured to have a residual structure. The residual structure refers to a structure having a shortcut path such that the output of at least one of the multiple feature weaving layers is input to the next adjacent feature weaving layer as well as to other feature weaving layers (feature weaving layers two or more layers away) after the next adjacent feature weaving layer.
[0055] In the example of FIG. 2A, the feature weaving network 50 has a shortcut path 501 that omits two feature weaving layers 500. As a result, the output of the feature weaving layer 500 immediately before the shortcut path 501 is input to the feature weaving layer 500 three layers ahead. In the example of FIG. 2A, for example, the shortcut path 501 is provided on the output side of the first feature weaving layer 5001. Therefore, the fourth feature weaving layer 500 is configured to obtain an input tensor from the output tensor of the third feature weaving layer 500 and the output tensor of the first feature weaving layer 5001.
[0056] However, the number of feature weaving layers 500 omitted by the shortcut path 501 need not be limited to this example. The number of feature weaving layers 500 omitted by the shortcut path 501 may be one layer, or three or more layers. In addition, the interval at which the shortcut path 501 is set does not need to be particularly limited, and may be appropriately determined depending on the embodiment. The shortcut path 501 may be set at a predetermined interval, for example, every three layers.
[0057] By having such a residual structure, the hierarchy of the feature weaving network 50 can be easily deepened (i.e., the number of feature weaving layers 500 can be easily increased). By deepening the hierarchy of the feature weaving network 50, the accuracy of feature extraction by the feature weaving network 50 can be improved, and as a result, the estimation accuracy of the estimation module 5 can be improved. Note that the structure of the feature weaving network 50 is not limited to this example. The residual structure may be omitted.
[0058] 1 and 2A, in the model generating device 1, the above machine learning is configured by training the estimation module 5 so that the estimation result obtained by the estimator 55 by inputting each training graph 30 as an input graph to the feature weaving network 50 matches the correct answer (true value) of the task for each training graph 30. Meanwhile, in the estimation device 2, estimating a solution to a task for a target graph 221 using the trained estimation module 5 is configured by inputting the target graph 221 as an input graph to the feature weaving network 50 and obtaining the result of estimating the solution to the task from the estimator 55.
[0059] (Features) As described above, the feature weaving network 50 of the estimation module 5 according to this embodiment is configured to refer to the features of the input graph for each branch, not for each vertex. In each feature weaving layer 500, the encoder 505 reflects the features of other branches in the features of each branch based on each vertex. The more the feature weaving layers 500 are stacked, the more the features of the branches for vertices farther from each vertex can be reflected in the features of the branches for each vertex. In addition, the encoder 505 is configured to derive the relative features of each branch from the features of all branches input for the target vertex, rather than calculating the weighted sum of the features of the branches adjacent to each vertex. This configuration of the encoder 505 makes it possible to prevent excessive smoothing from occurring even when the feature weaving layers 500 are stacked. Therefore, the hierarchy of the feature weaving network 50 can be deepened according to the difficulty of the task, and as a result, the feature of the input graph suitable for solving the task can be extracted in the feature weaving network 50. In other words, it is expected that the accuracy of feature extraction by the feature weaving network 50 is improved. As a result, the estimator 55 can be expected to perform highly accurate estimation based on the obtained feature amount. Therefore, according to this embodiment, even for a complex task, the hierarchy of the feature weaving network 50 can be deepened, and the accuracy of estimating the solution of the task expressed by a graph can be improved accordingly for the estimation module 5. The model generation device 1 can be expected to generate a trained estimation module 5 capable of estimating the solution of the task for the input graph with high accuracy. The estimation device 2 can be expected to perform highly accurate estimation of the solution of the task for the target graph 221 by using such a trained estimation module 5.
[0060] In the example of FIG. 1, the model generating device 1 and the estimation device 2 are connected to each other via a network. The type of network may be appropriately selected from, for example, the Internet, a wireless communication network, a mobile communication network, a telephone network, a dedicated network, and the like. However, the method of exchanging data between the model generating device 1 and the estimation device 2 is not limited to this example, and may be appropriately selected depending on the embodiment. For example, data may be exchanged between the model generating device 1 and the estimation device 2 using a storage medium.
[0061] 1, the model generating device 1 and the estimation device 2 are each configured by separate computers. However, the configuration of the estimation system 100 according to the present embodiment is not limited to such an example and may be appropriately determined according to the embodiment. For example, the model generating device 1 and the estimation device 2 may be an integrated computer. Also, for example, at least one of the model generating device 1 and the estimation device 2 may be configured by multiple computers.
[0062] §2 Configuration example [Hardware configuration] <Model generation device> Fig. 3 illustrates a schematic example of a hardware configuration of the model generating device 1 according to this embodiment. As shown in Fig. 3, the model generating device 1 according to this embodiment is a computer to which a control unit 11, a storage unit 12, a communication interface 13, an external interface 14, an input device 15, an output device 16, and a drive 17 are electrically connected. In Fig. 3, the communication interface and the external interface are described as a "communication I / F" and an "external I / F".
[0063] The control unit 11 includes a hardware processor such as a central processing unit (CPU), a random access memory (RAM), and a read only memory (ROM), and is configured to execute information processing based on programs and various data. The storage unit 12 is an example of a memory, and is configured, for example, by a hard disk drive or a solid state drive. In this embodiment, the storage unit 12 stores various information such as a model generation program 81, a plurality of training graphs 30, and learning result data 125.
[0064] The model generation program 81 is a program for causing the model generation device 1 to execute machine learning information processing ( FIG. 8 ) described below for generating a trained estimation module 5. The model generation program 81 includes a series of instructions for the information processing. A plurality of training graphs 30 are used for machine learning of the estimation module 5. The learning result data 125 indicates information related to the trained estimation module 5 generated by implementing machine learning. In this embodiment, the learning result data 125 is generated as a result of executing the model generation program 81. Details will be described later.
[0065] The communication interface 13 is, for example, a wired LAN (Local Area Network) module, a wireless LAN module, or the like, and is an interface for performing wired or wireless communication via a network. The model generating device 1 can use the communication interface 13 to execute data communication via a network with other information processing devices. The external interface 14 is, for example, a USB (Universal Serial Bus) port, a dedicated port, or the like, and is an interface for connecting to an external device. The type and number of the external interfaces 14 may be selected arbitrarily. The training graph 30 may be obtained by a sensor such as a camera. Alternatively, the training graph 30 may be generated by another computer. In this case, the model generating device 1 may be connected to the sensor or another computer via at least one of the communication interface 13 and the external interface 14.
[0066] The input device 15 is a device for performing input, such as a mouse or a keyboard. The output device 16 is a device for performing output, such as a display or a speaker. An operator such as a user can operate the model generation device 1 by using the input device 15 and the output device 16. The training graph 30 may be obtained by input via the input device 15.
[0067] The drive 17 is, for example, a CD drive, a DVD drive, or the like, and is a drive device for reading various information such as a program stored in a storage medium 91. The storage medium 91 is a medium that accumulates information such as a program by electrical, magnetic, optical, mechanical, or chemical action so that a computer or other device, machine, or the like can read various information such as the stored program. At least one of the model generation program 81 and the multiple training graphs 30 may be stored in the storage medium 91. The model generation device 1 may acquire at least one of the model generation program 81 and the multiple training graphs 30 from the storage medium 91. Note that, in FIG. 3, a disk-type storage medium such as a CD or a DVD is illustrated as an example of the storage medium 91. However, the type of the storage medium 91 is not limited to the disk type, and may be other than the disk type. An example of a storage medium other than the disk type may be a semiconductor memory such as a flash memory. The type of the drive 17 may be selected arbitrarily according to the type of the storage medium 91.
[0068] Regarding the specific hardware configuration of the model generating device 1, components can be omitted, replaced, and added as appropriate depending on the embodiment. For example, the control unit 11 may include multiple hardware processors. The hardware processor may be configured with a microprocessor, a field-programmable gate array (FPGA), a digital signal processor (DSP), or the like. The storage unit 12 may be configured with a RAM and a ROM included in the control unit 11. At least one of the communication interface 13, the external interface 14, the input device 15, the output device 16, and the drive 17 may be omitted. The model generating device 1 may be configured with multiple computers. In this case, the hardware configurations of the computers may or may not be the same. In addition, the model generating device 1 may be an information processing device designed specifically for the service provided, as well as a general-purpose server device, a PC (Personal Computer), or the like.
[0069] <Estimation device> Fig. 4 illustrates a schematic example of a hardware configuration of the estimation device 2 according to this embodiment. As illustrated in Fig. 4, the estimation device 2 according to this embodiment is a computer in which a control unit 21, a storage unit 22, a communication interface 23, an external interface 24, an input device 25, an output device 26, and a drive 27 are electrically connected.
[0070] The control unit 21 to the drive 27 and the storage medium 92 of the estimation device 2 may be configured similarly to the control unit 11 to the drive 17 and the storage medium 91 of the model generation device 1. The control unit 21 includes a CPU, a RAM, a ROM, etc., which are hardware processors, and is configured to execute various information processing based on programs and data. The storage unit 22 is configured, for example, with a hard disk drive, a solid state drive, etc. In this embodiment, the storage unit 22 stores various information such as an estimation program 82, learning result data 125, etc.
[0071] The estimation program 82 is a program for causing the estimation device 2 to execute information processing ( FIG. 9 ) described below for performing an estimation task using a trained estimation module 5. The estimation program 82 includes a series of instructions for the information processing. At least one of the estimation program 82 and the learning result data 125 may be stored in the storage medium 92. Furthermore, the estimation device 2 may acquire at least one of the estimation program 82 and the learning result data 125 from the storage medium 92.
[0072] Similar to the training graph 30, the object graph 221 may be obtained by a sensor such as a camera. Alternatively, the object graph 221 may be generated by another computer. In this case, the estimation device 2 may be connected to the sensor or the other computer via at least one of the communication interface 23 and the external interface 24. Alternatively, the object graph 221 may be obtained by input via the input device 25.
[0073] Regarding the specific hardware configuration of the estimation device 2, components can be omitted, replaced, or added as appropriate depending on the embodiment. For example, the control unit 21 may include multiple hardware processors. The hardware processor may be configured with a microprocessor, FPGA, DSP, or the like. The storage unit 22 may be configured with a RAM and a ROM included in the control unit 21. At least one of the communication interface 23, the external interface 24, the input device 25, the output device 26, and the drive 27 may be omitted. The estimation device 2 may be configured with multiple computers. In this case, the hardware configurations of the computers may or may not be the same. Furthermore, the estimation device 2 may be an information processing device designed specifically for the service provided, as well as a general-purpose server device, a general-purpose PC, a tablet PC, a terminal device, or the like.
[0074] [Software configuration] <Model generation device> 5 illustrates a schematic example of a software configuration of the model generating device 1 according to the present embodiment. The control unit 11 of the model generating device 1 loads the model generating program 81 stored in the storage unit 12 in the RAM. The control unit 11 then uses the CPU to interpret and execute instructions included in the model generating program 81 loaded in the RAM to control each component. As a result, as shown in FIG. 5, the model generating device 1 according to the present embodiment operates as a computer including an acquisition unit 111, a learning processing unit 112, and a storage processing unit 113 as software modules. That is, in the present embodiment, each software module of the model generating device 1 is realized by the control unit 11 (CPU).
[0075] The acquisition unit 111 is configured to acquire a plurality of training graphs 30. The learning processing unit 112 is configured to use the acquired plurality of training graphs 30 to perform machine learning of the estimation module 5. The estimation module 5 includes a feature weaving network 50 and an estimator 55. The machine learning is configured by training the estimation module 5 so that the result of estimation obtained by the estimator 55 by inputting each training graph 30 as an input graph to the feature weaving network 50 matches the correct answer (true value) of the task for each training graph 30. The correct answer (true value) may be given by a predetermined rule, for example, having no blocking pair in the case of a stable matching problem, satisfying a predetermined criterion, or the like. Alternatively, a correct answer label (teacher signal) may be associated with each acquired training graph 30. Each correct answer label may be configured to indicate the correct answer (true value) of the corresponding training graph 30.
[0076] The storage processing unit 113 is configured to generate information about the trained estimation module 5 generated by machine learning as learning result data 125, and to store the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be appropriately configured to include information for reproducing the trained estimation module 5.
[0077] (Encoder) As shown in FIG. 2A and FIG. 2B, the feature weaving network 50 includes a plurality of feature weaving layers 500, and each feature weaving layer 500 includes an encoder 505. As long as it is possible to derive the relative feature amount of each element from the feature amount of all the input elements, the configuration of the encoder 505 may be appropriately selected according to the embodiment. In order to accommodate the fact that the number of elements of the linked tensor is variable due to differences in the number of vertices of the input graph, the presence or absence of branches, etc., the encoder 505 is preferably configured to be able to accept variable-length input. In this embodiment, the encoder 505 may be configured in one of the following two examples.
[0078] (1) First Configuration Example 6A illustrates an example of the configuration of the encoder 5051 according to the present embodiment. The encoder 5051 is an example of the encoder 505. In a first configuration example, the encoder 5051 is configured by a bidirectional long short-term memory.
[0079] The bidirectional LSTM includes a plurality of nodes (neurons). The weights of the connections between the nodes and the thresholds of the nodes are examples of parameters of the encoder 5051. The thresholds of the nodes may be configured by any activation function. An example of a specific configuration of the bidirectional LSTM is proposed in, for example, Alex Graves and Jurgen Schmidhuber, "Framewise phoneme classification with bidirectional LSTM and other neural network architectures", Neural Networks, 2005, etc.
[0080] Thus, the encoder 5051 is configured to receive each feature quantity arranged on the third axis for each element of the second axis in a variable-length sequence, and derive each feature quantity arranged on the third axis of the output tensor for each element of the second axis, depending on the feature quantity input earlier and the feature quantity input later. This encoder 5051 can receive an input of a variable-length concatenated tensor derived from a graph having an arbitrary configuration, and appropriately derive a relative feature quantity of a target outgoing branch from all feature quantities related to the outgoing branches and incoming branches for the target vertex.
[0081] (2) Second Configuration Example 6B illustrates an example of the configuration of the encoder 5052 according to this embodiment. The encoder 5052 is an example of the encoder 505. In the second configuration example, the encoder 5052 includes a first combiner 5054, an integrator 5055, and a second combiner 5056.
[0082] The first combiner 5054 is configured to combine the features 6051 arranged on the third axis for each element of the second axis of the concatenated tensor (i.e., combine data from each input tensor). The integrator 5055 is configured to integrate the combination result 6054 for each element of the second axis by the first combiner 5054. In one example, the integrator 5055 may be configured to calculate statistical information such as a maximum value, a minimum value, an average value, etc. for each element of the third axis (feature amount). The second combiner 5056 is configured to derive each feature 6056 arranged on the third axis of the output tensor for each element of the second axis from the features 6051 arranged on the third axis for each element of the second axis and the integration result 6055 by the integrator 5055. In one example, each combiner (5054, 5056) may be provided separately for each element of the second axis. In another example, a single coupler (5054, 5056) may be used in common between elements of the second axis.
[0083] As long as the above calculations can be performed, the configurations of the first combiner 5054, the integrator 5055, and the second combiner 5056 are not particularly limited and may be appropriately selected depending on the embodiment. Each combiner (5054, 5056) may be configured, for example, by an arbitrary function formula or the like. In one example, parameters constituting the function formula correspond to the parameters of each combiner (5054, 5056). The parameters of the first combiner 5054 and the second combiner 5056 are an example of parameters of the encoder 5052.
[0084] According to this encoder 5052, it is possible to appropriately derive a relative feature value of a target outgoing branch from all feature values related to the outgoing branches and incoming branches for a target vertex by combining an integration result 6055 obtained by the integrator 5055 with a feature value 6051 for each element of the second axis by the second combiner 5056. Also, by configuring each combiner (5054, 5056) to be able to independently execute an operation for each element and configuring the integrator 5055 to be able to apply the operation to an element string of variable length, the encoder 5052 can be configured to accept a variable length input.
[0085] (Machine Learning) 5, each training graph 30 is input as an input graph to the estimation module 5, and forward arithmetic processing of the feature weaving network 50 and the estimator 55 is executed to obtain an estimation result for each training graph 30. The learning processing unit 112 is configured to adjust parameters of the estimation module 5 (for example, parameters of the encoder 505 and the estimator 55 of each feature weaving layer 500) so that an error between an estimation result obtained for each training graph 30 and a correct answer is reduced in machine learning.
[0086] The storage processing unit 113 is configured to generate learning result data 125 for reproducing the trained estimation module 5 generated by the machine learning. As long as the trained estimation module 5 can be reproduced, the configuration of the learning result data 125 is not particularly limited and may be appropriately determined according to the embodiment. As an example, the learning result data 125 may include information indicating the values of each parameter obtained by adjusting the machine learning. In some cases, the learning result data 125 may include information indicating the structure of the estimation module 5. The structure may be specified by, for example, the number of layers, the type of each layer, the number of nodes included in each layer, the connection relationship between nodes in adjacent layers, etc.
[0087] <Estimation device> 7 illustrates a schematic example of a software configuration of the estimation device 2 according to the present embodiment. The control unit 21 of the estimation device 2 loads the estimation program 82 stored in the storage unit 22 onto the RAM. The control unit 21 then uses the CPU to interpret and execute instructions included in the estimation program 82 loaded onto the RAM to control each component. As a result, as shown in FIG. 7, the estimation device 2 according to the present embodiment operates as a computer including an acquisition unit 211, an estimation unit 212, and an output unit 213 as software modules. That is, in the present embodiment, each software module of the estimation device 2 is also realized by the control unit 21 (CPU) like the model generation device 1.
[0088] The acquisition unit 211 is configured to acquire the object graph 221. The estimation unit 212 includes a trained estimation module 5 by holding the learning result data 125. The estimation unit 212 is configured to estimate a task solution for the acquired object graph 221 using the trained estimation module 5. Estimating a task solution for the object graph 221 using the trained estimation module 5 is configured by inputting the object graph 221 as an input graph to the feature weaving network 50 and obtaining a result of estimating the task solution from the estimator 55. The output unit 213 is configured to output information regarding the result of estimating the task solution.
[0089] <Other> Each software module of the model generating device 1 and the estimation device 2 will be described in detail in an operation example described later. In this embodiment, an example is described in which each software module of the model generating device 1 and the estimation device 2 is realized by a general-purpose CPU. However, some or all of the above software modules may be realized by one or more dedicated processors (e.g., graphics processing units). Each of the above modules may be realized as a hardware module. Furthermore, with regard to the software configurations of the model generating device 1 and the estimation device 2, software modules may be omitted, replaced, or added as appropriate depending on the embodiment.
[0090] §3 Example of operation [Model generation device] 8 is a flowchart showing an example of a processing procedure related to machine learning by the model generation device 1 according to the present embodiment. The processing procedure of the model generation device 1 described below is an example of a model generation method. However, the processing procedure of the model generation device 1 described below is merely an example, and each step may be changed as much as possible. Furthermore, steps may be omitted, replaced, or added to the following processing procedure as appropriate depending on the embodiment.
[0091] (Step S101) In step S101, the control unit 11 operates as the acquisition unit 111 and acquires a plurality of training graphs 30.
[0092] Each training graph 30 may be generated as appropriate according to the task capability to be acquired by the estimation module 5. Conditions for solving the task may be given as appropriate, and each training graph 30 may be generated from the given conditions. Also, each training graph 30 may be obtained from existing data showing an existing transportation network, an existing communication network, etc. Alternatively, each training graph 30 may be obtained from image data. The image data may be obtained by a camera, or may be generated as appropriate by a computer.
[0093] The data format of each training graph 30 is not particularly limited and may be appropriately selected depending on the embodiment. In one example, each training graph 30 may be configured with an adjacency list or an adjacency matrix. In another example, each training graph 30 may be configured with a data format other than the adjacency list and the adjacency matrix (e.g., image data, etc.). As an example of another data format, each training graph 30 may be configured with image data. In this case, each pixel may correspond to a vertex, and the relationship between pixels may correspond to a branch.
[0094] A correct answer (true value) for each training graph 30 may be given as appropriate. In one example, the correct answer (true value) may be given according to a predetermined rule. In another example, the correct answer (true value) may be indicated by a correct answer label (teacher signal). In this case, a correct answer label corresponding to each training graph 30 may be generated as appropriate, and the generated correct answer label may be associated with each training graph 30. As a result, each training graph 30 may be generated in the form of a dataset associated with a correct answer label.
[0095] Each training graph 30 may be generated automatically by the operation of a computer, or may be generated manually by at least partially including the operation of an operator. Moreover, each training graph 30 may be generated by the model generation device 1, or may be generated by another computer other than the model generation device 1. That is, the control unit 11 may generate each training graph 30 automatically or manually by the operation of an operator via the input device 15. Alternatively, the control unit 11 may acquire each training graph 30 generated by another computer, for example, via a network, a storage medium 91, or the like. Some of the multiple training graphs 30 may be generated by the model generation device 1, and the rest may be generated by one or more other computers. At least one of the multiple training graphs 30 may be generated, for example, by a generative model configured by a machine learning model (for example, a generative model included in a generative adversarial network).
[0096] The number of training graphs 30 to be acquired is not particularly limited, and may be appropriately determined according to the embodiment so as to enable machine learning. After acquiring a plurality of training graphs 30, the control unit 11 advances the process to the next step S102.
[0097] (Step S102) In step S102, the control unit 11 operates as the learning processing unit 112 and performs machine learning for the estimation module 5 using the acquired multiple training graphs 30.
[0098] As an example of machine learning processing, first, the control unit 11 performs initial settings of the estimation module 5 to be processed by machine learning. The structure and initial values of parameters of the estimation module 5 may be provided by a template or may be determined by an operator's input. When additional learning or re-learning is performed, the control unit 11 may perform initial settings of the estimation module 5 based on learning result data obtained by past machine learning.
[0099] Next, the control unit 11 trains the estimation module 5 by machine learning so that the result of estimating the solution of the task for each training graph 30 matches the correct answer (true value) (i.e., adjusts the parameter values of the estimation module 5). For this training process, a stochastic gradient descent method, a mini-batch gradient descent method, or the like may be used.
[0100] As an example of the training process, first, the control unit 11 inputs each training graph 30 to the estimation module 5 and executes forward arithmetic processing. In one example, the control unit 11 acquires each input tensor (601, 602) from each training graph 30, and inputs each obtained input tensor (601, 602) to the first feature weaving layer 5001 arranged on the most input side of the feature weaving network 50. Next, the control unit 11 executes arithmetic processing of each feature weaving layer 500 in the forward direction. In the arithmetic processing of each feature weaving layer 500, the control unit 11 generates each connection tensor from each input tensor. Next, the control unit 11 uses the encoder 505 to generate each output tensor from each connection tensor. In this embodiment, either of the above two encoders (5051, 5052) may be adopted as the encoder 505. As a result of executing the computational processes of each feature weaving layer 500 in the forward direction, the control unit 11 acquires each output tensor (651, 652) from the final feature weaving layer 500L. Then, the control unit 11 inputs each of the acquired output tensors (651, 652) to the estimator 55 and executes the computational process of the estimator 55. Through this series of computational processes in the forward direction, the control unit 11 acquires an estimation result of the solution of the task for each training graph 30 from the estimator 55.
[0101] Next, the control unit 11 calculates the error between the obtained estimation result and the corresponding correct answer. As described above, the correct answer may be given according to a predetermined rule, or may be given by the corresponding correct answer label. A loss function may be used to calculate the error. The loss function may be set appropriately according to, for example, the task, the format of the correct answer, and the like. Next, the control unit 11 calculates the gradient of the calculated error. The control unit 11 calculates the error of the parameter value of the estimation module 5 including each parameter of the estimator 55 and the encoder 505 of each feature weaving layer 500, in order from the output side, using the gradient of the calculated error by the error backpropagation method. Then, the control unit 11 updates the value of each parameter of the estimation module 5 based on each calculated error. The degree to which the value of each parameter is updated may be adjusted by a learning rate. The learning rate may be given by the operator's designation, or may be given as a setting value in the program.
[0102] The control unit 11 adjusts the value of each parameter by the series of update processes so that the sum of the calculated errors for each training graph 30 is reduced. For example, the control unit 11 may repeat the adjustment of the value of each parameter by the series of update processes until a predetermined condition is satisfied, such as a specified number of executions or the sum of the calculated errors being equal to or less than a threshold value. As a result of this machine learning process, the control unit 11 can generate a trained estimation module 5 that has acquired the ability to perform a desired estimation task according to the training graph 30 used (i.e., to estimate a solution to the task for a given graph). When the machine learning process is completed, the control unit 11 proceeds to the next step S103.
[0103] (Step S103) In step S103, the control unit 11 operates as the storage processing unit 113 and generates information about the trained estimation module 5 generated by machine learning as learning result data 125. Then, the control unit 11 stores the generated learning result data 125 in a predetermined storage area.
[0104] The predetermined storage area may be, for example, a RAM in the control unit 11, the storage unit 12, an external storage device, a storage medium, or a combination of these. The storage medium may be, for example, a CD, a DVD, or the like, and the control unit 11 may store the learning result data 125 in the storage medium via the drive 17. The external storage device may be, for example, a data server such as a NAS (Network Attached Storage). In this case, the control unit 11 may use the communication interface 13 to store the learning result data 125 in the data server via a network. The external storage device may also be, for example, an external storage device connected to the model generation device 1 via the external interface 14.
[0105] When the storage of the learning result data 125 is completed, the control unit 11 ends the processing procedure of the model generating device 1 according to this operation example.
[0106] The generated learning result data 125 may be provided to the estimation device 2 at any timing. For example, the control unit 11 may transfer the learning result data 125 to the estimation device 2 as part of the process of step S103 or separately from the process of step S103. The estimation device 2 may acquire the learning result data 125 by receiving this transfer. Also, for example, the estimation device 2 may acquire the learning result data 125 by accessing the model generation device 1 or a data server via a network using the communication interface 23. Also, for example, the estimation device 2 may acquire the learning result data 125 via the storage medium 92. Also, for example, the learning result data 125 may be incorporated in advance into the estimation device 2.
[0107] Furthermore, the control unit 11 may update or newly generate the learning result data 125 by periodically or irregularly repeating the processes of steps S101 to S103. During this repetition, at least a part of the training graph 30 used for machine learning may be appropriately changed, modified, added, deleted, or the like. Then, the control unit 11 may update the learning result data 125 held by the estimation device 2 by providing the updated or newly generated learning result data 125 to the estimation device 2 by any method.
[0108] [Estimation device] FIG. 9 is a flowchart showing an example of a processing procedure for performing an estimation task by the estimation device 2 according to this embodiment. The processing procedure of the estimation device 2 described below is an example of an estimation method. However, the processing procedure of the estimation device 2 described below is merely an example, and each step may be changed as much as possible. Furthermore, steps may be omitted, replaced, or added to the following processing procedure as appropriate depending on the embodiment.
[0109] (Step S201) In step S201, the control unit 21 operates as the acquisition unit 211 and acquires a target graph 221 to be a target of an estimation task. The configuration of the target graph 221 is the same as that of the training graph 30. The data format of the target graph 221 may be appropriately selected according to the embodiment. The target graph 221 may be generated from conditions inputted via the input device 25 or the like. Alternatively, the target graph 221 may be acquired from existing data. Alternatively, the target graph 221 may be acquired from image data. The control unit 21 may directly acquire the target graph 221. Alternatively, the control unit 21 may indirectly acquire the target graph 221 via, for example, a network, a sensor, another computer, a storage medium 92, or the like. After acquiring the target graph 221, the control unit 21 proceeds to the next step S202.
[0110] (Step S202) In step S202, the control unit 21 operates as the estimation unit 212 and sets the trained estimation module 5 with reference to the learning result data 125. Then, the control unit 21 uses the trained estimation module 5 to estimate a task solution for the acquired target graph 221. This estimation calculation process may be similar to the forward calculation process in the training process of the machine learning. The control unit 21 inputs the target graph 221 to the trained estimation module 5 and executes the forward calculation process of the trained estimation module 5. As a result of executing this calculation process, the control unit 21 can acquire the result of estimating the task solution for the target graph 221 from the estimator 55. After acquiring the estimation result, the control unit 21 proceeds to the next step S203.
[0111] (Step S203) In step S203, the control unit 21 operates as the output unit 213 and outputs information related to the estimation result.
[0112] The output destination and the contents of the information to be output may be appropriately determined according to the embodiment. For example, the control unit 21 may directly output the estimation result obtained in step S202 to the output device 26 or an output device of another computer. The control unit 21 may also execute some information processing based on the estimation result obtained. The control unit 21 may then output the result of the information processing as information related to the estimation result. The output of the result of the information processing may include controlling the operation of the controlled device according to the estimation result. The output destination may be, for example, the output device 26, an output device of another computer, the controlled device, etc.
[0113] When the output of information related to the estimation result is completed, the control unit 21 ends the processing procedure of the estimation device 2 according to this operation example. The control unit 21 may continuously and repeatedly execute the series of information processing from step S201 to step S203. The timing of repetition may be appropriately determined depending on the embodiment. In this way, the estimation device 2 may be configured to continuously and repeatedly execute the above estimation task.
[0114] [Features] As described above, the feature weaving network 50 of the estimation module 5 according to this embodiment is configured to refer to the features of the input graph for each branch, not for each vertex. In each feature weaving layer 500 of the feature weaving network 50, the encoder 505 reflects the features of other branches in the features of each branch based on each vertex.
[0115] FIG. 10 is a schematic diagram illustrating an example of how features related to other branches are reflected through two feature weaving layers 500 according to this embodiment. Before being input to the feature weaving layers 500, the first input tensor (Z A la ) indicates the feature quantity related to the branch flowing from the first vertex to the second vertex, with the first vertex as the base. B la) indicates the feature amounts related to the branches flowing out from the second vertex to the first vertex, with the second vertex as the base. The first connection tensor indicates the combined state of the feature amounts related to the branches flowing out to the second vertex and the branches flowing in from the second vertex, with the first vertex as the base.
[0116] When the first connection tensor is encoded in the encoder 505(1) of the first feature weaving layer 500, the features of the branches flowing out to the second vertex of interest and the branches flowing in from the second vertex of interest are woven in, and the relationships between the second vertices of interest (i.e., the features of the branches flowing out to the other second vertices and the branches flowing in to the other second vertices) are reflected in the weaving of the features. Thus, the first output tensor (Z A la+1 Each element of the second output tensor (Z B la+1 ) represents a feature derived for a target second vertex by incorporating the features of branches flowing into and out of the target first vertex while reflecting the relationships between the target second vertex and other first vertices.
[0117] Before passing through the second feature weaving layer 500, each output tensor (Z A la+1 , Z B la+1 ), and the input tensors are concatenated after rotating the axes. This generates concatenated tensors. The first concatenated tensor at this stage indicates a state in which the first vertex is used as a reference and the feature quantities related to the branches flowing out to the second vertex and the branches flowing in from the second vertex are combined, and the relationship between the first vertex and other second vertices as a reference and the relationship between the second vertex and other first vertices as a reference are reflected in each feature quantity. Thus, the first output tensor (Z A la+2) represents a feature derived by reflecting the relationship between the target first vertex and other second vertices and the relationship between each second vertex and other first vertices based on that second vertex, and further incorporating the feature of the branches flowing into and out of the target second vertex.
[0118] That is, the first output tensor (Z A la+2 ), and the feature amount for the branch between the first vertex of the target and the second vertex of the target reflects the feature amount for the branch in the range of size 2 from the first vertex of the target (i.e., the branch between the first vertex of the target and other second vertices, and the branch between each second vertex and other first vertex). As shown in FIG. 10, the same is true in the backpropagation process of the above machine learning. In the backpropagation process, the target element (shaded element) of the first output tensor obtained through two feature weaving layers 500 expands to a range of size 1 each time it goes back one feature weaving layer 500 (encoder 505), as shown by the shaded area in the figure.
[0119] Therefore, the more the feature weaving layers 500 are stacked, the more the feature quantities of the branches related to the vertices farther from each vertex can be reflected in the feature quantities of the branches related to each vertex. As described above, the range of other branches to be referenced expands according to the number of feature weaving layers 500. Therefore, it is preferable that the number of feature weaving layers 500 is equal to or larger than the size of the input graph. The size of the input graph can be calculated by selecting any two vertices and calculating the maximum number of branches passing through on the shortest path from one of the two selected vertices to the other. By having the number of feature weaving layers 500 equal to or larger than the size of the input graph, the feature quantities of all other branches (particularly, the feature quantities of the branches far away from the target branch in the graph) can be reflected in the feature quantities of each branch. This makes it possible to extract the features of each branch from the entire graph. As an example, when the input graph corresponds to an image, the features of each region can be extracted after reflecting the relationship between regions far away from each other.
[0120] In addition, the encoder 505 is configured to derive the relative feature quantity of each branch from the feature quantities of all branches input for the target vertex, rather than calculating the weighted sum of the features of adjacent branches for each vertex. This configuration of the encoder 505 makes it possible to prevent excessive smoothing even when the feature weaving layers 500 are stacked. Therefore, the layer of the feature weaving network 50 can be deepened according to the difficulty of the task, and as a result, the feature weaving network 50 can extract the features of the input graph appropriate for solving the task. In other words, it is expected that the feature weaving network 50 can improve the accuracy of feature extraction. As a result, the estimator 55 can be expected to perform highly accurate estimation based on the obtained features.
[0121] Therefore, according to this embodiment, even for a complex task, the hierarchy of the feature weaving network 50 can be deepened, and accordingly, the accuracy of estimating a solution to a task expressed by a graph can be improved for the estimation module 5. In the model generation device 1, by the processes of steps S101 and S102, it is expected to generate a trained estimation module 5 capable of estimating a solution to a task for an input graph with high accuracy. In the estimation device 2, by the processes of steps S201 to S203, it is expected to estimate a solution to a task for a target graph 221 with high accuracy by using such a trained estimation module 5.
[0122] § 4 Variations Although the embodiment of the present invention has been described in detail above, the above description is merely an example of the present invention in every respect. It goes without saying that various improvements or modifications can be made without departing from the scope of the present invention. For example, the following modifications are possible. In the following, the same reference numerals are used for the same components as in the above embodiment, and the description of the same points as in the above embodiment is omitted as appropriate. The following modifications can be combined as appropriate.
[0123] <4.1> The estimation system 100 according to the above embodiment may be applied to situations where various tasks that can be expressed by graphs are to be solved. The type of graph (training graph 30, target graph 221) may be appropriately selected depending on the task. The graph may be, for example, a directed bipartite graph, an undirected bipartite graph, a general directed graph, a general undirected graph, a vertex feature graph, a hypergraph, or the like. The task may be, for example, two-sided matching, one-sided matching, event estimation (including prediction), graph feature estimation, searching within a graph, vertex categorization (graph division), estimation of relationships between vertices, or the like. Specific examples that limit the application scenario are shown below.
[0124] (A) Situations where directed bipartite graphs are used 11 illustrates an example of an application scene of the estimation system 100A according to the first specific example. The first specific example is an example in which the above-described embodiment is applied to a scene in which a directed bipartite graph is used as a graph expressing a given condition (a target for solving a task). The estimation system 100A according to the first specific example includes a model generating device 1 and an estimation device 2A. The estimation device 2A is an example of the estimation device 2 described above.
[0125] In the first specific example, each training graph 30A and the target graph 221A (input graph) are directed bipartite graphs 70A. A plurality of vertices constituting the directed bipartite graph 70A are divided to belong to one of two subsets (71A, 72A) such that there are no branches between vertices in each subset (71A, 72A). The first set of the input graph corresponds to one of the two subsets (71A, 72A) of the directed bipartite graph 70A, and the second set of the input graph corresponds to the other of the two subsets (71A, 72A) of the directed bipartite graph 70A. Each training graph 30A and the target graph 221A are examples of each training graph 30 and the target graph 221 in the above embodiment. The number of vertices in the directed bipartite graph 70A and the presence or absence of directed branches between the vertices may be appropriately determined so as to appropriately represent the target for solving the task.
[0126] As long as the task can be expressed by a directed bipartite graph, the content of the task may not be particularly limited and may be appropriately selected according to the embodiment. In one example, the task may be a two-sided matching. Specifically, the task may be a matching task between two parties, in which an optimal pairing of targets belonging to each party is determined.
[0127] In this case, the two subsets (71A, 72A) of the directed bipartite graph 70A correspond to the two parties in the matching task. The vertices belonging to each subset (71A, 72A) of the directed bipartite graph 70A correspond to the targets belonging to each party. The branch flowing out from the first vertex to the second vertex corresponds to a directed branch whose starting point is the first vertex and whose ending point is the second vertex. The branch flowing out from the second vertex to the first vertex corresponds to a directed branch whose starting point is the second vertex and whose ending point is the first vertex.
[0128] The feature quantity on the branch flowing from the first vertex to the second vertex corresponds to the desirability from an object belonging to one of the two parties (first vertex) to an object belonging to the other party (second vertex). The feature quantity on the branch flowing from the second vertex to the first vertex corresponds to the desirability from an object belonging to the other of the two parties (second vertex) to an object belonging to one of the two parties (first vertex).
[0129] As long as the degree of desirability to be paired (matched) can be indicated, the format of the desirability may not be particularly limited and may be appropriately selected depending on the embodiment. The desirability may be expressed, for example, as a desired ranking, a score, etc. The score indicates the degree of desirability to be paired as a numerical value. The score may be given as appropriate. In one example, after each subject provides a list of the desired ranking, a score may be obtained by converting the desired ranking shown in each subject's list into a numerical value using a predetermined calculation, and the obtained score may be used as the desirability.
[0130] The matching target may be appropriately selected depending on the embodiment. The matching target (hereinafter, the matching target is also referred to as an "agent") may be, for example, a man / woman, a roommate, a job seeker / employer, an employee / placement, a patient / doctor, an energy supplier / recipient, etc. In addition, since the task is matching, the estimation device 2A may be read as a matching device.
[0131] The estimator 55 may be appropriately configured to estimate a matching result from the feature information. As an example, the estimator 55 may include one convolutional layer. Thereby, the estimator 55 generates a first output tensor (Z A L ) is input to the convolution layer, and the convolution layer is processed to obtain the matching estimate (q A ∈R N × M ) to the first output tensor (Z A L ) and the estimator 55 may be configured to transform the second output tensor (Z B L ) is input to the convolution layer, and the convolution layer is processed to obtain the matching estimate (q B ∈R M × N ) to the second output tensor (Z B L ) may be converted into the estimated result (q A , q B ) to calculate an estimated matching result (q) (Equation 1 below).
[0132]
number
[0133] The correct answer in the machine learning may be appropriately given so as to obtain a matching result that satisfies a desired criterion. In one example, the loss function defined below may be used in the machine learning of the estimation module 5. That is, first, the estimation result (q) may be preprocessed by the following formulas 2 to 4 using a softmax function (softmax) for each party.
number
number
number
number
number
number
[0134] g(a i ;b j , q e ) is an arbitrary object b belonging to the other party. c For (c ≠ j), a i But, b c than b j (i.e., b c rather than the degree of desire for j If g(b is more desirable), it will output a value greater than 0. j ;a i , q e ) is an arbitrary object a belonging to one party. c For (c ≠ i), b j But, a c than a i (i.e., a c rather than the degree of desire for i g(a) is more desirable than g(a). i ;b j , q e ) and g(b j ;a i , q e ) both output values greater than 0,i , b j} is a blocking pair. Loss function λ s According to the method, it is possible to suppress matching that generates such blocking pairs.
[0135] Moreover, each element of the estimation result (q) may be configured to indicate the probability of matching between corresponding objects. In this case, the estimation result (q) is preferably a symmetric double probability matrix. The loss function λ for converging to such an estimation result is c may be defined by the following Equation 8-Equation 9:
number
number
[0136] Furthermore, in order to obtain stable matching with respect to a predetermined criterion such as satisfaction and fairness, a loss function may be added to converge the estimation result so as to satisfy the predetermined criterion. In one example, three loss functions (λ f , λ e , λ b ) may be added.
[0137]
number
number
number
number
number
[0138]
number
[0139] In the first specific example, during machine learning by the model generating device 1 and during estimation processing by the estimation device 2A, a directed bipartite graph 70A is treated as an input graph. The first feature weaving layer 5001 of the feature weaving network 50 is configured to receive a first input tensor 601A and a second input tensor 602A from the directed bipartite graph 70A. The first input tensor 601A indicates a feature amount related to a directed edge extending from a vertex belonging to one of two subsets (71A, 72A) to a vertex belonging to the other subset. The second input tensor 602A indicates a feature amount extending from a vertex belonging to the other subset to a vertex belonging to the one of the subsets. When the feature amount is one-dimensional, each input tensor (601A, 602A) may be expressed by a matrix (N×M, M×N). Except for these points, the configuration of the first specific example may be the same as that of the above embodiment.
[0140] (Model Generator) In the first specific example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for a directed bipartite graph 70A, using a processing procedure similar to that of the above embodiment.
[0141] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30A. Each training graph 30A is composed of a directed bipartite graph 70A. The settings of vertices and branches in each training graph 30A may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30A. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the directed bipartite graph 70A. Note that, when the estimation module 5 is made to acquire the ability to perform the above matching task as a task, the loss function λ may be used in the machine learning. In the machine learning, the control unit 11 may calculate an error by substituting the estimation result into the loss function λ, and adjust the parameter value of the estimation module 5 in a direction to reduce the value of the loss function λ by backpropagating the gradient of the calculated error. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores in a predetermined storage area the generated learning result data 125. The learning result data 125 may be provided to the estimation device 2A at any timing.
[0142] (estimation device) The hardware configuration and software configuration of the estimating device 2A may be similar to those of the estimating device 2 according to the above embodiment. In the first specific example, the estimating device 2A can estimate a solution to a task for a directed bipartite graph 70A by a processing procedure similar to that of the above estimating device 2.
[0143] That is, in step S201, the control unit of the estimation device 2A operates as an acquisition unit and acquires the target graph 221A. The target graph 221A is composed of a directed bipartite graph 70A. The setting of vertices and edges in the target graph 221A may be appropriately given so as to appropriately express the conditions of the estimation target. In step S202, the control unit operates as an estimation unit and estimates a solution of the task for the acquired target graph 221A using the trained estimation module 5. Specifically, the control unit inputs the target graph 221A to the trained estimation module 5 and executes the forward calculation process of the trained estimation module 5. As a result of executing this calculation process, the control unit can acquire the result of estimating the solution of the task for the target graph 221A from the estimator 55. If the trained estimation module 5 has acquired the ability to perform the above matching task, the control unit can obtain the estimation result of the matching. In this case, the control unit performs the calculations of the above equations 1 to 4 in the processing of the estimator 55, and then calculates the obtained q e ij An argmax (argument of the maximum) operation may be performed on x to obtain an estimate of the match.
[0144] In step S203, the control unit operates as an output unit and outputs information related to the estimation result. As an example, when the control unit obtains the estimation result of the above matching, the control unit may output the obtained estimation result to the output device as it is. As a result, the estimation device 2A may prompt the operator to decide whether or not to adopt the estimation result. As another example, when the estimation result of the above matching is obtained, the control unit may establish (confirm) at least a part of the matching of the estimation result. In this case, a matching target (vertex) may be added at any timing, and the estimation device 2A may repeatedly execute matching between free targets (vertices). A target (vertex) for which a matching is established by performing a matching task may be excluded from targets of the matching task from the next time onwards. In addition, the established matching may be dissolved at any timing, and a target (vertex) for which the matching is dissolved may be added to targets of the matching task from then on. As a result, the estimation device 2A may be configured to perform matching online in real time.
[0145] (Features) According to the first specific example, in a situation where a given task (for example, the above-mentioned matching task) is expressed by a directed bipartite graph 70A, it is possible to improve the estimation accuracy of the estimation module 5. In the model generation device 1, it is expected to generate a trained estimation module 5 capable of estimating with high accuracy a solution to a task expressed by a directed bipartite graph 70A. In the estimation device 2A, by using such a trained estimation module 5, it is expected to estimate with high accuracy a solution to a task expressed by a directed bipartite graph 70A.
[0146] (B) Situations where undirected bipartite graphs are used 12 illustrates an example of an application scene of an estimation system 100B according to a second specific example. The second specific example is an example in which the above-described embodiment is applied to a scene in which an undirected bipartite graph is used as a graph expressing a given condition (a target for solving a task). The estimation system 100B according to the second specific example includes a model generating device 1 and an estimation device 2B. The estimation device 2B is an example of the estimation device 2 described above.
[0147] In the second specific example, each training graph 30B and object graph 221B (input graph) are undirected bipartite graphs 70B. A plurality of vertices constituting the undirected bipartite graph 70B are divided to belong to one of two subsets (71B, 72B) such that there are no branches between vertices in each subset (71B, 72B). The first set of the input graph corresponds to one of the two subsets (71B, 72B) of the undirected bipartite graph 70B, and the second set of the input graph corresponds to the other of the two subsets (71B, 72B) of the undirected bipartite graph 70B. Each training graph 30B and object graph 221B are examples of each training graph 30 and object graph 221 in the above embodiment. The number of vertices in the undirected bipartite graph 70B and the presence or absence of branches between the vertices may be appropriately determined so as to appropriately represent the target for solving the task.
[0148] As long as the task can be expressed by an undirected bipartite graph, the content of the task may not be particularly limited and may be appropriately selected according to the embodiment. In one example, the task may be one-sided matching. Specifically, the task may be a matching task between two parties, and may be to determine an optimal pairing of objects belonging to each party. In this case, two subsets (71B, 72B) of the undirected bipartite graph 70B correspond to the two parties in the matching task. The vertices belonging to each subset (71B, 72B) of the undirected bipartite graph 70B correspond to objects belonging to each party. The feature value related to the branch flowing from the first vertex to the second vertex and the feature value related to the branch flowing from the second vertex to the first vertex both correspond to the cost or reward of pairing an object belonging to one of the two parties and an object belonging to the other party.
[0149] The matching target may be appropriately selected depending on the embodiment. The matching target may be, for example, a transport robot / luggage, a room / guest (automatic check-in at an accommodation facility), a seat / guest (for example, seat allocation in public transportation, entertainment facilities, etc.), etc. In another example, matching may be performed to track multiple objects between multiple images (for example, consecutive frames in a video). In this case, a first image may correspond to one party and a second image may correspond to the other party, and the matching target (vertex) may be an object (or object region) detected in each image. By matching the same object between each image, the object can be tracked.
[0150] The cost indicates the degree to which matching is hindered. The reward indicates the degree to which matching is encouraged. As one example, in a scene where a transport robot and luggage are matched, the distance from a target transport robot to a target luggage may be set as the cost. As another example, in a scene where a seat and a customer are matched, the preference of the target customer (e.g., a preferred position such as a window seat or an aisle seat) may be set as the reward for the target seat. The numerical expression of the cost or reward may be appropriately determined depending on the embodiment. In addition, since the task is matching, the estimation device 2B may be read as a matching device.
[0151] In another example, the feature map obtained in the convolutional neural network can be regarded as a third-order tensor of height x width x feature amount. Accordingly, the feature map can be regarded as an undirected bipartite graph having height h vertices belonging to one subset and width w vertices belonging to the other subset. Therefore, the undirected bipartite graph 70B may be configured by such a feature map, and the task may be a predetermined inference for the image. The inference for the image may be, for example, dividing an area, detecting an object, or the like. These predetermined inferences may be performed in various situations, such as, for example, a scene in which an object appearing in an image captured by a camera on a vehicle is extracted, or a scene in which a person appearing in an image captured by a camera installed on a street is detected. The structure of the convolutional neural network may not be particularly limited, and may be appropriately determined according to the embodiment. The feature map may be obtained as an output of the convolutional neural network, or may be obtained as a result of calculation during the convolutional neural network.
[0152] The estimator 55 may be appropriately configured to derive an estimation result of a solution of a task for the undirected bipartite graph 70B, such as the above matching or a predetermined inference for an image, from the feature information. A correct answer in machine learning may be given appropriately according to the content of the task for the undirected bipartite graph 70B. When the task is the above matching task, as in the first specific example, a correct answer in machine learning may be given appropriately so that a matching result that satisfies a desired standard is obtained. When the task is a predetermined inference for the image, for example, a correct answer label indicating a correct answer of an inference, such as a true value of region division or a true value of an object detection result, may be associated with each training graph 30B. In machine learning, this correct answer label may be used to calculate an error.
[0153] In the second specific example, during machine learning by the model generating device 1 and during estimation processing by the estimation device 2B, an undirected bipartite graph 70B is treated as an input graph. The first feature weaving layer 5001 of the feature weaving network 50 is configured to receive a first input tensor 601B and a second input tensor 602B from this undirected bipartite graph 70B. In the undirected bipartite graph 70B, since each branch has no directionality, the feature amount related to the branch flowing from the first vertex to the second vertex and the feature amount related to the branch flowing from the second vertex to the first vertex are the same. Therefore, the second input tensor 602B from the input graph received by the first feature weaving layer 5001 may be generated by transposing the first axis and the second axis of the first input tensor 601B from the input graph. When the feature amount is one-dimensional, each input tensor (601B, 602B) may be expressed by a matrix (N×M, M×N). Except for these points, the configuration of the second specific example may be similar to that of the above embodiment.
[0154] (Model Generator) In the second specific example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for an undirected bipartite graph 70B, using a processing procedure similar to that of the above embodiment.
[0155] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30B. Each training graph 30B is composed of an undirected bipartite graph 70B. The setting of vertices and branches in each training graph 30B may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30B. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the undirected bipartite graph 70B. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be provided to the estimation device 2B at any timing.
[0156] (estimation device) The hardware configuration and the software configuration of the estimating device 2B may be similar to those of the estimating device 2 according to the above embodiment. In the second specific example, the estimating device 2B can estimate a solution to a task for an undirected bipartite graph 70B by a processing procedure similar to that of the above estimating device 2.
[0157] That is, in step S201, the control unit of the estimation device 2B operates as an acquisition unit and acquires the object graph 221B. The object graph 221B is composed of an undirected bipartite graph 70B. The settings of vertices and edges in the object graph 221B may be appropriately given so as to appropriately express the conditions of the estimation target. When the trained estimation module 5 has acquired the ability to perform a predetermined inference on an image, the control unit may acquire the object graph 221B (feature map) by executing a convolutional neural network operation as a preprocessing.
[0158] In step S202, the control unit operates as an estimation unit and estimates a task solution for the acquired object graph 221B using the trained estimation module 5. Specifically, the control unit inputs the object graph 221B to the trained estimation module 5 and executes a forward calculation process of the trained estimation module 5. As a result of executing this calculation process, the control unit can acquire a result of estimating the task solution for the object graph 221B from the estimator 55. If the trained estimation module 5 has acquired the ability to perform the above matching task, the control unit can obtain an estimated result of matching. If the trained estimation module 5 has acquired the ability to perform a predetermined inference on an image, the control unit can obtain a predetermined inference result on the image from which the object graph 221B is acquired.
[0159] In step S203, the control unit operates as an output unit and outputs information on the estimation result. As an example, the control unit may output the obtained estimation result to the output device as it is. As another example, when the above-mentioned matching estimation result is obtained, the control unit may establish at least a part of the matching of the estimation result, similar to the first specific example. In this case, similar to the first specific example, the estimation device 2B may be configured to perform matching online in real time. For example, in the case of the above-mentioned automatic check-in / seat allocation, the estimation device 2B may add corresponding vertices to each subset as a guest arrives and a room / seat is released, and allocate an empty room / seat by matching according to the guest's request. Then, the estimation device 2B may delete each vertex corresponding to the assigned guest and room / seat from each subset. As yet another example, in the case of the above-mentioned object tracking, the control unit may track one or more objects in each image based on the estimation result. In this case, the estimation device 2B may be configured to add a target object to matching targets when the target object is detected in an image, and to remove the target object from matching targets when the target object is no longer detected in the image (for example, when the target object moves out of the shooting range or is hidden in the shadow of an obstruction, etc.). In this way, the estimation device 2B may be configured to perform object tracking in real time.
[0160] (Features) According to the second concrete example, in a situation where a given task is expressed by an undirected bipartite graph 70B, it is possible to improve the estimation accuracy of the estimation module 5. The model generation device 1 is expected to generate a trained estimation module 5 capable of estimating with high accuracy a solution to a task expressed by an undirected bipartite graph 70B. By using such a trained estimation module 5, the estimation device 2B is expected to estimate with high accuracy a solution to a task expressed by an undirected bipartite graph 70B.
[0161] (C) When using a general directed graph 13 illustrates an example of an application scene of an estimation system 100C according to a third specific example. The third specific example is an example in which the above-described embodiment is applied to a scene in which a general directed graph (which may simply be referred to as a directed graph) is used as a graph expressing a given condition (a target for solving a task). The estimation system 100C according to the third specific example includes a model generating device 1 and an estimation device 2C. The estimation device 2C is an example of the estimation device 2 described above.
[0162] In the third specific example, each training graph 30C and the object graph 221C (input graph) are general directed graphs 70C. Circles, squares, and stars in the figure indicate vertices. The first vertex belonging to the first set of the input graph corresponds to the start point of the directed edge constituting the general directed graph 70C, and the second vertex belonging to the second set corresponds to the end point of the directed edge. Therefore, as shown in FIG. 13, the number of vertices in the first set and the second set is the same, and the vertices belonging to each set are common (i.e., M=N). In addition, the edge flowing from the first vertex to the second vertex corresponds to the directed edge flowing from the start point to the end point, and the edge flowing from the second vertex to the first vertex corresponds to the directed edge flowing from the start point to the end point. Each training graph 30C and the object graph 221C are examples of each training graph 30 and the object graph 221 in the above embodiment. The number of vertices in general directed graph 70C and the presence or absence of directed edges between vertices may be determined appropriately so as to appropriately represent the target of solving a task.
[0163] As long as the task can be expressed by a general digraph, the content of the task may not be particularly limited and may be appropriately selected according to the embodiment. In one example, the general digraph 70C may be configured to represent a network. The network may correspond to a transportation network such as a road network, a railroad network, a sea route network, or an air route network. Alternatively, the network may correspond to a communication network. Correspondingly, the task may be to estimate (including predict) an event occurring on the network. Estimating an event may be, for example, predicting the time required for travel between two vertices, predicting the occurrence of an abnormality, searching for an optimal route, etc.
[0164] In this case, the feature amount related to the branch flowing from the first vertex to the second vertex and the feature amount related to the branch flowing from the second vertex to the first vertex may correspond to the attributes of the connection between the vertices constituting the network. When the network corresponds to a transportation network, each vertex may correspond to a transportation hub (e.g., an intersection, a major point, a station, a port, an airport, etc.), and the attributes of the connection may be, for example, a type of road (e.g., a type of road such as a general road or an expressway), a traffic capacity of the road, a time required for travel, a distance, etc. When the network corresponds to a communication network, each vertex may correspond to a communication hub (e.g., a server, a router, a switch, etc.), and the attributes of the connection may be, for example, a type of communication, a communication capacity, a communication speed, etc. The feature amount may be composed of one or more attribute values. In addition, in correspondence with predicting an event, the estimation device 2C may be read as a prediction device.
[0165] In another example, the task may be to divide a general digraph (i.e., to classify vertices constituting the general digraph). As a specific example of the task, the general digraph 70 may be a weighted graph indicating the similarity of motion obtained from the result of matching feature points between two consecutive images. In this case, the graph division may be performed to detect a dense subgraph to determine the accuracy of the matching. Alternatively, the general digraph 70 may be a graph indicating feature points in an image. In this case, the graph division may be performed to classify the feature points by object. In each case, the feature amount may be appropriately set to indicate the relationship between the feature points.
[0166] In machine learning, the ability to divide a graph may be trained so as to achieve a purpose such as determining the accuracy of the above-mentioned correspondence, classifying objects, etc. Furthermore, a predetermined calculation process (e.g., some approximation algorithm) may be applied to the subgraph obtained by the division. In this case, in machine learning, the ability to divide a graph may be trained so as to be optimal for the predetermined calculation (e.g., so as to increase the approximation accuracy of the approximation algorithm).
[0167] In yet another example, the task may be to infer features that appear in the general directed graph. As a specific example of the task, the general directed graph 70C may be a graph that represents a profile of an object (e.g., a person, an object, etc.) such as a knowledge graph. In this case, the task may be to infer features of the object derived from the profile represented in the graph.
[0168] The estimator 55 may be appropriately configured to derive an estimation result of a solution of a task for the general digraph 70C, such as the above-mentioned event estimation, graph partitioning, and feature estimation, from the feature information. As an example, the output of the estimator 55 may be configured by a one-hot vector for each vertex indicating the estimation result. The correct answer in machine learning may be appropriately given according to the content of the task for the general digraph 70C. For example, a correct answer label indicating a correct answer of an estimation such as a true value of an event, a true value of partitioning, or a true value of a feature may be associated with each training graph 30C. In machine learning, this correct answer label may be used to calculate an error. In addition, the correct answer in machine learning may be appropriately given so as to obtain an estimation result that satisfies a desired criterion, such as maximizing traffic volume, minimizing the travel time of each moving object, or maximizing the communication volume of the entire network.
[0169] In the third specific example, during machine learning by the model generating device 1 and during estimation processing by the estimation device 2C, a general directed graph 70C is treated as an input graph. The first feature weaving layer 5001 of the feature weaving network 50 is configured to receive a first input tensor 601C and a second input tensor 602C from this general directed graph 70C. Here, as described above, the first vertex belonging to the first set of the input graph corresponds to the start point of the directed branch, the second vertex belonging to the second set corresponds to the end point of the directed branch, the number of vertices in the first set and the second set is the same, and the vertices belonging to each set are common. Therefore, the second input tensor 602C from the input graph received by the first feature weaving layer 5001 may be generated by transposing the first axis and the second axis of the first input tensor 601C from the input graph. When the feature amount is one-dimensional, each input tensor (601C, 602C) may be expressed as a matrix (N×N). Except for these points, the configuration of the third specific example may be similar to that of the above embodiment.
[0170] (Model Generator) In the third specific example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the general directed graph 70C, using a processing procedure similar to that of the above embodiment.
[0171] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30C. Each training graph 30C is composed of a general digraph 70C. The settings of vertices and directed edges in each training graph 30C may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30C. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the general digraph 70C. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be provided to the estimation device 2C at any timing.
[0172] (estimation device) The hardware configuration and software configuration of the estimating device 2C may be similar to those of the estimating device 2 according to the above embodiment. In the third specific example, the estimating device 2C can estimate a solution to a task for the general directed graph 70C by a processing procedure similar to that of the above estimating device 2.
[0173] That is, in step S201, the control unit of the estimation device 2C operates as an acquisition unit and acquires a target graph 221C. The target graph 221C is configured by a general directed graph 70C. The settings of vertices and directed edges in the target graph 221C may be appropriately given so as to appropriately express the conditions of the estimation target.
[0174] In step S202, the control unit operates as an estimator and estimates a task solution for the acquired object graph 221C using the trained estimation module 5. Specifically, the control unit inputs the object graph 221C to the trained estimation module 5 and executes forward arithmetic processing of the trained estimation module 5. As a result of executing this arithmetic processing, the control unit can acquire from the estimator 55 a result of estimating the task solution for the object graph 221C.
[0175] In step S203, the control unit operates as an output unit and outputs information related to the estimation result. As one example, the control unit may output the obtained estimation result directly to an output device. As another example, when an estimation result of an event occurring on the network is obtained, the control unit may output an alarm notifying the possibility of an abnormality occurring when the possibility is equal to or greater than a threshold. As yet another example, when an estimation result of an optimal route in a communication network is obtained, the control unit may transmit a packet according to the estimated optimal route.
[0176] (Features) According to the third concrete example, in a situation where a given task is expressed by a general digraph 70C, it is possible to improve the estimation accuracy of the estimation module 5. In the model generation device 1, it is expected to generate a trained estimation module 5 capable of estimating a solution to a task expressed by a general digraph 70C with high accuracy. In the estimation device 2C, by using such a trained estimation module 5, it is expected to estimate a solution to a task expressed by a general digraph 70C with high accuracy.
[0177] (D) When using a general undirected graph 14 illustrates an example of an application scene of an estimation system 100D according to a fourth specific example. The fourth specific example is an example in which the above-described embodiment is applied to a scene in which a general undirected graph (which may simply be referred to as an undirected graph) is used as a graph expressing a given condition (a target for solving a task). The estimation system 100D according to the fourth specific example includes a model generating device 1 and an estimation device 2D. The estimation device 2D is an example of the estimation device 2 described above.
[0178] In the fourth specific example, each training graph 30D and object graph 221D (input graph) are general undirected graphs 70D. The first vertex belonging to the first set and the second vertex belonging to the second set of the input graph correspond to each vertex constituting the general undirected graph 70D. As in the third specific example, the number of vertices in the first set and the second set is the same, and the vertices belonging to each set are common (i.e., M=N). The branch flowing from the first vertex to the second vertex and the branch flowing from the second vertex to the first vertex correspond to the undirected branch between the corresponding two vertices. Each training graph 30D and object graph 221D are examples of each training graph 30 and object graph 221 in the above embodiment. The number of vertices in the general undirected graph 70D and the presence or absence of a branch between the vertices may be appropriately determined so as to appropriately express the target for solving the task.
[0179] As long as the task can be expressed by a general undirected graph, the content of the task may not be particularly limited and may be appropriately selected according to the embodiment. The task in the fourth specific example may be the same as that in the third specific example, except that the edges do not have a direction. That is, in one example, the general undirected graph 70D may be configured to represent a network. In response to this, the task may be to estimate (including predict) an event occurring on the network. In this case, both the feature amount related to the edge flowing from the first vertex to the second vertex and the feature amount related to the edge flowing from the second vertex to the first vertex may correspond to the attribute of the connection between each vertex constituting the network. In addition, in response to predicting an event, the estimation device 2D may be read as a prediction device. In another example, the task may be to divide the general undirected graph. In yet another example, the task may be to estimate a feature appearing in the general undirected graph.
[0180] The estimator 55 may be appropriately configured to derive an estimation result of a solution of a task for the general undirected graph 70D, such as the above-mentioned event estimation, graph partitioning, and feature estimation, from the feature information. In one example, the output of the estimator 55 may be configured by a one-hot vector for each vertex indicating the estimation result. The correct answer in machine learning may be appropriately given according to the content of the task for the general undirected graph 70D. For example, a correct answer label indicating the correct answer of the estimation, such as the true value of the event, the true value of the partition, and the true value of the feature, may be associated with each training graph 30D. In machine learning, this correct answer label may be used to calculate the error. In addition, the correct answer in machine learning may be appropriately given so that an estimation result that meets a desired standard is obtained.
[0181] In the fourth specific example, a general undirected graph 70D is treated as an input graph during machine learning by the model generating device 1 and during estimation processing by the estimation device 2D. The first feature weaving layer 5001 of the feature weaving network 50 is configured to receive a first input tensor 601D and a second input tensor 602D from the general undirected graph 70D. When the feature amount is one-dimensional, each input tensor (601D, 602D) may be expressed as a matrix (N×N).
[0182] FIG. 15 illustrates a schematic example of the computation process of each feature weaving layer 500 in the fourth specific example. In the fourth specific example, the vertices belonging to the first set and the vertices belonging to the second set are the same, so similar to the third specific example, the second input tensor 602D from the input graph received by the first feature weaving layer 5001 can be generated by transposing the first and second axes of the first input tensor 601D from the input graph. However, in the general undirected graph 70D, the edges do not have directionality, so the second input tensor 602D generated by transposition is the same as the first input tensor 601D. Therefore, the first input tensor (Z A l ) and the second input tensor (Z B l ) are identical to each other, and the first output tensor (Z A l+1 ) and the second output tensor (Z B l+1 ) are also identical to each other.
[0183] Therefore, as shown in FIG. 15, in each feature weaving layer 500, the process of generating the first output tensor and the process of generating the second output tensor may be commonly executed. That is, the series of processes of generating the first output tensor from the first input tensor and the series of processes of generating the second output tensor from the second input tensor may be configured as a single process, and one of them may be omitted. In other words, the series of processes of generating the first output tensor and the series of processes of generating the second output tensor may be treated as both processes being executed by executing one of the processes. FIG. 15 illustrates a situation in which the series of processes of generating the second input tensor is omitted. Except for these points, the configuration of the fourth specific example may be the same as that of the above embodiment.
[0184] (Model Generator) Returning to Figure 14, in the fourth specific example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the general undirected graph 70D by a processing procedure similar to that of the above embodiment.
[0185] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30D. Each training graph 30D is composed of a general undirected graph 70D. The setting of vertices and branches in each training graph 30D may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30D. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the general undirected graph 70D. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be provided to the estimation device 2D at any timing.
[0186] (estimation device) The hardware configuration and the software configuration of the estimating device 2D may be similar to those of the estimating device 2 according to the above embodiment. In the fourth specific example, the estimating device 2D can estimate a solution to a task for a general undirected graph 70D by a processing procedure similar to that of the estimating device 2 described above.
[0187] That is, in step S201, the control unit of the estimation device 2D operates as an acquisition unit and acquires a target graph 221D. The target graph 221D is configured by a general undirected graph 70D. The settings of vertices and edges in the target graph 221D may be appropriately given so as to appropriately express the conditions of the estimation target.
[0188] In step S202, the control unit operates as an estimator and estimates a task solution for the acquired object graph 221D using the trained estimation module 5. Specifically, the control unit inputs the object graph 221D to the trained estimation module 5 and executes forward arithmetic processing of the trained estimation module 5. As a result of executing this arithmetic processing, the control unit can acquire from the estimator 55 a result of estimating a task solution for the object graph 221D.
[0189] In step S203, the control unit operates as an output unit and outputs information related to the estimation result. As in the third specific example, as one example, the control unit may output the obtained estimation result directly to an output device. As another example, when an estimation result of an event occurring on the network is obtained, the control unit may output an alarm notifying the fact when the possibility of an abnormality occurring is equal to or greater than a threshold. As yet another example, when an estimation result of an optimal route in a communication network is obtained, the control unit may transmit a packet according to the estimated optimal route.
[0190] (Features) According to the fourth concrete example, in a situation where a given task is expressed by a general undirected graph 70D, it is possible to improve the estimation accuracy of the estimation module 5. In the model generation device 1, it is expected to generate a trained estimation module 5 capable of estimating a solution to a task expressed by a general undirected graph 70D with high accuracy. In the estimation device 2D, by using such a trained estimation module 5, it is expected to estimate a solution to a task expressed by a general undirected graph 70D with high accuracy.
[0191] (E) When employing a vertex feature graph given the relationships between vertices 16 illustrates an example of an application scene of the estimation system 100E according to the 5-1 specific example. The 5-1 specific example is an example in which a vertex feature graph is adopted as a graph expressing a given condition (a target for solving a task), and the above-mentioned embodiment is applied to a scene in which the relationship between the vertices constituting the adopted vertex feature graph is known. The estimation system 100E according to the 5-1 specific example includes a model generating device 1 and an estimation device 2E. The estimation device 2E is an example of the estimation device 2.
[0192] In the 5-1 specific example, each training graph 30E and the target graph 221E (input graph) is a vertex feature graph 70E composed of multiple vertices, with each vertex having an attribute (i.e., a vertex feature). The type and number of attributes possessed by each vertex may be appropriately determined according to the embodiment. Each vertex may have one or more types of attribute values. Weights are an example of an attribute, and a vertex-weighted graph is an example of a vertex feature graph 70E.
[0193] The first vertex belonging to the first set and the second vertex belonging to the second set of the input graph correspond to each vertex constituting the vertex feature graph 70E. Therefore, the number of vertices in the first set and the second set is the same, and the vertices belonging to each set are common. The feature value related to the branch flowing from the first vertex to the second vertex corresponds to the attribute of the vertex in the vertex feature graph 70E corresponding to the first vertex, and the feature value related to the branch flowing from the second vertex to the first vertex corresponds to the attribute of the vertex in the vertex feature graph 70E corresponding to the second vertex. That is, in the 5-1 concrete example, the attribute value of each vertex is regarded as the feature value of each branch, so that the vertex feature graph 70E is treated as a branch feature graph in which each branch has an attribute, similar to the first concrete example to the fourth concrete example. A branch-weighted graph in which a weight is given to each branch is an example of a branch feature graph. The feature value may be composed of one or more types of attribute values.
[0194] Each training graph 30E and the target graph 221E are examples of each training graph 30 and the target graph 221 in the above embodiment. The number of vertices, attributes, and relationship between edges between vertices in the vertex feature graph 70E may be appropriately determined so as to appropriately express the target for solving the task. In the following, for convenience of explanation, it is assumed that the number of vertices is N.
[0195] As long as the task can be expressed by the vertex feature graph, the content of the task may not be particularly limited and may be appropriately selected according to the embodiment. In one example, the task may be to estimate an event derived from the vertex feature graph 70E.
[0196] As a specific example of a task, the vertex feature graph 70E may be configured to show a chemical formula or a physical crystal structure showing a composition. In this case, each vertex may correspond to an element, and the attribute of each vertex may correspond to an attribute of the element, such as, for example, the type of element. The relationship between the vertices may correspond to a connection relationship between the elements. Estimating an event may be estimating a feature related to the composition, such as the properties of the composition. In addition, estimating an event may be estimating a procedure for producing a substance of the composition. For example, a natural language, a symbol string, or the like may be used to express the procedure. When a symbol string is used, a correspondence between the symbol string and the procedure may be predetermined by a rule. Furthermore, the symbol string may include an instruction for controlling the operation of a production device configured to produce a substance of the composition. The production device may be, for example, a computer, a controller, a robotic device, or the like. The instruction may be, for example, a control command, a computer program, or the like.
[0197] As another example of the task, the vertex feature graph 70E may be configured to indicate features of each of a number of objects (e.g., people, things, etc.). In this case, each vertex may correspond to each object, and the attributes of each vertex may correspond to the features of each object. The features of each object may be extracted from the graph representing the profile according to the third or fourth example. Inferring an event may be optimally matching objects together. The objects to be matched may be, for example, a customer / advertisement, a patient / doctor, a person / job, etc.
[0198] As yet another example of the task, the vertex feature graph 70E may be configured to represent an electric power grid. In this case, each vertex may correspond to an electric power production node or consumption node. The attributes of the vertex may be configured to represent, for example, the production amount, the consumption amount, etc. Each branch may correspond to an electric power line. Inferring the event may be estimating an optimal combination of the production nodes and the consumption nodes.
[0199] The estimator 55 may be appropriately configured to derive an estimation result of a solution of a task for the vertex feature graph 70E, such as the event estimation, from the feature information. A correct answer in machine learning may be given appropriately according to the content of the task for the vertex feature graph 70E. For example, a correct answer label indicating a correct answer of an estimation of a true value of an event, etc. may be associated with each training graph 30E. In machine learning, this correct answer label may be used to calculate an error. In addition, a correct answer in machine learning may be given appropriately so as to obtain an estimation result that meets a desired standard.
[0200] In the 5-1 specific example, a vertex feature graph 70E is handled as an input graph during machine learning by the model generating device 1 and during estimation processing by the estimation device 2E. The first feature weaving layer 5001 of the feature weaving network 50 is configured to receive a first input tensor 601E and a second input tensor 602E from this vertex feature graph 70E. A tensor (∈R N × 1 × D0By duplicating each element of (601E, 602E) N times along the second axis ("repeat × N" in FIG. 16), each input tensor (601E, 602E) can be obtained. However, in this state, the relationship between the vertices is not reflected in each input tensor (601E, 602E).
[0201] Therefore, each element of the third axis of each input tensor (601E, 602E) from the input graph received by the first feature weaving layer 5001 contains information 75E (E, E) indicating the relationship between corresponding vertices of the vertex feature graph 70E. T ) may be concatenated or multiplied. The relationship between vertices may be defined by attributes of the branches, such as the presence or absence of a branch, the type of branch, and feature amounts related to the branch. The format of expression of the relationship between vertices is not particularly limited and may be determined appropriately depending on the embodiment. In one example, when indicating the presence or absence of a branch, the relationship between vertices may be expressed by two values of {0, 1}. In another example, when reflecting attributes such as the type of branch, the relationship between vertices may be expressed by continuous values.
[0202] By arranging each vertex on the first axis and the second axis, and arranging numerical information indicating the relationship between each vertex (attributes of the branches between each vertex) on the third axis, information 75E to be applied to the first input tensor 601E is stored in a tensor format (E∈R N × N × DE ) where DE indicates the number of dimensions of the numerical information indicating the relationship between vertices. By transposing the first and second axes of this information 75E(E), the information 75E(E) to be applied to the second input tensor 602E can be generated. T In one example, the DE may be one-dimensional, and the information 75E indicating the relationships between the vertices may be expressed as a matrix.
[0203] The linking may be a combination (cat operation) of the information 75E indicating the relationship between the vertices to the third axis of each input tensor (601E, 602E). In addition, the information 75E indicating the relationship between the vertices may be combined with another dimension (for example, a new fourth axis) of each input tensor (601E, 602E). In addition, when the relationship between the vertices is defined only by the presence or absence of a branch, the relationship between the vertices may be reflected in each input tensor (601E, 602E) by omitting a part where there is no relationship between the vertices (where no branch exists). Except for these points, the configuration of the 5-1 specific example may be the same as that of the above embodiment.
[0204] (Model Generator) In the 5-1 specific example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the vertex feature graph 70E, by a processing procedure similar to that of the above embodiment.
[0205] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30E. Each training graph 30E is composed of a vertex feature graph 70E. The settings of vertices, attributes, and edges in each training graph 30E may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30E. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the vertex feature graph 70E. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be provided to the estimation device 2E at any timing.
[0206] (estimation device) The hardware configuration and the software configuration of the estimation device 2E may be similar to those of the estimation device 2 according to the above embodiment. In the 5-1 specific example, the estimation device 2E can estimate a solution to a task for the vertex feature graph 70E by a processing procedure similar to that of the estimation device 2 described above.
[0207] That is, in step S201, the control unit of the estimation device 2E operates as an acquisition unit and acquires an object graph 221E. The object graph 221E is configured by a vertex feature graph 70E. The settings of vertices, attributes, and edges in the object graph 221E may be appropriately given so as to appropriately express the conditions of the estimation target.
[0208] In step S202, the control unit operates as an estimator and estimates a task solution for the acquired object graph 221E using the trained estimation module 5. Specifically, the control unit inputs the object graph 221E to the trained estimation module 5 and executes forward arithmetic processing of the trained estimation module 5. As a result of executing this arithmetic processing, the control unit can acquire from the estimator 55 a result of estimating the task solution for the object graph 221E.
[0209] In step S203, the control unit operates as an output unit and outputs information related to the estimation result. As one example, the control unit may output the obtained estimation result directly to an output device. As another example, when the object graph 221E is configured to indicate the composition (chemical formula or physical crystal structure) of the object, and a procedure for producing a substance with the composition of the object is estimated, the control unit may control the operation of the production device according to the procedure indicated in the obtained estimation result. As another example, when a matching between objects or a combination of a production node and a consumption node is estimated, the control unit may establish (confirm) the matching or combination.
[0210] (Features) According to the 5-1 specific example, in a scene where a task is represented by a vertex feature graph 70E in which the relationships between vertices are known, the estimation accuracy of the estimation module 5 can be improved. In the model generation device 1, it is expected to generate a trained estimation module 5 capable of estimating with high accuracy a solution to a task represented by the vertex feature graph 70E. In the estimation device 2E, by using such a trained estimation module 5, it is expected to estimate with high accuracy a solution to a task represented by the vertex feature graph 70E.
[0211] (F) When using a vertex feature graph where the relationships between vertices are unknown 17 illustrates an example of an application scene of the estimation system 100F according to the 5-2 specific example. The 5-2 specific example is an example in which a vertex feature graph is adopted as a graph expressing a given condition (a target for solving a task), and the above embodiment is applied to a scene in which the relationship between the vertices constituting the adopted vertex feature graph is unknown. The estimation system 100F according to the 5-2 specific example includes a model generating device 1 and an estimation device 2F. The estimation device 2F is an example of the estimation device 2.
[0212] Basically, the 5-2 concrete example is similar to the 5-1 concrete example, except that the relationship between vertices (i.e., information on the branches) is not given. That is, each training graph 30F and the target graph 221F (input graph) are vertex feature graphs 70F composed of a plurality of vertices, and each vertex has an attribute. The first vertex belonging to the first set and the second vertex belonging to the second set of the input graph correspond to each vertex constituting the vertex feature graph 70F. The feature amount related to the branch flowing from the first vertex to the second vertex corresponds to the attribute of the vertex corresponding to the first vertex in the vertex feature graph 70F, and the feature amount related to the branch flowing from the second vertex to the first vertex corresponds to the attribute of the vertex corresponding to the second vertex in the vertex feature graph 70F. Each training graph 30F and the target graph 221F are examples of each training graph 30 and the target graph 221 in the above embodiment. The number and attributes of vertices in the vertex feature graph 70F may be appropriately determined so as to appropriately express the target for solving the task.
[0213] As long as the task can be expressed by a vertex feature graph in which the relationships between the vertices are unknown, the content of the task may not be particularly limited and may be appropriately selected according to the embodiment. In one example, the task may be to estimate the relationships between the vertices constituting the vertex feature graph 70F.
[0214] As a specific example of a task, the vertex feature graph 70F may be configured to correspond to an image in which objects have been detected (e.g., a scene graph). In this case, each vertex may correspond to a detected object, and each vertex's attributes may correspond to the attributes of the detected object. Estimating the relationship between each vertex may be estimating features appearing in the image (image recognition). This example may be employed in various situations where image recognition is performed.
[0215] As another specific example of the task, the vertex feature graph 70F may be configured to correspond to an image in which one or more people appear and in which feature points of the people are detected (e.g., a scene graph, a skeletal model). In this case, each vertex may correspond to a feature point of the detected people (e.g., a joint, etc.), and the attributes of each vertex may correspond to the attributes of the detected feature point (e.g., the type, position, tilt, etc. of the joint). Estimating the relationship between the vertices may be estimating the type of movement of the people (motion analysis). This specific example may be employed in various situations in which motion analysis is performed, such as video analysis of sports (particularly team sports).
[0216] As yet another specific example of the task, the vertex feature graph 70F may be configured to indicate the properties of the composition. The properties of the composition may be defined, for example, by the type of effect on the human body (medicinal effect, side effects, residual properties, reactions upon skin contact, etc.), the degree of various effects (efficiency of photoelectric effect, efficiency of thermoelectric effect, infrared absorption / reflection efficiency, friction coefficient, etc.). In this case, each vertex may correspond to a specific property, and the attribute of each vertex may be configured to indicate the degree of the specific property. Estimating the relationship between each vertex may be estimating (generating) a structure (e.g., chemical formula, physical crystal structure) of a composition that satisfies the properties indicated by the vertex feature graph 70F.
[0217] The estimator 55 may be appropriately configured to derive an estimation result of a solution of a task for the vertex feature graph 70F, such as the image recognition, motion analysis, structure generation, etc., from the feature information. A correct answer in machine learning may be given appropriately according to the content of the task for the vertex feature graph 70F. For example, a correct answer label indicating a correct answer of an estimation such as a true value of image recognition, a true value of motion analysis, or a true value of structure generation may be associated with each training graph 30F. In machine learning, this correct answer label may be used to calculate an error.
[0218] In the 5-2 specific example, during machine learning by the model generating device 1 and during estimation processing by the estimation device 2F, the vertex feature graph 70F is handled as an input graph. The first feature weaving layer 5001 of the feature weaving network 50 is configured to receive a first input tensor 601F and a second input tensor 602F from this vertex feature graph 70F. Each input tensor (601F, 602F) may be obtained in the same manner as each input tensor (601E, 602E) in the 5-1 specific example. Except for these points, the configuration of the 5-2 specific example may be the same as that of the above embodiment.
[0219] (Model Generator) In the 5-2 concrete example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the vertex feature graph 70F by a processing procedure similar to that of the above embodiment.
[0220] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30F. Each training graph 30F is composed of a vertex feature graph 70F. The settings of vertices and attributes in each training graph 30F may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30F. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the vertex feature graph 70F. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be provided to the estimation device 2F at any timing.
[0221] (estimation device) The hardware configuration and the software configuration of the estimation device 2F may be similar to those of the estimation device 2 according to the above embodiment. In the 5-2 specific example, the estimating device 2F can estimate a solution to a task for the vertex feature graph 70F by a processing procedure similar to that of the estimation device 2 described above.
[0222] That is, in step S201, the control unit of the estimation device 2F operates as an acquisition unit and acquires a target graph 221F. The target graph 221F is composed of a vertex feature graph 70F. The settings of vertices and attributes in the target graph 221F may be appropriately given so as to appropriately express the conditions of the estimation target. In the case of structure generation, the value of each property (i.e., the attribute value of each vertex) may be given as a random number or may be given by designation of an operator.
[0223] In step S202, the control unit operates as an estimator and estimates a task solution for the acquired object graph 221F using the trained estimation module 5. Specifically, the control unit inputs the object graph 221F to the trained estimation module 5 and executes forward arithmetic processing of the trained estimation module 5. As a result of executing this arithmetic processing, the control unit can acquire from the estimator 55 a result of estimating the task solution for the object graph 221F.
[0224] In step S203, the control unit operates as an output unit and outputs information related to the estimation result. As an example, the control unit may output the obtained estimation result to the output device as it is. As another example, the control unit may execute information processing according to the obtained estimation result. For example, when the object graph 221F is configured to correspond to an image in which an object has already been detected, the control unit may execute information processing according to the result of image recognition. As a specific application scene, the 5-2 specific example may be applied to recognition of a captured image obtained by capturing an image of the situation outside the vehicle with a camera. In this scene, when it is determined that an obstacle is approaching the vehicle based on the result of image recognition, the control unit may give the vehicle a command to avoid the obstacle (for example, to stop, to change lanes, etc.). Also, for example, when the object graph 221F is configured to correspond to an image in which a feature point of a person is detected, the control unit may execute information processing according to the result of motion analysis. As a specific application scene, the 5-2 specific example may be applied to motion analysis of a person appearing in a captured image captured by a camera installed on a platform of a train station. In this scene, if it is determined based on the results of the motion analysis that a person on the platform is in imminent danger (e.g., is about to fall off the platform), the control unit may output an alarm to notify that fact.
[0225] (Features) According to the 5-2 specific example, in a situation where the task of estimating relationships between vertices is represented by a vertex feature graph 70F, the estimation accuracy of the estimation module 5 can be improved. In the model generation device 1, it is expected to generate a trained estimation module 5 capable of estimating with high accuracy a solution to the task of estimating relationships between vertices in the vertex feature graph 70F. In the estimation device 2F, by using such a trained estimation module 5, it is expected to estimate with high accuracy a solution to the task of estimating relationships between vertices in the vertex feature graph 70F.
[0226] (G) When hypergraphs are used 18 illustrates an example of an application scene of an estimation system 100G according to a sixth specific example. The sixth specific example is an example in which the above-described embodiment is applied to a scene in which a hypergraph is used as a graph expressing a given condition (a target for solving a task). The estimation system 100G according to the sixth specific example includes a model generating device 1 and an estimation device 2G. The estimation device 2G is an example of the estimation device 2.
[0227] In the sixth specific example, each training graph 30G and object graph 221G (input graph) is a K-part hypergraph 70G. K is an integer equal to or greater than 3. A plurality of vertices constituting the hypergraph 70G are divided to belong to one of K subsets such that there are no branches between vertices in each subset. Each training graph 30G and object graph 221G correspond to each training graph 30 and object graph 221 in the above embodiment. Note that the number of vertices in the hypergraph 70G, the presence or absence of branches between vertices, and the value of K may be appropriately determined to appropriately represent the target for solving the task.
[0228] As in the above embodiment, in the sixth specific example, the estimation module 5 includes a feature weaving network 50 and an estimator 55. The feature weaving network 50 includes a plurality of feature weaving layers 500, and is configured to receive an input of an input graph and output feature information related to the input graph. The estimator 55 is configured to estimate a solution to a task for the input graph from the feature information output from the feature weaving network. Each feature weaving layer 500 includes an encoder 505. The encoder 505 is configured to derive a relative feature amount of each element from the feature amounts of all the input elements. Meanwhile, in the sixth specific example, each feature weaving layer 500 and various information (input tensors, etc.) of the estimation module 5 are extended from the above embodiment to process the hypergraph 70G.
[0229] FIG. 19 is a schematic diagram illustrating an example of the computation process of each feature weaving layer 500 in the sixth specific example. In FIG. i denotes the number of the i-th vertex (i is an integer from 1 to K). Each feature weaving layer 500 receives K (K+1)-th order input tensors (Z 1 l , , Z K l ) is the input of the i-th input tensor (Z i l ) is configured such that the first axis lists the i-th vertex belonging to the i-th subset of the input graph as an element, the j-th axis from the second axis to the K-th axis lists the vertices belonging to the (j-1)-th subset in a circular manner starting from the i-th subset as an element, and the (K+1)-th axis lists the feature quantities related to the branches flowing from the i-th vertex belonging to the i-th subset to combinations of vertices belonging to each of the (K-1) other subsets (other than the i-th) as elements. For example, the first input tensor (Z 1 l ) The elements of each axis are N1×N2×××N K ×D l The elements of each axis of the second input tensor are expressed as N2×N3×···×N K ×N1×D lThe elements of each axis of the Kth input tensor are expressed as N K ×N1×...×N K-1 ×D l It is expressed as:
[0230] Each feature weaving layer 500 is configured to perform the following operations: i l ), the (K+1)-th axis of each of the (K-1) other input tensors other than the i-th one is fixed, and the other axes other than the (K+1)-th axis of each of the other input tensors are rotated so as to align with the respective axes of the i-th input tensor. For example, in the processing route of the first input tensor, the axes other than the (K+1)-th axis of the second input tensor to the K-th input tensor other than the first input tensor are rotated so as to align with the respective axes of the first input tensor. Specifically, in the second input tensor, the K-th axis corresponds to the first axis of the first input tensor. Therefore, the first axis to the K-th axis of the second input tensor are expressed as (N2×N3×...×N K ×N1×D l ) are rotated one by one to the right (P1(Z 2 l )). Similarly, the first axis to the K-th axis of the third input tensor are rotated to the right by two. The first axis to the K-th axis of the K-th input tensor are rotated to the right by K (P K (Z K l For example, in the processing route of the K-th input tensor, the axes of the first input tensor to the (K-1)-th input tensor other than the K-th input tensor are rotated so as to be aligned with the axes of the K-th input tensor. Specifically, the first axis to the K-th axis of the first input tensor are rotated one by one to the right (P1(Z 1 l Similarly, the first axis to the K-th axis of the (K-1)-th input tensor are rotated to the right by K elements (P K (Z K-1 l In the processing routes of the second input tensor to the (K-1)th input tensor, the axes of the input tensors are rotated in a similar manner.
[0231] Next, each feature weaving layer 500 concatenates the features of each element of the i-th input tensor and each of the other input tensors with the axes rotated. In this way, each feature weaving layer 500 generates K concatenated tensors of the (K+1)th rank. For example, in the processing route of the first input tensor, each feature weaving layer 500 concatenates the first input tensor (Z 1 l ) and the second input tensor (P1(Z 2 l ))~Kth input tensor (P K (Z K l By concatenating the features of each element of the first connected tensor (cat(Z 1 l ,P1(Z 2 l ),···,P K (Z K l For example, in the processing route of the K-th input tensor, each feature weaving layer 500 generates the K-th input tensor (Z K l ) and the first input tensor (P1(Z 1 l ))~(K-1)th input tensor (P K (Z K-1 l By concatenating the features of each element of cat(Z K l ,P1(Z 1 l ),···,P K (Z K-1 l In the processing routes of the second input tensor to the (K-1)th input tensor, each connected tensor is generated in a similar manner.
[0232] Then, each feature weaving layer 500 divides each of the generated K concatenated tensors for each element of the first axis, inputs the divided tensors to the encoder 505, and executes the operation of the encoder 505. Each feature weaving layer 500 obtains the operation results of the encoder 505 for each element, thereby generating K (K+1)-th order output tensors corresponding to the K input tensors. Each feature weaving layer 500 is configured to execute each of the above operations. Other configurations of each feature weaving layer 500 may be similar to those of the above embodiment.
[0233] As in the above embodiment, in one example, the encoder 505 may be configured with a single encoder commonly used between each element of the first axis of each connected tensor. In another example, the encoder 505 may be configured with K encoders separately used for each connected tensor. In yet another example, the encoder 505 may be provided separately for each element of each connected tensor.
[0234] Returning to FIG. 18, the content of the task may not be particularly limited as long as it can be expressed by a hypergraph, and may be appropriately selected according to the embodiment. In one example, the task may be a matching task between K parties, and may be to determine an optimal combination of targets belonging to each party. In this case, each subset of the hypergraph 70G corresponds to each party in the matching task. A vertex belonging to each subset of the hypergraph 70G corresponds to an target belonging to each party. A feature amount related to an edge flowing out from the i-th vertex belonging to the i-th subset to a combination of vertices belonging to each of the (K-1) other subsets (other than the i-th) may correspond to a cost or reward of matching the target corresponding to the i-th vertex and a combination of targets corresponding to each vertex belonging to the other subsets other than the i-th. Alternatively, the feature amount may correspond to a desirability from the target corresponding to the i-th vertex to a combination of targets corresponding to each vertex belonging to the other subsets other than the i-th.
[0235] The target of matching may be appropriately selected according to the embodiment. The matching task may be performed for the purpose of, for example, identifying an optimal combination of three or more parts, identifying an optimal combination of three or more people, identifying an optimal combination of three terms for learning for calculating triplet loss in distance learning, identifying a combination of feature points belonging to the same person when simultaneously estimating the postures of multiple people in an image, identifying an optimal combination of delivery trucks, luggage, and routes, etc. Accordingly, the target of matching may be, for example, parts, people, data for which triplet loss is to be calculated, feature points of people detected in an image, delivery trucks / luggage / routes, etc. Identifying the optimal combination of people may be performed for team building, for example, managers / programmers / sales, web front-end programmers / back-end programmers / data scientists, etc.
[0236] The estimator 55 may be appropriately configured to derive an estimation result of a solution to a task for the hypergraph 70G, such as the above-mentioned matching task, from the feature information. The correct answer in machine learning may be appropriately given according to the content of the task for the hypergraph 70G. In one example, when the task is the above-mentioned matching task, similar to the above-mentioned first specific example, the correct answer in machine learning may be appropriately given so that a matching result that satisfies a desired criterion is obtained. In another example, a correct answer label indicating a correct answer of an estimation such as a true value of matching may be associated with each training graph 30G. In machine learning, this correct answer label may be used to calculate an error. In addition, the correct answer in machine learning may be appropriately given so that an estimation result that satisfies a desired criterion is obtained. As an example, in the case of the above-mentioned team building, the predetermined criterion may be defined to evaluate results achieved in the real world, such as monetary benefits, a reduction in turnover rate, a reduction in the development process, an increase in the amount of progress reports, and improvements in psychological indicators (e.g., questionnaires, sleep time, blood pressure, etc.), and the correct answer may be given according to this evaluation value.
[0237] In the sixth specific example, a hypergraph 70G is handled as an input graph during machine learning by the model generating device 1 and during estimation processing by the estimation device 2G. The first feature weaving layer 5001 of the multiple feature weaving layers 500 derives K input tensors 601G to 60KG (Z 1 0,...,Z K 0). As in the above embodiment, in one example, each of the input tensors 601G-60KG may be obtained directly from the input graph. In another example, each of the input tensors 601G-60KG may be obtained as a result of a predetermined arithmetic operation performed on the input graph. In yet another example, the input graph may be provided in the form of each of the input tensors 601G-60KG.
[0238] In one example, the feature weaving layers 500 may be arranged in series. In this case, the feature weaving layers 500 other than the first feature weaving layer 5001 are configured to receive the output tensors generated by the immediately preceding feature weaving layer 500 as the input tensors. That is, the feature weaving layer 500 arranged at the l+1th position is configured to receive the output tensors generated by the lth feature weaving layer as the input tensors. However, as in the above embodiment, in the sixth specific example, the arrangement of the feature weaving layers 500 may not be limited to such an example. For example, other types of layers (e.g., convolutional layers, fully connected layers, etc.) may be inserted between adjacent feature weaving layers 500.
[0239] The feature information is composed of K output tensors output from the last feature weaving layer 500L among the multiple feature weaving layers 500. The estimator 55 may be appropriately configured to derive the estimation result from these K output tensors. Except for these points, the configuration of the sixth specific example may be the same as that of the above embodiment.
[0240] (Model Generator) In the sixth specific example, the model generation device 1 can generate a trained estimation module 5 that has acquired the ability to estimate a solution to a task for the hypergraph 70G, using a processing procedure similar to that of the above embodiment.
[0241] That is, in step S101, the control unit 11 acquires a plurality of training graphs 30G. Each training graph 30G is composed of a hypergraph 70G. The settings of vertices and branches in each training graph 30G may be appropriately given so as to appropriately express the conditions of the training target. In step S102, the control unit 11 performs machine learning of the estimation module 5 using the acquired plurality of training graphs 30G. As in the above embodiment, the machine learning is configured by training the estimation module 5 so that the result of estimation obtained by the estimator 55 by inputting each training graph 30G as an input graph into the feature weaving network 50 matches the correct answer (true value) of the task for each training graph 30G. This machine learning can generate a trained estimation module 5 that has acquired the ability to estimate the solution of the task for the hypergraph 70G. In step S103, the control unit 11 generates learning result data 125 indicating the generated trained estimation module 5, and stores the generated learning result data 125 in a predetermined storage area. The learning result data 125 may be provided to the estimation device 2G at any timing.
[0242] (estimation device) The hardware configuration and the software configuration of the estimation device 2G may be similar to those of the estimation device 2 according to the above embodiment. In the sixth specific example, the estimation device 2G can estimate a solution to a task for a hypergraph 70G by a processing procedure similar to that of the estimation device 2 described above.
[0243] That is, in step S201, the control unit of the estimation device 2G operates as an acquisition unit and acquires the object graph 221G. The object graph 221G is configured by a hypergraph 70G. The settings of vertices and edges in the object graph 221G may be appropriately given so as to appropriately express the conditions of the estimation target.
[0244] In step S202, the control unit operates as an estimation unit and estimates a task solution for the acquired object graph 221G using the trained estimation module 5. As in the above embodiment, estimating a task solution for the object graph 221G using the trained estimation module 5 is configured by inputting the object graph 221G as an input graph to the feature weaving network 50 and obtaining a result of estimating the task solution from the estimator 55. Specifically, the control unit inputs the object graph 221G to the trained estimation module 5 and executes a forward arithmetic process of the trained estimation module 5. As a result of executing this arithmetic process, the control unit can obtain a result of estimating the task solution for the object graph 221G from the estimator 55.
[0245] In step S203, the control unit operates as an output unit and outputs information related to the estimation result. As an example, the control unit may output the obtained estimation result directly to an output device. As another example, when the above-mentioned matching estimation result is obtained, the control unit may establish matching of at least a part of the estimation result, similar to the above-mentioned first specific example, etc. In this case, further similar to the above-mentioned first specific example, etc., the estimation device 2G may be configured to perform matching online in real time.
[0246] (Features) According to the sixth concrete example, in a scene where a task is represented by a hypergraph 70G, the estimation accuracy of the estimation module 5 can be improved. In the model generation device 1, it is expected to generate a trained estimation module 5 capable of estimating a solution to a task represented by a hypergraph 70G with high accuracy. In the estimation device 2G, by using such a trained estimation module 5, it is expected to estimate a solution to a task represented by a hypergraph 70G with high accuracy.
[0247] <4.2> The machine learning method may not be limited to the above-mentioned training process example, and processes may be omitted, changed, replaced, or added as appropriate depending on the embodiment. As another example, the target of the machine learning may further include a discriminative model in addition to the estimation module 5. Accordingly, the machine learning may further include performing adversarial learning between the estimation module 5 (particularly, the estimator 55) and the discriminative model in addition to the above-mentioned training process.
[0248] FIG. 20 illustrates an example of a machine learning process according to this modification. As in the above embodiment, the estimation module 5 is configured to receive an input of an input graph Z and output an estimation result x of a task solution for the input graph Z. In contrast, the identification model 59 is configured to receive an input of a correct answer (true value) X of a task corresponding to the input graph Z or an estimation result x of the estimation module 5, and identify the origin of the input data (i.e., whether the input data is the correct answer X or the estimation result x). The type of machine learning model constituting the identification model 59 is not particularly limited and may be appropriately selected according to the embodiment. The identification model 59 may be constituted by, for example, a neural network or the like.
[0249] In one example of adversarial learning, the discriminative model 59 is trained using the correct answer X for each training graph 30 (input graph Z) and the estimation result x of the estimation module 5 for each training graph 30 as input data so as to reduce the error of the result of identifying the origin of the input data. In the training step of the discriminative model 59, the parameter values of the discriminative model 59 are adjusted, whereas the parameter values of the estimation module 5 are fixed. In addition, the estimation module 5 is trained so as to output an estimation result x that causes the discriminative model 59 to make an erroneous classification. In the training step of the estimation module 5, the parameter values of the discriminative model 59 are fixed, whereas the parameter values of at least a part of the estimation module 5 (e.g., the estimator 55) are adjusted.
[0250] A known method such as backpropagation may be used for each training method. Each training step may be alternately and repeatedly performed. Alternatively, the two training steps may be performed simultaneously by inserting a gradient inversion layer between the estimation module 5 and the discriminative model 59. Each gradient inversion layer may be appropriately configured to pass values as is during forward propagation calculations and to invert values during backpropagation.
[0251] According to this modification, the discrimination model 59 acquires the ability to discriminate the origin of the input data according to the estimation ability of the estimation module 5. Meanwhile, the estimation module 5 acquires the ability to generate an estimation result that is close to the correct answer according to the discrimination ability of the discrimination model 59. By repeatedly executing each training step, the abilities of the estimation module 5 and the discrimination model 59 are mutually improved. As a result, the estimation module 5 can acquire the ability to generate an estimation result that is very close to the correct answer. As an example, this modification may be adopted in the case of structure generation in the above specific example 5-2. As a result, it is expected to generate a trained estimation module 5 that can estimate the structure of a composition that satisfies the specified properties with higher accuracy.
[0252] <4.3> Fig. 21 illustrates another example of an input form of the estimation module 5. As shown in Fig. 21, in the above embodiment, the number of graphs input to the estimation module 5 at one time when solving a task is not limited to one, and multiple input graphs (such as the first graph and the second graph in the figure) may be input simultaneously to the estimation module 5. In this case, the structure of the estimation module 5 may be appropriately changed depending on the number of graphs to be input.
[0253] FIG. 22 illustrates a schematic example of a configuration of an estimation module 5H according to this modification. The estimation module 5H is configured to receive input of two graphs and perform a task of searching one input graph (a pattern) for the other input graph (a query). The estimation module 5H is an example of the estimation module 5 according to the above embodiment. For ease of explanation, it is assumed that the first graph is a query and the second graph is a pattern. The roles of the first graph and the second graph may be interchanged.
[0254] In the example of FIG. 22, the estimation module 5H includes a first feature extractor 581, a second feature extractor 582, an interaction estimator 583, and a feature estimator 584. The first feature extractor 581 is configured to receive an input of a first graph and extract features of the input first graph. The second feature extractor 582 is configured to receive an input of a second graph and extract features of the input second graph. The first feature extractor 581 and the second feature extractor 582 are arranged in parallel on the input side. In one example, the first feature extractor 581 and the second feature extractor 582 may be configured by a single feature extractor that is used in common (i.e., one feature extractor may serve as both the first feature extractor 581 and the second feature extractor 582). In another example, the first feature extractor 581 and the second feature extractor 582 may be provided separately.
[0255] The interaction estimator 583 is configured to receive the result of feature extraction of each graph by each feature extractor (581, 582) and estimate the interrelationship of features between each graph. The feature estimator 584 is configured to receive the interrelationship estimation result by the interaction estimator 583 and output the result of searching the first graph in the second graph. The format of the search result may be appropriately determined depending on the embodiment. The searching may be configured, for example, by determining in a binary manner whether or not the query is included in the pattern, estimating the number of queries included in the pattern, searching (matching) all the places where the query is included in the pattern, searching for the largest subgraph common to the two graphs, etc.
[0256] In one example, each feature extractor (581, 582) may be the feature weaving network 50. Accordingly, the interaction estimator 583 and the feature estimator 584 may correspond to the estimator 55. In this case, each feature extractor (581, 582) may receive the input of each graph in any format. In one example, each feature extractor (581, 582) may receive the input of each graph in the format of the third or fourth specific example. That is, each graph may be a general directed graph or a general undirected graph.
[0257] In another example, the interaction estimator 583 may be the feature weaving network 50. Accordingly, the feature estimator 584 may correspond to the estimator 55. In this case, the configuration of each feature extractor (581, 582) is not particularly limited as long as it can extract the features of each graph, and may be appropriately determined according to the embodiment. Each feature extractor (581, 582) may be configured with any model. The interaction estimator 583 may receive the feature extraction results by each feature extractor (581, 582) in the graph format of the above specific example 5-2.
[0258] In this modification, each training graph and target graph is composed of two graphs. One of the two graphs is a pattern and the other is a query. Except for these points, this modification may be configured similarly to the above embodiment. The model generation device 1 may be configured to perform machine learning of the estimation module 5H. The estimation device 2 may be configured to perform graph search using the trained estimation module 5H. The machine learning and estimation processing methods may be similar to the above embodiment.
[0259] According to this modification, it is possible to improve the search accuracy of the estimation module 5H that is configured to receive two graphs as input and search one graph within the other graph. In the model generation device 1, it is expected to generate a trained estimation module 5H that can estimate a graph search with high accuracy. In the estimation device 2, it is expected to perform a graph search with high accuracy by using such a trained estimation module 5H.
[0260] <4.4> In the above embodiment, the machine learning may be configured by reinforcement learning. In this case, the correct answer may be given by a predetermined rule, as in the above embodiment. A reward may be calculated by the correct answer given by this predetermined rule, and the estimation module 5 may be trained so that the sum of the calculated rewards is maximized. The predetermined rule may be given in the real world, and the reward may be obtained in the real world. Training the estimation module 5 so that the result of estimation obtained by the estimator 55 matches the correct answer may include training by such reinforcement learning. In this case, the training of the estimation module 5 may be repeated while operating the estimation module 5 in the estimation device 2. The estimation device 2 may include a learning processing unit 112, and may use the target graph 221 as the training graph 30.
[0261] <4.5> In the above embodiment, the encoder 505 may be configured by a single encoder. However, if the first input tensor and the second input tensor belong to different distributions (i.e., the distributions of the features related to the first and second sets are different from each other), a situation may arise in which there are two types of domains of input to the single encoder. The bias caused by this difference in distribution is amplified each time the encoders are stacked, and this may result in the single encoder solving two different tasks instead of solving a common task. As a result, the present inventors have found a problem that the accuracy of the encoder 505 may deteriorate, which may lead to a deterioration in the accuracy of the entire estimation module 5.
[0262] Simply put, this problem can be solved by providing a separate encoder for each connected tensor as described above. However, the method for solving the problem is not limited to this example. When the encoder 505 is configured by a single encoder, the problem may be solved by adopting at least one of the following two methods.
[0263] (First Method) FIG. 23 illustrates a schematic example of the configuration of the feature weaving layer 500 according to the modified example. The first method is to eliminate the difference in distribution using a normalizer 508. In this modified example, the encoder 505 of each feature weaving layer 500 may be configured by a single encoder, and each feature weaving layer 500 may further include a normalizer 508 configured to normalize the result of the operation of the encoder 505 for each connected tensor. That is, in the above embodiment, each feature weaving layer 500 may include two normalizers 508 corresponding to each connected tensor (2L normalizers 508 for L feature weaving layers 500). The normalization method may be appropriately determined according to the embodiment. For example, a known method such as batch normalization may be adopted as the normalization method. As an example, each normalizer 508 may be configured to normalize the result of the operation of the encoder 505 by the operation shown in the following formula 16.
[0264]
number
[0265] Therefore, according to this modification, even if the encoder 505 is shared between each concatenated tensor (i.e., even if the encoder 505 is configured as a single encoder), the amplification of bias due to the difference in distribution to which the first input tensor and the second input tensor belong can be suppressed by the action of the normalizer 508. As a result, the above problem can be solved, and the deterioration of the accuracy of the estimation module 5 can be prevented.
[0266] In each of the above specific examples, each feature weaving layer 500 may further include a normalizer 508 for each connected tensor. In a sixth specific example (hypergraph case), each feature weaving layer 500 may include K normalizers 508 corresponding to the connected tensors, respectively.
[0267] (Second Method) In the above embodiment, the encoder 505 of each feature weaving layer 500 may be configured by a single encoder, and each feature weaving layer 500 may be further configured to add a condition code to the third axis of each of the first input tensor and the second input tensor before executing the operation of the encoder 505. That is, the second method is a method of making the input of the encoder 505 conditional. The second method may be adopted instead of / together with the first method.
[0268] The condition code may be assigned at any timing between obtaining each input tensor and executing the operation of the encoder 505. The configuration of the condition code may be appropriately determined according to the embodiment. In one example, the condition code may be configured by a predetermined value corresponding to each input tensor. Each predetermined value may be appropriately selected so as to be able to identify each input tensor. As a specific example, the condition code assigned to the first input tensor may be a first value (e.g., 1), and the condition code assigned to the second input tensor may be a second value (e.g., 0). The location of assignment may be determined arbitrarily. In one example, each condition code may be added uniformly to the end of the third axis for each element of the first axis and the second axis of each input tensor.
[0269] In this modification, the encoder 505 of each feature weaving layer 500 can identify the origin of data based on the condition code when encoding features. Therefore, even if the first input tensor and the second input tensor belong to different distributions, the encoder 505 can be trained in the machine learning process to eliminate bias due to the difference in distributions by the action of the condition code. Therefore, according to this modification, it is possible to prevent deterioration of the accuracy of the estimation module 5 caused by the difference in the distributions to which the input tensors belong.
[0270] In each of the above specific examples, each feature weaving layer 500 may be further configured to assign a condition code to the third axis of each of the first input tensor and the second input tensor before executing the operation of the encoder 505. In the sixth specific example (hypergraph case), the condition code for each input tensor may be appropriately determined so as to be able to identify at least one input tensor. As an example, the condition code assigned to the first input tensor may be a first value (e.g., 1), and the condition code assigned to the 2nd to Kth input tensors (i.e., input tensors other than the first input tensor) may be a second value (e.g., 0). In this case, a condition code may be assigned to the K+1th axis of each input tensor before the cyclic operation. Thereby, in the portion where the condition code is assigned to each concatenated tensor, the number of times the first input tensor has cyclically changed can be identified by the position of the first value. As a result, during the operation of the encoder 505, an input tensor that has not been cyclically changed in each concatenated tensor (the i-th input tensor) can be identified. Therefore, by assigning the condition code in the above-mentioned method, when the encoder 505 executes an operation on each of the K concatenated tensors, the origin of the data can be identified based on the condition code. When this method is adopted, a first value is assigned to any one of the first to Kth input tensors, and a second value is assigned to the remaining K-1 input tensors, so that the origin of the data can be identified based on the condition code (the position of the first value) in the same manner as above. Therefore, the target to which the first value is assigned does not have to be limited to the first input tensor.
[0271] §5 Example In order to verify the effectiveness of feature extraction by the feature weaving network 50, estimation modules according to examples and comparative examples were generated in the following four experiments. However, the present invention is not limited to the following examples.
[0272] [How to generate a sample] First, we assumed the directed bipartite graph of the first concrete example above as a graph representing the given conditions. For the task, we adopted the stable marriage problem, which is an example of the matching task mentioned above. We assumed that each party has the same number of matching targets (agents) (M=N). Under this assumption, we adopted the method proposed in Reference 1 "Nikolaos Tziavelis, Ioannis Giannakopoulos, Katerina Doka, Nectarios Koziris, and Panagiotis Karras, "Equitable stable matchings in quadratic time", In Proceedings of Advances in Neural Information Processing Systems, pages 457-467, 2019." to create a list of the desirability of each target (vertex) for a partner from the following distribution. This generated samples to be used for machine learning and evaluation.
[0273] First distribution: Uniform distribution (U) Each agent's desirability towards a potential match is random and is defined by a uniform distribution U(0,1) (higher values indicate higher desirability). ·Second distribution: Discrete distribution (D) Each agent has a desirability defined by U(0.5,1) for some of the matching candidates (the largest integer candidates less than or equal to 0.4N), and a desirability defined by U(0,0.5) for the remaining candidates. Third distribution: Gaussian distribution (G) Each agent's desirability for the i-th matching candidate is defined by a Gaussian distribution N(i / N, 0.4). ·Fourth distribution: LibimSeTi(Lib) The desirability of each agent of each party is defined based on the two-dimensional distribution of the frequency of each probability pair estimated from data (matching activity) obtained from the Czech web service "LibimSeTi" (Reference 2: "Lukas Brozovsky and Vaclav Petricek, "Recommender system for online dating service", In Proceedings of Conference Znalosti 2007, Ostrava, 2007.").
[0274] Five different configurations (i.e., UU, DD, GG, UD, and Lib) were created by selecting one of the four distributions above for each of the first party (first subset) and the second party (second subset). For example, "UU" indicates that the desirability of each agent in both parties is defined by a uniform distribution (U). "UD" indicates that the desirability of each agent in one party is defined by a uniform distribution (U), and the desirability of each agent in the other party is defined by a discrete distribution (D). Then, 1000 training samples (training data) and 1000 validation samples (validation data) were randomly generated for each of the five distribution settings and the size (N×N) specified in each experiment below.
[0275] [Experiment I: Comparison of the implementation with other machine learning models] In experiment I, the effectiveness of the present invention was verified by comparing the success rate of matching between a solver according to each of the following examples and a solver configured using a trained machine learning model according to the following comparative example.
[0276] <Example> By adopting the configuration of the above embodiment, estimation modules according to a first example (WN-6), a second example (WN-18), a third example (WN-18f), and a fourth example (WN-18b) were created.
[0277] In the first embodiment, the number of feature weaving layers was six. In the second to fourth embodiments, the number of feature weaving layers was 18. In each of the first to fourth embodiments, a single encoder was adopted that was used in common between the elements of the first axis of each connected tensor. The configuration of FIG. 6B was adopted for the encoder configuration in the first to fourth embodiments. The configuration of the first specific example (including preprocessing) was adopted for the estimator configuration in the first to fourth embodiments (Equations 1 to 4). In the first to fourth embodiments, the argmax operation was adopted as the operation for obtaining the final estimation result in the estimation stage (estimation device) of matching. In the feature weaving network of the first embodiment, the residual structure was omitted (i.e., no shortcut path was provided). On the other hand, in the feature weaving network of the second to fourth embodiments, a shortcut path was provided so as to be connected to the input of each even-numbered feature weaving layer.
[0278] In the first and second embodiments, the loss function λ for suppressing blocking pairs is used as the loss function in machine learning. s and the loss function λ for converging the estimation results to a symmetric double probability matrix. c was adopted, and a loss function for converging the estimation results to satisfy other criteria was not adopted. On the other hand, in the third embodiment, the loss function (λ s , λ c ), plus a fairness-enhancing loss function λ f In the fourth embodiment, the loss function (λ s , λ c ), plus a loss function λ that promotes a balance between fairness and satisfaction. b Specifically, in the first to fourth examples, in the loss function λ of Equation 15, w s 0.7 and w c In the first and second examples, 0 was substituted for the weights of the other loss functions. In the third example, w f Substitute 0.01 for and set the weights of other loss functions (w e , w b ) is substituted with 0. In the fourth embodiment, b Substitute 0.01 for and set the weights of other loss functions (w f , we ) was substituted with 0.
[0279] <Comparative Example> In the first comparative example (MLP-O), the model proposed in Non-Patent Document 2 was adopted for the estimation module. Specifically, a feature extractor that extracts features from a graph is configured with three hidden layers, and an estimator that estimates the matching result from the features obtained by the feature extractor is configured with one output layer. The machine learning method of the estimation module was also the method proposed in Non-Patent Document 2. In the second comparative example (MLP), the same model configuration as in the first comparative example was adopted for the estimation module. Meanwhile, in the second comparative example, instead of the term corresponding to the following equation 17 among the terms of the loss function proposed in Non-Patent Document 2, λ in the above equations 8 and 9 was adopted. c was adopted.
[0280]
number
[0281] In the third comparative example (GIN), the model proposed in Reference 3 "Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka, "How powerful are graph neural networks?", In Proceedings of International Conference on Learning Representations, 2019." was adopted for the estimation module. Specifically, in the third comparative example, the estimation module according to the third comparative example was configured to include a feature extractor, a feature connector, and an estimator. The feature extractor was configured to output features for each vertex using the two-layer model proposed in Reference 3. The feature connector was configured to connect the features of all vertices output from the feature extractor into one flat vector. Furthermore, the estimator was configured to obtain the matching estimation result as N×M (in this example, M=N) flat vectors using a single output layer similar to that of the first comparative example. By regarding the flat vector obtained from this estimator as a matrix of size N×M, the third comparative example was configured to obtain an output with the same structure as the matching estimation result in each embodiment. The machine learning method used in the estimation module is the method proposed in Reference 3. The loss function used is the same as that used in the first embodiment.
[0282] In the fourth comparative example (DBM-6), the model proposed in Reference 4 "Daniel Gibbons, Cheng-Chew Lim, and Peng Shi, "Deep learning for bipartite assignment problems", In Proceedings of IEEE International Conference on Systems, Man and Cybernetics, pages 2318-2325, 2019." was adopted for the estimation module. In the fourth comparative example, the number of layers constituting the feature extractor in the estimation module was set to six layers. The method proposed in Reference 4 was adopted for the machine learning method of the estimation module. The same loss function as in the first embodiment was adopted. In the fifth comparative example (SSWN-6), the same model as in the fourth comparative example was adopted for the estimation module. However, in the fifth comparative example, the encoder provided in each layer constituting the feature extractor was changed to the configuration of FIG. 6B. The other configurations and machine learning method of the fifth comparative example were the same as those of the fourth comparative example.
[0283] <Machine learning and evaluation methods> Four different sizes of validation samples were adopted: 3×3, 5×5, 7×7, and 9×9. Since the models of the first and second comparative examples cannot accept inputs of different sizes, training samples of each size were used for training the first and second comparative examples. On the other hand, training samples of 10×10 were used for training the first to fourth examples and the third and fifth comparative examples. The number of training iterations was 200,000, and the batch size was 8. Based on each of the above distributions, training samples were randomly generated in each iteration, and the generated training samples were used for training. Adam was adopted as the optimization algorithm (Reference 5: "Diederik P. Kingma and Jimmy Ba, "Adam: A method for stochastic optimization", In Proceedings of International Conference on Learning Representations, 2015."). The learning rate was 0.0001. Under these conditions, trained estimation modules (solvers) were generated for each of the first to fourth examples and the first to fifth comparative examples.
[0284] Next, using each generated trained estimation module, an estimated result of matching was obtained for each size of validation sample. Then, a successful match was defined as a match without a blocking pair, and the probability of obtaining a match without a blocking pair was calculated as the success rate of matching based on the obtained estimation result. In addition, the fairness (Sex equality, SEq(m;I)) of each matching result and the balance (Balance, Bal(m;I)) of fairness and satisfaction (cost) were calculated by the following formulas 18 to 21. Then, the probability of obtaining the best matching result for each index was calculated as the success rate of matching that satisfies each index. Furthermore, for the second and third examples, the average value of the fairness cost of the matching results for all obtained validation samples was calculated. For the second and fourth examples, the average value of the balance cost of the matching results for all obtained validation samples was calculated.
[0285]
number
number
number
number
[0286] <Result> 24A and 24B show the results of calculating the success rate of matching for each size of the verification sample for the first to fourth examples (FIG. 24A) and the first to fifth comparative examples (FIG. 24B). FIG. 25A and 25B show the results of calculating the success rate of fairness matching for each size of the verification sample for the first to fourth examples (FIG. 25A) and the first to fifth comparative examples (FIG. 25B). FIG. 25C shows the results of calculating the average value of the fairness cost of the matching result for all the verification samples for the second and third examples. FIG. 26A and 26B show the results of calculating the success rate of balance matching for each size of the verification sample for the first to fourth examples (FIG. 26A) and the first to fifth comparative examples (FIG. 26B). FIG. 26C shows the results of calculating the average value of the balance cost of the matching result for all the verification samples for the second and fourth examples. FIG. 25C and 26C further show the ideal value (Ideal) of the average value of each index.
[0287] As shown in FIG. 24A and FIG. 24B, each embodiment was able to estimate stable matching with high accuracy compared to each comparative example. In the first comparative example to the third comparative example, when the number of agents was 5 or more, it was difficult to estimate stable matching. Conventionally, network models such as the first comparative example to the third comparative example were considered to be suitable as a method for solving tasks for graphs. However, from the results shown in FIG. 24A and FIG. 24B, it was found that these network models are not suitable for solving a task of two-sided matching expressed by a directed bipartite graph. In contrast, according to the embodiment, it was possible to obtain a stable matching result with higher accuracy than each comparative example. In particular, the number of parameters in the first embodiment was about 25,000, while the number of parameters in the first and second comparative examples was about 28,000, the number of parameters in the third and fourth comparative examples was about 29,000, and the number of parameters in the fifth comparative example was about 25,000. From this result, it was found that according to the present invention, even if the number of parameters is about the same, the success rate of stable matching can be increased.
[0288] In addition, as shown in FIG. 25A, FIG. 25B, FIG. 26A, and FIG. 26B, the success rate of stable matching in each embodiment was higher than that in each comparative example in terms of the fairness and balance indices. From this result, it was found that according to the present invention, the success rate of stable matching that meets a predetermined standard can also be increased. Furthermore, as shown in FIG. 25C and FIG. 26C, it was found that the average value of the cost of each index can be brought closer to the ideal value by adding the fairness and balance indices to the loss function. From this result, it was found that in the present invention, the ability to be acquired by the estimation module can be changed by changing the loss function. In other words, it was found that the present invention can be applied not only to the stable marriage problem but also to various other tasks for graphs by appropriately changing the loss function. For example, it was suggested that even if the type of graph is changed, a trained estimation module that has acquired the ability to solve the corresponding task can be generated by setting a loss function according to the task.
[0289] [Experiment II: Comparison of the working example and existing algorithms] In Experiment II, the effectiveness of the present invention was verified by comparing the matching results between the solvers according to the following Examples and the solvers of existing algorithms according to the following Comparative Examples.
[0290] <Example> An estimation module according to the fifth embodiment (WN-60f) was created by changing the number of feature weaving layers in the third embodiment to 60 layers. The other configurations of the fifth embodiment were the same as those of the third embodiment. In addition, an estimation module according to the sixth embodiment (WN-60b) was created by changing the number of feature weaving layers in the fourth embodiment to 60 layers. The other configurations of the sixth embodiment were the same as those of the fourth embodiment. A training sample of 30 × 30 was used for training the fifth and sixth embodiments. As for other machine learning conditions, the same conditions as those of the above experiment I were adopted.
[0291] <Comparative Example> In the sixth comparative example (GS), the GS algorithm proposed in Non-Patent Document 1 was used as the solver. In the seventh comparative example (PolyMin), the algorithm disclosed in Reference Document 6, "Dan Gusfield and Robert W Irving, "The stable marriage problem: structure and algorithms", MIT press, 1989." was used as the solver. Specifically, in the seventh comparative example, instead of the above-mentioned costs of fairness (SEq(m;I)) and balance (Bal(m;I)), an algorithm that minimizes the costs (Reg(m;I), Egal(m;I)) of the following Equations 22 and 23 was used as the solver.
[0292]
number
number
[0293] In the eighth comparative example (DACC), the algorithm proposed in Reference 7, "Piotr Dworczak, "Deferred acceptance with compensation chains", In Proceedings of the 2016 ACM Conference on Economics and Computation, pages 65-66, 2016." was used as the solver. In the ninth comparative example (PowerBalance), the algorithm proposed in Reference 1 above was used as the solver. The computational complexity of the algorithm in the eighth comparative example is O(n 4 ), and the computational complexity of the algorithm in the ninth comparative example is O(n 2 ) was.
[0294] <Evaluation method> Two different sizes, 20x20 and 30x30, were used for the size of the validation sample. Using the trained estimation module of each embodiment and the solver of each comparative example, the matching results for the validation sample of each size were obtained. Then, in the same manner as in the above-mentioned experiment I, the average value of the fairness cost of the matching results for all the obtained validation samples was calculated for the fifth embodiment and each comparative example. Similarly, the average value of the balance cost of the matching results for all the obtained validation samples was calculated for the sixth embodiment and each comparative example. In addition, for each embodiment, a machine learning model is adopted in the estimation module, and it is not always possible to derive the correct answer with certainty, so the success rate of matching was calculated in the same manner as in the above-mentioned experiment I. Furthermore, in each embodiment, it was thought that the average value of the cost of each index would worsen due to the inclusion of the estimation results of failed matching. Therefore, the costs of each index of the matching results for each verification sample were compared between the comparative example with the best average value of each cost (Comparative Example 6 for UD, and Comparative Example 9 for the others) and each Example, and the probability of cases in which each Example was better than the comparative example (win), cases in which they were the same (tie), and cases in which each Example was worse (loss+unstable) was calculated.
[0295] <Result> [Table 1] [Table 2]
[0296] Table 1 shows the results of calculating the above-mentioned evaluation indexes for the fifth embodiment and each comparative example. Table 2 shows the results of calculating the above-mentioned evaluation indexes for the sixth embodiment and each comparative example. As shown in Tables 1 and 2, for the UD verification sample, the sixth comparative example obtained the best results for the cost of each index. For the other verification samples, the ninth comparative example obtained the best results for the cost of each index. However, each embodiment also obtained results equivalent to each comparative example. According to the comparison results of the cost of each index in individual matching with the comparative example with the best results, each embodiment was able to obtain a matching with a good (win) or the same (tie) cost for each index with a probability of 75.7 to 95%. Furthermore, according to each embodiment, it was possible to estimate a stable matching with high accuracy for the 20 x 20 and 30 x 30 verification samples. From these results, it was found that according to the present invention, it is possible to generate a trained estimation module that is comparable to existing optimal algorithms and has the ability to estimate a stable matching with high accuracy.
[0297] [Experiment III: Verification of effectiveness for large-sized graphs] In Experiment III, the size of the training sample and validation sample was changed to 100x100, and the distribution of each sample was changed to UU only. Using the same procedure as in Experiment II, the effectiveness of the present invention was verified by comparing the matching results between the solvers of the following examples and the solvers of the existing algorithms of the comparative examples (Comparative Example 6 to Comparative Example 9 above).
[0298] <Example> The number of feature weaving layers in the third embodiment was changed to 80 layers, and the calculation for obtaining the inference result was changed from argmax calculation to the Hungarian algorithm, to create an estimation module for the seventh embodiment (WN-80f+Hungarian). The other configurations of the seventh embodiment were similar to those of the third embodiment. In addition, the number of feature weaving layers in the fourth embodiment was changed to 80 layers, and the calculation for obtaining the inference result was changed from argmax calculation to the Hungarian algorithm, to create an estimation module for the eighth embodiment (WN-80b+Hungarian). The other configurations of the eighth embodiment were similar to those of the fourth embodiment. For training in the seventh and eighth embodiments, 100×100 training samples were used. The number of training iterations was 300,000. For other machine learning conditions, the same conditions as those of the above experiment I were adopted.
[0299] <Evaluation method> As in the above experiment II, the trained estimation module of each embodiment and the solver of each comparative example were used to obtain matching results for validation samples of each size. Then, for the seventh embodiment and each comparative example, the average fairness cost of the matching results for all the obtained validation samples was calculated. For the eighth embodiment and each comparative example, the average balance cost of the matching results for all the obtained validation samples was calculated. Furthermore, the success rate of matching was calculated for each embodiment.
[0300] <Result> [Table 3]
[0301] Table 3 shows the results of calculating the above-mentioned evaluation indices for each embodiment and each comparative example. From the results shown in Table 3, although the success rate of stable matching deteriorated for a size of 100x100, each embodiment was able to estimate stable matching with relatively high accuracy. Also, as in Experiment II, in terms of the cost of each index, each embodiment was able to obtain results comparable to those of the comparative example with the best results. Therefore, it was found that according to the present invention, it is possible to generate a trained estimation module that is comparable to existing optimal algorithms and has the ability to estimate stable matching with relatively high accuracy even for problems of large size (100x100).
[0302] [Experiment IV: Verification of the effectiveness of each variation] In experiment IV, using samples of the same size as in experiment II, the matching success rate was compared between the following examples and comparative examples to verify the effectiveness of a form in which an encoder 505 is provided individually for each linked tensor, a form in which a normalizer is provided, and a form in which a condition code is assigned.
[0303] <Example> An estimation module according to the ninth embodiment (WN-60f-sym) was created by providing a normalizer configured to normalize the operation results of the encoder after the encoder of each feature weaving layer in the fifth embodiment so as to be shared by each connected tensor. An estimation module according to the tenth embodiment (WN-60f-asym) was created by providing a normalizer configured to normalize the operation results of the encoder after the encoder of each feature weaving layer in the fifth embodiment for each connected tensor, and adding an operation of giving a condition code to each input tensor. An estimation module according to the eleventh embodiment (WN-60f-dual) was created by changing the encoder of each feature weaving layer in the fifth embodiment from a single encoder to an encoder used separately for each connected tensor. An estimation module according to the twelfth embodiment (WN-60f(20)) having the same configuration as the estimation module according to the fifth embodiment was created. An estimation module according to the thirteenth embodiment (WN-60f+Hung) was created by changing the operation results when obtaining the estimation results in the fifth embodiment from argmax operation to the Hungarian algorithm. Other configurations of the ninth to eleventh and twelfth embodiments are similar to those of the fifth embodiment.
[0304] Similarly, an estimation module according to the 14th embodiment (WN-60b-sym) was created by providing a normalizer configured to normalize the operation results of the encoder after the encoder of each feature weaving layer in the 6th embodiment so that it is shared by each connected tensor. An estimation module according to the 15th embodiment (WN-60b-asym) was created by providing a normalizer configured to normalize the operation results of the encoder after the encoder of each feature weaving layer in the 6th embodiment for each connected tensor, and adding an operation of adding a condition code to each input tensor. An estimation module according to the 16th embodiment (WN-60b-dual) was created by changing the encoder of each feature weaving layer in the 6th embodiment from a single encoder to an encoder used separately for each connected tensor. An estimation module according to the 17th embodiment (WN-60b(20)) having the same configuration as the estimation module according to the 6th embodiment was created. An estimation module according to the 18th embodiment (WN-60b+Hung) was created by changing the operation results when obtaining the estimation results in the 6th embodiment from argmax operation to the Hungarian algorithm. Other configurations of the 14th to 16th and 18th embodiments are similar to those of the 6th embodiment.
[0305] <Comparative Example> The number of layers constituting the feature extractor in the fifth comparative example was changed to 60, and the fairness index (λ f , with a weight of 0.01) was added to the loss function to create an estimation module for the 10th comparative example (SSWN-60f). In addition, the number of layers constituting the feature extractor in the 5th comparative example was changed to 60, and the fairness index (λ b , with a weight of 0.01) was added to the loss function to create an estimation module for the 11th comparative example (SSWN-60b). The other configurations of the 10th and 11th comparative examples were the same as those of the 5th comparative example.
[0306] <Machine learning and evaluation methods> A training sample of 20 × 20 was used for training in the 12th and 17th examples. A training sample of 30 × 30 was used for training in the other examples and comparative examples. Other machine learning conditions were the same as those in the above experiment I.
[0307] Two different sizes, 20x20 and 30x30, were adopted for the size of the validation sample. Using the trained estimation module of each example and each comparative example, the matching results for the validation sample of each size were obtained. Then, the matching success rate was calculated for each example and each comparative example in the same manner as in Experiment I above. For the 9th example to the 13th example and the 10th comparative example, the average value of the fairness cost of the matching results for all the obtained validation samples was calculated. For the 14th example to the 18th example and the 11th comparative example, the average value of the balance cost of the matching results for all the obtained validation samples was calculated. Note that for UU, DD, and GG, which have no bias in distribution, the verification of the 10th example, the 11th example, the 15th example, and the 16th example was omitted.
[0308] <Result> [Table 4] [Table 5]
[0309] Table 4 shows the results of calculating the average matching success rate and fairness cost for the 9th to 13th examples and the 10th comparative example. Table 5 shows the results of calculating the average matching success rate and balance cost for the 14th to 18th examples and the 11th comparative example. Better results were obtained for each example than for each comparative example in terms of both success rate and cost of each index. These results demonstrate the effectiveness of the present invention.
[0310] In addition, it was found that when there is a bias in the input distribution, in a configuration in which an encoder is used in common (for example, the ninth embodiment and the fourteenth embodiment), the matching success rate and the cost of each index may deteriorate. In contrast, it was found that the matching success rate and the cost of each index can be improved according to a configuration in which an encoder is provided separately for each linked tensor (the eleventh embodiment and the sixteenth embodiment) and a configuration in which the first and second methods in <4.5> above are adopted (the tenth embodiment and the fifteenth embodiment).
[0311] Furthermore, when comparing these configurations, the configurations employing the first and second methods in <4.5> above were more likely to produce better results than the configuration in which separate encoders were used. This result shows that the first and second methods in <4.5> above are effective as methods for suppressing the amplification of bias due to differences in input distributions, even without providing separate encoders (i.e., while suppressing the increase in parameters). [Explanation of symbols]
[0312] 1...Model generation device, 11: control unit, 12: storage unit, 13: communication interface, 14...External interface, 15...input device, 16...output device, 17...drive, 81...model generation program, 91...storage medium, 111: Acquisition unit; 112: Learning processing unit; 113...storage processing section, 125...Learning outcome data, 2...estimation device, 21: control unit, 22: storage unit, 23: communication interface, 24…External interface, 25...input device, 26...output device, 27...drive, 82... Estimated program, 92... Storage medium, 211: Acquisition unit, 212: Estimation unit, 213: Output unit, 221...Target graph, 30...Training graph, 5…Estimation module, 50…Feature-woven network, 500... feature weaving layer, 505... encoder, 55...Estimator
Claims
1. an acquisition unit configured to acquire a plurality of training graphs; A learning processing unit configured to perform machine learning of an estimation module using the acquired training graphs; A model generating device comprising: the estimation module comprises a feature weaving network and an estimator; The feature weaving network is configured to receive an input of an input graph and output feature information related to the input graph by including a plurality of feature weaving layers; the estimator is configured to estimate a solution to a task for the input graph from the feature information output by the feature weaving network; Each of the feature weaving layers receives inputs of a first input tensor and a second input tensor of rank 3; the first input tensor is configured to have a first axis along which first vertices belonging to a first set of the input graph are arranged as elements, a second axis along which second vertices belonging to a second set of the input graph are arranged as elements, and a third axis along which feature quantities related to edges flowing out from the first vertices to the second vertex are arranged as elements; the second input tensor is configured to have a first axis along which the second vertices are arranged as elements, a second axis along which the first vertices are arranged as elements, and a third axis along which feature quantities related to branches flowing out from the second vertices to the first vertex are arranged as elements; Each of the feature weaving layers comprises an encoder; Each of the feature woven layers comprises: a third-order first concatenated tensor is generated by fixing the third axis of the second input tensor and rotating the other axes of the second input tensor one by one, and concatenating features of each element of the first input tensor and the second input tensor that has been rotated; a third-order second concatenated tensor is generated by fixing the third axis of the first input tensor and rotating the other axes of the first input tensor one by one, and concatenating the features of each element of the second input tensor and the first input tensor that has been rotated; Dividing the generated first concatenated tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a third-order first output tensor corresponding to the first input tensor; and Dividing the generated second connected tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a second output tensor of third order corresponding to the second input tensor. It is configured as follows: The encoder is configured to derive a relative feature value of each element from the features of all the input elements; a first feature weaving layer of the plurality of feature weaving layers configured to receive the first input tensor and the second input tensor from the input graph; the feature information is composed of the first output tensor and the second output tensor output from a last feature weaving layer of the plurality of feature weaving layers; and The machine learning is configured by training the estimation module so that an estimation result obtained by the estimator by inputting each of the training graphs as the input graph to the feature weaving network matches a correct answer to the task for each of the training graphs. Model generation device.
2. The feature weaving network has a residual structure. The model generating device according to claim 1 .
3. The encoder of each of the feature weaving layers is composed of a single encoder commonly used between each element of the first axis of the first connected tensor and the second connected tensor.
3. The model generating device according to claim 1 or 2.
4. Each of the feature weaving layers further comprises, for each of the connected tensors, a normalizer configured to normalize a result of the encoder operation.
4. The model generating device according to claim 3.
5. Each of the feature weaving layers is further configured to apply a condition code to a third axis of each of the first input tensor and the second input tensor before performing the encoder operation.
5. A model generating device according to claim 3 or 4.
6. each training graph is a directed bipartite graph; A plurality of vertices constituting the directed bipartite graph are divided so as to belong to one of two subsets; the first set of input graphs corresponds to one of the two subsets of the directed bipartite graph; the second set of input graphs corresponds to the other of the two subsets of the directed bipartite graph; A model generating device according to any one of claims 1 to 5.
7. the task is a matching task between two parties, determining an optimal pairing of targets belonging to each party; the two subsets of the directed bipartite graph correspond to the two parties in the matching task; the vertices belonging to each of the subsets of the directed bipartite graph correspond to the objects belonging to each of the parties; a feature value related to an edge extending from the first vertex to the second vertex corresponds to a desirability from an object belonging to one of the two parties to an object belonging to the other of the two parties; a feature value relating to a branch flowing from the second vertex to the first vertex corresponds to a desirability of a target belonging to one of the two parties from a target belonging to the other of the two parties; 7. The model generating apparatus of claim 6.
8. each said training graph is an undirected bipartite graph; A plurality of vertices constituting the undirected bipartite graph are divided so as to belong to either of two subsets; the first set of input graphs corresponds to one of the two subsets of the undirected bipartite graph; the second set of input graphs corresponds to the other of the two subsets of the undirected bipartite graph; A model generating device according to any one of claims 1 to 5.
9. the task is a matching task between two parties, determining an optimal pairing of targets belonging to each party; the two subsets of the undirected bipartite graph correspond to the two parties in the matching task; the vertices belonging to each of the subsets of the undirected bipartite graph correspond to the objects belonging to each of the parties; a feature value related to an edge flowing from the first vertex to the second vertex and a feature value related to an edge flowing from the second vertex to the first vertex both correspond to a cost or a reward of pairing an object belonging to one of the two parties and an object belonging to the other of the two parties; 9. The model generating apparatus of claim 8.
10. each said training graph is a directed graph; the first vertex belonging to the first set of the input graph corresponds to a starting point of a directed edge constituting the directed graph; the second vertex belonging to the second set corresponds to an end point of the directed edge; an edge extending from the first vertex to the second vertex corresponds to a directed edge extending from the starting point to the ending point; an edge extending from the second vertex to the first vertex corresponds to a directed edge extending from the starting point to the ending point; A model generating device according to any one of claims 1 to 5.
11. the directed graph is configured to represent a network; the task is to estimate events occurring on the network; a feature amount related to an edge extending from the first vertex to the second vertex, and a feature amount related to an edge extending from the second vertex to the first vertex, both of which correspond to attributes of connections between the vertices constituting the network; The model generating device according to claim 10.
12. each said training graph is an undirected graph; the first vertices belonging to the first set and the second vertices belonging to the second set of the input graph correspond to vertices constituting the undirected graph, The first input tensor and the second input tensor input to each of the feature weaving layers are identical to each other, the first output tensor and the second output tensor generated by each of the feature weaving layers are identical to each other; The process of generating the first output tensor and the process of generating the second output tensor are performed in common. A model generating device according to any one of claims 1 to 5.
13. Each of the training graphs is a vertex feature graph composed of a plurality of vertices, each vertex having an attribute; the first vertex belonging to the first set and the second vertex belonging to the second set of the input graph correspond to vertices constituting the vertex feature graph, a feature amount relating to an edge flowing out from the first vertex to the second vertex corresponds to an attribute of a vertex of the vertex feature graph corresponding to the first vertex; a feature value related to an edge flowing from the second vertex to the first vertex corresponds to an attribute of a vertex of the vertex feature graph corresponding to the second vertex; A model generating device according to any one of claims 1 to 5.
14. Each element of the third axis of each of the first input tensor and the second input tensor from the input graph is concatenated or multiplied with information indicating a relationship between corresponding vertices of the vertex feature graph; the task is to infer events derived from the vertex feature graph; 14. The model generating apparatus of claim 13.
15. The task is to estimate relationships between vertices constituting the vertex feature graph.
14. The model generating apparatus of claim 13.
16. an acquisition unit configured to acquire a target graph; an estimator configured to estimate a solution of a task for the obtained object graph using a machine learning trained estimation module; an output unit configured to output information regarding a result of estimating a solution to the task; An estimation device comprising: the estimation module comprises a feature weaving network and an estimator; The feature weaving network is configured to receive an input of an input graph and output feature information related to the input graph by including a plurality of feature weaving layers; the estimator is configured to estimate a solution to a task for the input graph from the feature information output by the feature weaving network; Each of the feature weaving layers receives inputs of a first input tensor and a second input tensor of rank 3; the first input tensor is configured to have a first axis along which first vertices belonging to a first set of the input graph are arranged as elements, a second axis along which second vertices belonging to a second set of the input graph are arranged as elements, and a third axis along which feature quantities related to edges flowing out from the first vertices to the second vertex are arranged as elements; the second input tensor is configured to have a first axis along which the second vertices are arranged as elements, a second axis along which the first vertices are arranged as elements, and a third axis along which feature quantities related to branches flowing out from the second vertices to the first vertex are arranged as elements; Each of the feature weaving layers comprises an encoder; Each of the feature woven layers comprises: a third-order first concatenated tensor is generated by fixing the third axis of the second input tensor and rotating the other axes of the second input tensor one by one, and concatenating features of each element of the first input tensor and the second input tensor that has been rotated; a third-order second concatenated tensor is generated by fixing the third axis of the first input tensor and rotating the other axes of the first input tensor one by one, and concatenating the features of each element of the second input tensor and the first input tensor that has been rotated; Dividing the generated first concatenated tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a third-order first output tensor corresponding to the first input tensor; and Dividing the generated second connected tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a second output tensor of third order corresponding to the second input tensor. It is configured as follows: The encoder is configured to derive a relative feature value of each element from the features of all the input elements; a first feature weaving layer of the plurality of feature weaving layers configured to receive the first input tensor and the second input tensor from the input graph; the feature information is composed of the first output tensor and the second output tensor output from a last feature weaving layer of the plurality of feature weaving layers; and and estimating a solution to the task for the object graph using the trained estimator module comprises inputting the object graph as the input graph to the feature weaving network and obtaining an estimated solution to the task from the estimator. Estimation device.
17. The computer obtaining a number of training graphs; performing machine learning of an estimation module using the obtained training graphs; A model generation method comprising: the estimation module comprises a feature weaving network and an estimator; The feature weaving network is configured to receive an input of an input graph and output feature information related to the input graph by including a plurality of feature weaving layers; the estimator is configured to estimate a solution to a task for the input graph from the feature information output by the feature weaving network; Each of the feature weaving layers receives inputs of a first input tensor and a second input tensor of rank 3; the first input tensor is configured to have a first axis along which first vertices belonging to a first set of the input graph are arranged as elements, a second axis along which second vertices belonging to a second set of the input graph are arranged as elements, and a third axis along which feature quantities related to edges flowing out from the first vertices to the second vertex are arranged as elements; the second input tensor is configured to have a first axis along which the second vertices are arranged as elements, a second axis along which the first vertices are arranged as elements, and a third axis along which feature quantities related to branches flowing out from the second vertices to the first vertex are arranged as elements; Each of the feature weaving layers comprises an encoder; Each of the feature woven layers comprises: a third-order first concatenated tensor is generated by fixing the third axis of the second input tensor and rotating the other axes of the second input tensor one by one, and concatenating features of each element of the first input tensor and the second input tensor that has been rotated; a third-order second concatenated tensor is generated by fixing the third axis of the first input tensor and rotating the other axes of the first input tensor one by one, and concatenating the features of each element of the second input tensor and the first input tensor that has been rotated; Dividing the generated first concatenated tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a third-order first output tensor corresponding to the first input tensor; and Dividing the generated second connected tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a second output tensor of third order corresponding to the second input tensor. It is configured as follows: The encoder is configured to derive a relative feature value of each element from the features of all the input elements; a first feature weaving layer of the plurality of feature weaving layers configured to receive the first input tensor and the second input tensor from the input graph; the feature information is composed of the first output tensor and the second output tensor output from a last feature weaving layer of the plurality of feature weaving layers; and The machine learning is configured by training the estimation module so that an estimation result obtained by the estimator by inputting each of the training graphs as the input graph to the feature weaving network matches a correct answer to the task for each of the training graphs. Model generation method.
18. On the computer, obtaining a number of training graphs; performing machine learning of an estimation module using the obtained training graphs; A model generation program for executing the estimation module comprises a feature weaving network and an estimator; The feature weaving network is configured to receive an input of an input graph and output feature information related to the input graph by including a plurality of feature weaving layers; the estimator is configured to estimate a solution to a task for the input graph from the feature information output by the feature weaving network; Each of the feature weaving layers receives inputs of a first input tensor and a second input tensor of rank 3; the first input tensor is configured to have a first axis along which first vertices belonging to a first set of the input graph are arranged as elements, a second axis along which second vertices belonging to a second set of the input graph are arranged as elements, and a third axis along which feature quantities related to edges flowing out from the first vertices to the second vertex are arranged as elements; the second input tensor is configured to have a first axis along which the second vertices are arranged as elements, a second axis along which the first vertices are arranged as elements, and a third axis along which feature quantities related to branches flowing out from the second vertices to the first vertex are arranged as elements; Each of the feature weaving layers comprises an encoder; Each of the feature woven layers comprises: a third-order first concatenated tensor is generated by fixing the third axis of the second input tensor and rotating the other axes of the second input tensor one by one, and concatenating features of each element of the first input tensor and the second input tensor that has been rotated; a third-order second concatenated tensor is generated by fixing the third axis of the first input tensor and rotating the other axes of the first input tensor one by one, and concatenating the features of each element of the second input tensor and the first input tensor that has been rotated; Dividing the generated first concatenated tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a third-order first output tensor corresponding to the first input tensor; and Dividing the generated second connected tensor into elements of a first axis and inputting the divided tensor into the encoder, and executing the operation of the encoder to generate a second output tensor of third order corresponding to the second input tensor. It is configured as follows: The encoder is configured to derive a relative feature value of each element from the features of all the input elements; a first feature weaving layer of the plurality of feature weaving layers configured to receive the first input tensor and the second input tensor from the input graph; the feature information is composed of the first output tensor and the second output tensor output from a last feature weaving layer of the plurality of feature weaving layers; and The machine learning is configured by training the estimation module so that an estimation result obtained by the estimator by inputting each of the training graphs as the input graph to the feature weaving network matches a correct answer to the task for each of the training graphs. Model generator.
19. an acquisition unit configured to acquire a plurality of training graphs; A learning processing unit configured to perform machine learning of an estimation module using the acquired training graphs; A model generating device comprising: Each training graph is a K-part hypergraph, K is 3 or more; A plurality of vertices constituting the hypergraph are divided so as to belong to any one of K subsets; the estimation module comprises a feature weaving network and an estimator; The feature weaving network is configured to receive an input of an input graph and output feature information related to the input graph by including a plurality of feature weaving layers; the estimator is configured to estimate a solution to a task for the input graph from the feature information output by the feature weaving network; Each of the feature weaving layers accepts K (K+1)-th order input tensors as inputs; The i-th input tensor of the K input tensors is The first axis is arranged with the i-th vertices belonging to the i-th subset of the input graph as elements, On the j-th axis from the second axis to the K-th axis, vertices belonging to the (j-1)-th subset are arranged as elements in a circular manner starting from the i-th subset, and The (K+1)-th axis is arranged with feature quantities related to edges flowing from the i-th vertex belonging to the i-th subset to combinations of vertices belonging to each of the (K-1) other subsets as elements. It is configured as follows: Each of the feature weaving layers comprises an encoder; Each of the feature woven layers comprises: For the i-th input tensor from the first to K-th input tensors, fix the (K+1) axis of each of the (K-1) other input tensors other than the i-th input tensor, rotate the axes other than the (K+1) axis of each of the other input tensors so as to align with the axes of the i-th input tensor, and generate K (K+1)-th-order concatenated tensors by concatenating features of each element of the i-th input tensor and each of the rotated other input tensors; Dividing each of the K concatenated tensors generated for each element of the first axis and inputting the divided tensors to the encoder, and executing the operation of the encoder to generate K (K+1)-th order output tensors corresponding to the K input tensors, respectively. It is configured as follows: The encoder is configured to derive a relative feature value of each element from the features of all the input elements; a first feature weaving layer of the plurality of feature weaving layers configured to receive the K input tensors from the input graph; the feature information is composed of the K output tensors output from a last feature weaving layer of the plurality of feature weaving layers; and The machine learning is configured by training the estimation module so that an estimation result obtained by the estimator by inputting each of the training graphs as the input graph to the feature weaving network matches a correct answer to the task for each of the training graphs. Model generation device.
