Self-supervision meets kernel graph neural models: From architecture to augmentations

Jiawang Dan, Ruofan Wu, Yunpeng Liu, Baokun Wang, Changhua Meng, Tengfei Liu, Tianyi Zhang, Ningtao Wang, Xing Fu, Qi Li, Weiqiang Wang

Abstract

Modern graph representation learning is dominated by Message-Passing Neural Networks (MPNNs), which often struggle with interpretability and limited mathematical expressivity. Kernel Graph Neural Networks (KGNNs) offer a theoretically robust alternative but face significant challenges in optimization and a lack of self-supervised learning frameworks. This paper introduces SWAG (Smoothed random WAlk Graph neural network), a differentiable architecture that facilitates gradient-based training for KGNNs, and LGA (Latent Graph Augmentation), a structure-preserving augmentation method. By integrating these components, the authors demonstrate that KGNNs can achieve state-of-the-art performance in both supervised and self-supervised settings while maintaining high model transparency.

Introduction

Graph AI has seen rapid advancement through MPNNs, yet these models are frequently criticized as "black boxes" with inherent limitations in distinguishing complex graph structures. Kernel Graph Neural Networks (KGNNs) provide a more expressive alternative by comparing input graphs to a set of trainable "hidden" graphs. However, the discrete and combinatorial nature of traditional graph kernels makes them difficult to optimize via backpropagation. Furthermore, while self-supervised learning (SSL) has revolutionized MPNNs, its application to kernel-based models has remained largely unexplored.

This research addresses these gaps by proposing a two-fold solution: a new differentiable architecture (SWAG) and a novel augmentation strategy (LGA) designed specifically to preserve the structural integrity of graphs during self-supervised training.

Methods

SWAG: Differentiable Graph Kernels

To overcome the optimization hurdles of discrete kernels, the authors developed SWAG. Instead of relying on discrete random walk steps, SWAG utilizes a "smoothed" version of the kernel based on graph diffusion (conceptually similar to PageRank). This transformation converts the graph comparison process into a continuous, differentiable operation. Consequently, the model can be trained efficiently using standard gradient descent, allowing the "hidden graphs" to be learned directly from data.

LGA: Latent Graph Augmentation

Standard data augmentation techniques in graph learning, such as random node or edge dropping, often introduce noise that can destroy critical structural features. To mitigate this, the authors propose LGA. This method employs Universal Singular Value Thresholding (USVT) to estimate the underlying probability matrix of a graph. By "denoising" the graph to its latent signal, LGA generates augmented versions that respect the original structural semantics. This approach ensures that the model learns from variations that are representative of the graph's true topology rather than random perturbations.

These methods were integrated into both contrastive and non-contrastive self-supervised learning frameworks to evaluate their efficacy in unlabeled data environments.

Experimental Evaluation

The proposed methods were benchmarked against eight widely recognized datasets across two primary domains:

  • Bio/Chemo-informatics: MUTAG, D&D, NCI1, and PROTEINS.
  • Social Interaction Networks: IMDB-BINARY, COLLAB, REDDIT-BINARY, and REDDIT-MULTI-5K.

These datasets provided a rigorous testing ground ranging from small, highly structured molecules to large, dense social graphs.

Key Results

  • Supervised Performance: SWAG achieved results comparable or superior to existing KGNN and MPNN baselines. Its performance was particularly notable on dense social graphs like COLLAB, where structural nuances are critical.
  • Self-Supervised Success: The combination of SWAG and LGA yielded significant improvements. On seven of the eight datasets, this pairing outperformed other self-supervised KGNN approaches.
  • Competitive Edge: Even when compared to highly optimized MPNN-based SSL frameworks (such as GraphCL or InfoGraph), the SWAG+LGA framework remained highly competitive, frequently setting new performance benchmarks on social network tasks.

Interpretability and Insights

A significant advantage of the SWAG architecture is its inherent interpretability. Unlike the abstract vector representations in MPNNs, the "hidden graphs" learned by SWAG can be visualized and inspected. The authors observed that the model naturally adapts its learned structures to the domain: for protein datasets, the model prioritized "ring" structures, while for social datasets, it focused on "chains." This suggests that the model is capturing domain-relevant structural motifs autonomously.

Conclusion and Future Work

The introduction of SWAG and LGA demonstrates that kernel-based graph models can be both computationally efficient and highly effective in self-supervised regimes. While the computational complexity of LGA (specifically the $O(n^3)$ SVD requirement) remains a bottleneck for extremely large-scale graphs, the research provides a clear path forward for interpretable graph AI. Future work will focus on improving the scalability of these methods and exploring the utility of learned "hidden graphs" for complex downstream tasks beyond classification.

Summary updated

Abstract

Graph representation learning has now become the de facto standard when handling graph-structured data, with the framework of message-passing graph neural networks (MPNN) being the most prevailing algorithmic tool. Despite its popularity, the family of MPNNs suffers from several drawbacks such as transparency and expressivity. Recently, the idea of designing neural models on graphs using the theory of graph kernels has emerged as a more transparent as well as sometimes more expressive alternative to MPNNs known as kernel graph neural networks (KGNNs). Developments on KGNNs are currently a nascent field of research, leaving several challenges from algorithmic design and adaptation to other learning paradigms such as self-supervised learning. In this paper, we improve the design and learning of KGNNs. Firstly, we extend the algorithmic formulation of KGNNs by allowing a more flexible graph-level similarity definition that encompasses former proposals like random walk graph kernel, as well as providing a smoother optimization objective that alleviates the need of introducing combinatorial learning procedures. Secondly, we enhance KGNNs through the lens of self-supervision via developing a novel structure-preserving graph data augmentation method called latent graph augmentation (LGA). Finally, we perform extensive empirical evaluations to demonstrate the efficacy of our proposed mechanisms. Experimental results over benchmark datasets suggest that our proposed model achieves competitive performance that is comparable to or sometimes outperforming state-of-the-art graph representation learning frameworks with or without self-supervision on graph classification tasks. Comparisons against other previously established graph data augmentation methods verify that the proposed LGA augmentation scheme captures better semantics of graph-level invariance.
BibTeX
@inproceedings{dan2023self,
  author = {Jiawang Dan and Ruofan Wu and Yunpeng Liu and Baokun Wang and Changhua Meng and Tengfei Liu and Tianyi Zhang and Ningtao Wang and Xing Fu and Qi Li and Weiqiang Wang},
  title = {{Self-supervision meets kernel graph neural models: From architecture to augmentations}},
  booktitle = {Workshops @ ICDM},
  year = {2023},
  doi = {10.1109/icdmw60847.2023.00141},
}
Figure