Relational Self-Supervised Learning on Graphs

Namkyeong Lee, Dongmin Hyun, Junseok Lee, Chanyoung Park · DOI

TL;DR

This paper introduces RGRL, a novel self-supervised learning framework for graphs that explicitly leverages the relational structure between nodes. Unlike previous methods that either treat nodes independently or rely on strict instance discrimination, RGRL learns "augmentation-invariant relationships," allowing node representations to adapt while preserving their connections, leading to superior performance across various graph tasks.

What Problem Does This Paper Address?

Graph Representation Learning (GRL) aims to learn meaningful embeddings for nodes in graph-structured data. While recent GRL methods have borrowed heavily from image-based self-supervised learning, they often overlook a fundamental difference: images are typically assumed to be independent and identically distributed (i.i.d.), whereas graphs inherently possess relational information between nodes. Existing methods either fail to fully exploit this relational structure or suffer from issues like sampling bias (in contrastive methods) or an inability to adapt to noisy features (in non-contrastive methods). This paper addresses the challenge of developing a GRL method that effectively utilizes the relational information within graphs to learn robust and accurate node representations.

Methods

The core of RGRL lies in its novel approach to self-supervised learning on graphs, inspired by BYOL (Bootstrap Your Own Latent) but adapted for graph data. RGRL uses two GNN encoders: an "online" encoder and a "target" encoder (which is an exponential moving average of the online encoder's weights).

The key innovation is how RGRL defines its learning objective:

  • Relational Learning: Instead of forcing node representations to be identical across augmented views (like some non-contrastive methods) or strictly separating positive and negative pairs (like contrastive methods), RGRL aims to preserve the relationship between nodes. It learns node representations such that they can vary as long as the relationships among them are maintained.
  • Soft Labeling: RGRL uses a "soft labeling" approach by calculating similarity distributions between a query node and a set of "anchor" nodes. This avoids the harsh penalties of contrastive methods when negative samples are semantically similar.
  • Global and Local Anchor Sampling: To capture diverse relational information, RGRL samples anchor nodes in two ways:
  • Global Anchors: These are sampled from the entire graph, but crucially, RGRL employs an inverse degree-weighted sampling strategy. This addresses the common GNN bias towards high-degree nodes, ensuring that low-degree nodes (often harder to represent) receive more attention.
  • Local Anchors: These are nodes structurally close to the query node, identified using a diffusion-based approach. This helps capture fine-grained relationships between nodes that are neighbors or in close proximity.
  • Loss Function: The model is trained by minimizing the KL divergence between the similarity distributions derived from the online prediction and the target embeddings with respect to the anchor nodes. This encourages the online encoder to mimic the relational information captured by the target encoder.

Datasets

RGRL was evaluated on fourteen benchmark datasets, covering various graph types and tasks:

  • Node Classification: Wiki-CS, Amazon (Computers and Photo), Coauthor (Co.CS and Co.Physics), Cora, Citeseer, Pubmed, Cora Full, ogbn-arXiv, Reddit, and PPI.
  • Link Prediction: Computers and Photo datasets.
  • Multiplex Networks (Node Classification): IMDB and DBLP.

No new benchmarks were introduced; the paper focuses on evaluating RGRL on existing, widely-used datasets.

Key Insights and Ideas

  • Graphs are Not i.i.d.: The paper strongly emphasizes that the relational nature of graphs is a critical distinction from images, and GRL methods must account for this.
  • "Augmentation-Invariant Relationship" is Key: Moving beyond "augmentation-invariant representation" allows for more flexible and robust learning, especially when node features are noisy or incomplete.
  • Degree Bias is a Real Problem: The empirical analysis clearly shows that standard GNNs struggle with low-degree nodes, and RGRL's inverse degree-weighted sampling is a novel solution to this long-standing issue in self-supervised GRL.
  • Best of Both Worlds: RGRL successfully combines the strengths of contrastive (capturing diverse relationships) and non-contrastive (avoiding sampling bias and handling noisy features) methods by relaxing their strict constraints.
  • Local + Global is Better: Explicitly capturing both broad graph structure (global anchors) and fine-grained neighborhood information (local anchors) leads to superior performance.

Key Results

  • State-of-the-Art Performance: RGRL consistently outperforms existing state-of-the-art methods (GRACE, GCA, CCA-SSG, BGRL) on node classification and link prediction tasks across fourteen datasets.
  • Robustness to Noisy Features: RGRL shows significantly better performance than BGRL when input features are corrupted or less informative, demonstrating its practical utility.
  • Improved Low-Degree Node Representation: RGRL significantly outperforms BGRL and RGRL with random sampling on low-degree nodes, a critical advantage for real-world, long-tailed graph data.
  • Effective on Multiplex Networks: RGRL extends well to heterogeneous and multiplex networks, outperforming specialized methods.
  • Efficiency: RGRL's computational complexity is comparable to BGRL and only slightly increases with the number of anchor nodes (K), which can be kept small.

Limitations and Future Work

  • Anchor Sampling Strategy: While RGRL's anchor sampling is effective, the paper notes that exploring more sophisticated sampling strategies could further enhance performance.
  • Hyperparameter Sensitivity: While generally robust, the paper shows sensitivity analysis on temperature hyperparameters, suggesting that careful tuning is still important for optimal results.
  • Future Work: The authors suggest that RGRL's relational learning framework can be extended to other graph-based tasks and more complex graph structures. The robustness to noisy features and improved performance on low-degree nodes also point towards its applicability in real-world scenarios where data quality is often a concern.

Summary updated

BibTeX
@inproceedings{lee2022relational,
  author = {Namkyeong Lee and Dongmin Hyun and Junseok Lee and Chanyoung Park},
  title = {{Relational Self-Supervised Learning on Graphs}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  doi = {10.1145/3511808.3557428},
}
Figure