NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Broader Picture of Random-walk Based Graph Embedding

Arlei Lopes da Silva · DOI

Abstract: Graph embedding based on random-walks supports effective solutions for many graph-related downstream tasks. However, the abundance of embedding literature has made it increasingly difficult to compare existing methods and to identify opportunities to advance the state-of-the-art. Meanwhile, existing work has left several fundamental questions -- such as how embeddings capture different structural scales and how they should be applied for effective link prediction -- unanswered. This paper addresses these challenges with an analytical framework for random-walk based graph embedding that consists of three components: a random-walk process, a similarity function, and an embedding algorithm. Our framework not only categorizes many existing approaches but naturally motivates new ones. With it, we illustrate novel ways to incorporate embeddings at multiple scales to improve downstream task performance. We also show that embeddings based on autocovariance similarity, when paired with dot product ranking for link prediction, outperform state-of-the-art methods based on Pointwise Mutual Information similarity by up to 100%.

Introduction

Graph embedding—the process of mapping nodes in a network into vectors in a continuous space—is a cornerstone of modern network analysis. Despite the success of methods like DeepWalk, node2vec, and NetMF, the field has become a "black box" of fragmented approaches. This research introduces a unified analytical framework that deconstructs random-walk graph embeddings into three core components: the walk process, the similarity function, and the embedding algorithm. This decomposition allows for a clearer comparison of existing methods and the discovery of novel embedding strategies.

A Unified Framework for Graph Embedding

The proposed framework categorizes embedding methods based on three fundamental building blocks:

  1. Random-walk Process: Defines how the walker traverses the graph (e.g., standard walks, biased walks like node2vec, or PageRank).
  2. Similarity Function: Measures the "closeness" between nodes. Most popular methods use Pointwise Mutual Information (PMI), an information-theoretic measure. This paper introduces Autocovariance, a linear measure of joint variability between nodes over time.
  3. Embedding Algorithm: Determines how the similarity is preserved in vector space, typically via stochastic Sampling or explicit Matrix Factorization (e.g., SVD).
Taxonomy of random-walk based embedding methods categorized by process, similarity, and algorithm.

By modularizing these components, the authors can "rebuild" famous algorithms or create entirely new ones. A key theoretical contribution is the proof that sampling-based approaches like DeepWalk are essentially "smooth approximations" of factorizing a PMI matrix across multiple time scales.

Key Insights: PMI vs. Autocovariance

The research identifies a critical trade-off between linear and non-linear similarity measures:

  • Node Classification: PMI is non-linear and acts similarly to a sigmoid activation function. This makes it highly effective for node-level tasks where separating distinct clusters or communities is the primary goal.
  • Link Prediction: Autocovariance is linear and excels at edge-level tasks. The authors discovered that autocovariance embedding norms are naturally proportional to node degrees. In real-world graphs with heterogeneous degree distributions (hubs), this property allows autocovariance to predict links far more accurately than PMI.

Performance Evaluation

The framework was evaluated on six diverse real-world datasets, including BlogCatalog, Airport flight routes, and Wiki-words co-occurrences.

Precision @ k for link prediction across four datasets, showing the performance of PMI and Autocovariance using different ranking methods.

As shown in the link prediction results, using autocovariance with dot-product ranking leads to massive gains over PMI-based methods. Specifically, the method achieved improvements of 44.1% on BlogCatalog, 72.9% on Airport, and a staggering 101.4% on PoliticalBlogs. While PMI remains the superior choice for node classification due to its community-separation properties, Autocovariance represents a significant advancement for link prediction tasks.

Conclusion

By deconstructing graph embeddings into a three-part framework, this work provides a roadmap for understanding and improving network analysis. The discovery of autocovariance's effectiveness in link prediction highlights the importance of matching similarity metrics to specific downstream tasks. Future work will look to extend this framework to attributed, dynamic, and signed graphs.

Summary updated

BibTeX
@inproceedings{silva2021broader,
  author = {Arlei Lopes da Silva},
  title = {{A Broader Picture of Random-walk Based Graph Embedding}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  url = {https://openreview.net/forum?id=gyG5S_uN5vh},
}
Figure