Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2vec

Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Kuansan Wang +1 more
10/9/2017
cs.SIcs.LGstat.ML

Official code: xptree/NetMF (185 stars, MIT, last commit 2020-01-27).

Abstract

Since the invention of word2vec, the skip-gram model has significantly advanced the research of network embedding, such as the recent emergence of the DeepWalk, LINE, PTE, and node2vec approaches. In this work, we show that all of the aforementioned models with negative sampling can be unified into the matrix factorization framework with closed forms. Our analysis and proofs reveal that: (1) DeepWalk empirically produces a low-rank transformation of a network's normalized Laplacian matrix; (2) LINE, in theory, is a special case of DeepWalk when the size of vertices' context is set to one; (3) As an extension of LINE, PTE can be viewed as the joint factorization of multiple networks' Laplacians; (4) node2vec is factorizing a matrix related to the stationary distribution and transition probability tensor of a 2nd-order random walk. We further provide the theoretical connections between skip-gram based network embedding algorithms and the theory of graph Laplacian. Finally, we present the NetMF method as well as its approximation algorithm for computing network embedding. Our method offers significant improvements over DeepWalk and LINE for conventional network mining tasks. This work lays the theoretical foundation for skip-gram based network embedding methods, leading to a better understanding of latent network representation learning.

View on arXivView PDF

Code Implementations(1)

xptree/NetMFOfficial100%
MIT

Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2vec

18547PythonNov 27, 20176 years agoMIT
deepwalkmatrix-factorizationnetwork-embeddingnode2vecsocial-network+1 more

Similar Papers

Cite this paper

@article{qiu2017network,
  title  = {Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2vec},
  author = {Jiezhong Qiu and Yuxiao Dong and Hao Ma and Jian Li and Kuansan Wang and Jie Tang},
  year   = {2017},
  eprint = {1710.02971},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1710.02971}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1710.02971.svg)](https://codeofpaper.com/paper/1710.02971)

Discussion