# US 2021/0287102 A1 · Interpretable knowledge contextualization by re-weighting knowledge graphs

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

- Number: US 2021/0287102 A1
- Document ID: US20210287102A1
- Status: Published application
- Kind: A1
- Application number: 16/814,448
- Filed: 2020-03-10
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Kshitij Fadnis; Kartik Talamadupula; Pavan Kapanipathi Bangalore; Achille Belly Fokoue-Nkoutche
- Web page: https://patentgrep.com/patent/US20210287102A1

## CPC

- G06N 5/02: Knowledge representation; Symbolic representation
- G06F 16/288: {Entity relationship models}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for assigning weights to a knowledge graph includes extracting information from a knowledge graph. The information including entities extracted from nodes of the knowledge graph and relations extracted from edges of the knowledge graph. A shortest path generator receives the extracted entities and relations, and potential assigned weights from a heuristic data repository. Weights for the edges of the knowledge graph are determined. The weights are assigned to the edges of the knowledge graph.

## Claims

### Claim 1

A method of assigning weights to a knowledge graph comprising:
extracting information from a knowledge graph, the information comprising entities extracted from nodes of the knowledge graph and relations extracted from edges of the knowledge graph;
receiving, by a shortest path generator, the extracted entities and relations, and potential assigned weights from a heuristic data repository;
determining weights for the edges of the knowledge graph; and
assigning the weights to the edges of the knowledge graph.

### Claim 2 (depends on 1)

The method of claim 1, wherein the heuristic data repository includes one or more heuristics selected from the group consisting of default cost heuristics, relevant relations heuristics, relation frequency heuristics, and normalized relation frequency heuristics.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
creating ordered entity pairs or ordered premise-hypothesis entity pairs; wherein:
the knowledge graph comprises a natural language based knowledge graph; and
for each labeled premise and hypothesis pair, entities are extracted from each respective sentence used for the knowledge graph.

### Claim 4 (depends on 3)

The method of claim 3, wherein copies of the knowledge graph are created and default weights for the edges are replaced with customized weights based on the relevant relations heuristic, the relation frequency heuristic, and the normalized relation frequency heuristic.

### Claim 5 (depends on 4)

The method of claim 4, wherein the relation frequency heuristic is based on a frequency of the relations as they occur in relation to an entity, and based on a normalized count of a number of outgoing edges bearing a same relation name from a given node.

### Claim 6 (depends on 4)

The method of claim 4, wherein the normalized relation frequency heuristic is based on a computation of an Inverse Node Frequency (INF) for every relation in the knowledge graph.

### Claim 7 (depends on 4)

The method of claim 4, wherein the shortest path generator finds all shortest paths between a first entity and a second entity of each premise-hypothesis entity pair, for every copy of the knowledge graph.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
the shortest paths are used: by accounting for a number of times relations appear in the shortest paths, and by a sequence order in which the shortest paths appear; and
each of the shortest paths are represented by the entities along the respective shortest path, the relations along the respective shortest path, or by a combination thereof.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
classifying the relations using one or more encoders selected from a group consisting of a graph convolution network (GCN) encoder, a relation frequency encoder, and a relation sequence encoder.

### Claim 10

A computer program product assigning weights to a knowledge graph, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
extract, by the processor, information from a knowledge graph, the information comprising entities extracted from nodes of the knowledge graph and relations extracted from edges of the knowledge graph;
receive, by the processor, the extracted entities and relations, and potential assigned weights from a heuristic data repository;
determine, by the processor, weights for the edges of the knowledge graph; and
assign, by the processor, the weights to the edges of the knowledge graph.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the heuristic data repository includes one or more heuristics selected from the group consisting of default cost heuristics, relevant relations heuristics, relation frequency heuristics, and normalized relation frequency heuristics.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein:
the program instructions executable by the processor further cause the processor to:
create, by the processor, ordered entity pairs or ordered premise-hypothesis entity pairs;
the knowledge graph comprises a natural language based knowledge graph; and
for each labeled premise and hypothesis pair, entities are extracted from each respective sentence used for the knowledge graph.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein copies of the knowledge graph are created and default weights for the edges are replaced with customized weights based on the relevant relations heuristic, the relation frequency heuristic, and the normalized relation frequency heuristic.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein:
the relation frequency heuristic is based on a frequency of the relations as they occur in relation to an entity, and based on a normalized count of a number of outgoing edges bearing a same relation name from a given node;
the normalized relation frequency heuristic is based on a computation of an Inverse Node Frequency (INF) for every relation in the knowledge graph; and
the processor finds all shortest paths between a first entity and a second entity of each premise-hypothesis entity pair, for every copy of the knowledge graph.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein:
the shortest paths are used: by accounting for a number of times relations appear in the shortest paths, and by a sequence order in which the shortest paths appear; and
each of the shortest paths are represented by the entities along the respective shortest path, the relations along the respective shortest path, or by a combination thereof.

### Claim 16 (depends on 13)

The computer program product of claim 13, wherein the program instructions executable by the processor further cause the processor to:
classify, by the processor, the relations using one or more encoders selected from a group consisting of a graph convolution network (GCN) encoder, a relation frequency encoder, and a relation sequence encoder.

### Claim 17

An apparatus comprising:
a memory configured to store instructions; and
a processor configured to execute the instructions to:
extract information from a knowledge graph, the information comprising entities extracted from nodes of the knowledge graph and relations extracted from edges of the knowledge graph;
receive the extracted entities and relations, and potential assigned weights from a heuristic data repository;
determine weights for the edges of the knowledge graph; and
assign the weights to the edges of the knowledge graph.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein:
the processor is further configured to execute the instructions to:
create ordered entity pairs or ordered premise-hypothesis entity pairs;
the heuristic data repository includes one or more heuristics selected from the group consisting of default cost heuristics, relevant relations heuristics, relation frequency heuristics, and normalized relation frequency heuristics;
the knowledge graph comprises a natural language based knowledge graph; and
for each labeled premise and hypothesis pair, entities are extracted from each respective sentence used for the knowledge graph.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein:
copies of the knowledge graph are created and default weights for the edges are replaced with customized weights based on the relevant relations heuristic, the relation frequency heuristic, and the normalized relation frequency heuristic;
the relation frequency heuristic is based on a frequency of the relations as they occur in relation to an entity, and based on a normalized count of a number of outgoing edges bearing a same relation name from a given node;
the normalized relation frequency heuristic is based on a computation of an Inverse Node Frequency (INF) for every relation in the knowledge graph; and
the processor finds all shortest paths between a first entity and a second entity of each premise-hypothesis entity pair, for every copy of the knowledge graph.

### Claim 20 (depends on 17)

The apparatus of claim 17, wherein:
the processor is further configured to execute the instructions to:
classify the relations using one or more encoders selected from a group consisting of a graph convolution network (GCN) encoder, a relation frequency encoder, and a relation sequence encoder;
the shortest paths are used: by accounting for a number of times relations appear in the shortest paths, and by a sequence order in which the shortest paths appear; and
each of the shortest paths are represented by the entities along the respective shortest path, the relations along the respective shortest path, or by a combination thereof.
