PANE: scalable and effective attributed network embedding

Renchi Yang, Jieming Shi, Xiaokui Xiao, Yin Yang, Sourav S. Bhowmick, Juncheng Liu

Abstract

Given a graph $G$ where each node is associated with a set of attributes, attributed network embedding (ANE) maps each node $v \in G$ to a compact vector $X_v$. Ideally, $X_v$ should capture node $v$’s affinity to each attribute, considering both its own associations and those of its neighbors. Scaling effective ANE to massive graphs with millions of nodes is a significant challenge; existing solutions often suffer from prohibitive costs or low-quality results. This paper proposes PANE, an effective and scalable approach that achieves state-of-the-art quality on benchmark tasks like attribute inference, link prediction, and node classification. PANE achieves high scalability through a novel random walk model, a highly efficient solver featuring a "greedy initialization" module, and non-trivial multi-core CPU parallelization. For networks with extreme attribute counts, the framework extends to PANE++, which utilizes attribute clustering to maintain tractability.

Introduction

Network embedding transforms complex graph structures into compact vectors suitable for machine learning. In Attributed Network Embeddings (ANE), nodes are enriched with additional information, such as user profiles or document abstracts. The primary hurdle in this field is scalability. Real-world graphs are often massive, and existing methods typically fall into two categories: matrix factorization, which often scales poorly ($O(n^2)$), or deep learning methods (like GNNs), which can be computationally expensive and memory-intensive on GPUs.

PANE addresses these limitations by explicitly modeling edge directionality and providing a solver that can process graphs with tens of millions of nodes on a single commodity server—a task that previously required massive clusters.

The PANE Framework

PANE's effectiveness stems from a novel random walk model on an "extended graph" where attributes are treated as special nodes. Unlike many symmetric models, PANE defines both forward and backward affinity to capture the nuances of directed relationships, such as "asymmetric transitivity" (e.g., a user following a celebrity).

Figure 1: An attributed network showing node-attribute associations (Er) and directed edges (Ev).

The model uses a Shifted Pairwise Mutual Information (SPMI) metric to weigh these relationships, conceptually similar to TF-IDF in natural language processing. This allows the embedding to capture not just direct associations, but the structural influence of attributes across the network.

Optimization and Scalability

A core innovation of PANE is its SVDCCD Solver, which combines randomized Singular Value Decomposition (SVD) with Cyclic Coordinate Descent (CCD). The bottleneck in most iterative solvers is the time spent "wandering" toward a solution. PANE introduces GInit (Greedy Initialization), which uses randomized SVD to seed the embedding vectors very close to the optimal solution.

Algorithm 3: The GInit procedure for initializing embedding vectors using randomized SVD.

By starting near the optimum, the number of iterations required for convergence is drastically reduced. Furthermore, PANE is designed for multi-core CPU parallelization (Par-PANE), avoiding the data transfer bottlenecks often associated with GPU-based methods for large-scale attribute sets.

Experimental Evaluation

The study evaluated PANE against 10 state-of-the-art competitors on eight real-world datasets, including the massive Microsoft Academic Graph (MAG) with 59.3 million nodes and 978 million edges.

  • Unmatched Scalability: On the MAG dataset, PANE was the only viable solution capable of running on a single server, completing the task in 11.9 hours. Other methods either exceeded memory limits or failed to finish within a week.
  • Efficiency: On the Pubmed dataset, PANE achieved a 368x speedup over TADW, a popular matrix factorization method.
  • Accuracy: Despite its speed, PANE consistently matched or outperformed competitors in attribute inference, link prediction, and node classification. The PANE++ variant proved effective on the MAG-SC dataset, which features 2.78 million distinct attributes, by using attribute clustering to group similar signals into "super attributes."

Conclusion

PANE demonstrates that high-quality attributed network embeddings can be computed at a massive scale without specialized hardware clusters. By combining a direction-aware random walk model with a smart initialization strategy, it bridges the gap between effectiveness and efficiency. Future work will explore extensions to dynamic and heterogeneous graphs, as well as further hardware optimizations.

Summary updated

BibTeX
@inproceedings{yang2023pane,
  author = {Renchi Yang and Jieming Shi and Xiaokui Xiao and Yin Yang and Sourav S. Bhowmick and Juncheng Liu},
  title = {{PANE: scalable and effective attributed network embedding}},
  booktitle = {VLDB J},
  year = {2023},
  url = {https://openreview.net/forum?id=CRPOE4UOjk},
}
Figure