SlideShare a Scribd company logo
Graph Neural Networks
Liad Magen
March October 2020
Hello, world!
Prof. Dr. Stefan Thurner
What are graphs?
Seven Bridges of Königsberg
→ →
Location & Street representation
Social Network
Protein-Protein interactions
Paper citations as a graph
Mesh & Point cloud as a graph
Visually Rich Data
Introduction to Graph neural networks @  Vienna Deep Learning meetup
Introduction to Graph neural networks @  Vienna Deep Learning meetup
Process other (non-Euclidean) formats of data
Google PageRank
Inspired usages
Introduction to Graph neural networks @  Vienna Deep Learning meetup
Introduction to Graph neural networks @  Vienna Deep Learning meetup
Graph Neural Networks
ICLR Submissions
Source:
Twitter - @prlz77
Back to basics
Graphs, Mathematically
G = (Vetrices, Edges)
V = {v1 … vn)
E = {(vi, vj), … }
Graph - algebraic representation
G = (Vetrices, Edges)
Adjacency matrix
1 - if {vi, vj} ∈ E && i != j
Aij
0 - Otherwise
Graph - algebraic representation
G = (Vetrices, Edges)
Laplacian matrix *
L = D-A
Degree
Adjacency Laplacian
* For undirected graphs
GCN - Algorithm
GCN
GCN Layer:
Y = ReLU(AXW)
...but with message passing
Message Passing
For each node :
1. Aggregate neighbor nodes into an intermediate representation
2. Transform the aggregated representation with a linear projection followed by a
non-linearity (ReLU)
Mathematically:
H →Network Layer
W→Network Weights
A →Adjacency Matrix
D →Degree Matrix
Model types
● Graph classification
○ Chemical properties of a molecule
○ Comparing user preferences / activities
● Node classification - node label prediction
○ Malicious users in a social network
○ Visually inferred Named Entity Recognition (NER)
○ Node clustering
● Edge prediction
○ Recommendation system
○ Protein-protein interaction
○ “Friend” suggestion
Frameworks
NetworkX
● Store and mutate Graphs
● Graph algorithms (Shortest path - Dijkstra, TreeWidth, clustering, centrality)
● Network analysis
● Node / edge data
● Visualization tools
DGL
● Building blocks
● Great tutorials
● Generative graphs
● Great for research and complicated tasks
● An extension library for pyTorch
● Officially part of the pyTorch ecosystem
● Easily extensible
● Papers are implemented directly in it
● Looooooooooooooong list of ready-to-use methods and algorithms:
○ TransformerConf (2020)
○ GCN2Conv (2020)
○ DeeperGCN (2020)
○ Top-K Pooling
○ PairNorm
PyTorch Geometric
Model types
● Graph classification
○ Chemical properties of a molecule
○ Comparing user preferences / activities
● Node classification - node label prediction
○ Malicious users in a social network
○ Visually inferred Named Entity Recognition (NER)
○ Node clustering
● Edge prediction
○ Recommendation system
○ Protein-protein interaction
○ “Friend” suggestion
Practical advices
PyTorch Geometric Example
● DataLoader
● GCN Layers
Potential Pitfalls when going ‘deep’
● Vanishing Gradient
● Overfitting
● Over-smoothing
Node-vectors become too similar
● Bottleneck (Over-Squashing)
A single node vector contains data of too many nodes
https://arxiv.org/abs/2006.07107 - Effective Training Strategies for Deep Graph Neural Networks
Scaling
● GraphSAGE
https://arxiv.org/abs/1706.02216
● ClusterGCN
https://arxiv.org/abs/1905.07953
● Graph-BERT
https://arxiv.org/abs/2001.05140
https://github.com/jwzhanggy/Graph-Bert
Additional reading:
https://towardsdatascience.com/simple-scalable-graph-neural-networks-7eb04f366d07
Model Evaluation
https://ogb.stanford.edu/
● Datasets + Data Loaders (DGL / pyTorch Geometric)
● Node pred
● Edge pred
● Graph pred
Please feel free to ask questions ;)
Additional Resources
https://towardsdatascience.com/how-to-do-deep-learning-on-graphs-with-graph-
convolutional-networks-7d2250723780
https://tkipf.github.io/graph-convolutional-networks/
https://github.com/deepmind/graph_nets
https://www.scihive.org/paper/1912.12693#section-13
https://link.springer.com/article/10.1186/s40649-019-0069-y
https://www.youtube.com/watch?v=cWIeTMklzNg
https://www.youtube.com/watch?v=YrhBZUtgG4E

More Related Content

PPTX
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
PPTX
Graph Neural Network - Introduction
PDF
Gnn overview
PDF
Graph neural networks overview
PDF
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
PDF
IoT Security: Problems, Challenges and Solutions
PDF
合成変量とアンサンブル:回帰森と加法モデルの要点
PPTX
09 Ego Network Analysis
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
Graph Neural Network - Introduction
Gnn overview
Graph neural networks overview
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
IoT Security: Problems, Challenges and Solutions
合成変量とアンサンブル:回帰森と加法モデルの要点
09 Ego Network Analysis

What's hot (20)

PDF
How Powerful are Graph Networks?
PDF
Webinar on Graph Neural Networks
PPTX
Graph Representation Learning
PPTX
Machine learning with graph
PDF
Graph Neural Network in practice
PDF
Deep Learning for Graphs
PDF
GraphSage vs Pinsage #InsideArangoDB
PPTX
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
PDF
Representation learning on graphs
PPTX
Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering
PPTX
Graph Neural Networks.pptx
PPTX
Graph Neural Network (한국어)
PPTX
Graph Neural Network 1부
PDF
Neural networks and deep learning
PDF
Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networks
PDF
[기초개념] Graph Convolutional Network (GCN)
PPTX
U-Net (1).pptx
PPTX
Classifying and understanding financial data using graph neural network
PPTX
HML: Historical View and Trends of Deep Learning
PDF
Graph-Powered Machine Learning
How Powerful are Graph Networks?
Webinar on Graph Neural Networks
Graph Representation Learning
Machine learning with graph
Graph Neural Network in practice
Deep Learning for Graphs
GraphSage vs Pinsage #InsideArangoDB
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
Representation learning on graphs
Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering
Graph Neural Networks.pptx
Graph Neural Network (한국어)
Graph Neural Network 1부
Neural networks and deep learning
Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networks
[기초개념] Graph Convolutional Network (GCN)
U-Net (1).pptx
Classifying and understanding financial data using graph neural network
HML: Historical View and Trends of Deep Learning
Graph-Powered Machine Learning
Ad

Similar to Introduction to Graph neural networks @ Vienna Deep Learning meetup (20)

PPTX
Sun_MAPL_GNN.pptx
PPTX
DDGK: Learning Graph Representations for Deep Divergence Graph Kernels
PDF
Neo4j MeetUp - Graph Exploration with MetaExp
PDF
AdityaChaudharyCaseStudy0nGraphNeuralNetwork
PDF
Interactive High-Dimensional Visualization of Social Graphs
PDF
Deep 3D Visual Analysis - Javier Ruiz-Hidalgo - UPC Barcelona 2017
PPTX
008 GNNs at Scale With Graph Data Science Sampling and Python Client Integrat...
PDF
Wondershare Recoverit 13.5.12.11 Free Download
PDF
DriverPack Solution Download Full ISO
PDF
RadioBOSS Advanced 7.0.8 Free Download
PDF
Apple Logic Pro X for MacOS Free Download
PDF
Benchmarking Tool for Graph Algorithms
PPTX
Semantic Segmentation on Satellite Imagery
PDF
Point-GNN: Graph Neural Network for 3D Object Detection in a Point Cloud
PDF
From Data to Knowledge thru Grailog Visualization
PPTX
[NS][Lab_Seminar_241118]Relation Matters: Foreground-aware Graph-based Relati...
PPTX
Self-supervised representation learning on point clouds - Copy.pptx
PPTX
Sparse Graph Attention Networks 2021.pptx
PDF
Exploring New Frontiers in Inverse Materials Design with Graph Neural Network...
PDF
High-Performance Graph Analysis and Modeling
Sun_MAPL_GNN.pptx
DDGK: Learning Graph Representations for Deep Divergence Graph Kernels
Neo4j MeetUp - Graph Exploration with MetaExp
AdityaChaudharyCaseStudy0nGraphNeuralNetwork
Interactive High-Dimensional Visualization of Social Graphs
Deep 3D Visual Analysis - Javier Ruiz-Hidalgo - UPC Barcelona 2017
008 GNNs at Scale With Graph Data Science Sampling and Python Client Integrat...
Wondershare Recoverit 13.5.12.11 Free Download
DriverPack Solution Download Full ISO
RadioBOSS Advanced 7.0.8 Free Download
Apple Logic Pro X for MacOS Free Download
Benchmarking Tool for Graph Algorithms
Semantic Segmentation on Satellite Imagery
Point-GNN: Graph Neural Network for 3D Object Detection in a Point Cloud
From Data to Knowledge thru Grailog Visualization
[NS][Lab_Seminar_241118]Relation Matters: Foreground-aware Graph-based Relati...
Self-supervised representation learning on point clouds - Copy.pptx
Sparse Graph Attention Networks 2021.pptx
Exploring New Frontiers in Inverse Materials Design with Graph Neural Network...
High-Performance Graph Analysis and Modeling
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Cloud computing and distributed systems.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation theory and applications.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Cloud computing and distributed systems.
sap open course for s4hana steps from ECC to s4
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectroscopy.pptx food analysis technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Programs and apps: productivity, graphics, security and other tools
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Chapter 3 Spatial Domain Image Processing.pdf

Introduction to Graph neural networks @ Vienna Deep Learning meetup