Scalable Graph Embeddings via Sparse Transpose Proximities

Yuan Yin, Zhewei Wei

Introduction

Graph embedding—the process of mapping nodes to low-dimensional vectors—is a cornerstone of modern network analysis, enabling tasks like link prediction and node classification. However, existing techniques often struggle with directed graphs and scalability. This paper introduces STRAP (graph embedding via Sparse TRAnspose Proximities), a framework designed to preserve graph structure accurately while maintaining high computational efficiency.

The Challenge: Degree Distribution Distortion

A significant flaw in current directed graph embedding methods, such as APP and VERSE, is the distortion of out-degree distributions. These methods rely on random-walk proximities that are normalized, which inherently limits the "budget" for out-degrees. Consequently, they tend to "average out" connectivity, making it impossible to accurately reconstruct nodes with very high or very low out-degrees.

In addition to distribution distortion, researchers face two other major hurdles:

  1. Conflicting Optimization Goals: On undirected graphs, asymmetric proximities force models to reconcile different values for the same edge, degrading embedding quality.
  2. Scalability vs. Non-linearity: While matrix factorization is robust, it often suffers from $O(n^2)$ complexity. Fast versions are usually restricted to linear operations, missing the performance gains of non-linear functions like logarithms.

The STRAP Methodology

The core innovation of STRAP is the Transpose Proximity measure. Instead of modeling only the proximity $P(u, v)$, STRAP models $P(u, v) + P^T(v, u)$, where $P^T$ represents proximity in the transposed graph (with edges reversed). This approach naturally symmetrizes the measure for undirected graphs and ensures that both in-degree and out-degree information are preserved in directed graphs.

The STRAP pipeline consists of three main steps:

  1. Sparse PPR Computation: Using the Backward Push algorithm, STRAP computes a sparse version of Personalized PageRank (PPR), keeping complexity linear relative to the number of nodes ($O(n/\epsilon)$).
  2. Non-linear Transformation: The sparsity allows STRAP to apply an entry-wise logarithm, simulating the inductive strength of neural methods (like Skip-gram) without the computational overhead.
  3. Sparse Randomized SVD: A fast, randomized Singular Value Decomposition (SVD) is applied to derive the final embedding vectors.

Key Results and Performance

STRAP was evaluated across seven diverse datasets, including large-scale networks like YouTube (~1.1M nodes). The results highlight STRAP's superiority in both accuracy and speed.

Graph Reconstruction

STRAP is uniquely capable of accurately recreating the power-law out-degree distribution of directed graphs. As shown in the WikiVote dataset, STRAP maintains the structural integrity that baseline methods lose.

STRAP accurately preserves the out-degree distribution on the WikiVote dataset.

Predictive Accuracy and Scalability

In link prediction tasks, STRAP consistently outperformed state-of-the-art methods. On the WikiVote dataset, STRAP achieved 91.79% precision, significantly higher than VERSE (86.39%) or APP (61.44%).

Furthermore, STRAP's scalability is remarkable. On the YouTube dataset, STRAP completed the embedding process in approximately 35 minutes, whereas DeepWalk required over 47 hours. This efficiency stems from the sparsity constraints that allow for fast factorization and non-linear transformations.

Conclusion

STRAP provides a robust solution to the "normalization trap" and the scalability-non-linearity trade-off in graph embeddings. By leveraging transpose proximity and sparse matrix operations, it achieves state-of-the-art results while remaining orders of magnitude faster than traditional random-walk methods. Future work may explore tighter integration with Skip-gram models to further enhance parallelism and predictive power.

Summary updated

BibTeX
@inproceedings{yin2019scalable,
  author = {Yuan Yin and Zhewei Wei},
  title = {{Scalable Graph Embeddings via Sparse Transpose Proximities}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  doi = {10.1145/3292500.3330860},
}
Figure