A Representation Learning Framework for Property Graphs

Yifan Hou, Hongzhi Chen, Changji Li, James Cheng, Ming-Chang Yang

Abstract

Property graphs, which feature rich attributes on both nodes and edges, are common in real-world scenarios but often poorly handled by traditional embedding methods. We introduce the Property Graph Embedding (PGE) framework, which leverages attribute-based clustering to inform a biased neighborhood sampling strategy. By distinguishing between similar and dissimilar neighbors and incorporating edge properties, PGE captures more nuanced local structures. Our evaluation across four diverse datasets shows that PGE consistently outperforms existing methods like GraphSAGE, particularly in complex biological and social networks.

Introduction

Most real-world graphs are "property graphs" where nodes and edges carry rich metadata. For instance, a user node in a social network has profile attributes, and a transaction edge in a financial network has a timestamp and amount. Traditional graph embedding methods typically fall into two categories: topology-only methods (e.g., DeepWalk, node2vec) that ignore metadata, and advanced Graph Neural Networks (GNNs) like GraphSAGE that often treat all neighbors equally during aggregation. These approaches fail to distinguish between neighbors that are highly similar to the target node and those that provide contrasting, informative signals. The challenge lies in effectively measuring the influence of diverse properties and scaling these measurements to massive graphs.

The PGE Framework

The PGE framework addresses these challenges through a three-step embedding process:

  1. Property-based Node Clustering: PGE clusters nodes based solely on their attributes using algorithms like K-Means or DBSCAN. This provides a global similarity standard independent of graph structure.
  2. Biased Neighborhood Sampling: This core innovation uses clustering results to weight neighbors during training. PGE assigns different biases ($b_s$ for same-cluster neighbors and $b_d$ for different-cluster neighbors) to control the sampling process.
  3. Neighborhood Aggregation: Information is aggregated via a neural network. PGE also clusters edge properties and trains specific weight matrices for different edge types, allowing the model to distinguish between various relationship types (e.g., "friend" vs. "blocked").

Experimental Results

The authors evaluated PGE on four diverse benchmarks: PubMed (citation network), PPI (protein interactions), BlogCatalog (social network), and Reddit (discussion forum).

Node Classification

PGE consistently outperformed baselines like GCN and GraphSAGE. In node classification, PGE achieved an F1-Micro score of 84.31% on the PPI dataset, a significant improvement over GraphSAGE's 63.41%.

Node classification performance (F1-Micro and F1-Macro) across different datasets and algorithms.

The impact of edge properties was particularly evident in link prediction tasks. On the PubMed dataset, PGE reached a Mean Reciprocal Rank (MRR) of 70.77%, compared to 43.72% for GraphSAGE. This demonstrates that incorporating edge metadata fundamentally changes the model's ability to predict future links.

Link prediction performance (MRR) comparing PGE with and without edge information against GraphSAGE.

Scalability

Despite the extra clustering step, PGE remains highly efficient. On the Reddit dataset with over 11 million edges, PGE completed training in minutes on a single GPU, while traditional random-walk methods like node2vec failed to finish within 10 hours.

Discussion and Insights

A key finding is the value of dissimilarity: setting a higher bias for dissimilar neighbors ($b_d > b_s$) often yields better embeddings. In typical 2-hop aggregations, similar neighbors often provide redundant information; sampling dissimilar neighbors forces the model to capture a wider variance of the local neighborhood. Additionally, by clustering nodes globally, PGE avoids the "echo chamber" effect where nodes only learn from immediate, similar neighbors.

Conclusion and Future Work

While PGE is powerful, it requires tuning hyperparameters such as the number of clusters ($k$) and bias values ($b_s, b_d$). Future work may involve automating hyperparameter selection or exploring how PGE handles multi-modal properties (e.g., text and numerical data) within the same graph. Extending this to deeper architectures without over-smoothing remains an open challenge.

Summary updated

BibTeX
@inproceedings{hou2019representation,
  author = {Yifan Hou and Hongzhi Chen and Changji Li and James Cheng and Ming-Chang Yang},
  title = {{A Representation Learning Framework for Property Graphs}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
}
Figure