Graph Self Supervised Learning: the BT, the HSIC, and the VICReg

Sayan NagarXiv 2021

Abstract

Self-supervised learning and pre-training strategies have developed over the last few years especially for Convolutional Neural Networks (CNNs). Recently application of such methods can also be noticed for Graph Neural Networks (GNNs). In this paper, we have used a graph based self-supervised learning strategy with different loss functions (Barlow Twins, HSIC, VICReg) which have shown promising results when applied with CNNs previously. We have also proposed a hybrid loss function combining the advantages of VICReg and HSIC and called it as VICRegHSIC. The performance of these aforementioned methods have been compared when applied to 7 different datasets such as MUTAG, PROTEINS, IMDB-Binary, etc. Experiments showed that our hybrid loss function performed better than the remaining ones in 4 out of 7 cases. Moreover, the impact of different batch sizes, projector dimensions and data augmentation strategies have also been explored.

Introduction

Deep learning usually thrives on massive amounts of labeled data. However, labeling graphs—such as chemical compounds or social networks—is expensive, time-consuming, and often requires specialized expertise. Self-supervised learning (SSL) offers a way to train models to find patterns in unlabeled data. While SSL has seen significant success in computer vision, applying it to Graph Neural Networks (GNNs) is more complex. Existing graph SSL methods often struggle with "representation collapse" or rely on computationally heavy "negative sampling" strategies. This paper introduces a stable, negative-free framework to learn robust graph representations using a novel hybrid loss function.

Methodology

The proposed GraphVICRegHSIC framework utilizes a symmetric SSL pipeline:

  1. Data Augmentation: An input graph is transformed into two different "views" using techniques like Node Dropping, Subgraph Sampling, Edge Perturbation, and Attribute Masking.
  2. Encoding & Projection: Both views pass through a GNN encoder and a non-linear projection head to create embeddings $Z_A$ and $Z_B$.
  3. The VICRegHSIC Loss: This hybrid loss combines three objectives: Invariance (ensuring similar views have similar embeddings), Variance (preventing collapse by maintaining embedding standard deviation), and Covariance (using a modified Hilbert-Schmidt Independence Criterion to decorrelate embedding dimensions).
The GraphVICRegHSIC framework: input graphs are augmented into two views, encoded, projected, and then optimized to maximize agreement using a hybrid loss.

Experimental Setup

The model was evaluated on seven diverse graph datasets, primarily focusing on bioinformatics (MUTAG, PROTEINS, Cox2-MD, PTC-FR, AIDS) and social networks (IMDB-Binary). These datasets are standard benchmarks for graph classification, where the goal is to categorize an entire graph structure.

Results and Analysis

The proposed GVICRegHSIC outperformed several high-profile contemporaries, including InfoGraph and the original VICReg, achieving the highest accuracy in 4 out of 7 datasets. Notably, on the MUTAG dataset, it reached 90.05% accuracy.

A key insight from the ablation studies was the sensitivity of biomolecule datasets to specific augmentations. For instance, Edge Perturbation was found to hurt performance on datasets like PROTEINS, as changing chemical bonds fundamentally alters a molecule's identity. Conversely, Node Dropping proved more robust, suggesting the global identity of these graphs is resilient to missing individual atoms.

Ablation studies showing the impact of various data augmentations, perturbation factors, and batch sizes on linear evaluation test accuracy.

Conclusion

VICRegHSIC demonstrates that combining variance-covariance regularization with HSIC-based decorrelation provides a powerful and stable objective for graph self-supervised learning. While the results are promising, future work will focus on scaling the framework to massive web-scale graphs and extending it to edge-level classification tasks.

Summary updated

BibTeX
@misc{nag2021graph,
  author = {Sayan Nag},
  title = {{Graph Self Supervised Learning: the BT, the HSIC, and the VICReg}},
  year = {2021},
  eprint = {2105.12247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.12247},
}
Figure