INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND COMPUTER READABLE RECORDING MEDIUM
20230036323 · 2023-02-02
Assignee
Inventors
Cpc classification
International classification
Abstract
In order to efficiently and rigorously enumerate the combinations of logical formulas that lead to a contradiction with the background knowledge for each hypothesis, the information processing apparatus 1 includes the acquisition unit 2 that acquires the contradiction determination function having a data structure that expresses a combination of logical formulas that contradict the background knowledge, and the potential contradiction enumeration unit 3 enumerates the potential contradiction set, in which literals that contradict the background knowledge in the solution candidate set are combined, by using the contradiction determination function.
Claims
1. An information processing apparatus comprising: an acquisition unit that acquires a contradiction determination function having a data structure that expresses a combination of logical formulas that contradict background knowledge, and a potential contradiction enumeration unit that enumerates potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function.
2. The information processing apparatus according to claim 1, wherein the data structure is a binary decision diagram.
3. The information processing apparatus according to claim 1, wherein the potential contradiction enumeration unit determines whether all combinations of literals in the solution candidate set contradict the background knowledge using the contradiction determination function, and enumerates combinations of literals that contradict the background knowledge.
4. The information processing apparatus according to claim 2, wherein the potential contradiction enumeration unit enumerates BDD variables that have potential to have a boolean value determined by the solution candidate set, searches for a boolean assignment that leads to contradiction within a range of the variables, and searches for a combination of literals corresponding to the assignment from the solution candidate set when the assignment exists.
5. The information processing apparatus according to claim 1, further comprising: an inference unit that executes abduction based on the solution candidate set and the potential contradiction set, and an output unit that outputs a literal that is consistent with the background knowledge as a result of the abduction.
6. An information processing method comprising: acquiring a contradiction determination function having a data structure that expresses a combination of logical formulas that contradict background knowledge, and enumerating potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function.
7. A non-transitory computer-readable recording medium that includes a program recorded thereon, the program including instructions that cause a computer to execute: acquiring a contradiction determination function having a data structure that expresses a combination of logical formulas that contradict background knowledge, and enumerating potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function.
8. The information processing method according to claim 6, wherein the data structure is a binary decision diagram.
9. The information processing method according to claim 6, wherein when enumerating the potential contradiction set, determining whether all combinations of literals in the solution candidate set contradict the background knowledge using the contradiction determination function, and enumerating combinations of literals that contradict the background knowledge.
10. The information processing method according to claim 8, wherein when enumerating the potential contradiction set, enumerating BDD variables that have potential to have a boolean value determined by the solution candidate set, searching for a boolean assignment that leads to contradiction within a range of the variables, and searching for a combination of literals corresponding to the assignment from the solution candidate set when the assignment exists.
11. The information processing method according to claim 6, further comprising: executing abduction based on the solution candidate set and the potential contradiction set, and outputting a literal that is consistent with the background knowledge as a result of the abduction.
12. The non-transitory computer-readable recording medium according to claim 7, wherein the data structure is a binary decision diagram.
13. The non-transitory computer-readable recording medium according to claim 7, wherein when enumerating the potential contradiction set, determining whether all combinations of literals in the solution candidate set contradict the background knowledge using the contradiction determination function, and enumerating combinations of literals that contradict the background knowledge.
14. The non-transitory computer-readable recording medium according to claim 12, wherein when enumerating the potential contradiction set, enumerating BDD variables that have potential to have a boolean value determined by the solution candidate set, searching for a boolean assignment that leads to contradiction within a range of the variables, and searching for a combination of literals corresponding to the assignment from the solution candidate set when the assignment exists.
15. The non-transitory computer-readable recording medium according to claim 7, wherein the program further includes instructions that cause the computer to execute: executing abduction based on the solution candidate set and the potential contradiction set, and outputting a literal that is consistent with the background knowledge as a result of the abduction.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
EXAMPLE EMBODIMENTS
Description of Configuration
[0028]
[0029] The information processing apparatus 1 includes an acquisition unit 2 and a potential contradiction enumeration unit 3.
[0030] The acquisition unit 2 acquires a contradiction determination function having a data structure expressing a combination of logical formulas that contradict background knowledge. The data structure is, for example, a binary decision diagram (BDD). Further, the contradiction determination function is a logical function that returns a boolean value indicating whether or not it contradicts the background knowledge for an arbitrary logical formula, and is data expressed based on the data structure.
[0031] The potential contradiction enumeration unit 3 enumerates potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function acquired by the acquisition unit 2. The solution candidate set includes solution hypothesis candidates enumerated from a query formula and background knowledge.
[0032] The information processing apparatus 1 can efficiently and rigorously enumerate combinations of logical formulas that lead to contradictions with the background knowledge for each hypothesis. The reason for this is that by constructing data that enumerates patterns that lead to contradictions in advance, the actual processing during inference can be made more efficient.
[0033] In addition, since combinations of logical formulas that lead to contradictions can be efficiently enumerated for each candidate hypothesis, the solution hypothesis can be searched from only candidate hypotheses that do not lead to contradiction by searching for the optimal solution with constraints so that those logical formulas do not hold true. Thus, the information processing apparatus 1 can guarantee consistency for the solution hypothesis.
[0034] Furthermore, the combination of logical formulas that leads to contradiction can be expressed efficiently in terms of data size, by expressing the combination as a logical function for determining inconsistency and by using a data structure similar to the binary decision diagram, which is a data structure that can efficiently express the logical function. Therefore, the information processing apparatus 1 can hold the data enumerating the patterns leading to the contradiction in a relatively efficient memory amount.
[0035]
[0036] The information processing apparatus 1 includes an inference unit 4, an output unit 5, and a candidate hypothesis generation unit 6 in addition to the acquisition unit 2 and the potential contradiction enumeration unit 3 described above.
[0037] The candidate hypothesis generation unit 6 generates candidate hypothesis set D3 by using the background knowledge D1 and query formula D2 as inputs. The background knowledge D1 is a set of inference rules. The inference rules are generally represented by Horn clauses in first-order predicate logic. The query formula D2 is a conjunction of first-order predicate logic literals. The first-order predicate logic literal is an atomic logic formula in first-order predicate logic or the negation of that formula. The candidate hypothesis set D3 is a set of candidate hypotheses. Each candidate hypothesis is expressed as a conjunction of first-order predicate logic literals.
[0038]
[0039] In the example of
[0040] The acquisition unit 2 acquires a contradiction determination function D4 (see
[0041]
[0042] The potential contradiction enumeration unit 3 enumerates (outputs) potential contradiction set D5 by using the contradiction determination function D4 acquired by the acquisition unit 2 and the candidate hypothesis set D3 output by the candidate hypothesis generation unit 6 as inputs. The potential contradiction enumeration unit 3 determines whether all combinations of literals in the candidate hypothesis set contradict the background knowledge D1 using a contradiction determination function, and enumerates the combinations of literals that contradict the background knowledge D1. In the example in
[0043] In another method, BDD variables that have the potential to have a boolean value determined by the candidate hypothesis are enumerated, and a boolean assignment that leads to contradiction within the range of BDD variable is searched for. Then, if the assignment exists, a combination of literals corresponding to the assignment is searched from the candidate hypotheses.
[0044] The inference unit 4 executes abduction by searching the solution hypothesis D6 from the candidate hypothesis set D3 and the potential contradiction set D5 enumerated by the potential contradiction enumeration unit 3. The solution hypothesis D6 is a candidate hypothesis considered to be the best based on the evaluation function among the candidate hypotheses included in the candidate hypothesis set D3. In this embodiment, the solution hypothesis D6 is guaranteed to be strictly consistent with the background knowledge D1. Specifically, the inference unit 4 expresses and outputs a calculation for selecting the solution hypothesis D6 from the candidate hypothesis set D3 as a constrained combinatorial optimization problem such as an integer linear programming problem. At this time, the potential contradiction set D5 is expressed as a constraint in the optimization problem as a combination of logical formulas that should not hold true at the same time. In this case, an existing transformation method can be used to derive the solution hypothesis at high speed by expressing the procedure for selecting the best hypothesis as an equivalent integer linear programming problem and solving it using an external integer linear programming solver, as shown in the Non-Patent Document 1. In this case, the condition that “the combination included in the potential contradiction set is not satisfied” is expressed as a constraint in the integer linear programming problem. Other methods can also be used.
[0045] The output unit 5 outputs a literal that is consistent with the background knowledge D1 as a result of abduction.
[0046] In addition, in
[0047] On the other hand, it is not easy to realize such hypothetical consistency in a straightforward manner. For example, an implementation method based on a constrained combinatorial optimization problem as described in the Non-Patent Document 1 may be used to implement strict consistency verification in a straightforward manner. In this case, for each of the candidate hypotheses, it is necessary to enumerate all logical formulas that can be deductively derived from the candidate hypothesis, search for combinations among them that lead to contradiction, and enumerate all combinations of literals in the candidate hypothesis that leads to contradiction. Such a process during inference would cause a significant increase in computation time and is not realistic. In addition, in the implementation method as described in the Non-Patent Document 2, which imitates abduction on another deductive reasoning model, it is in principle impossible to simultaneously consider deductive reasoning since abduction is expressed by transforming the structure of background knowledge.
[Apparatus Operations]
[0048] Next, the operation of the information processing apparatus 1 will be described with reference to
[0049] The acquisition unit 2 acquires the contradiction determination function D4 having the data structure expressing the combination of logical formulas that contradict the background knowledge D1 (S1). Next, the candidate hypothesis generation unit 6 generates the candidate hypothesis set D3 by using the background knowledge D1 and query formula D2 as inputs (S2). It is noted that the order of S1 and S2 is not limited to the above order.
[0050] Next, the potential contradiction enumeration unit 3 enumerates the potential contradiction set D5 by using the contradiction determination function D4 and the candidate hypothesis set D3 as inputs (S3). Then, the inference unit 4 executes abduction by searching the solution hypothesis D6 from the candidate hypothesis set D3 and the potential contradiction set D5 (S4).
[Program]
[0051] It is sufficient for the program according to the example embodiment to be a program that causes a computer to execute steps S1 to S4 shown in
[Physical Configuration]
[0052] Here, a computer that realizes the information processing apparatus by executing the programs in the example embodiment will be described with reference to
[0053] As illustrated in
[0054] The CPU 111 loads the program (codes) in the example embodiment, which are stored in the storage device 113, onto the main memory 112, and performs various computations by executing these codes in a predetermined order. The main memory 112 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory). Furthermore, the program in the example embodiment is provided in a state such that the program is stored in a computer readable recording medium 120. Note that the program in the example embodiment may also be program that is distributed on the Internet, to which the computer 110 is connected via the communication interface 117.
[0055] In addition, specific examples of the storage device 113 include semiconductor storage devices such as a flash memory, in addition to hard disk drives. The input interface 114 mediates data transmission between the CPU 111 and input equipment 118 such as a keyboard and a mouse. The display controller 115 is connected to a display device 119, and controls the display performed by the display device 119. The data reader/writer 116 mediates data transmission between the CPU 111 and the recording medium 120, and executes the reading out of the program from the recording medium 120 and the writing of results of processing in the computer 110 to the recording medium 120. The communication interface 117 mediates data transmission between the CPU 111 and other computers.
[0056] Furthermore, specific examples of the recording medium 120 include a general-purpose semiconductor storage device such as a CF (Compact Flash; registered trademark) card or a SD (Secure Digital) card, a magnetic recording medium such as a flexible disk, and an optical recording medium such as a CD-ROM (Compact Disk Read Only Memory).
[0057] While a part of or the entirety of the above-described example embodiment can be expressed by (Supplementary note 1) to (Supplementary note 15) described in the following, the invention is not limited to the following description.
[0058] (Supplementary Note 1)
[0059] An information processing apparatus including:
[0060] an acquisition unit that acquires a contradiction determination function having a data structure that expresses a combination of logical formulas that contradict background knowledge, and
[0061] a potential contradiction enumeration unit that enumerates potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function.
[0062] (Supplementary Note 2)
[0063] The information processing apparatus according to Supplementary note 1, wherein the data structure is a binary decision diagram.
[0064] (Supplementary Note 3)
[0065] The information processing apparatus according to Supplementary note 1 or 2, wherein the potential contradiction enumeration unit determines whether all combinations of literals in the solution candidate set contradict the background knowledge using the contradiction determination function, and enumerates combinations of literals that contradict the background knowledge.
[0066] (Supplementary Note 4)
[0067] The information processing apparatus according to Supplementary note 2, wherein the potential contradiction enumeration unit enumerates BDD variables that have potential to have a boolean value determined by the solution candidate set, searches for a boolean assignment that leads to contradiction within a range of the variables, and searches for a combination of literals corresponding to the assignment from the solution candidate set when the assignment exists.
[0068] (Supplementary Note 5)
[0069] The information processing apparatus according to any one of Supplementary notes 1 to 4, further including:
[0070] an inference unit that executes abduction based on the solution candidate set and the potential contradiction set, and
[0071] an output unit that outputs a literal that is consistent with the background knowledge as a result of the abduction.
[0072] (Supplementary Note 6)
[0073] An information processing method including:
[0074] (A) a step of acquiring a contradiction determination function having a data structure that expresses a combination of logical formulas that contradict background knowledge, and
[0075] (B) a step of enumerating potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function.
[0076] (Supplementary Note 7)
[0077] The information processing method according to Supplementary note 6, wherein
[0078] the data structure is a binary decision diagram.
[0079] (Supplementary Note 8)
[0080] The information processing method according to Supplementary note 6 or 7, wherein in the (B) step,
[0081] determining whether all combinations of literals in the solution candidate set contradict the background knowledge using the contradiction determination function, and enumerating combinations of literals that contradict the background knowledge.
[0082] (Supplementary Note 9)
[0083] The information processing method according to Supplementary note 7, wherein in the (B) step,
[0084] enumerating BDD variables that have potential to have a boolean value determined by the solution candidate set, searching for a boolean assignment that leads to contradiction within a range of the variables, and searching for a combination of literals corresponding to the assignment from the solution candidate set when the assignment exists.
[0085] (Supplementary note 10)
[0086] The information processing method according to any one of Supplementary notes 6 to 9, further including:
[0087] (C) a step of executing abduction based on the solution candidate set and the potential contradiction set, and
[0088] (D) a step of outputting a literal that is consistent with the background knowledge as a result of the abduction.
[0089] (Supplementary Note 11)
[0090] A computer-readable recording medium that includes a program recorded thereon, the program including instructions that cause a computer to execute:
[0091] (A) a step of acquiring a contradiction determination function having a data structure that expresses a combination of logical formulas that contradict background knowledge, and
[0092] (B) a step of enumerating potential contradiction set, in which literals that contradict the background knowledge in a solution candidate set are combined, by using the contradiction determination function.
[0093] (Supplementary Note 12)
[0094] The computer-readable recording medium according to Supplementary note 11, wherein
[0095] the data structure is a binary decision diagram.
[0096] (Supplementary Note 13)
[0097] The computer-readable recording medium according to Supplementary note 11 or 12, wherein
[0098] in the (B) step,
[0099] determining whether all combinations of literals in the solution candidate set contradict the background knowledge using the contradiction determination function, and enumerating combinations of literals that contradict the background knowledge.
[0100] (Supplementary Note 14)
[0101] The computer-readable recording medium according to Supplementary note 12, wherein in the (B) step,
[0102] enumerating BDD variables that have potential to have a boolean value determined by the solution candidate set, searching for a boolean assignment that leads to contradiction within a range of the variables, and searching for a combination of literals corresponding to the assignment from the solution candidate set when the assignment exists.
[0103] (Supplementary Note 15)
[0104] The computer-readable recording medium according to any one of Supplementary notes 11 to 14, wherein
[0105] the program further includes instructions that cause the computer to execute:
[0106] (C) a step of executing abduction based on the solution candidate set and the potential contradiction set, and
[0107] (D) a step of outputting a literal that is consistent with the background knowledge as a result of the abduction.
REFERENCE SIGNS LIST
[0108] 1 Information processing apparatus
[0109] 2 Acquisition unit
[0110] 3 Potential contradiction enumeration unit
[0111] 4 Inference unit
[0112] 5 Output unit
[0113] 6 Candidate hypothesis generation unit
[0114] D1 Background knowledge
[0115] D2 Query formula
[0116] D3 Candidate hypothesis set
[0117] D4 Contradiction determination function
[0118] D5 Potential contradiction set
[0119] D6 Solution hypothesis