# US 2019/0378021 A1 · Text-based inference chaining

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0378021 A1
- Document ID: US20190378021A1
- Status: Published application
- Kind: A1
- Application number: 16/549,225
- Filed: 2019-08-23
- Published: 2019-12-12
- Earliest claimed: 2012-10-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: David W. Buchanan; David A. Ferrucci; Adam P. Lally
- Web page: https://patentgrep.com/patent/US20190378021A1

## CPC

- G06N 5/02: Knowledge representation; Symbolic representation
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for generating inference graphs over content to answer input inquiries. First, independent factors are produced from the inquiry, and these factors are converted to questions. The questions are then input to a probabilistic question answering system (PQA) that discovers relations which are used to iteratively expand an inference graph starting from the factors and ending with possible answers. A probabilistic reasoning system is used to infer the confidence in each answer by, for example, propagating confidences across relations and nodes in the inference graph as it is expanded. The inference graph generator system can be used to simultaneously bi-directionally generate forward and backward inference graphs that uses a depth controller component to limit the generation of both paths if they do not meet. Otherwise, a joiner process forces the discovery of relations that join the answers to factors in the inquiry.

## Claims

### Claim 1

A computer-implemented method for inferring answers to inquiries comprising:
receiving, at a hardware processor, an input inquiry submitted via a user interface;
decomposing, at the hardware processor, the input inquiry to obtain one or more factors, each factor being a logically independent statement contained in the received input inquiry and forming an initial current node of an inference graph; and
from said initial current nodes, iteratively constructing said inference graph using the hardware processor, wherein at each iteration:
generating, by the hardware processor, a question based on a type of relation between a statement of a respective said initial current node and a statement of an inference node for a next successive level of nodes of said inference graph;
searching one or more unstructured content sources using said generated questions to generate said statement for said inference node at said next successive level of said graph, said statement for said inference node at said next successive level potentially comprising an inferred answer to said input inquiry;
extending said inference graph by adding said inference nodes having said statement at said next successive level of said inference graph, an added inference node connected to one or more said nodes at a prior level of said graph by a weighted edge, each said weighted edge representing an associated confidence level indicating a degree to which a relation is believed true based on a justifying passage obtained from the search;
determining if the extended inference graph meets a criteria for terminating said iterative constructing, and based on the determining, one of:
terminating said iterative constructing if said criteria is met and providing an answer to said inquiry from said extended inference graph based on a confidence score associated with an inference node at a next successive level of nodes indicating a likelihood the answer is correct; otherwise
repeating, for each inference node at a current level of said inference graph, and at each next successive level thereafter, the generating questions based on a relation type, the searching said unstructured content sources to obtain said statement for said inference nodes at said next successive level of nodes, and the extending of said inference graph by adding said inference nodes at said next successive level, until said criteria for terminating has been met, and
outputting to said user interface of said computer system the answer to said input inquiry from an added inference node of said extended inference graph.

### Claim 2 (depends on 1)

The computer-implemented method as claimed in claim 1, wherein a relation type is selected from the group comprising:
a relation associating a statement of said current factor node with a statement of an inference node, a relation indicating a statement of an inference node by the statement of a current factor node; a relation associating a statement of an inference node as a cause of the statement of a current factor node, a relation associating a statement of an inference node as an affect caused by the statement of the current factor node; and a relation associating a statement of an inference node that is contained within the statement of said current factor node

### Claim 3 (depends on 1)

The computer-implemented method as claimed in claim 1, wherein said terminating criteria comprises:
identifying a node of said extended inference graph having an inferred confidence value exceeding a predetermined threshold; or,
performing a predetermined number of iterations.

### Claim 4 (depends on 1)

The computer-implemented method as claimed in claim 1, further comprising:
inferring, from said associated confidence levels, a confidence level at each node of said inference graph to provide said extended inference graph, wherein said inferring a confidence level comprises:
forming a Bayesian network from nodes and relations of said inference graph and an associated confidence value representing a probability of belief that a supporting passage justifies the answer for the node; and in each answer,
propagating associated confidence values across said relations and nodes represented in said Bayesian network.

### Claim 5 (depends on 1)

The computer-implemented method as claimed in claim 1, wherein said factors forming current factor nodes comprise a statement, said method further comprising, at each iteration:
determining a predetermined relation type corresponding to the statement; and,
using a template corresponding to the predetermined relation type to form a question from said statement.

### Claim 6 (depends on 1)

The computer-implemented method as claimed in claim 1, wherein said factors or current nodes comprise statements, said method further comprising, at each iteration, one of:
prioritizing selected statements as factors for corresponding question generation; or
filtering selected statements and removing them as factors for corresponding question generation.

### Claim 7

A computer-implemented method for inferring answers to inquiries comprising:
receiving, at a hardware processor, an input inquiry submitted via a user interface;
decomposing, at the hardware processor, the input inquiry to obtain one or more factors, each factor being a logically independent statement contained in the received input inquiry and forming an initial current node of an inference graph; and
from said initial current nodes, iteratively constructing a first inference graph using the hardware processor, wherein at each iteration:
generating, by the hardware processor, a question based on a type of relation between a statement of a respective said initial current node and a statement of an inference node for a next successive level of nodes of said inference graph;
searching, using the hardware processor, said one or more unstructured content sources using said generated questions to generate said statement for said inference node at said next successive level of said graph;
extending, using the hardware processor, said first inference graph by adding said inference nodes having said statement at said next successive level of said first inference graph, an added inference node connected to one or more said nodes at a prior level of said graph by a weighted edge, each said weighted edge representing an associated confidence level indicating a degree to which a relation is believed true based on a justifying passage obtained from the search;
said method further comprising:
simultaneously iteratively constructing a second inference graph using said one or more inferred answers as initial nodes of said second inference graph, wherein at each iteration, the hardware processor is further configured to:
generating a question based on a type of relation between a statement of a respective said initial node and a statement of an inference node for a next successive level of nodes of said second inference graph;
searching said one or more unstructured content sources using said generated questions to generate said statement for said inference node at said next successive level of said second inference graph;
extending said second inference graph by adding said inference nodes having said statement at said next successive level of said second inference graph, an added inference node connected to one or more said nodes at a prior level of said graph by a weighted edge, each said weighted edge representing an associated confidence level indicating a degree to which a relation is believed true based on a justifying passage obtained from the search;
generating, during said simultaneous iterative constructing, a final inference graph by joining said first inference graph to said second inference graph, said final inference graph having a joined node representing an answer to said input inquiry, and
outputting to said user interface of said computer system the answer to said input inquiry from said joined node of said final inference graph.

### Claim 8 (depends on 7)

The computer-implemented method as claimed in claim 7, wherein a relation type is selected from the group comprising:
a relation associating a statement of said current factor node with a statement of an inference node, a relation indicating a statement of an inference node by the statement of a current factor node; a relation associating a statement of an inference node as a cause of the statement of a current factor node, a relation associating a statement of an inference node as an affect caused by the statement of the current factor node; and a relation associating a statement of an inference node that is contained within the statement of said current factor node

### Claim 9 (depends on 7)

The computer-implemented method as claimed in claim 7, wherein at each iteration, said method comprises:
determining, by the hardware processor, if the updated first inference graph or updated second inference graph meets a criteria for terminating said iteration, and one of:
terminating said iteration if said criteria is met; otherwise,
repeating said generating one or more questions, said generating one or more answers, said generating one or more relations, said updating and determining steps with said new additional factor nodes being current factor nodes in a next iteration,
wherein, upon terminating, said answer to said inquiry is a node from said final inference graph.

### Claim 10 (depends on 9)

The computer-implemented method as claimed in claim 9, further comprising:
determining, using a similarity criteria applied to end-point nodes of each said first and said second inference graphs, whether two said end-point nodes can be merged into a single node that joins said first inference or second inference graph to form a final inference graph.

### Claim 11 (depends on 10)

The computer-implemented method as claimed in claim 10, wherein said using said similarity criteria further comprises:
applying, using said hardware processor, one or more of: term matching or co-referencing to identify one or more of: a syntactic, semantic or contextual similarity between said identified end-point node of said first inference graph node and an end-point node of said second inference graph, and
merging said identified end-point nodes meeting one or more of: a syntactic, semantic or contextual similarity criteria.

### Claim 12 (depends on 9)

The computer-implemented method as claimed in claim 9, wherein said generating said final inference graph further comprises:
forcing the discovering of a relation that forms an edge joining an end-point node of said first inference graph to an end-point answer node in said second inference graph.

### Claim 13 (depends on 12)

The computer-implemented method as claimed in claim 12, wherein said forcing the discovering of a relation that forms an edge further comprises:
generating, from an end-point factor node of said first inference graph to an end-point candidate answer node in said second inference graph, one of: a “yes” or “no” or multiple-choice question, and
using said generated “yes” or “no” or multiple-choice question to determine whether a relation between said respective end-point nodes exists, said relation joining a candidate answer to a factor of the input inquiry.
