# US 2022/0292262 A1 · System and method for hybrid question answering over knowledge graph

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

- Number: US 2022/0292262 A1
- Document ID: US20220292262A1
- Status: Published application
- Kind: A1
- Application number: 17/197,928
- Filed: 2021-03-10
- Published: 2022-09-15
- Earliest claimed: 2021-03-10
- Assignees: AT&T Intellectual Property I, L.P.
- Applicants: AT&T Intellectual Property I, L.P.
- Inventors: Sai Sharath Japa; Roderic William Paulk; Joseph Samuel Miller; Lal Payyappilly Paul
- Web page: https://patentgrep.com/patent/US20220292262A1

## CPC

- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 40/295: Named entity recognition
- G06F 16/3347: {using vector based model}
- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06N 5/02: Knowledge representation; Symbolic representation
- G06N 5/04: Inference or reasoning models
- G06N 5/041: {Abduction}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Aspects of the subject disclosure may include, for example, identifying an entity of a natural language question, locating a node of a knowledge graph corresponding to the entity, and generating a candidate answer set including a group of other entities located a predetermined proximity to the node. Contextual information for the group of other entities is determined from the knowledge graph, and the natural language question and contextual information are separately encoded to obtain separate encoded vectorial representations of the natural language question and members of the candidate answer set. The encoding uses pre-trained language model embeddings obtained via a bidirectional encoder representations from transformer encoding process. The encoded vectorial representations of the question under an influence of aspects of the contextual information are scored and a member of the candidate answer set selected according to the score to obtain an answer to the original question. Other embodiments are disclosed.

## Claims

### Claim 1

A method, comprising:
receiving, by a processing system including a processor, a natural language question;
identifying, by the processing system and without human intervention, a topic entity of the natural language question;
locating, by the processing system and within a knowledge graph, a focal node corresponding to the topic entity;
gathering, by the processing system and within the knowledge graph, a candidate answer set comprising a group of other entities within a predetermined proximity to the focal node;
generating, by the processing system and from the knowledge graph, contextual information for the group of other entities of the candidate answer set;
encoding, by the processing system, the natural language question, and the contextual information of the group of other entities of the candidate answer set to obtain an encoded vectorial representation of the natural language question and a plurality of encoded vectorial representations of the candidate answer set, wherein the encoding uses pre-trained language model embeddings obtained via a pre-trained bidirectional encoder representations from transformer (BERT) encoder;
scoring, by the processing system, the encoded vectorial representation of the natural language question under an influence of a plurality of aspects of the contextual information to obtain score values; and
selecting, by the processing system, a member of the candidate answer set to obtain a selected one of the candidate answer set as an answer to the natural language question.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
training, by the processing system, the BERT encoder, wherein the training comprises a pretraining phase and a fine-tuning phase.

### Claim 3 (depends on 2)

The method of claim 2, wherein pre-training stage further comprises:
pre-training, by the processing system, the BERT encoder according to a masked language modeling process adapted to predict missing tokens from their placeholders in a given sequence.

### Claim 4 (depends on 2)

The method of claim 2, wherein fine-tuning phase further comprises:
training the pre-trained BERT encoder according to a next sentence prediction outcome task.

### Claim 5 (depends on 1)

The method of claim 1, wherein the scoring further comprises:
computing a dot product of the encoded vectorial representation of the natural language question and the plurality of encoded vectorial representations of the candidate answer set to obtain a computed score value.

### Claim 6 (depends on 5)

The method of claim 5, wherein the selecting of the member of the candidate answer set further comprises:
comparing the computed score value to a score threshold value; and
selecting a corresponding member of the candidate answer set responsive to its computed score value exceeding the score threshold value.

### Claim 7 (depends on 1)

The method of claim 1, wherein the encoding further comprises fine-tuning the BERT encoding according to a self multi-head attention encoder based on a convolutional neural network (CNN) encoder.

### Claim 8 (depends on 1)

The method of claim 1, wherein the contextual information for the group of other entities of the candidate answer set comprises answer type, answer path and answer context.

### Claim 9 (depends on 8)

The method of claim 8, wherein the answer path comprises a sequence of relations from an entity of the candidate answer set to another named entity of the knowledge graph.

### Claim 10 (depends on 1)

The method of claim 1, wherein the knowledge graph comprises a domain-specific knowledge graph, comprising entities associated with a predetermined domain, relationships among the entities.

### Claim 11 (depends on 10)

The method of claim 10, wherein the domain-specific knowledge graph comprises a curated knowledge graph, further comprising:
determining, by the processing system, a missing entity not included within the domain-specific knowledge graph;
searching, by the processing system, a knowledge base other than the domain-specific knowledge graph to obtain missing entity information according to the missing entity; and
incorporating, by the processing system, a new entity comprising the missing entity information into the domain-specific knowledge graph to obtain an updated, curated domain-specific knowledge graph.

### Claim 12

A device, comprising:
a processing system including a processor; and
a memory that stores executable instructions that, when executed by the processing system, facilitate performance of operations, the operations comprising:
identifying, without human intervention, a main entity of a natural language question;
locating, within a knowledge graph, a focal node corresponding to the main entity;
identifying, within the knowledge graph, a candidate answer set comprising a group of other entities within a predetermined proximity to the focal node;
extracting, from the knowledge graph, contextual information for the group of other entities of the candidate answer set;
encoding the natural language question and the contextual information of the group of other entities of the candidate answer set to obtain an encoded vectorial representation of the natural language question and a plurality of encoded vectorial representations of the candidate answer set, wherein the encoding uses pre-trained language model embeddings obtained via a bidirectional encoder representations from transformer (BERT) encoding process;
scoring the encoded vectorial representation of the natural language question under an influence of a plurality of aspects of the contextual information to obtain score values; and
selecting a member of the candidate answer set to obtain a selected one of the candidate answer set as an answer to the natural language question.

### Claim 13 (depends on 12)

The device of claim 12, wherein the contextual information for the group of other entities of the candidate answer set comprises answer type, answer path and answer context.

### Claim 14 (depends on 13)

The device of claim 13, wherein the answer path comprises a sequence of relations from an entity of the candidate answer set to another named entity of the knowledge graph.

### Claim 15 (depends on 12)

The device of claim 12, wherein the knowledge graph comprises a domain-specific knowledge graph, comprising entities associated with a predetermined domain, relationships among the entities.

### Claim 16 (depends on 12)

The device of claim 12, wherein the operations further comprise:
fine-tuning the BERT encoder according to a self multi-head attention encoder based on a convolutional neural network (CNN) encoder.

### Claim 17

A non-transitory, machine-readable medium, comprising executable instructions that, when executed by a processing system including a processor, facilitate performance of operations, the operations comprising:
identifying an entity of a natural language question;
locating, within a knowledge graph, a node corresponding to the entity;
generating a candidate answer set comprising a group of other entities located a predetermined proximity to the node within the knowledge graph;
determining, from the knowledge graph, contextual information for the group of other entities of the candidate answer set;
encoding the natural language question and the contextual information of the group of other entities of the candidate answer set to obtain an encoded vectorial representation of the natural language question and an encoded vectorial representation of the candidate answer set, wherein the encoding uses pre-trained language model embeddings obtained via a bidirectional encoder representations from transformer (BERT) encoding process;
scoring the encoded vectorial representation of the natural language question under an influence of a plurality of aspects of the contextual information to obtain score values; and
selecting a member of the candidate answer set to obtain a selected one of the candidate answer set as an answer to the natural language question.

### Claim 18 (depends on 17)

The non-transitory, machine-readable medium of claim 17, wherein the contextual information for the group of other entities of the candidate answer set comprises answer type, answer path and answer context.

### Claim 19 (depends on 18)

The non-transitory, machine-readable medium of claim 18, wherein the answer path comprises a sequence of relations from an entity of the candidate answer set to another named entity of the knowledge graph.

### Claim 20 (depends on 17)

The non-transitory, machine-readable medium of claim 17, wherein the knowledge graph comprises a domain-specific knowledge graph, comprising entities associated with a predetermined domain, relationships among the entities.
