DeepWalk Explained

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

Key Takeaways

The video explains DeepWalk, a mechanism for encoding social networks based on their connectivity using advances in language modeling, and demonstrates how it can be used to learn representations of social networks.

Full Transcript

hi welcome to Henry Aird labs this video is going to cover deep walk deep walk is a mechanism to encode social networks based on their connectivity and it was published in 2014 the idea behind deep walk is to use some of the advances in language modeling to do graph modeling so the way that this works is in language models you have text tokens which could be represented as these one hot encoded vectors that would have a 0 for every single word in the vocabulary and then a 1 for the word you're trying to represent so in this this diagram shows the cat representation would have many zeros on the left and right at the one so in a sense it's like a really sparse vector and it would be really hard to train a machine learning model in these sparse representations so similar to language vertices in a graph and their edges are encoded in in the same way you'd have one for the other vertex that it's connected to in the graph and then zeros for all the vertices it's not connected to so word Tyvek is this idea that you take these context windows of words such as in the sentence the quick brown fox jumps over the lazy dog you have these context pairs like quick fox brown fox and jumps fox and the it's like when you have enough data it's sort of like it'll become a semantic space because the context actually does give you a lot of information about the text and so somewhere to text you say that a random walk on vertices can construct a similar sequence that is like analogous to a sentence so you have these contexts like v 2 v 5 and V 3 V 5 and you use them to predict each other in the context and thus you construct like a dense continuous vector representation of this sparse data via the context prediction mechanism so this quickly shows like what a random walk is and how this is used to construct these like sentences to embed vertices similar to how language is done so when you are at one vertex you have these probabilities of transitioning to other vertices but in the case of of like a social network graph you wouldn't really wait transition probabilities like PQ and one minus P plus Q you just have like a uniform distribution and you randomly go oh you just randomly sample it to go to the next vertice so this is the formal definition of the walk algorithm on the left it shows you slide the context window what they do is they do something called hierarchical softmax to reduce the computational complexity of it but that's the scope of this video but so what they do is they slide the window and then they use the Skip Gramm model to encode the vertices into a low dimensional space so this plot shows what the point of doing this is the left you have the sparsely connected graph and you can see from this plot how each vertice is only connected you know like the most connected or like the highest degree of any vertices in this graph is maybe like six so to have in those thirty four nodes in the graph so it'd be like twenty eight zeros and six ones and the sparsely encoded vector that shows the connections it has so what they do is they take the graph on the left and they use deep walk and embed it into the plot on the right and the idea is that the plot on the right will preserve the shortest path distance between nodes on the left and then also hopefully it'll preserve the label so a similar to any machine learning model you label the vertices in the graph according to their communities and then you do some clustering in trying to preserve these labels with the embedding so in their study the authors who came up with deep walk they tested it on blog catalog Flickr and YouTube and these are all like social network datasets where users are connected to each other and they are labeled according to their interest like what kind of videos they're watching what kind of photos are sharing and these kinds of things so the idea behind deep walk is that you can take these sparsely encoded graphs and then you can construct a feature space based on their connectivity and this low dimensional space can be used to train machinery models to predict the interests of future users thanks for watching this video I check out the article on deep walk on hungry lives

Original Description

Using Deep Learning to learn representations of social networks. Check out full article here: https://www.henryailabs.com/DeepWalk.html Thanks for watching!
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Connor Shorten · Connor Shorten · 2 of 60

1 DenseNets
DenseNets
Connor Shorten
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
12 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 explains DeepWalk, a technique for learning representations of social networks, and demonstrates how it can be used to preserve the structure of the graph in a low-dimensional space. The technique uses random walks and the Skip Gramm model to learn dense vector representations of the graph's vertices.

Key Takeaways
  1. Understand the concept of one hot encoded vectors and sparse vectors
  2. Learn how to apply context windows and random walks to graph data
  3. Apply the Skip Gramm model to learn dense vector representations
  4. Use hierarchical softmax to reduce computational complexity
  5. Evaluate the performance of DeepWalk on social network datasets
💡 DeepWalk can be used to preserve the structure of a social network in a low-dimensional space, allowing for more efficient and effective machine learning models.

Related AI Lessons

Up next
Learn Deep Learning by Hand (Beginner's Guide - Part 1)
Thu Vu
Watch →