Toward General Digraph Contrastive Learning: A Dual Spatial Perspective
Daohan Su, Yang Zhang, Xunkai Li, Rong-Hua Li, Guoren Wang
TL;DR
This work tackles the challenge of graph contrastive learning on directed graphs by introducing S2-DiGCL, a dual-spatial framework that combines real-domain path augmentation with complex-domain personalized magnetic perturbations. By constructing two complementary views and optimizing a dual InfoNCE objective, the method captures both local directional flows and global directional semantics, supported by a theoretical analysis based on Magnetic Von Neumann Entropy. The approach achieves state-of-the-art performance across seven real-world digraph datasets for node classification and link prediction, while demonstrating robustness and efficiency through ablations and scalability experiments. Overall, S2-DiGCL offers a principled, scalable, and direction-aware paradigm for unsupervised learning on directed graphs, with potential extensions to other structured data domains.
Abstract
Graph Contrastive Learning (GCL) has emerged as a powerful tool for extracting consistent representations from graphs, independent of labeled information. However, existing methods predominantly focus on undirected graphs, disregarding the pivotal directional information that is fundamental and indispensable in real-world networks (e.g., social networks and recommendations).In this paper, we introduce S2-DiGCL, a novel framework that emphasizes spatial insights from complex and real domain perspectives for directed graph (digraph) contrastive learning. From the complex-domain perspective, S2-DiGCL introduces personalized perturbations into the magnetic Laplacian to adaptively modulate edge phases and directional semantics. From the real-domain perspective, it employs a path-based subgraph augmentation strategy to capture fine-grained local asymmetries and topological dependencies. By jointly leveraging these two complementary spatial views, S2-DiGCL constructs high-quality positive and negative samples, leading to more general and robust digraph contrastive learning. Extensive experiments on 7 real-world digraph datasets demonstrate the superiority of our approach, achieving SOTA performance with 4.41% improvement in node classification and 4.34% in link prediction under both supervised and unsupervised settings.
