SlideShare a Scribd company logo
1
Graph Neural Networks
2
Applications
3
Spotlight: A chemist’s tale
4
What’s this? Is a molecule a graph?
If so, what are its nodes,
edges, features?
Predict if a molecule is a potent drug
5
1. Train a GNN on a curated dataset where response is known
2. Once trained, use the model and apply any molecule
3. Select ~top-100 candidates
4. Get chemists to thoroughly investigate them
Halicin - a powerful drug discovered by GNN in
2020
“We wanted to develop a platform that would allow us to harness the power of artificial intelligence to usher in a new age of antibiotic
drug discovery. Our approach revealed this amazing molecule which is arguably one of the more powerful antibiotics that has been
discovered.” - James Collins, Professor of Medical Engineering and Science, MIT
6
6
Success stories of GNNs
7
Machine Learning problems using Graph data
8
?
Node-level predictions
Does this person smoke?
(Unlabelled node)
Link-level predictions
Next Prime video?
Graph-level predictions
Is this molecule a suitable
drug?
Concept of Embeddings
9
Embeddings
10
banana
mango
dog
Vocabulary size (V)
banana
mango
dog
D
Local representation (1-hot) Distributed representation
Graph Neural
Networks -
Intuition (and
some Math)
11
A simplified view
12
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
GNN
h1 h2 h3 …
h1 h2 h3 …
h1 h2 h3 …
h1 h2 h3 …
h1 h2 h3 …
Vectorizing this…
13
Inputs(X, A) Latents(H, A)
GNN
Message passing
14
1
2
3
4
5
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
AGGREGATE UPDATE
1
2
3
4
5
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
More Message passing
15
1
2
3
4
5
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
1
2
3
4
5
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
[...]
Multiple hops of message passing
16
1
2
3
4
5
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
1
2
3
4
5
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
x1 x2
x
3
…
What to do with GNN outputs?
17
Inputs(X, A) Latents(H, A)
GNN
Graph Neural Networks - more Math
18
Two-step message passing: a recap
19
1
2
3
4
5
Target
node
1
2
3
4
AGGREGATE
1. AGGREGATE - pass information (the “message”) from the target node’s neighbours to
the target node
2. UPDATE - update each node’s features based on “message” to form an embedded
representation
Generic form of message passing
20
1
2
3
4
AGGREGATE
1
2
3
4
5
Target node
h = node features or embeddings
k = number of hops
Using neural networks for aggregate and update
21
Each node’s updated value becomes a weighting of its previous value + a weighting of its
neighbours’ values
Make message passing more efficient by
simplifying, generalizing and sharing parameters
22
Collapse the two weight vectors into W by adding self-loops to the adjacency matrix
Base GNNs on a “convolution” perspective
23
Normalize by # of nodes in the
neighbourhood
“Original” GNN (2009)
GCN (2016)
Graph Neural
Networks -
Implementation
notes
24
25
pyTorch and pyG
1.
A wealth of libraries
You can mix-and-match some of these libraries to train and predict node/edge/graph
classification problems.
tensorflow
2.
GDS from neo4j
3.
25
Book recommendation
26
Thankyou!
Kumar Sankara Iyer
Engineering Director, Thoughtworks
www.linkedin.com/in/aquaraga
27
Appendix
28
Neural Networks - you’ve seen this diagram a
LOT!
29
Neural networks: weights, biases, activations
30

More Related Content

PPTX
Graph Neural Network - Introduction
PPTX
Graph Representation Learning
PPTX
Introduction to Graph neural networks @ Vienna Deep Learning meetup
PDF
Deep Learning for Graphs
PPTX
Machine learning with graph
PDF
Graph neural networks overview
PDF
Graph Neural Networks for Recommendations
PPTX
Introduction For seq2seq(sequence to sequence) and RNN
Graph Neural Network - Introduction
Graph Representation Learning
Introduction to Graph neural networks @ Vienna Deep Learning meetup
Deep Learning for Graphs
Machine learning with graph
Graph neural networks overview
Graph Neural Networks for Recommendations
Introduction For seq2seq(sequence to sequence) and RNN

What's hot (20)

PPTX
Transfer learning-presentation
PDF
Gnn overview
PDF
Deep Learning - Overview of my work II
PPTX
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
PPTX
Artificial Neural Network | Deep Neural Network Explained | Artificial Neural...
PPTX
Mc Culloch Pitts Neuron
PDF
Kernels and Support Vector Machines
PPTX
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
PPTX
Artificial Intelligence, Machine Learning and Deep Learning
PPTX
Natural language processing: feature extraction
PPTX
[Paper Reading] Attention is All You Need
PPTX
AI: Learning in AI
PDF
Transfer Learning: An overview
PPTX
Deep Learning Tutorial
PPTX
Machine learning ppt.
PPTX
Attention Is All You Need
PPT
rnn BASICS
PPTX
Recurrent Neural Networks (RNNs)
PDF
Accelerated Training of Transformer Models
PDF
오토인코더의 모든 것
Transfer learning-presentation
Gnn overview
Deep Learning - Overview of my work II
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
Artificial Neural Network | Deep Neural Network Explained | Artificial Neural...
Mc Culloch Pitts Neuron
Kernels and Support Vector Machines
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Artificial Intelligence, Machine Learning and Deep Learning
Natural language processing: feature extraction
[Paper Reading] Attention is All You Need
AI: Learning in AI
Transfer Learning: An overview
Deep Learning Tutorial
Machine learning ppt.
Attention Is All You Need
rnn BASICS
Recurrent Neural Networks (RNNs)
Accelerated Training of Transformer Models
오토인코더의 모든 것
Ad

Similar to Graph Neural Networks.pptx (20)

PDF
What is GNN and Its Real World Applications.pdf
PPTX
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
PPTX
Sun_MAPL_GNN.pptx
PPTX
Chapter 3.pptx
PPTX
008 GNNs at Scale With Graph Data Science Sampling and Python Client Integrat...
PDF
DriverPack Solution Download Full ISO
PDF
Wondershare Recoverit 13.5.12.11 Free Download
PDF
RadioBOSS Advanced 7.0.8 Free Download
PDF
Apple Logic Pro X for MacOS Free Download
PPTX
Chapter 4 better.pptx
PPTX
Colloquium.pptx
PPTX
20191107 deeplearningapproachesfornetworks
PPTX
New Microsoft PowerPoint Presentation [Autosaved].pptx
PDF
Graph Neural Network in practice
PDF
Learning Convolutional Neural Networks for Graphs
PDF
Representation learning on graphs
PPTX
Demystifying Graph Neural Networks
PDF
Deep learning 1.0 and Beyond, Part 1
PDF
stanford_graph-learning_workshop.pdf
PDF
Grl book
What is GNN and Its Real World Applications.pdf
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
Sun_MAPL_GNN.pptx
Chapter 3.pptx
008 GNNs at Scale With Graph Data Science Sampling and Python Client Integrat...
DriverPack Solution Download Full ISO
Wondershare Recoverit 13.5.12.11 Free Download
RadioBOSS Advanced 7.0.8 Free Download
Apple Logic Pro X for MacOS Free Download
Chapter 4 better.pptx
Colloquium.pptx
20191107 deeplearningapproachesfornetworks
New Microsoft PowerPoint Presentation [Autosaved].pptx
Graph Neural Network in practice
Learning Convolutional Neural Networks for Graphs
Representation learning on graphs
Demystifying Graph Neural Networks
Deep learning 1.0 and Beyond, Part 1
stanford_graph-learning_workshop.pdf
Grl book
Ad

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
Teaching material agriculture food technology
PDF
Network Security Unit 5.pdf for BCA BBA.
“AI and Expert System Decision Support & Business Intelligence Systems”
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
Encapsulation_ Review paper, used for researhc scholars
Review of recent advances in non-invasive hemoglobin estimation
MIND Revenue Release Quarter 2 2025 Press Release
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.

Graph Neural Networks.pptx

Editor's Notes

  • #3: Set expectation for the session You should be able to understand why people use GNNs You should have a 20000-foot idea of what they actually do - at least develop an intuition of what they do Appreciate the math (if you have some exposure to Neural networks) Overall we will be setting the stage for a subsequent workshop (perhaps in the next neo4j meetup) where we will do some hands-on. Must-watch: https://www.youtube.com/watch?v=cWIeTMklzNg
  • #4: Just like graph databases are found everywhere, predictions based on graphs also have their applications. From a social graph of LinkedIn, you can suggest new connections. Could be used in e-commerce recommender systems Could be used in medicine/pharmacy - say is this drug potent? Could be used in social networks - say providing connection recommendations https://www.youtube.com/watch?v=fOctJB4kVlM&list=PLV8yxwGOxvvoNkzPfCx2i8an--Tkt7O8Z&index=1 2:14
  • #5: Molecule Nodes - atoms Edges - bonds Features of nodes - atom types, number of protons, charge Features of edges - bond type
  • #6: One you have a molecule represented as a graph, you can train a Graph Neural Network to perform - say a binary task. Will this molecule inhibit a given bacteria? First, you will have a curated dataset of several molecules and you know the outcome - i.e. whether it will inhibit E-coli or not. You train a Graph neural network with this training data. Once you have trained the GNN, you can feed it a bunch of candidate molecules. Take the most promising N number of molecules.
  • #7: https://news.mit.edu/2020/artificial-intelligence-identifies-new-antibiotic-0220
  • #8: Halicin in 2020 GNNs in 1990s in the chemical industry - a bit of history
  • #9: So what can you do with graph data? Node-level predictions - If you have a graph with unlabelled nodes, you want to predict attributes about them or you want to classify them. GNNs as you’ll see soon will use information from other nodes to infer on these unlabelled nodes Edge-prediction - Typically used by companies to predict which product will be purchased next by a customer. Here, it can used to predict if there will be a link between a person node and an item node Graph-level prediction - If a molecule is a potent drug or not https://www.youtube.com/watch?v=fOctJB4kVlM&list=PLV8yxwGOxvvoNkzPfCx2i8an--Tkt7O8Z&index=2 3:20
  • #11: This is a commonly encountered concept in NLP and deep learning. How do you represent discrete things in a large set, say the words in a dictionary? We have a huge sparse vector that has mostly 0s. It just has 1 for the word under consideration at the appropriate index. Problem is that we don’t know how they will correlate. Most deep learning models tend to learn a distributed vector representation. In this case, you can see that “banana” and “mango” have some similarity - maybe because they are both fruits and are yellow. So V could be 10000, and D maybe some 128 or 500 or something like that. In a way, it compresses as well. Distributed Vector representations - https://www.youtube.com/watch?v=zCEYiCxrL_0 5:29
  • #13: You start with a graph - modelling decision. It should encode the problem. For each of the nodes, there could be some information - either an embedding or a set of features. The output of a GNN is the same graph. For each node, there is a vector representation. Each node now should have the information not simply about itself - but rather how it belongs in the context of the graph. Training and recommendation
  • #14: Recommendation
  • #15: The aggregate function should be permutation invariant. Training
  • #16: Training Too much message passing - over-smoothing
  • #17: In the first step, the nodes nly know about themselves In the next step, all of them know about their neighbours. Then their neighbours’ neighbours. In each step, the perceptive field increases. Finally, every node would have learnt how it “belongs” in the graph.
  • #18: Once you have these vectors, you can do: Node classification - classify each node independently by applying a shared layer Link classification Aggregate all the h vectors 12:59 https://www.youtube.com/watch?v=8owQBFAHw7E Recommendation
  • #20: Show n layers of convolution
  • #21: Aggregate function needs to be permutation invariant. For eg; if there is a new neighbour, the output shape (whether it is a number or a matrix) should not change.
  • #22: Summation is a choice - you could either do mean, max, min, etc.
  • #23: Do not treat target and neighbour nodes differently. Adjacency matrix defines
  • #26: pyTorch - From Meta, now under Linux foundation. Optimized tensor library for deep learning using GPUs and CPUs. pyG - Has extension for graph learning. Supports GNN architectures like GCN and GAT Tensorflow GDS - Random walks with restarts sampling (server-side and client-side components, uses Apache arrow for in-memory analytics)