Representation Learning in Large Attributed Graphs

Nesreen K. Ahmed, Ryan A. Rossi, Rong Zhou, John Boaz Lee, Xiangnan Kong, Theodore L. Willke, Hoda Eldardiry

Abstract

Traditional graph embedding methods like DeepWalk and node2vec are transductive, learning embeddings for specific node identities which limits scalability and generalization. This paper proposes an inductive framework that learns embeddings for node types rather than individual nodes. By utilizing "attributed random walks," the framework achieves a significant 853x reduction in space requirements while improving link prediction accuracy by over 16% on average across diverse datasets.

Introduction

Most contemporary network representation learning techniques are identity-based. While effective for static graphs, these transductive approaches suffer from three primary limitations:

  1. Lack of Generalization: Models cannot handle new nodes or transfer knowledge to different graphs without retraining. The model "knows" a specific node ID, but not the properties that define it.
  2. Poor Scalability: Storing high-dimensional vectors for every node in massive social or web graphs is memory-prohibitive.
  3. Attribute Neglect: Rich node metadata is often difficult to integrate naturally into identity-centric models.

We address these issues by shifting the learning objective from "who" a node is to "what kind" of node it is. This core insight allows for "inductive" learning—applying what was learned on one graph to an entirely different one.

Methodology

The proposed framework consists of two main components:

1. Node-to-Type Mapping

A mapping function $\phi$ is defined to categorize nodes into "types" based on an attribute matrix $X$. These attributes can include intrinsic metadata (e.g., user demographics) or structural features (e.g., node degree, local connectivity patterns). This abstraction allows the model to learn the functional roles of nodes. Notably, if every node is assigned a unique type, the framework recovers traditional transductive methods.

2. Attributed Random Walks

Instead of generating sequences of node IDs, the framework performs random walks that produce sequences of node types. For instance, a walk [Node A, Node B, Node C] is transformed into [Type 1, Type 2, Type 1]. These type sequences are then processed using a standard Skip-Gram model. Since the number of types is typically much smaller than the number of nodes, the resulting model is highly compact and portable.

Experimental Evaluation

The framework was evaluated on 14 diverse networks spanning biological, ecological, social, and infrastructure domains. The primary task was link prediction, measured by the Area Under the ROC Curve (AUC).

Results and Performance

The proposed method consistently outperformed state-of-the-art transductive methods across all tested environments.

Table 1: Link prediction performance (AUC) across 14 diverse graph datasets. Our method consistently outperforms Node2Vec, DeepWalk, and LINE.

Key findings include:

  • Massive Space Efficiency: The model requires approximately 853x less storage space than identity-based methods because it only stores embeddings for types.
  • Superior Accuracy: Average improvement in AUC was 16.1% over Node2Vec, DeepWalk, and LINE.
  • Inductive Capability: The model successfully generates embeddings for unseen nodes by calculating their attributes, enabling zero-shot generalization to new graphs.

Conclusion

By moving beyond node identity to node types, this framework provides a scalable and generalizable approach to graph representation learning. While highly effective, the performance remains sensitive to the quality of the mapping function $\phi$. Future work will investigate the optimal granularity of node types to balance model complexity with representational power.

Summary updated

BibTeX
@misc{ahmed2017representation,
  author = {Nesreen K. Ahmed and Ryan A. Rossi and Rong Zhou and John Boaz Lee and Xiangnan Kong and Theodore L. Willke and Hoda Eldardiry},
  title = {{Representation Learning in Large Attributed Graphs}},
  year = {2017},
  eprint = {1710.09471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.09471},
}
Figure