Hypothetical reasoning device, hypothetical reasoning method and program
By selectively enumerating and considering a subset of logical constraints, the hypothesis inference device and method improve computational efficiency in generating solution hypotheses, addressing the bottleneck of processing time in existing methods.
Patent Information
- Application Number
- JP2023514302
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-04-16
AI Technical Summary
Existing methods for hypothesis inference, such as those described in Non-Patent Documents 1 and 2, require enumerating all logical constraints, leading to increased calculation time when dealing with a large number of constraints, which becomes a bottleneck in computational efficiency.
A hypothesis inference device and method that selectively enumerates and considers only some logical constraints, constructing a constraint set and searching for solution hypotheses based on this subset, rather than all constraints, to improve computational efficiency.
This approach enhances the efficiency of generating solution hypotheses by reducing the search space and computational time, especially in scenarios with numerous logical constraints.
Smart Images

Figure 0007544261000009 
Figure 0007544261000003 
Figure 0007544261000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for abductive reasoning. [Background technology]
[0002] Abduction (Abductive reasoning) is an inference method that receives a query logical formula (Query) that represents an observation and background knowledge, and outputs a logical formula that represents the best hypothesis based on a specified evaluation function. Here, the specified evaluation function is a function (Evaluation function) that expresses the merit of each hypothesis candidate with a real value. Furthermore, the logical formula that represents the best hypothesis is the best one (Solution hypothesis) among the logical formulas (Hypotheses) that are consistent with the background knowledge and can be used to deductively derive the query logical formula that represents the observation.
[0003] Non-Patent Document 1 discloses a method for implementing abductive reasoning on a computer. In addition, Non-Patent Document 2 discloses, as an extension of the method disclosed in Non-Patent Document 1, a method for efficiently performing calculations by sequentially considering logical constraints. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Naoya Inoue and Kentaro Inui. ILP-based Reasoning for Weighted Abduction. In Proceedings of AAAI Workshop on Plan, Activity and Intent Recognition, pp. 25-32, August 2011. [Non-Patent Document 2] Naoya Inoue and Kentaro Inui. Large-scale Cost-based Abduction in Full-fledged First-order Predicate Logic with Cutting Plane Inference. In Proceedings of the 13th European Conference on Logics in Artificial Intelligence, pp.281-293, September 2012. Summary of the Invention [Problem to be solved by the invention]
[0005] The techniques disclosed in Non-Patent Document 1 and Non-Patent Document 2 employ a procedure in which all logical constraints necessary for inference are enumerated, and then the solution hypotheses are obtained by providing the enumerated logical constraints to a mathematical optimization solver. Therefore, in cases in which the number of logical constraints to be considered is enormous, there is a problem in that the computation time required for the process of enumerating the logical constraints becomes long, and this process becomes a bottleneck, lengthening the overall inference time.
[0006] One aspect of the present invention has been made in consideration of the above problems, and one object of the present invention is to provide a technique for improving the calculation efficiency related to generation of solution hypotheses in abductive reasoning. [Means for solving the problem]
[0007] A hypothetical reasoning device according to one aspect of the present invention includes an acquisition means for acquiring background knowledge information in which background knowledge is expressed by one or more logical formulas, and query information in which observed facts are expressed by one or more logical formulas; a generation means for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a construction means for constructing a constraint set by listing some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search means for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination means for determining whether the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set, among the logical constraints that should be satisfied between the elements constituting the candidate; and an output means for outputting the candidate solution hypothesis as a solution hypothesis if the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set.
[0008] A hypothetical reasoning method according to one aspect of the present invention is characterized in that it includes a hypothetical reasoning device acquiring background knowledge information in which background knowledge is expressed by one or more logical formulas, and query information in which observed facts are expressed by one or more logical formulas, generating a plurality of hypotheses by referring to the background knowledge information and the query information, constructing a constraint set by enumerating some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses, searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set, determining whether the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among the logical constraints that should be satisfied between the elements constituting the candidate, and, if the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set, outputting the candidate solution hypothesis as a solution hypothesis.
[0009] A program according to one aspect of the present invention is a program that causes a computer to function as a hypothetical reasoning device, the program causing the computer to function as: an acquisition means for acquiring background knowledge information in which background knowledge is expressed by one or more logical formulas, and query information in which observed facts are expressed by one or more logical formulas; a generation means for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a construction means for constructing a constraint set by listing some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search means for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination means for determining whether the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set, among the logical constraints that should be satisfied between the elements constituting the candidate; and an output means for outputting the candidate solution hypothesis as a solution hypothesis if the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set. Effect of the Invention
[0010] According to one aspect of the present invention, it is possible to improve the computational efficiency of generating solution hypotheses in abductive reasoning. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing a configuration of a hypothetical reasoning device according to a first exemplary embodiment of the present invention. [Diagram 2] 1 is a flow diagram showing the flow of a hypothetical reasoning method according to an exemplary embodiment 1 of the present invention. [Diagram 3] FIG. 11 is a block diagram showing a configuration of a hypothetical reasoning device according to an exemplary embodiment 2 of the present invention. [Figure 4] FIG. 11 is a flow chart showing the flow of a hypothetical reasoning method according to an exemplary embodiment 2 of the present invention. [Diagram 5] FIG. 11 is a diagram showing an example of a logical constraint to be considered in reasoning involving an order relation according to exemplary embodiment 2 of the present invention. [Figure 6] FIG. 11 is a diagram illustrating a relationship between hypotheses and logical constraints according to the second exemplary embodiment of the present invention. [Figure 7] FIG. 2 is a block diagram showing an example of a hardware configuration of the hypothetical reasoning device in each exemplary embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Example 1 A first exemplary embodiment of the present invention will be described in detail with reference to the drawings. This exemplary embodiment is a basic form of the exemplary embodiments described later.
[0013] (Configuration of the Hypothetical Reasoning Device) The configuration of a hypothetical reasoning device 1 according to this exemplary embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the configuration of the hypothetical reasoning device 1. The hypothetical reasoning device 1 is a device that generates hypotheses through hypothetical reasoning. The hypothetical reasoning device 1 includes an acquisition unit 11, a generation unit 12, a construction unit 13, a search unit 14, a determination unit 15, and an output unit 16.
[0014] (Acquisition Department) The acquisition unit 11 acquires background knowledge information in which background knowledge is expressed by one or more logical expressions, and query information in which observed facts are expressed by one or more logical expressions. The background knowledge information is information in which a set of rules (background knowledge) in which if the antecedent is true, the consequent is true, is expressed by one or more logical expressions. The background knowledge is sometimes called inference knowledge. The query information is information in which observed facts are expressed by one or more logical expressions.
[0015] The acquisition unit 11 may acquire one or both of the background knowledge information and the query information by reading them from a storage device built into the hypothetical reasoning device 1, or may acquire them by reading them from an external storage device. The acquisition unit 11 may also acquire them by receiving one or both of the background knowledge information and the query information from another device via a communication unit. The acquisition unit 11 may also generate one or both of the background knowledge information and the query information in response to an input operation by a user performed via an arbitrary input device such as a mouse or a touch panel, and acquire the generated information.
[0016] (Generation part) The generation unit 12 generates a plurality of hypotheses by referring to the background knowledge information and the query information. The hypotheses are expressed by logical expressions, similar to the background knowledge information and the query information. As a specific method for generating a plurality of hypotheses using the background knowledge information and the query information, various methods can be applied, such as weighted abductive reasoning as described in "Yamamoto Futo et al., 'Supervised Learning of Weighted Abductive Reasoning Using Error Backpropagation,' Information Processing Society of Japan Research Report, Vol. 2012-NL-206 No. 9 / Vol. 2012-SLP-91 No. 9, 2012."
[0017] (Construction Department) The construction unit 13 constructs a constraint set by enumerating some of the logical constraints that should be satisfied between the elements constituting each of the hypotheses. A logical constraint is a constraint that should be satisfied so that a hypothesis does not contradict background knowledge. The logical constraints are classified into a plurality of types. The construction unit 13 enumerates some of the types of logical constraints among the plurality of types of logical constraints.
[0018] The logical constraints enumerated by the construction unit 13 are logical constraints that should be satisfied by the multiple hypotheses generated by the generation unit 12, and are not targeted by the judgment unit 15 described later. The logical constraints enumerated by the construction unit 13 are, for example, constraints that satisfy the condition that a combination of logical expressions that leads to a contradiction should not exist in the solution hypothesis. In addition, the logical constraints are, for example, constraints that satisfy the condition that the solution hypothesis must be capable of deductively deriving an observation. For example, the construction unit 13 enumerates logical constraints that are not targeted for judgment by the judgment unit 15 using the method described in Non-Patent Document 1 or Non-Patent Document 2. Note that the method by which the construction unit 13 enumerates logical constraints is not limited to the above-mentioned method. The construction unit 13A may enumerate logical constraints using other methods.
[0019] (Exploration Department) The search unit 14 refers to the constraint set and searches for one of the multiple hypotheses generated by the generation unit 12 as a candidate solution hypothesis. In other words, the search unit 14 searches for a candidate solution hypothesis from among the multiple hypotheses under the logical constraints listed by the construction unit 13. As an example, the search unit 14 expresses the constraint set as an integer linear programming problem and searches for a candidate solution hypothesis by using a solver for any integer linear programming problem. Note that the search unit 14 may search for a candidate solution hypothesis using other methods.
[0020] (Judgment Department) The determination unit 15 determines whether or not the solution hypothesis candidate satisfies a logical constraint that is not included in the constraint set constructed by the construction unit 13, among the logical constraints that should be satisfied between the elements constituting the candidate. As an example, the determination unit 15 generates a logical constraint to be determined based on the elements constituting the solution hypothesis candidate, and determines whether or not the solution hypothesis candidate satisfies the generated logical constraint. As an example, the determination unit 15 lists the logical constraints to be determined by the determination unit 15 using the method described in Non-Patent Document 1 or Non-Patent Document 2. Note that the method by which the determination unit 15 lists the logical constraints is not limited to the above-mentioned method. The determination unit 15 may list the logical constraints to be determined using another method.
[0021] (Output section) When a candidate for a solution hypothesis satisfies a logical constraint not included in the constraint set, the output unit 16 outputs the candidate as a solution hypothesis. For example, the output unit 16 may display the solution hypothesis on a display panel, or may store the solution hypothesis in a recording medium (not shown). For example, the output unit 16 may output the solution hypothesis to another device via an input / output interface or a communication interface.
[0022] As described above, the hypothetical reasoning device 1 according to this exemplary embodiment has a configuration including an acquisition unit 11 that acquires background knowledge information in which background knowledge is expressed by one or more logical formulas, and query information in which observed facts are expressed by one or more logical formulas, a generation unit 12 that generates a plurality of hypotheses by referring to the background knowledge information and the query information, a construction unit 13 that constructs a constraint set by listing some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses, a search unit 14 that searches for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set, a determination unit 15 that determines whether the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set, among the logical constraints that should be satisfied between the elements constituting the candidate, and an output unit 16 that outputs the candidate solution hypothesis as a solution hypothesis when the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set.
[0023] According to the above configuration, the hypothetical reasoning device 1 searches for solution hypothesis candidates by referring to some of the logical constraints, rather than all of the logical constraints that should be satisfied between the elements constituting each of the hypotheses. This makes it possible to improve the calculation efficiency for generating solution hypotheses, compared to the case where a solution hypothesis is searched for by referring to all of the logical constraints.
[0024] (Flow of the hypothetical reasoning method) The flow of the hypothetical reasoning method according to this exemplary embodiment will be described with reference to Fig. 2. Fig. 2 is a flow diagram showing the flow of the hypothetical reasoning method. As shown in Fig. 2, the hypothetical reasoning method according to this exemplary embodiment includes at least steps S11 to S16.
[0025] In step S11, the acquisition unit 11 acquires background knowledge information in which background knowledge is expressed by one or more logical expressions, and query information in which observed facts are expressed by one or more logical expressions. In step S12, the generation unit 12 generates a plurality of hypotheses by referring to the background knowledge information and the query information. In step S13, the construction unit 13 constructs a constraint set by listing some of the plurality of logical constraints that should be satisfied between the plurality of elements that respectively constitute the plurality of hypotheses. In step S14, the search unit 14 searches for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set.
[0026] In step S15, the determination unit 15 determines whether the solution hypothesis candidate satisfies a logical constraint not included in the constraint set among the logical constraints that should be satisfied between the elements constituting the candidate. In step S16, the output unit 16 outputs the solution hypothesis candidate as a solution hypothesis if the solution hypothesis candidate satisfies a logical constraint not included in the constraint set.
[0027] According to the hypothetical reasoning method of this exemplary embodiment, it is possible to obtain an effect of improving the calculation efficiency for generating solution hypotheses in hypothetical reasoning. Note that, when the functions of the acquisition unit 11, the generation unit 12, the construction unit 13, the search unit 14, the determination unit 15, and the output unit 16 are realized by at least one processor, the main body of the processes of S11 to S16 can also be expressed as at least one processor.
[0028] Exemplary embodiment 2 A second exemplary embodiment of the present invention will be described in detail with reference to the drawings. Note that components having the same functions as those described in the first exemplary embodiment are given the same reference numerals, and the description thereof will be omitted as appropriate.
[0029] (Configuration of the Hypothetical Reasoning Device) The configuration of a hypothetical reasoning device 1A according to this exemplary embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing the configuration of the hypothetical reasoning device 1A. Like the hypothetical reasoning device 1 of exemplary embodiment 1, the hypothetical reasoning device 1A is a device that generates hypotheses through hypothetical reasoning. Fig. 3 also shows an input device 2 that inputs background knowledge information and query information to the hypothetical reasoning device 1A, and an output device 3 that is an output destination of information output by the hypothetical reasoning device 1A.
[0030] The hypothetical reasoning device 1A includes an acquisition unit 11A, a generation unit 12A, a construction unit 13A, a search unit 14A, a determination unit 15A, and an output unit 16A. The hypothetical reasoning device 1A also includes a background knowledge information storage unit 21A, a query information storage unit 22A, a hypothesis set storage unit 23A, and a constraint set storage unit 24A.
[0031] The acquisition unit 11A acquires background knowledge information and query information, similar to the acquisition unit 11 in the exemplary embodiment 1. As an example, the acquisition unit 11A acquires the background knowledge information and query information input by the input device 2, and stores them in the background knowledge information storage unit 21A and the query information storage unit 22A.
[0032] The generation unit 12A generates a plurality of hypotheses by referring to background knowledge information and query information, similarly to the generation unit 12 in the exemplary embodiment 1. The generation unit 12A stores the generated hypotheses in a hypothesis set storage unit 23A.
[0033] The construction unit 13A, like the construction unit 13 in the exemplary embodiment 1, constructs a constraint set by listing some of the logical constraints that should be satisfied between the elements constituting each of the hypotheses. The construction unit 13A stores the constructed constraint set in the constraint set storage unit 24A.
[0034] The search unit 14A, like the search unit 14 in the exemplary embodiment 1, refers to the constraint set and searches for one of the multiple hypotheses as a solution hypothesis candidate. The search unit 14A supplies the searched solution hypothesis candidate to the determination unit 15A.
[0035] Similar to the judgment unit 15 in exemplary embodiment 1, the judgment unit 15A judges whether the candidate solution hypothesis searched for by the search unit 14A satisfies a logical constraint that is not included in the constraint set, among the logical constraints that must be satisfied between the elements constituting the candidate.
[0036] The output unit 16 outputs a candidate solution hypothesis as a solution hypothesis when the candidate solution hypothesis satisfies a logical constraint not included in the constraint set, similarly to the output unit 16 in the exemplary embodiment 1. As an example, the output unit 16 outputs the solution hypothesis to the output device 3.
[0037] The input device 2 is, for example, a mouse, a touch panel, or the like. The input device 2 may also be a device connected to the hypothetical reasoning device 1 via an input / output interface or a communication interface. The output device is, for example, a display device equipped with a display panel, an external storage device, or a printing device. The output device may also be, for example, a device connected to the hypothetical reasoning device 1 via an input / output interface or a communication interface.
[0038] (Flow of the hypothetical reasoning method) 4 is a flowchart showing the flow of a hypothetical reasoning method S10A according to this embodiment. In step S11A, the acquisition unit 11A acquires background knowledge information D1 and query information D2. As an example, the acquisition unit 11A acquires the background knowledge information D1 and the query information D2 from the input device 2.
[0039] In step S12A, the generator 12A sequentially generates a plurality of hypotheses from the background knowledge information D1 and the query information D2 to construct a hypothesis set D3. The method by which the generator 12A generates a plurality of hypotheses is similar to the method by which the generator 12 in the above-described exemplary embodiment 1 generates a plurality of hypotheses.
[0040] In step S13A, the construction unit 13A lists logical constraints that should be satisfied by each hypothesis included in the hypothesis set D3 and are not to be judged by the judgment unit 15A, and constructs a constraint set D4. In other words, the construction unit 13A sets the logical constraints arising from each combination of multiple elements constituting each of the multiple hypotheses generated by the generation unit 12A as the judgment target of the judgment unit 15A, and lists the logical constraints other than the judgment targets among the multiple logical constraints to construct the constraint set.
[0041] In this exemplary embodiment, the logical constraints that the hypothesis should satisfy include, for example, the following four types of logical constraints (i) to (iv). Note that the logical constraints according to this exemplary embodiment are not limited to these, and may include other types of logical constraints. (i) Transitive law of equivalence relations (ii) Transitive, asymmetric and non-reflexive rules for terminology (iii) Constraints for being consistent with background knowledge information D1 (iv) The constraint that hypotheses must be deductively derived from observations.
[0042] (i) The transitive law of equivalence relations is the constraint that the following relationship (1) must hold between any logical variables x, y, and z. (x=y)^(y=z)=>(x=z) …(1)
[0043] (ii) The transitivity, asymmetry, and irreflexivity laws for terms are constraints that the following equations (2) to (4) must hold for a logical formula that has terms whose arguments satisfy these properties. In the following equations (2) to (4), seq is an example of such a term, which expresses a temporal sequence. seq(x,y)^seq(y,z) =>seq(x,z) …(2) seq(x,y) => !seq(x,y) … (3) seq(x,y) => (x!=y) … (4)
[0044] The constraint (iii) that a hypothesis must be inconsistent with the background knowledge information D1, and the constraint (iv) that a hypothesis must be able to be derived deductively from an observation, are expressed by the following equations (5) and (6), respectively. In equations (5) and (6), B is background knowledge included in the background knowledge information D1, H is a hypothesis included in the hypothesis set D3, and O is information representing an observation included in the query information D2.
number
number
[0045] The logical constraints to be judged by the judgment unit 15A include, for example, a logical constraint on an equivalence relationship between a plurality of elements. The logical constraints to be judged by the judgment unit 15A include, for example, a logical constraint on an order relationship between a plurality of elements. The logical constraint to be judged by the judgment unit 15A is also referred to as a "first logical constraint" below. For example, the logical constraints to be judged by the judgment unit 15A are (i) a transitive law on an equivalence relationship, and (ii) a transitive law, an asymmetric law, and an anti-reflexive law on terms.
[0046] On the other hand, the logical constraints listed by the construction unit 13A are, for example, constraints excluding (i) transitive laws regarding equivalence relations, and (ii) transitive laws, asymmetry laws, and anti-reflexive laws regarding terms. In the following description, the logical constraints listed by the construction unit 13A are also referred to as "second logical constraints." For example, the second logical constraints listed by the construction unit 13A include (iii) a constraint for being consistent with the background knowledge information D1, and (iv) a constraint that the hypothesis must be able to derive the observation deductively. As an example of a method used by the construction unit 13A to list the second logical constraints, there are the methods described in Non-Patent Document 1 or Non-Patent Document 2. Note that the method by which the construction unit 13A lists the logical constraints is not limited to this, and the construction unit 13A may use other methods.
[0047] The first logical constraint (logical constraint determined by the determination unit 15), for example, is a type of constraint in which the number of combinations becomes huge as the number of elements increases. The first logical constraint, which is a logical constraint related to the transitive law of equivalence relations and terms expressing order relations, has a feature that the number of combinations to be considered as logical constraints is extremely large, while only a small part of them is required to actually obtain a solution hypothesis. On the other hand, the second logical constraint (logical constraint used by the search unit 14), for example, is a logical constraint in which the number of combinations is not huge compared to the first logical constraint.
[0048] Fig. 5 shows a specific example of the order relationship of elements included in a hypothesis and a combination of logical expressions that form a cycle of order. Considering an inference including a term seq(t1, t2) that indicates a time sequence, this term is subject to the transitivity law, the asymmetry law, and the irreflexivity law. In abductive inference, the number of combinations of logical expressions in which the time sequence expressed by this term causes a cycle, i.e., contradicts the asymmetry law, increases exponentially with the number of logical expressions that have this term, as shown in the figure.
[0049] In step S14A of FIG. 4, the search unit 14A searches for a candidate solution hypothesis D5 from the hypothesis set D3 under the constraint set D4. Hereinafter, the candidate solution hypothesis is also referred to as a "candidate solution hypothesis." As an example, the search unit 14A expresses the constraint set D4 as an integer linear programming problem, and searches for a candidate solution hypothesis by using a solver for any integer linear programming problem. Note that the search unit 14A may search for a candidate solution hypothesis using other methods.
[0050] In step S15A, the determination unit 15A determines whether the solution hypothesis candidate D5 contradicts the first logical constraint. As an example, the determination unit 15A lists first logical constraints including (i) transitive laws regarding equivalence relations and (ii) transitive laws, asymmetry laws, and anti-reflexive laws regarding terms, based on the elements constituting the solution hypothesis candidate D5, and determines whether the solution hypothesis candidate D5 contradicts the listed first logical constraints.
[0051] If the first logical constraints listed by the judgment unit 15A include a contradictory one (step S15; YES), the judgment unit 15A proceeds to the process of step S16A. On the other hand, if there is no contradictory first logical constraint (step S15A; NO), the judgment unit 15A proceeds to the process of step S17A.
[0052] In step S16A, the judgment unit 15A adds the first logical constraint that is inconsistent with the solution hypothesis candidate D5 to the constraint set D4. When the judgment unit 15A finishes the process of step S16A, the process returns to the process of step S14A, and the search unit 14A executes the search for the solution hypothesis candidate D5 again. In other words, in steps S15A to S14A, if the solution hypothesis candidate D5 does not satisfy a first logical constraint that is not included in the constraint set D4, the judgment unit 15A adds the first logical constraint to the constraint set D4 and causes the search unit 14A to function again. The hypothetical reasoning device 1A repeatedly executes steps S14A to S16A until a solution hypothesis that is not inconsistent with the logical constraints is obtained.
[0053] In step S14A, the search unit 14A may exclude solution hypothesis candidates that do not satisfy the first logical constraint that is not included in the constraint set D4, and may search for new solution hypothesis candidates with reference to the constraint set D4.
[0054] In step S17A, output section 16A outputs solution hypothesis candidate D5 as a solution hypothesis. Output section 16A outputs the solution hypothesis to output device 3, for example.
[0055] 6 is a diagram showing a schematic relationship between hypotheses and logical constraints. In the example of the figure, a hypothesis set D3 includes hypotheses h1, h2, h3, .... A constraint set D7 is a set of logical constraints to which the hypotheses included in the hypothesis set D3 should depend, and includes a constraint set D4. The constraint set D4 is a set constructed by the construction unit 13A, that is, a set of second logical constraints.
[0056] Moreover, logical constraints x11, x12, ..., y11, y12, ... are logical constraints that should be satisfied between elements constituting hypothesis h1. Logical constraints x21, x22, ..., y21, y22, ... are logical constraints that should be satisfied between elements constituting hypothesis h2. Logical constraints x31, x32, ..., y31, y32, ... are logical constraints that should be satisfied between elements constituting hypothesis h3. Note that, in order to facilitate understanding of the explanation, FIG. 6 illustrates a case in which the logical constraints included in the constraint set D7 each correspond to one hypothesis, but some or all of the logical constraints included in the constraint set D7 may correspond to multiple hypotheses.
[0057] In this example, when the search unit 14A identifies a hypothesis h2 as a solution hypothesis candidate D5, the judgment unit 15A lists first logical constraints y21, y22, ... that should be satisfied between a plurality of elements of the elements e21, e22, ... that constitute the hypothesis h2, and performs judgment. That is, the judgment unit 15A does not list first logical constraints y11, y12, ..., y31, y32, ... that are related to hypotheses h1, h3, ... other than the solution hypothesis candidate D5, from the set D6 of first logical constraints shown in FIG.
[0058] Incidentally, in Non-Patent Document 1 and Non-Patent Document 2, hypothetical reasoning is performed by the following method. First, candidate solution hypotheses are enumerated from the query logical formula and background knowledge. Next, in this method, the problem of searching for the best solution hypothesis from among the enumerated candidate solution hypotheses is equivalently converted into a constrained combinatorial optimization problem such as an integer linear programming problem. Then, in this method, the best solution hypothesis is obtained from the converted optimization problem using an external solver.
[0059] In addition, in the method described in Non-Patent Document 2, when searching for the best solution hypothesis, not all constraints are given to the solver, but only a portion of the logical constraints are given to the solver, and it is determined whether the solution hypothesis obtained from the above satisfies the remaining constraints, and if any of the logical constraints are violated, the logical constraint is added to the solver and the search for the best solution hypothesis is performed again. The document claims that by adopting such a procedure, the search for the best solution hypothesis can be made more efficient.
[0060] However, in both methods, it is assumed that all logical constraints to be considered are listed first. In other words, in the method described in Non-Patent Document 2, it is necessary to list all of the second logical constraints (constraint set D4) and the first logical constraints (set D6) shown in FIG. 6 first. Therefore, in cases where the number of logical constraints to be considered is huge, there is a problem that the process of listing the logical constraints becomes a bottleneck and the calculation speed drops significantly. In order to obtain a consistent hypothesis, it is necessary to define the logical constraints so that none of these combinations occur, and as a result, the number of logical constraints to be considered also increases exponentially, which causes a problem that the calculation time required for the process of listing the logical constraints also becomes long.
[0061] A typical example of this situation is inference that includes terms that satisfy transitive and asymmetric laws to express so-called ordering relations. As the search space contains more logical formulas with such terms, the number of required logical constraints increases exponentially, making it practically impossible to obtain a solution hypothesis in many cases.
[0062] In contrast, according to this exemplary embodiment, the hypothetical reasoning device 1A does not list all logical constraints in advance, but performs a judgment on a candidate solution hypothesis obtained by listing some types of logical constraints, using the remaining types of logical constraints. In the example of Fig. 6, the hypothetical reasoning device 1A performs a judgment on a candidate solution hypothesis D5 obtained by listing the second logical constraints (constraint set D4), using the remaining types of first logical constraints, y21 and y22. This makes it possible to perform a search process with a smaller search space, and improves the calculation efficiency related to the generation of solution hypotheses in the hypothetical reasoning.
[0063] Furthermore, according to this exemplary embodiment, when a candidate solution hypothesis searched for by the search unit 14A does not satisfy the first logical constraint, the hypothetical reasoning device 1A adds the first logical constraint to the constraint set D4 and causes the search unit 14A to function again. This makes it possible to improve the calculation efficiency related to the generation of solution hypotheses in hypothetical reasoning, compared to the case where all logical constraints are listed in advance.
[0064] Furthermore, according to this exemplary embodiment, the hypothetical reasoning device 1A excludes solution hypothesis candidates that do not satisfy the first logical constraint that is not included in the constraint set D4, and searches for new solution hypothesis candidates by referring to the constraint set D4. This makes it possible to improve the calculation efficiency related to the generation of solution hypotheses in the hypothetical reasoning.
[0065] [Software implementation example] A part or all of the functions of the hypothetical reasoning devices 1, 1A may be realized by hardware such as an integrated circuit (IC chip), or may be realized by software.
[0066] In the latter case, the hypothetical reasoning devices 1, 1A are realized, for example, by a computer that executes instructions of a program, which is software that realizes each function. An example of such a computer (hereinafter referred to as computer C) is shown in FIG. 7. The computer C has at least one processor C1 and at least one memory C2. The memory C2 stores a program P for operating the computer C as the hypothetical reasoning devices 1, 1A. In the computer C, the processor C1 reads and executes the program P from the memory C2, thereby realizing each function of the hypothetical reasoning devices 1, 1A.
[0067] The processor C1 may be, for example, a central processing unit (CPU), a graphic processing unit (GPU), a digital signal processor (DSP), a micro processing unit (MPU), a floating point number processing unit (FPU), a physics processing unit (PPU), a microcontroller, or a combination of these. The memory C2 may be, for example, a flash memory, a hard disk drive (HDD), a solid state drive (SSD), or a combination of these.
[0068] The computer C may further include a RAM (Random Access Memory) for expanding the program P during execution and for temporarily storing various data. The computer C may further include a communication interface for transmitting and receiving data to and from other devices. The computer C may further include an input / output interface for connecting input / output devices such as a keyboard, a mouse, a display, and a printer.
[0069] Furthermore, the program P can be recorded on a non-transitory tangible recording medium M that can be read by the computer C. Such a recording medium M can be, for example, a tape, a disk, a card, a semiconductor memory, or a programmable logic circuit. The computer C can obtain the program P via such a recording medium M. Furthermore, the program P can be transmitted via a transmission medium. Such a transmission medium can be, for example, a communication network or broadcast waves. The computer C can also obtain the program P via such a transmission medium.
[0070] Furthermore, each section of the hypothetical reasoning devices 1, 1A (acquisition sections 11, 11A, generation sections 12, 12A, construction sections 13, 13A, search sections 14, 14A, judgment sections 15, 15A, and output sections 16, 16A) may be realized by dedicated hardware. Furthermore, some or all of the components of each device may be realized by general-purpose or dedicated circuits, processors, etc., or combinations of these. These may be formed by a single chip, or may be formed by multiple chips connected via a bus. Some or all of the components of each device may be realized by a combination of the above-mentioned circuits, etc., and programs.
[0071] Furthermore, when some or all of the components of the hypothetical reasoning devices 1, 1A are realized by a plurality of information processing devices, circuits, etc., the plurality of information processing devices, circuits, etc. may be arranged in a centralized manner or in a distributed manner. For example, the information processing devices, circuits, etc. may be realized in a form in which each is connected via a communication network, such as a client-server system or a cloud computing system. Furthermore, the functions of the hypothetical reasoning devices 1, 1A may be provided in a SaaS (Software as a Service) format.
[0072] [Additional Note 1] The present invention is not limited to the above-described embodiment, and various modifications are possible within the scope of the claims. For example, embodiments obtained by appropriately combining the technical means disclosed in the above-described embodiment are also included in the technical scope of the present invention.
[0073] [Additional Note 2] Some or all of the above-described embodiments can be described as follows. However, the present invention is not limited to the following described aspects. (Appendix 1) an acquisition means for acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions and query information in which observed facts are expressed by one or more logical expressions; a generation means for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a constructing means for constructing a constraint set by listing a part of a plurality of logical constraints to be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search means for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination means for determining whether or not the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; an output means for outputting the candidate solution hypothesis as a solution hypothesis when the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A hypothetical reasoning device comprising:
[0074] According to the above configuration, it is possible to improve the efficiency of calculations related to the generation of solution hypotheses in abductive reasoning.
[0075] (Appendix 2) when the solution hypothesis candidate does not satisfy a logical constraint not included in the constraint set, the determination means adds the logical constraint to the constraint set and causes the search means to operate again. 2. A hypothetical reasoning device according to claim 1.
[0076] According to the above configuration, when a solution hypothesis candidate does not satisfy a logical constraint that is not included in the constraint set, it is possible to search again for a solution hypothesis candidate.
[0077] (Appendix 3) the searching means excludes solution hypothesis candidates that do not satisfy logical constraints that are not included in the constraint set, and searches for new solution hypothesis candidates by referring to the constraint set. 3. The hypothetical reasoning device according to claim 1 or 2.
[0078] According to the above configuration, it is possible to improve the calculation efficiency related to the search for solution hypothesis candidates, compared to a case in which solution hypothesis candidates that do not satisfy logical constraints that are not included in the logical constraint set are not excluded.
[0079] (Appendix 4) the constructing means constructs the constraint set by determining a logical constraint arising for each combination of a plurality of elements constituting each of the plurality of hypotheses as a determination target, and listing logical constraints other than the determination target among the plurality of logical constraints. 4. The hypothetical reasoning device according to claim 1 .
[0080] According to the above configuration, it is possible to improve the efficiency of calculations related to the generation of solution hypotheses in abductive reasoning.
[0081] (Appendix 5) the logical constraint to be determined includes a logical constraint regarding an equivalence relationship between the plurality of elements; 5. The hypothetical reasoning device according to claim 4.
[0082] According to the above configuration, it is possible to improve the efficiency of calculations related to the generation of solution hypotheses in abductive reasoning.
[0083] (Appendix 6) the logical constraint to be determined includes a logical constraint regarding an order relationship between the plurality of elements; 6. The hypothetical reasoning device according to claim 4 or 5.
[0084] According to the above configuration, it is possible to improve the efficiency of calculations related to the generation of solution hypotheses in abductive reasoning.
[0085] (Appendix 7) The abductive reasoning device acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions, and query information in which observed facts are expressed by one or more logical expressions; generating a plurality of hypotheses by referring to the background knowledge information and the query information; constructing a constraint set by listing some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses; searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; determining whether the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; and outputting the candidate solution hypothesis as a solution hypothesis if the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A hypothetical reasoning method comprising:
[0086] (Appendix 8) A program for causing a computer to function as a hypothetical reasoning device, comprising: The program causes the computer to an acquisition means for acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions and query information in which observed facts are expressed by one or more logical expressions; a generation means for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a constructing means for constructing a constraint set by listing a part of a plurality of logical constraints to be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search means for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination means for determining whether or not the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; an output means for outputting the candidate solution hypothesis as a solution hypothesis when the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A program characterized by causing the program to function as a
[0087] [Additional Note 3] A part or all of the above-described embodiments can be further expressed as follows.
[0088] At least one processor, the processor comprising: an acquisition process for acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions and query information in which observed facts are expressed by one or more logical expressions; a generation process for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a construction process for constructing a constraint set by listing some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search process for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination process for determining whether or not the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set, among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; an output process for outputting the candidate solution hypothesis as a solution hypothesis if the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A hypothetical reasoning device comprising:
[0089] The hypothetical reasoning device may further include a memory that stores a program for causing the processor to execute the acquisition process, the generation process, the construction process, the search process, the determination process, and the output process. The program may be recorded on a computer-readable, non-transitory, tangible recording medium. [Explanation of symbols]
[0090] 1, 1A Hypothetical reasoning device 11, 11A Acquisition part (acquisition means) 12, 12A generation unit (generation means) 13, 13A Construction section (construction means) 14, 14A Search section (search means) 15, 15A Judgment section (judgment means) 16, 16A Output section (output means) S1, S10A Hypothetical reasoning method
Claims
1. an acquisition means for acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions and query information in which observed facts are expressed by one or more logical expressions; a generation means for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a constructing means for constructing a constraint set by listing a part of a plurality of logical constraints to be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search means for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination means for determining whether or not the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; an output means for outputting the candidate solution hypothesis as a solution hypothesis when the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A hypothetical reasoning device comprising:
2. when the solution hypothesis candidate does not satisfy a logical constraint not included in the constraint set, the determination means adds the logical constraint to the constraint set and causes the search means to operate again. The hypothetical reasoning device according to claim 1 .
3. the searching means excludes solution hypothesis candidates that do not satisfy logical constraints that are not included in the constraint set, and searches for new solution hypothesis candidates by referring to the constraint set. The hypothetical reasoning device according to claim 1 or 2.
4. the constructing means constructs the constraint set by determining a logical constraint arising for each combination of a plurality of elements constituting each of the plurality of hypotheses as a determination target, and listing logical constraints other than the determination target among the plurality of logical constraints. The hypothetical reasoning device according to any one of claims 1 to 3.
5. the logical constraint to be determined includes a logical constraint regarding an equivalence relationship between the plurality of elements; The hypothetical reasoning device according to claim 4.
6. the logical constraint to be determined includes a logical constraint regarding an order relationship between the plurality of elements; The hypothetical reasoning device according to claim 4 or 5.
7. The abductive reasoning device acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions, and query information in which observed facts are expressed by one or more logical expressions; generating a plurality of hypotheses by referring to the background knowledge information and the query information; constructing a constraint set by listing some of a plurality of logical constraints that should be satisfied between a plurality of elements constituting each of the plurality of hypotheses; searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; determining whether the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; and outputting the candidate solution hypothesis as a solution hypothesis if the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A hypothetical reasoning method comprising:
8. A program for causing a computer to function as a hypothetical reasoning device, comprising: The program causes the computer to an acquisition means for acquiring background knowledge information in which background knowledge is expressed by one or more logical expressions and query information in which observed facts are expressed by one or more logical expressions; a generation means for generating a plurality of hypotheses by referring to the background knowledge information and the query information; a constructing means for constructing a constraint set by listing a part of a plurality of logical constraints to be satisfied between a plurality of elements constituting each of the plurality of hypotheses; a search means for searching for one of the plurality of hypotheses as a candidate solution hypothesis by referring to the constraint set; a determination means for determining whether or not the candidate solution hypothesis satisfies a logical constraint that is not included in the constraint set among logical constraints that should be satisfied between elements constituting the candidate solution hypothesis; an output means for outputting the candidate solution hypothesis as a solution hypothesis when the candidate solution hypothesis satisfies a logical constraint not included in the constraint set; A program characterized by causing the program to function as a
Citation Information
Patent Citations
Hypothesis inference device, hypothesis inference method, and computer-readable medium
WO2020003585A1
