subgraph reasoning inductive relation prediction by

26
Inductive Relation Prediction by Subgraph Reasoning Komal K. Teru, Etienne Denis, William L. Hamilton McGill University and Mila – AI Institute of Quebec 1

Upload: others

Post on 21-Oct-2021

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Subgraph Reasoning Inductive Relation Prediction by

Inductive Relation Prediction by Subgraph ReasoningKomal K. Teru, Etienne Denis, William L. HamiltonMcGill University and Mila – AI Institute of Quebec

1

Page 2: Subgraph Reasoning Inductive Relation Prediction by

Relation prediction in Knowledge graphs

2

Automatically expand and complete existing knowledge bases.

Needs relational reasoning to make inference.

Applications in e-commerce, medicine, materials science…

Page 3: Subgraph Reasoning Inductive Relation Prediction by

Transductive relation prediction

3

Training graph Test graph

Page 4: Subgraph Reasoning Inductive Relation Prediction by

▪ Encode each node to a low-dimensional embedding

Embeddings-based methods

4

LeBron

Akron School

Marie

Savannah

Philant.Jenifer

L.A

Lakers

A. Davis

Britney

Holly.

founded_by

mother_ofsp

ouse_o

f

spouse_of

mother_of

occu

patio

n

part_of

part_of

teamm

ate_of

lives_in

lives_in

located_in

lives_in

fav_nba_team

loca

ted_

in?

Page 5: Subgraph Reasoning Inductive Relation Prediction by

Embeddings-based methods

5

LeBron

Akron School

Marie

Savannah

Philant.Jenifer

L.A

Lakers

A. Davis

Britney

Holly.

founded_by

mother_ofsp

ouse_o

f

spouse_of

mother_of

occu

patio

n

part_of

part_of

teamm

ate_of

lives_in

lives_in

located_in

lives_in

fav_nba_team

loca

ted_

in?

.

.

.... .

.

.

.

.

.

.

.

.

.

.

....

.

.

.

.

.

.

.

.

.

.

.

.

▪ Encode each node to a low-dimensional embedding

▪ Use the derived embeddings to make predictions (TransE, RotatE, etc.)

Page 6: Subgraph Reasoning Inductive Relation Prediction by

Embeddings-based methods

6

LeBron

Akron School

Marie

Savannah

Philant.Jenifer

L.A

Lakers

A. Davis

Britney

Holly.

founded_by

mother_ofsp

ouse_o

f

spouse_of

mother_of

occu

patio

n

part_of

part_of

teamm

ate_of

lives_in

lives_in

located_in

lives_in

fav_nba_team

loca

ted_

in

?

.

.

.... .

.

.

.

.

.

.

.

.

.

.

....

.

.

.

.

.

.

.

.

.

Kuzma

No embedding!

teammate_of

▪ Encode each node to a low-dimensional embedding

▪ Use the derived embeddings to make predictions (TransE, RotatE, etc.)

▪ Can’t make predictions on new nodes.

.

.

.

Page 7: Subgraph Reasoning Inductive Relation Prediction by

Limitations of transductive relation prediction

▪ Problematic for production systems▪ Need to re-train to deal with new nodes (e.g., entities, products)▪ Predictions can become stale.

▪ Too many parameters▪ Most transductive approaches have O(|V|) space complexity.

▪ Biases model development▪ Focus on “embedding”-based methodologies.▪ Static and unrepresentative benchmarks

7

Page 8: Subgraph Reasoning Inductive Relation Prediction by

8

Training graph

Inductive learning: evolving data

Test graph

Kuzma

?

part_of

Page 9: Subgraph Reasoning Inductive Relation Prediction by

Inductive learning: new graphs

9

Training graph Test graph

Page 10: Subgraph Reasoning Inductive Relation Prediction by

GraIL: Inductive learning using GNNs▪ A novel approach to learn

entity-independent relational semantics (rules)

▪ SOTA performance on inductive benchmarks

▪ Extremely parameter efficient

10

Page 11: Subgraph Reasoning Inductive Relation Prediction by

GraIL: Inductive learning using GNNs

11

▪ Idea 1: Apply graph neural networks (GNNs) on the subgraphs surrounding candidate edge.

▪ Idea 2: Avoid explicit rule induction.

▪ Idea 3: Ensure model is expressive enough to capture logical rules.

Page 12: Subgraph Reasoning Inductive Relation Prediction by

GraIL: Relation prediction via subgraph reasoning

12

1. Extract subgraph around candidate edge

2. Assign structural labels to nodes

3. Run GNN on the extracted subgraph

Page 13: Subgraph Reasoning Inductive Relation Prediction by

GNN architecture

13

Neural message-passing approach

Page 14: Subgraph Reasoning Inductive Relation Prediction by

GNN architecture

14

Neural message-passing approach

Separately aggregate across different types of relations

Learn a relation-specific transformation matrix

Use attention to weigh information coming from

different neighbors

Page 15: Subgraph Reasoning Inductive Relation Prediction by

GNN architecture

15

Neural message-passing approach

Information aggregated from the neighborhood

Information from the nodes embedding at the previous layer

Page 16: Subgraph Reasoning Inductive Relation Prediction by

GraIL can learn logical rules

16

Theorem (Informally): GraIL can learn any logical rule of the form:

These “path-based” rules are the foundation of most state-of-the-art rule induction systems.

Example of such a rule:

Page 17: Subgraph Reasoning Inductive Relation Prediction by

State-of-the-art inductive performance

17

• Constructed inductive versions of three standard benchmarks.• Sampled mutually exclusive subgraphs of varying sizes• Tested four inductive datasets per each benchmark.

Table: AUC-PR results on inductive relation prediction

Page 18: Subgraph Reasoning Inductive Relation Prediction by

State-of-the-art inductive performance

18

• Compared against state-of-the-art neural rule induction methods• Also compared against the best statistical induction approach.

Table: AUC-PR results on inductive relation prediction

Page 19: Subgraph Reasoning Inductive Relation Prediction by

State-of-the-art inductive performance

19

• Key finding: GraIL outperforms all previous approaches on all datasets (analogous results for hits@k)

Table: AUC-PR results on inductive relation prediction

Page 20: Subgraph Reasoning Inductive Relation Prediction by

GraIL is extremely parameter efficient compared to the existing neural rule-induction methods.

GraIL can naturally leverage external node attributes/embeddings

Added benefits

20

Page 21: Subgraph Reasoning Inductive Relation Prediction by

Ensembling in the transductive setting

21

Table: Ensemble AUC-PR results on WN18RREach entry is a pair-wise

ensemble of two methods

Page 22: Subgraph Reasoning Inductive Relation Prediction by

Ensembling in the transductive setting

22

Table: Ensemble AUC-PR results on WN18RREach entry is a pair-wise

ensemble of two methods

GraIL has the lowest performance on its own

Page 23: Subgraph Reasoning Inductive Relation Prediction by

Ensembling in the transductive setting

23

Table: Ensemble AUC-PR results on WN18RREach entry is a pair-wise

ensemble of two methods

GraIL has the lowest performance on its own…

But ensembling with GraIL leads to the best performance

Page 24: Subgraph Reasoning Inductive Relation Prediction by

Architecture details are important!

24

Table: Ablation study AUC-PR resultsNaïve subgraph extraction causes severe overfitting

Our node labelling and attention schemes are crucial for the theory and for strong

performance.

Page 25: Subgraph Reasoning Inductive Relation Prediction by

Future directions● Extracting interpretable rules from GraIL.

● Expanding the class of first-order logical rules that can be represented beyond the chain-like rules focussed in this work.

● Extending the generalization capabilities to new relations added to the knowledge graphs.

25

Page 26: Subgraph Reasoning Inductive Relation Prediction by

Komal K. [email protected]

Etienne [email protected]

William L. [email protected]

Paper: https://arxiv.org/abs/1911.06962Code and data: https://github.com/kkteru/grail

Thank you!

26