Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

DeepWalk: Online Learning of Social Representations

DeepWalk learns social network vertex vectors from random walks like sentences

  • Problem Classifiers that use links between members struggle when most members of a social network are unlabeled. Sparse labels leave approximate inference over the network with little to work with.
  • Method DeepWalk treats short random walks as sentences and learns one vector per vertex with SkipGram. Instead of using global structure, it uses only local walk context, and a binary tree speeds up the softmax.
  • Results On BlogCatalog with 10% labeled, DeepWalk scored 36.00 Micro-F1, compared to 31.06 for SpectralClustering.

Why label-based classifiers stall on sparse social graphs

The setting is a social network in which only some members carry labels. Relational classifiers use the links between members, usually through approximate inference over a Markov network, such as iterative classification or Gibbs sampling. Sparsity makes this harder, because a graph with few labels gives the inference little to work with.

Iterative methods can also let early mistakes cascade through later predictions. So the authors look for structural features that do not depend on the label distribution. Such a representation can serve several classification tasks on the same network.

A label-free representation built from random walks

DeepWalk learns one vector per vertex from short random walks, and a language model treats each walk as a sentence. The vectors form a matrix with one row per vertex, and the walks are the only training text. The authors expected this to work because vertex visits in such walks follow a power law, the same shape as word frequencies in text.

Training runs in passes, and each pass shuffles the vertices and starts one walk from each of them. Each walk moves to a uniformly chosen neighbor of its last vertex until it reaches the walk length t. SkipGram then scans each walk with a window of size w and updates the vectors so that the central vertex predicts the vertices around it, without regard to their order.

A full softmax over millions of vertices is too costly, so the authors place the vertices at the leaves of a binary tree. The probability of a vertex then becomes a product of binary decisions along its tree path, which cuts the cost from O(|V|) to O(log|V|). Huffman coding gives frequent vertices shorter paths, which speeds up training further.

The parameters are updated by stochastic gradient descent, with a learning rate of 2.5% at the start that decreases linearly as vertices are seen. Gradients are computed by back-propagation, so the update depends on the path of each walked vertex through the tree.

The key choice is the relaxed prediction task, where a vertex predicts its context without regard to position. This matches the idea that nearby vertices on random walks share local structure. In the Karate network, linearly separable regions of the two-dimensional embedding match modularity-based clusters of the input graph.

Why parallel and streaming training are possible

Because vertex frequencies have a long tail, most updates touch only a few rows of the vertex matrix. Such sparse updates let the authors use asynchronous stochastic gradient descent without locks on the shared parameters. So several workers can update the same model concurrently.

The parallel runs used several threads on one machine, with up to 8 workers. The authors report that the speed-up stayed consistent on BlogCatalog and Flickr as workers increased. They also report no loss of predictive performance relative to serial training.

A streaming variant would pass small walks straight into the learner, so the model updates without building the whole graph first. That variant would need a fixed learning rate instead of a decaying one, and a tree sized for a bounded vertex count. The paper describes this variant but reports no experiment for it.

Multi-label results on three social networks

The authors follow the protocol of earlier work: they sample a fraction TR of labeled nodes for training and test on the rest. Each setting is repeated ten times and averaged, using one-vs-rest logistic regression on the DeepWalk features with gamma 80, w 10 and d 128. The main score is Micro-F1, with Macro-F1 reported alongside.

On BlogCatalog with 10% labeled, DeepWalk scored 36.00 Micro-F1, compared to 31.06 for SpectralClustering. At 90% labeled, SpectralClustering scored 42.62, compared to 42.00 for DeepWalk. So the representation's lead is largest when labels are rare, and the spectral baseline is strongest once more labels are available. The authors note that DeepWalk trained on 20% labeled beats EdgeCluster, Modularity and wvRN when they get 90%.

On Flickr the training ratio runs from 1% to 10%, which means about 800 to 8,000 labeled nodes. At 1% labeled, DeepWalk scored 32.4 Micro-F1, compared to 27.43 for SpectralClustering. At 3% labeled DeepWalk reached 35.9, above the 35.41 that SpectralClustering reached at 10%. The authors read this as DeepWalk matching the baselines with 60% less training data.

YouTube has 1,138,499 vertices, and SpectralClustering and Modularity could not run on it. The authors report that the gap narrows as labels increase, ending with a 3% Micro-F1 lead. So the advantage holds on a graph much larger than the other two datasets.

Sensitivity to dimensions and walks per vertex

The authors fixed w at 10 and t at 40, then varied the dimensions d, the walks per vertex gamma and the training ratio. Most of the benefit appeared once each vertex started 30 walks. The best dimensionality depends on how many labels are available, since 1% of Flickr has about as many labeled examples as 10% of BlogCatalog.

Gains from more walks are large at first and slow after gamma of 10. The authors take this to mean that a small number of walks already gives meaningful vertex vectors. This sweep covers only Flickr and BlogCatalog.

Limitations

Only three datasets were evaluated, all with multi-label classification. The baselines ran at d=500, while DeepWalk used d=128, and some baseline numbers come from the original papers. Restarts were tried in preliminary runs and showed no advantage.

The parallel experiments ran on one machine with threads, not across machines. The streaming and non-random walk variants are described, but the paper reports no experiment for them.

Paper info

Authors
Bryan Perozzi, Rami Al-Rfou, Steven Skiena
Venue
arXiv · Preprint
First published
2014-3-26
Added
2026-11-11
Updated
2014-6-27
Version
v2
arXiv
1403.6652
DOI
10.1145/2623330.2623732
Category
cs.SI · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Bryan Perozzi, Rami Al-Rfou, Steven Skiena (2014). DeepWalk: Online Learning of Social Representations. arXiv:1403.6652v2. https://doi.org/10.1145/2623330.2623732

BibTeX
@article{perozzi2014deepwalk,
  title = {{DeepWalk: Online Learning of Social Representations}},
  author = {Bryan Perozzi and Rami Al-Rfou and Steven Skiena},
  year = {2014},
  eprint = {1403.6652},
  archivePrefix = {arXiv},
  doi = {10.1145/2623330.2623732},
  url = {https://arxiv.org/abs/1403.6652v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up