Embedding Graphs with Deep Learning

Connor Shorten · Beginner ·📐 ML Fundamentals ·7y ago

Key Takeaways

This video explains how to embed graphs with deep learning, covering matrix decomposition methods and deep learning approaches like DeepWalk and Node2Vec, which utilize random walks and the Skip-Gram model to construct low-dimensional representations of graphs.

Full Transcript

this is a deep learning video from Henry AI labs this video is on embedding graphs with deep Lerner the motivation in this idea is to embed graphs which are typically represented as sparse adjacency matrices or lists into low dimensional continuous vector representations the picture shows the result of this you start out with this graph and then you embed it into a space such that you can do things like Euclidean distance cluster these low dimensional representations are also also really useful for building supervised learning models that do tasks like link prediction and motor classification so how can we construct low dimensional representations of grass some of the typical methods used are based on matrix decomposition such as a singular value decomposition and multi-dimensional scalar matrix factorization methods they're basically bottlenecked by the time complexity of matrix multiplication because they each require inverting matrices so this runs in order n-cubed and you know more clever implementations like Strassen and coopersmith Winograd can't reduce this running time but still it's problematic because and you have social graphs like Twitter users or Facebook users you have been insanely large n and in addition it doesn't adapt well to adding new edges and new notes in network so you'd have to redo singular value decomposition each time you add new users to the network so deep learning deep learning is well-known for reducing dimensionality of data deep learning is most frequently used in computer vision speech recognition and natural image processing so how can deep learning be extended to graph data so graph data and text are actually represented very similarly and the adjacency list encoding edges and a one hot including of text tokens have very similar structure and very similar sparsity so how the sparsity handled a text it's in text sparsity is handled with the Skip grant model so the high-level idea the skipper model is to slide a context window four sentences and construct these pairs such that you build a deep model that maps from input words to its context the intermediate representation in the scope Graham is used as the embedding of the text tokens so text data is naturally structured via sentences so how can we find a similar structure in graphs if so this is random walks so we can take random walks on ungraspable host and vertex neighbourhoods are used in the same way that sentences are used in the Skip grandma so deep walk it uses a skip Graham style vertex encoding this is done by treating vertex neighborhoods and sentences and deriving vertex neighbourhoods from random walks and then the representations of these vertices are used for downstream tasks like link prediction or classification so another interesting thing is that graph and text data both follow this power law distribution of frequency and degree so like in text words like the as in the appear really frequently and in social networks some users have much more connections than others so some of the important ideas in super M are hierarchical softmax and negative sampling hierarchical softmax is a really clever way of reducing the number of hidden units you need in your softmax output layer so if you imagine you're using a Facebook Network and you're trying to predict the contexts vertices which could contain millions of vertices you can divide this space by log 2 vertices by constructing it in a binary search tree so this example shows how eight nodes can be represented with three predictions of the binary search tree negative sampling is another one of the key idea isn't worked avec what this says instead of directly predicting the context words you just predict a binary label of whether this word appears in the context or not so in the sentence I am learning about using deep learning to represent graph data around deep learning and using both be a correct label and coffee and gorilla would be negative labels because they don't appear in the context so going further should we sample uniformly in deep walk we treat a B D and C all with the same probability of going to the next note but a note avec we're gonna parameterize how we traverse the read and walk so the final paper is that if you traverse the notes in a breadth-first way you'll capture the sense of home field which means that nodes which are near by to each other and the shortest path distances should be embedded in you know how below Euclidean distance me a better but if you do a depth first search traversal then the nodes will have a structural equivalence in their abetik so in the nodes in the graph above you and s6 don't share your neighbors but they both play a similar role their communities so embeddings that represent shortest path distance or home ability is shown here you can see that you know that it preserves this notion of how far away are its neighbors so in conclusion we've seen how deep walk and note two that are used to convert adjacency matrices into low dimensional representations this is done using random walks and the skip very model thanks for watching

Original Description

This video explains how to Embed Graphs with Deep Learning. This includes showing the difference between Matrix Decomposition and Deep learning methods as well. Thanks for watching! www.henryailabs.com
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Connor Shorten · Connor Shorten · 12 of 60

1 DenseNets
DenseNets
Connor Shorten
2 DeepWalk Explained
DeepWalk Explained
Connor Shorten
3 Inception Network Explained
Inception Network Explained
Connor Shorten
4 StackGAN
StackGAN
Connor Shorten
5 StyleGAN
StyleGAN
Connor Shorten
6 Progressive Growing of GANs Explained
Progressive Growing of GANs Explained
Connor Shorten
7 Improved Techniques for Training GANs
Improved Techniques for Training GANs
Connor Shorten
8 Word2Vec Explained
Word2Vec Explained
Connor Shorten
9 Must Read Papers on GANs
Must Read Papers on GANs
Connor Shorten
10 Unsupervised Feature Learning
Unsupervised Feature Learning
Connor Shorten
11 Self-Supervised GANs
Self-Supervised GANs
Connor Shorten
Embedding Graphs with Deep Learning
Embedding Graphs with Deep Learning
Connor Shorten
13 Transfer Learning in GANs
Transfer Learning in GANs
Connor Shorten
14 ReLU Activation Function
ReLU Activation Function
Connor Shorten
15 AC-GAN Explained
AC-GAN Explained
Connor Shorten
16 SimGAN Explained
SimGAN Explained
Connor Shorten
17 DC-GAN Explained!
DC-GAN Explained!
Connor Shorten
18 ResNet Explained!
ResNet Explained!
Connor Shorten
19 Graph Convolutional Networks
Graph Convolutional Networks
Connor Shorten
20 Neural Architecture Search
Neural Architecture Search
Connor Shorten
21 Henry AI Labs
Henry AI Labs
Connor Shorten
22 Video Classification with Deep Learning
Video Classification with Deep Learning
Connor Shorten
23 BigGANs in Data Augmentation
BigGANs in Data Augmentation
Connor Shorten
24 Introduction to Deep Learning
Introduction to Deep Learning
Connor Shorten
25 EfficientNet Explained!
EfficientNet Explained!
Connor Shorten
26 Self-Attention GAN
Self-Attention GAN
Connor Shorten
27 Curriculum Learning in Deep Neural Networks
Curriculum Learning in Deep Neural Networks
Connor Shorten
28 Deep Learning Podcast #1 | Edward Dixon | Stochastic Weight Averaging
Deep Learning Podcast #1 | Edward Dixon | Stochastic Weight Averaging
Connor Shorten
29 Deep Compression
Deep Compression
Connor Shorten
30 Skin Cancer Classification with Deep Learning
Skin Cancer Classification with Deep Learning
Connor Shorten
31 Deep Learning Podcast #2 | Edward Peake | Deep Learning in Medical Imaging
Deep Learning Podcast #2 | Edward Peake | Deep Learning in Medical Imaging
Connor Shorten
32 The Lottery Ticket Hypothesis Explained!
The Lottery Ticket Hypothesis Explained!
Connor Shorten
33 SqueezeNet
SqueezeNet
Connor Shorten
34 GauGAN Explained!
GauGAN Explained!
Connor Shorten
35 AutoML with Hyperband
AutoML with Hyperband
Connor Shorten
36 DL Podcast #3 | Yannic Kilcher | Population-Based Search
DL Podcast #3 | Yannic Kilcher | Population-Based Search
Connor Shorten
37 Weakly Supervised Pretraining
Weakly Supervised Pretraining
Connor Shorten
38 Image Data Augmentation for Deep Learning
Image Data Augmentation for Deep Learning
Connor Shorten
39 Unsupervised Data Augmentation
Unsupervised Data Augmentation
Connor Shorten
40 Wide ResNet Explained!
Wide ResNet Explained!
Connor Shorten
41 RevNet: Backpropagation without Storing Activations
RevNet: Backpropagation without Storing Activations
Connor Shorten
42 GANs with Fewer Labels
GANs with Fewer Labels
Connor Shorten
43 BigBiGAN Unsupervised Learning!
BigBiGAN Unsupervised Learning!
Connor Shorten
44 Self-Supervised Learning
Self-Supervised Learning
Connor Shorten
45 Multi-Task Self-Supervised Learning
Multi-Task Self-Supervised Learning
Connor Shorten
46 Self-Supervised GANs
Self-Supervised GANs
Connor Shorten
47 Population Based Training
Population Based Training
Connor Shorten
48 Show, Attend and Tell
Show, Attend and Tell
Connor Shorten
49 Siamese Neural Networks
Siamese Neural Networks
Connor Shorten
50 WaveGAN Explained!
WaveGAN Explained!
Connor Shorten
51 VAE-GAN Explained!
VAE-GAN Explained!
Connor Shorten
52 Evolution in Neural Architecture Search!
Evolution in Neural Architecture Search!
Connor Shorten
53 AI Research Weekly Update August 18th, 2019
AI Research Weekly Update August 18th, 2019
Connor Shorten
54 Weight Agnostic Neural Networks Explained!
Weight Agnostic Neural Networks Explained!
Connor Shorten
55 AI Research Weekly Update August 25th, 2019
AI Research Weekly Update August 25th, 2019
Connor Shorten
56 Neuroevolution of Augmenting Topologies (NEAT)
Neuroevolution of Augmenting Topologies (NEAT)
Connor Shorten
57 CoDeepNEAT
CoDeepNEAT
Connor Shorten
58 AI Research Weekly Update September 1st, 2019
AI Research Weekly Update September 1st, 2019
Connor Shorten
59 Randomly Wired Neural Networks
Randomly Wired Neural Networks
Connor Shorten
60 Genetic CNN
Genetic CNN
Connor Shorten

This video teaches how to embed graphs with deep learning using techniques like DeepWalk and Node2Vec, which enable the construction of low-dimensional representations of graphs for downstream tasks like link prediction and node classification.

Key Takeaways
  1. Choose a graph representation method
  2. Implement DeepWalk or Node2Vec
  3. Apply hierarchical softmax and negative sampling
  4. Use random walks to traverse the graph
  5. Evaluate the quality of the graph embeddings
💡 Deep learning can be used to reduce the dimensionality of graph data, enabling efficient processing and analysis of large-scale graphs.

Related Reads

Up next
Dropout in Deep Learning
AnuTech-CH
Watch →