Contrastive Representation Learning Based on Multiple Node-centered Subgraphs

Dong Li, Wenjun Wang, Minglai Shao, Chen Zhao · DOI

Abstract

In graph representation learning, self-supervised contrastive methods have emerged as a powerful alternative to supervised learning. However, many existing approaches are limited by a "nearsighted" perspective, often contrasting a node's representation against only a single alternative view. This paper introduces MNCSCL (Multiple Node-centered Subgraphs Contrastive Representation Learning), a framework that captures the multifaceted nature of nodes by utilizing five distinct subgraph perspectives. By maximizing mutual information across these local and global views, MNCSCL achieves state-of-the-art performance in node classification and link prediction across both transductive and inductive benchmarks.

Introduction

The objective of graph representation learning is to encode complex structural and attribute data into dense vectors. While contrastive learning has seen success, current models typically rely on limited comparisons—such as contrasting a node with the entire graph (as in Deep Graph Infomax) or its immediate neighbors (as in GMI).

MNCSCL is built on the premise that nodes in a graph are inherently multi-dimensional. Much like an individual in a social network belongs to a family, a professional circle, and various interest groups, a node in a graph possesses different identities based on its structural and attribute-based context. MNCSCL formalizes this by automatically generating and integrating multiple "social circles" or subgraphs to learn a comprehensive representation without manual labeling.

The MNCSCL Framework

Multi-View Subgraph Generation

MNCSCL utilizes a subgraph generator to create five specific types of node-centered subgraphs for every node $v_i$:

  1. Basic Subgraph: Represents the node itself, providing the most fundamental feature set.
  2. Neighboring Subgraph: Captures immediate structural context, typically including nodes within a 1-hop distance.
  3. Intimate Subgraph: Identifies the top-$l$ most similar nodes based on Personalized PageRank (PPR). This captures structural similarity that may exist beyond immediate edges.
  4. Communal Subgraph: Groups nodes belonging to the same cluster to capture attribute-based similarity. The model employs a differentiable K-means strategy to update these clusters dynamically during training.
  5. Full Subgraph: Provides a global view of the entire graph. To prevent the central node's features from being overwhelmed by global noise, a self-weighting factor is applied.

Contrastive Mechanism and Training

The framework processes these subgraphs through a shared Graph Convolutional Network (GCN) encoder. To train the model, the authors propose two distinct paradigms based on Mutual Information (MI) maximization:

  • Core View (CV): This paradigm contrasts the "Basic" subgraph (the anchor) against the other four subgraph views.
  • Full Graph (FG): This paradigm contrasts all possible pairs among the five subgraphs to capture a holistic set of correlations.

By maximizing the MI between these diverse views while minimizing it against corrupted negative samples, the encoder learns to extract features that are consistent across different contexts.

Experimental Results

MNCSCL was evaluated on five standard benchmarks, including transductive citation networks (Cora, Citeseer, Pubmed) and large-scale inductive datasets (Reddit, PPI).

Performance Highlights

  • Node Classification: MNCSCL-CV achieved state-of-the-art (SOTA) results, notably reaching 84.7% accuracy on Cora, surpassing established methods like DGI (82.3%) and GMI (83.0%).
  • Inductive Generalization: On the Reddit dataset, the model achieved a micro-F1 score of 95.8, demonstrating its ability to scale to massive, unseen graph structures.
  • Link Prediction: The model set new benchmarks for AUC on Cora (94.8%) and Citeseer (97.7%).
  • Ablation Studies: Results indicated a consistent improvement in accuracy as more subgraph types were added, confirming that each perspective provides unique, non-redundant information.

Discussion and Insights

The success of MNCSCL highlights several key principles in graph learning. First, the integration of both structural similarity (via Intimate subgraphs) and attribute similarity (via Communal subgraphs) allows the model to balance connectivity patterns with feature-based relationships. Second, the "Core View" paradigm often outperformed the "Full Graph" approach, suggesting that the central node serves as a critical anchor for all other perspectives.

However, the multi-view approach introduces increased computational complexity. Generating five subgraphs per node and performing clustering during training adds overhead compared to single-view methods. Future work may focus on automating subgraph selection or employing attention mechanisms to dynamically weight the importance of different perspectives for specific nodes.

Conclusion

MNCSCL demonstrates that a multi-perspective approach to contrastive learning significantly enhances the quality of node embeddings. By looking at nodes through multiple "lenses"—from the individual node to the global graph—the framework captures a richer set of features that translate to superior performance across a wide range of graph-based tasks.

Summary updated

BibTeX
@inproceedings{li2023contrastive,
  author = {Dong Li and Wenjun Wang and Minglai Shao and Chen Zhao},
  title = {{Contrastive Representation Learning Based on Multiple Node-centered Subgraphs}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  url = {https://openreview.net/forum?id=4aHnpUqeiA},
}
Figure