GNN Applications-I
Knowledge Graphs
https://kge-tutorial-ecai2020.github.io/
Knowledge Graph Embedding: A Survey of Approaches and Applications, Wang et al. IEEE TKDE, 2021
https://www.youtube.com/watch?v=xop5tC9T5xM
Prof. Jure Leskovec Lectures
https://www.youtube.com/watch?v=Xm5VrxZYhu4
https://www.youtube.com/watch?v=X9yl0pTP9fY
https://www.youtube.com/watch?v=qaRIBNE-4Ho
https://www.youtube.com/watch?v=Nt66M2OsbCw
Resources
Knowledge Graphs
Wikidata
DbPedia
Microsoft Satori
LinkedIn KG
Freebase
Knowledge Graph Embedding
Typical Embedding Steps:
1) Representing entities and relations [Vector, Matrices, Gaussian Distribution, complex space]
3) Learning entity and relation representations [maximize the total probability of the observed facts]
Relationships as translations in the embedding space
Translational Distance Models: TransE
Relationships as translations in the embedding space
Sundar Pichai + CEOof
Alphabet_Inc.
Satya_Nadella + CEOof
Microsoft
TransE Training
https://gombru.github.io/2019/04/03/ranking_loss/
TransE Training
TransE Training
TransE Limitations
Relation Types in KGs
Relation Types in KGs
TransE and Relation Types
Antisymmetric
Symmetric
TransE and Relation Types
1-to-N
N-to-1
Cannot model 1-to-N
Cannot model N-to-1
TransE and Relation Type
Can model inverse relation
Can model relation composition
Separate out Entity Space and Relation Space
TransR: Translation in Relation Space
TransR
TransR: Symmetric Property
TransR can model symmetric property
TransR: Asymmetric Property
TransR can model asymmetric property
TransR: 1-to-N Property
TransR can model 1-to-N property
TransR: Inverse Property
TransR can model inverse property
TransR: Relation Composition
Similarity-based scoring function of a triple
Semantic Matching Energy (SME)
Semantic Matching Energy (SME)
Neural Tensor Network (NTN)
Neural Tensor Network (NTN)
Neural Tensor Network (NTN)
Neural Tensor Network (NTN)
Scoring Function
Combined representation
head representation
tail representation
Multi Layer Perceptron (MLP)
Neural Association Model (NAM)
Deep Architecture
KG Completion Task and KG Embedding
Source: Jure Leskovec
Most of the slides are adopted from Jure Leskovec
Reasoning over Knowledge Graphs
Example KG: Biomedicine
Queries on KG
Answering One-hop Queries
What side effects are caused by drug Fulvestrant?
Answering Path Queries
Answering Path Queries
Answering Path Queries
Fulvestrant
Headache
Brain Bleeding
Short of
Breath
Kidney
Infection
Start from the anchor node “Fulvestrant” and
traverse the KG by the relation “Causes”, we
reach entities {“Brain Bleeding”, “Short of
Breath”, “Kidney Infection”, “Headache”}.
Causes
Answering Path Queries
Fulvestrant
Headache
Brain Bleeding
Short of
Breath
Kidney
Infection
CASP8
BIRC2
PIM1
Start from the nodes {“Brain Bleeding”, “Short of Breath”, “Kidney Infection”, “Headache”} and traverse the KG by the
relation “Assoc”, we reach entities {“CASP8”, “BIRC2”, “PIM1”}. These are the answers.
Answers
KGs are Incomplete ☹
KGs are Incomplete ☹
KG Completion to Fill up the Gap?
Predictive Query
General Intuition
Traversing KG in Vector Space
Traversing KG in Vector Space
Traversing KG in Vector Space
Traversing KG in Vector Space
Conjunctive Queries
Conjunctive Queries
((e:ESR2, (r:Assoc, r:TreatedBy)), (e:Short of Breath, (r:CausedBy))
Conjunctive Queries
Existential Positive First-order (EPFO) logical queries
Traversing KGs for Conjunctive Queries
What are drugs that cause Short of Breath and treat diseases associated with protein ESR2?”
((e:ESR2, (r:Assoc, r:TreatedBy)), (e:Short of Breath, (r:CausedBy))
Traversing KGs for Conjunctive Queries
What are drugs that cause Short of Breath and treat diseases associated with protein ESR2?”
((e:ESR2, (r:Assoc, r:TreatedBy)), (e:Short of Breath, (r:CausedBy))
Traversing KGs for Conjunctive Queries
How can we use embeddings to implicitly impute the missing (ESR2, Assoc, Breast Cancer)?
Intuition: ESR2 interacts with both BRCA1 and ESR1. Both proteins are associated with breast cancer.
Traversing KGs for Conjunctive Queries
Each transformation gives us a set of entities. How to represent these sets?
How do we define the intersection operation in the latent space?
Set Representation: Box Embedding
Representation with Box Embedding
Projection Operator for Traversal
Projection Operator for Traversal
Perform Intersection
Element-wise product or
Hadamard product
Sigmoid function: squashes output in (0,1)
After Applying Intersection Operator
The Score Function
Answering Disjunctive Queries
Answering Disjunctive Queries
Answering Disjunctive Queries
Answering Disjunctive Queries
Algo in Query2Box paper
Answering Disjunctive Queries
Answering Disjunctive Queries
Training Query2Box
Training Algorithm
How to Generate Training Data?
Generate training data from multiple query templates
Query Template to Query
Generation with Backward Inference
Generation with Backward Inference
Generation with Backward Inference
Generation with Backward Inference
Generation with Backward Inference
Generation with Backward Inference
Generation with Backward Inference
Generation with Backward Inference