predictive and generative deep learning for graphs

80
Predictive and Generative Deep Learning for Graphs Amir Saffari @amirsaffari - [email protected]

Upload: others

Post on 28-May-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Predictive and Generative Deep Learning for Graphs

Predictive and Generative Deep Learning for Graphs

Amir Saffari

@amirsaffari - [email protected]

Page 2: Predictive and Generative Deep Learning for Graphs

Introduction

Page 3: Predictive and Generative Deep Learning for Graphs

Graphs asPrimary DataStructures

Page 4: Predictive and Generative Deep Learning for Graphs

Vector Data

Page 5: Predictive and Generative Deep Learning for Graphs

Dense Models

Page 6: Predictive and Generative Deep Learning for Graphs

Categorical Data

The

cat

sat

on

the

mat

Page 7: Predictive and Generative Deep Learning for Graphs

Categorical Data: Bag of Words

The

cat

sat

on

the

mat

Page 8: Predictive and Generative Deep Learning for Graphs

Embedding Models

The

cat

sat

on

the

mat

Page 9: Predictive and Generative Deep Learning for Graphs

Sequential Data: 1D

https://en.wikipedia.org/wiki/Time_series

The

cat

sat

on

the

mat

Page 10: Predictive and Generative Deep Learning for Graphs

Sequential Data: 2D

https://en.wikipedia.org/wiki/Image

Page 11: Predictive and Generative Deep Learning for Graphs

Sequential Data: 3D

https://en.wikipedia.org/wiki/Image

Page 12: Predictive and Generative Deep Learning for Graphs

How to Deal with Variable Length Sequences? Resize to standard size Fix context size

The

cat

sat

on

the

mat

sat

on

the

mat

Page 13: Predictive and Generative Deep Learning for Graphs

Convolutional Models

https://github.com/vdumoulin/conv_arithmetic

Page 14: Predictive and Generative Deep Learning for Graphs

Convolutional Models

Page 15: Predictive and Generative Deep Learning for Graphs

Convolutional Models: Multiple Layers and Receptive Field

Page 16: Predictive and Generative Deep Learning for Graphs

Recurrent Models

The

cat

sat

on

the

mat

Page 17: Predictive and Generative Deep Learning for Graphs

Complex Structures: Trees

sat

oncat

matThe

the

det

nsubj prep

pojb

det

Page 18: Predictive and Generative Deep Learning for Graphs

Recursive Models

Page 19: Predictive and Generative Deep Learning for Graphs

Recursive Models

Page 20: Predictive and Generative Deep Learning for Graphs

Recursive Models

Page 21: Predictive and Generative Deep Learning for Graphs

Recursive Models

Page 22: Predictive and Generative Deep Learning for Graphs

Complex Structures: Structure as Computational Graph

Page 23: Predictive and Generative Deep Learning for Graphs

Complex Structures: Backpropagation through Structure

Page 24: Predictive and Generative Deep Learning for Graphs

Complex Structures: Graph

Graph

Nodes

Relations

Page 25: Predictive and Generative Deep Learning for Graphs

Complex Structures: Graph

Graph

Nodes

Relations

Features

Page 26: Predictive and Generative Deep Learning for Graphs

Complex Structures: Directed Graph

Page 27: Predictive and Generative Deep Learning for Graphs

Examples of Graphs: Facebook Friends - Undirectional

https://techcrunch.com/2015/04/28/facebook-api-shut-down/

Page 28: Predictive and Generative Deep Learning for Graphs

Examples of Graphs: Twitter Followers - Directional

http://tasos-spiliotopoulos.com/ecscw11.html

Page 29: Predictive and Generative Deep Learning for Graphs

Examples of Graphs: Biological Knowledge Graph

Page 30: Predictive and Generative Deep Learning for Graphs

Examples of Graphs: Molecular Graph

https://en.wikipedia.org/wiki/Caffeine

Page 31: Predictive and Generative Deep Learning for Graphs

ML Tasks for Graphs: Graph Classification or Regression

?

Page 32: Predictive and Generative Deep Learning for Graphs

ML Tasks for Graphs: Graph Classification or Regression

Improves Coding Skills?

Caffeine

Page 33: Predictive and Generative Deep Learning for Graphs

ML Tasks for Graphs: Node Classification

Who should I buy coffee next?

Page 34: Predictive and Generative Deep Learning for Graphs

ML Tasks for Graphs: Node Classification

What is the function of a protein in a tissue?

Page 35: Predictive and Generative Deep Learning for Graphs

ML Tasks for Graphs: Relationship Inference

Which coffee shop should I try next?

Page 36: Predictive and Generative Deep Learning for Graphs

ML Tasks for Graphs: Relationship Inference

Which drug can treat this disease?

Page 37: Predictive and Generative Deep Learning for Graphs

Graph Convolutional Neural Networks

Page 38: Predictive and Generative Deep Learning for Graphs

Node Embedding

Page 39: Predictive and Generative Deep Learning for Graphs

Node Embedding

Transductive

Transductive

Inductive

Page 40: Predictive and Generative Deep Learning for Graphs

Relation Embedding

Transductive

Transductive

Inductive

Page 41: Predictive and Generative Deep Learning for Graphs

Graphs as Tensors

Page 42: Predictive and Generative Deep Learning for Graphs

Tensor Factorisation Models for Relationship Inference: RESCAL

https://arxiv.org/pdf/1503.00759.pdf

Page 43: Predictive and Generative Deep Learning for Graphs

Graph Embedding Models for Relationship Inference

Dettmers et al, Convolutional 2D Knowledge Graph Embeddings, AAAI 2018

Page 44: Predictive and Generative Deep Learning for Graphs

Convolution

Page 45: Predictive and Generative Deep Learning for Graphs

From Convolution on a Grid to Graph

Page 46: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Recursive Computation with Shared Parameters

Represent each node based on its neighbourhood

Page 47: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Recursive Computation with Shared Parameters

Represent each node based on its neighbourhood

Recursively compute the state of each node by propagating previous states using relation specific transformations

Page 48: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Step 0 - Node Embedding

Page 49: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Step k - Messages

Page 50: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Step k - Aggregation

Page 51: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Step k - State Update

Page 52: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Generalisations

Aggregation model

State update model

Embedding model

Page 53: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Backpropagation through Structure

Page 54: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Generalisations

Aggregation model

State update model

Embedding model

AverageMax poolingLSTMAttention...

Page 55: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Generalisations

Aggregation model

State update model

Embedding model

AverageMax poolingLSTMAttention...Nonlinear map (e.g. Dense + ReLU, …)

MLP...

Page 56: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Generalisations

Aggregation model

State update model

Embedding model

AverageMax poolingLSTMAttention...Nonlinear map (e.g. Dense + ReLU, …)

MLP... Dropout

Batch normalisation...

Page 57: Predictive and Generative Deep Learning for Graphs

Graph Convolution: Generalisations

Aggregation model

State update model

Embedding model

Node classification model

Graph classification model

Relation inference model

Page 58: Predictive and Generative Deep Learning for Graphs

Duvenaud et al, Convolutional Networks on Graphs for Learning Molecular Fingerprints, NIPS 2015

Page 59: Predictive and Generative Deep Learning for Graphs

Kipf et al, Semi-Supervised Classification with Graph Convolutional Networks, ICLR 2017

Page 60: Predictive and Generative Deep Learning for Graphs

• Real-world large-scale knowledge graphs are automatically extracted

− Using NER, entity linking, relationship

extraction, …

− Making them noisy

• GCNNs are not interpretable− For many applications, interpretability is key

• Added novel edge-specific attention mechanism to GCNNs

Neil et al, Interpretable Graph Convolutional Neural Networks for Inference on Noisy Knowledge Graphs, submitted

Page 61: Predictive and Generative Deep Learning for Graphs

Neil et al, Interpretable Graph Convolutional Neural Networks for Inference on Noisy Knowledge Graphs, submitted

Page 62: Predictive and Generative Deep Learning for Graphs

Ying et al, Graph Convolutional Neural Networks for Web-Scale Recommender Systems, KDD 2018

Page 63: Predictive and Generative Deep Learning for Graphs

Generative Models for Graphs

Page 64: Predictive and Generative Deep Learning for Graphs

Discriminative Models

Page 65: Predictive and Generative Deep Learning for Graphs

Generative Models

Page 66: Predictive and Generative Deep Learning for Graphs

Generative Models

Page 67: Predictive and Generative Deep Learning for Graphs

Autoregressive Models for Sequential Data

The

cat

sat

on

the

mat

Page 68: Predictive and Generative Deep Learning for Graphs

Autoregressive Models for Sequential Data

[(cat, 0.85), (dog, 0.78), … ]

catThe

Page 69: Predictive and Generative Deep Learning for Graphs

Autoregressive Models for Sequential Data

The

cat

[(ate, 0.85), (sat, 0.6), … ]

cat

sat

Page 70: Predictive and Generative Deep Learning for Graphs

AutoEncoder Models

Encoder Decoder

Latent representation

Page 71: Predictive and Generative Deep Learning for Graphs

AutoEncoder Models

Encoder Decoder

Latent representationThe

cat

sat

on

the

mat

The

cat

sat

on

the

mat

Sequence models

Page 72: Predictive and Generative Deep Learning for Graphs

Generative Adversarial Network Models

Generator

Latent representation

Discriminator

Training datasetGenerated samples

Loss

Page 73: Predictive and Generative Deep Learning for Graphs

Kusner et al, Grammar Variational Autoencoder, ICML 2017

Page 74: Predictive and Generative Deep Learning for Graphs

Neil et al, Exploring Deep Recurrent Models with Reinforcement Learning for Molecule Design, ICLR 2018

Page 75: Predictive and Generative Deep Learning for Graphs

You et al, GraphRNN: Generating Realistic Graphs with Deep Auto-regressive Models, ICML 2018

Page 76: Predictive and Generative Deep Learning for Graphs

Li et al, Learning Deep Generative Models of Graphs, ICML 2018

Page 77: Predictive and Generative Deep Learning for Graphs

Liu et al, Constrained Graph Variational Autoencoders for Molecule Design, arXiv:1805.09076, 2018

Page 78: Predictive and Generative Deep Learning for Graphs

You et al, Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation, arXiv:1806.02473, 2018

Page 79: Predictive and Generative Deep Learning for Graphs

References• Duvenaud et al, Convolutional Networks on Graphs for Learning Molecular Fingerprints, NIPS 2015• Niepert et al, Learning Convolutional Neural Networks for Graphs, ICML 2016• Kipf et al, Semi-Supervised Classification with Graph Convolutional Networks, ICLR 2017• Ying et al, Graph Convolutional Neural Networks for Web-Scale Recommender Systems, KDD 2018• Dettmers et al, Convolutional 2D Knowledge Graph Embeddings, AAAI 2018• Neil et al, Exploring Deep Recurrent Models with Reinforcement Learning for Molecule Design, ICLR 2018• You et al, GraphRNN: Generating Realistic Graphs with Deep Auto-regressive Models, ICML 2018• Li et al, Learning Deep Generative Models of Graphs, ICML 2018• Liu et al, Constrained Graph Variational Autoencoders for Molecule Design, arXiv:1805.09076, 2018• You et al, Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation,

arXiv:1806.02473, 2018

Page 80: Predictive and Generative Deep Learning for Graphs

Thanks!

Amir Saffari

@amirsaffari, [email protected]