Introduction
Self-supervised learning (SSL) for Graph Neural Networks (GNNs) typically falls into two camps: predictive learning (predicting masked nodes or edges) and contrastive learning (maximizing similarity between a graph and its perturbed versions).
However, current graph self-supervised learning often fails because it assumes that slightly perturbed graphs are "the same" as the original. The authors identify a critical flaw in contrastive learning: it assumes that perturbations (like dropping an edge) preserve the graph's semantic meaning. Because graphs are discrete structures, this assumption is often invalid. In chemistry, for instance, removing a single bond can turn a potent drug into an inactive molecule. Contrastive methods force these two different molecules into the same representation space, losing the fine-grained details necessary for downstream tasks.
To address this, the paper introduces D-SLA (Discrepancy-based Self-supervised LeArning). D-SLA flips the script by training models to recognize and quantify the exact structural differences between an original graph and its variants, preventing "representation collapse" and leading to state-of-the-art performance on molecular and biological benchmarks.
The D-SLA Framework
The authors propose D-SLA to focus on learning the discrepancy rather than the similarity between graphs. The framework consists of three main components:
- Graph Discrimination ($\mathcal{L}_{GD}$): Instead of a contrastive loss, D-SLA uses a discriminator to identify the original graph among several perturbed versions. This forces the model to notice even tiny structural changes.
- Distance-based Learning ($\mathcal{L}_{edit}$): The authors leverage Graph Edit Distance (GED)—the number of operations needed to transform one graph into another. While GED is usually NP-hard to compute, it is "free" ($O(1)$ cost) in this context because the authors know exactly how many edges they added or removed during perturbation. They regularize the embedding space so that the distance between two embeddings is proportional to their GED.
- Relative Discrepancy Learning ($\mathcal{L}_{margin}$): To handle completely different graphs (negative samples from a batch), they use a triplet margin loss. This ensures that "negative" graphs are kept further away than even the most heavily perturbed versions of the "anchor" graph.
Perturbation Strategy: The method creates multiple levels of perturbation by randomly selecting subgraphs and adding or removing edges (e.g., 20%, 40%, 60% changes) alongside masking node attributes.
Experimental Setup
The model was evaluated across various domains to test its transferability:
- Pre-training: 2 million molecules from the ZINC15 dataset (for chemistry) and PPI (Protein-Protein Interaction) networks (for biology).
- Fine-tuning (Classification): 8 datasets from MoleculeNet (including BBBP, ClinTox, HIV, BACE, SIDER, Tox21, ToxCast) and PPI.
- Link Prediction: Social network datasets including COLLAB, IMDB-B, and IMDB-M.
Key Insights and Results
- The "Discrete Nature" Insight: The core realization is that the "semantic-invariance" assumption from Computer Vision (where a flipped image of a cat is still a cat) does not hold for graphs.
- GED as a Free Label: By using the perturbation count as a proxy for GED, the authors turned a computationally impossible metric into a simple, zero-cost supervision signal.
- Interpolation of Space: Unlike contrastive methods that cluster positives into a single point, D-SLA creates an "interpolated" embedding space where the distance between points actually reflects structural differences.
- Graph Classification: D-SLA achieved the highest average ROC-AUC (73.85%) across 9 benchmarks, outperforming popular baselines like GraphCL (70.44%) and GraphLoG (72.65%).
- Handling High Similarity: On the BACE dataset—where active and inactive molecules look very similar—D-SLA outperformed contrastive methods significantly (83.81% vs. GraphCL's 75.38%), proving it captures the subtle differences it was designed for.
- Link Prediction: On the COLLAB dataset, D-SLA reached 86.21% average precision, a significant jump over the best predictive baseline (83.96%).
Limitations and Future Work
- Domain-Specific Semantics: The authors acknowledge that while their method captures structural discrepancy, it doesn't inherently know which structural changes are semantically important for a specific domain (e.g., which specific bond in a molecule is the "active site").
- Manual Perturbation Design: The current perturbation scheme (adding/removing edges) is somewhat heuristic. Future work could involve learning more "clever" ways to perturb graphs to better reflect domain-specific semantic differences.
- Computational Overhead: While GED calculation is $O(1)$, the model requires generating and processing multiple perturbed versions of every graph during pre-training, which may increase training time compared to simpler SSL methods.
Summary updated