Introduction
Node embedding is a fundamental task in graph analysis, aimed at mapping nodes into low-dimensional vector spaces while preserving structural properties. A dominant paradigm in this field is Proximity Matrix Factorization (PMF), which involves defining a proximity matrix $S$ and factorizing it to obtain embeddings. However, traditional PMF methods typically rely on fixed proximity measures, such as Personalized PageRank (PPR) with a constant restart probability. These "one-size-fits-all" approaches fail to account for the fact that the optimal definition of "closeness" varies significantly across different datasets and downstream tasks.
To address these limitations, we present Lemane (Learning-based Proximity Matrix Factorization), a novel framework that introduces trainable graph proximity measures. By making the stopping probabilities of random walks learnable and employing a differentiable SVD pipeline, Lemane adapts its proximity definition to the specific geometry of the input graph and the requirements of the target task.
Methodology
The Lemane framework is built upon three core innovations designed to enhance both flexibility and scalability:
- Trainable Proximity (Supervised PPR): Instead of using a fixed decay factor, Lemane treats the stopping probability at each hop ($\alpha_l$) as a learnable parameter. This allows the model to automatically discover the most representative random walk patterns for a given task, whether it requires local neighborhood information or more global structural context.
- End-to-End Differentiable Pipeline: The framework integrates a differentiable Singular Value Decomposition (SVD) component. This enables gradients to propagate from the final task-specific loss function (e.g., link prediction error) back to the random walk parameters, allowing for joint optimization of the proximity measure and the embedding space via backpropagation.
- Scalability via Subgraph Sampling and Generalized Push: To handle massive graphs, Lemane employs a two-stage strategy. During training, stopping probabilities are learned on small, BFS-sampled subgraphs. These parameters are then applied to the full graph during inference using a "Generalized Push" algorithm. This algorithm computes a sparse approximation of the learned proximity matrix in $O(n/\delta)$ time, ensuring feasibility for graphs with millions of nodes.
Experimental Setup
The effectiveness of Lemane was evaluated on six diverse real-world datasets, ranging from small-scale word co-occurrence networks to massive social networks with millions of edges.
The datasets include Wikipedia, WikiVote, and BlogCatalog for small-to-medium scale testing, and Slashdot, TWeibo (1.9M nodes), and Orkut (3.07M nodes) for large-scale evaluation. These datasets encompass both directed and undirected graphs, providing a comprehensive testbed for the trainable proximity measure.
Key Results and Discussion
Lemane was benchmarked against 15 state-of-the-art methods, including skip-gram models like DeepWalk and Node2vec, as well as advanced matrix factorization techniques like STRAP and NRP.
The experimental results demonstrate Lemane's superior performance across nearly all datasets and tasks. Notably, on the massive Orkut dataset, Lemane achieved a Micro-F1 score of 78.14% for node classification, outperforming the nearest matrix factorization competitor by approximately 1%. In link prediction tasks on the TWeibo dataset, Lemane reached a precision of 94.89%, highlighting its capacity to capture intricate structural patterns in large-scale, sparse social data.
A key insight from the results is that proximity is not universal; different tasks indeed prefer different walk lengths. By learning the optimal $\alpha_l$, Lemane effectively "tunes" its field of view. Furthermore, the "train on subgraphs, apply to full graph" strategy proved highly effective, as optimal stopping probabilities appear to be properties of the task and graph type rather than individual nodes.
Conclusion and Future Work
Lemane represents a significant step forward in making node embedding methods more adaptive and scalable. By replacing fixed proximity measures with learnable ones, it achieves state-of-the-art results on massive graphs.
Future research directions include the integration of node attributes (e.g., text or image features) into the framework to combine structural and content-based information. Additionally, developing entirely self-supervised versions of the proximity learning phase could reduce reliance on labeled data. Finally, adapting the trainable proximity framework to handle dynamic, evolving networks remains a promising area for future exploration.
Summary updated