NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PyG-SSL: A Graph Self-Supervised Learning Toolkit

Lecheng Zheng, Baoyu Jing, Zihao Li, Zhichen Zeng, Tianxin Wei, Mengting Ai, Xinrui He, Lihui Liu, Dongqi Fu, Jiaxuan You, Hanghang Tong, Jingrui He

TL;DR

PyG-SSL is a new open-source toolkit designed to standardize and simplify Graph Self-Supervised Learning (SSL). Built on PyTorch, it provides a unified framework for training and evaluating 10 state-of-the-art algorithms, offering researchers a "one-stop shop" to overcome the field's persistent issues with reproducibility and complex implementation.

What Problem Does This Paper Address?

Graph Self-Supervised Learning has exploded in popularity because it allows models to learn from the vast amounts of unlabeled graph data found in social networks, citation webs, and molecular structures. However, the field faces a "barrier to entry" problem.

For beginners and practitioners, implementing these models is daunting due to the complex nature of graph structures and a lack of standardized evaluation metrics. Furthermore, the "reproducibility crisis" hits hard here; it is often difficult to match the performance reported in original research papers because of missing hyperparameters or specific implementation quirks. Existing toolkits like DIG-SSL or PyGCL only support a handful of algorithms and often ignore heterogeneous or molecular graphs.

Methods

The authors introduce PyG-SSL, a library built on PyTorch that is compatible with major backends like PyTorch Geometric (PyG) and DGL. The toolkit is organized into four modular components:

  1. Configuration: A simplified system for loading hyperparameters for data loaders, models, optimizers, and classifiers.
  2. Method: A library of 10 implemented SSL algorithms, including contrastive methods (like GraphCL and GCA), generative methods (like GraphMAE), and augmentation-free methods (like BGRL).
  3. Trainer: A standardized training loop that includes essential features like early stopping to prevent overfitting and reduce computational costs.
  4. Evaluator: A suite of downstream task evaluators (e.g., SVM for classification, K-Means for clustering, and T-SNE for visualization) to ensure that models are compared on a level playing field.

Crucially, the toolkit includes "beginner-friendly" tutorials and the exact hyperparameter configurations needed to reproduce the results of the original papers.

Datasets

The toolkit is evaluated against six widely-used benchmarks, covering different graph scales and types:

  • Node Classification: WikiCS (computer science articles), Coauthor (citation network), and Amazon-Photo (product network).
  • Graph Classification: IMDB-B, IMDB-M (social networks), and Mutag (molecular/chemical data).

Key Insights and Ideas

  • The Reproducibility Anchor: The most significant contribution isn't a new algorithm, but the "reproducibility insurance." By providing the specific configuration files used to match original results, the authors provide a reliable baseline for future research.
  • No "Silver Bullet": The empirical results highlight that no single SSL method dominates all datasets. For example, SUGRL achieves the highest performance on the Coauthor dataset but performs poorly on WikiCS. This underscores the need for a toolkit that allows researchers to easily swap and test different methods.
  • Generative vs. Contrastive: The paper notes that GraphMAE (a generative method that predicts masked features) often outperforms contrastive methods on molecular datasets like IMDB, suggesting that feature reconstruction might be a more effective pretext task for certain graph types than traditional data augmentation.
  • Support for Diversity: Unlike previous toolkits, PyG-SSL explicitly supports homogeneous, heterogeneous, and molecular graphs, making it applicable to a wider range of scientific domains.

Key Results

The authors successfully reproduced the performance of 10 major algorithms. Key findings include:

  • Top Performers: On average across node classification tasks, AFGRL, BGRL, and DGI emerged as the top three most consistent performers.
  • Non-Contrastive Success: Methods like AFGRL and BGRL—which don't require "negative samples" (comparing a graph to a different, unrelated graph)—showed competitive or superior performance to traditional contrastive methods, simplifying the training process.
  • Accuracy Matching: The "Ours" results in the paper's tables closely track the "Reported" results from original papers (e.g., AFGRL on WikiCS: 77.6% reported vs. 78.9% in PyG-SSL), validating the toolkit's implementation accuracy.

Limitations and Future Work

While the paper presents a robust framework, a few areas remain for expansion:

  • Task Scope: The current evaluation focuses primarily on node and graph classification. Future versions could benefit from deeper integration of link prediction or recommendation-specific tasks.
  • Scalability: While the toolkit supports standard benchmarks, the paper does not extensively discuss performance on extremely large-scale graphs (billions of edges) which often require specialized distributed training.
  • Dynamic Graphs: The current suite focuses on static graphs; extending the toolkit to handle temporal or dynamic graphs (where the structure changes over time) would be a valuable next step.

You can find the PyG-SSL repository at: https://github.com/iDEA-iSAIL-Lab-UIUC/pyg-ssl

Summary updated

BibTeX
@inproceedings{zheng2025pyg,
  author = {Lecheng Zheng and Baoyu Jing and Zihao Li and Zhichen Zeng and Tianxin Wei and Mengting Ai and Xinrui He and Lihui Liu and Dongqi Fu and Jiaxuan You and Hanghang Tong and Jingrui He},
  title = {{PyG-SSL: A Graph Self-Supervised Learning Toolkit}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3761620},
}
Figure