[Paper Review] Exact Recovery of Community Structures Using DeepWalk and Node2vec
This paper establishes the first theoretical guarantees for DeepWalk and node2vec in exact community recovery by framing them as matrix factorization problems on stochastic blockmodel graphs. It proves that with high probability, applying K-means or K-medians to the learned embeddings recovers all true community memberships when the network is sufficiently large and the window size is adequate, even as the graph becomes sparse.
Random-walk based network embedding algorithms like DeepWalk and node2vec are widely used to obtain Euclidean representation of the nodes in a network prior to performing downstream inference tasks. However, despite their impressive empirical performance, there is a lack of theoretical results explaining their large-sample behavior. In this paper, we study node2vec and DeepWalk through the perspective of matrix factorization. In particular, we analyze these algorithms in the setting of community detection for stochastic blockmodel graphs (and their degree-corrected variants). By exploiting the row-wise uniform perturbation bound for leading singular vectors, we derive high-probability error bounds between the matrix factorization-based node2vec/DeepWalk embeddings and their true counterparts, uniformly over all node embeddings. Based on strong concentration results, we further show the perfect membership recovery by node2vec/DeepWalk, followed by $K$-means/medians algorithms. Specifically, as the network becomes sparser, our results guarantee that with large enough window size and vertices number, applying $K$-means/medians on the matrix factorization-based node2vec embeddings can, with high probability, correctly recover the memberships of all vertices in a network generated from the stochastic blockmodel (or its degree-corrected variants). The theoretical justifications are mirrored in the numerical experiments and real data applications, for both the original node2vec and its matrix factorization variant.
Motivation & Objective
- To bridge the gap between empirical success and theoretical understanding of DeepWalk and node2vec in community detection.
- To establish high-probability error bounds between node2vec/DeepWalk embeddings and their true latent counterparts in stochastic blockmodel graphs.
- To prove that K-means or K-medians on the embeddings enables exact recovery of community memberships in large, sparse networks.
- To extend theoretical guarantees to degree-corrected stochastic blockmodels and inhomogeneous Erdős-Rényi graphs under homogeneous edge probabilities.
Proposed method
- Formalizing node2vec and DeepWalk as matrix factorization of a logarithmic co-occurrence matrix derived from random walks.
- Using row-wise uniform perturbation bounds for leading singular vectors to derive high-probability error bounds on embeddings.
- Applying concentration inequalities to show that the co-occurrence matrix converges uniformly to the true expected co-occurrence matrix under increasing network size.
- Leveraging spectral properties of the adjacency and co-occurrence matrices to ensure stable embedding recovery.
- Using the detailed balance condition of transition matrices to simplify asymptotic expressions of the embedding matrix.
- Validating theoretical results through Monte Carlo simulations and real data applications on both original and SVD-based node2vec variants.
Experimental results
Research questions
- RQ1Can DeepWalk and node2vec provably recover the true community structure in stochastic blockmodel graphs?
- RQ2What is the large-sample behavior of node2vec and DeepWalk embeddings in terms of convergence to the true latent structure?
- RQ3Under what conditions does K-means or K-medians on the embeddings achieve exact community recovery?
- RQ4How do window size and network sparsity affect the theoretical recovery guarantees?
- RQ5To what extent do the theoretical results extend beyond the stochastic blockmodel to more general inhomogeneous random graph models?
Key findings
- High-probability error bounds are established between the matrix factorization-based node2vec/DeepWalk embeddings and their true counterparts, uniformly across all nodes.
- With sufficiently large window size and network size, K-means or K-medians on the embeddings achieves exact recovery of community memberships with high probability.
- Theoretical guarantees hold even as the network becomes sparse, provided the edge probability decay is controlled and the graph is sufficiently large.
- The results are empirically validated through Monte Carlo simulations showing convergence of embedding error and high community detection accuracy.
- Theoretical findings are mirrored in real data applications, confirming robustness and accuracy of the method on both original and SVD-based node2vec embeddings.
- The framework extends to degree-corrected stochastic blockmodels and inhomogeneous Erdős-Rényi graphs when edge probabilities are sufficiently homogeneous.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.