Introduction
Graph Neural Networks (GNNs) have revolutionized relational data processing, but their performance often hinges on massive labeled datasets. To address this, Graph Self-supervised Learning (GSSL) has emerged as a dominant paradigm. In GSSL, a "foundation" encoder is pre-trained on unlabeled data and subsequently integrated into various downstream tasks. However, these high-quality encoders represent significant intellectual property (IP) and are vulnerable to unauthorized redistribution or theft. Existing watermarking techniques, typically designed for supervised settings, fail to protect label-free GSSL models. This paper introduces a novel framework that embeds a transferable watermark into the encoder's embedding space, ensuring ownership can be verified even when the encoder is used in unknown black-box downstream applications.
Methodology: Trigger Embeddings
The core innovation lies in watermarking the embedding space rather than the final task output. This makes the watermark task-agnostic and transferable.
1. Trigger Set Generation
The defender creates a "trigger set" by selecting a small subset of nodes and modifying their "ego-graphs" (local neighborhoods). A unique "key node" with randomly generated features is injected into these neighborhoods. This structural modification leverages the message-passing nature of GNNs, making the trigger harder to remove than simple feature noise.
2. Watermark Embedding
During pre-training, the encoder is optimized using a multi-objective loss function:
- Utility Loss: Maintains the encoder's ability to learn generalizable features for downstream tasks.
- Internal Loss ($L_{in}$): Forces the embeddings of all trigger nodes into a compact, tight cluster.
- External Loss ($L_{ext}$): Ensures this trigger cluster is statistically distinct from the embeddings of normal nodes.
3. Black-box Verification
To verify ownership, the defender queries a suspect model with the trigger set. Because the encoder maps these triggers to a compact cluster, any downstream classifier will likely assign them a uniform label. Verification is quantified via a Concentration Score (CS). A high CS indicates that the model has inherited the "backdoor" created by the original encoder.
Experimental Evaluation
The framework was evaluated using the Cora and Citeseer citation networks across diverse GSSL architectures, including DGI, GGD, GraphCL, and GraphMAE2. These tests aimed to assess the watermark's fidelity (impact on performance), detection reliability, and robustness.
Key Results and Discussion
High Fidelity and Reliable Detection
The proposed method demonstrates minimal impact on model utility, with accuracy drops typically remaining below 1%. In terms of detection, watermarked models consistently yielded Concentration Scores (CS) above 0.8, whereas clean models scored significantly lower (0.2–0.5), providing a clear margin for ownership verification.
Robustness to Model Pruning
A critical requirement for any watermark is resilience against removal attacks. The authors tested the framework against model pruning, where weights are removed to compress the model. As shown in the experimental results, the Concentration Score remains stable even as the pruning rate increases. The watermark only degrades when the pruning is so severe that the model's primary utility (ACC, AUC) also collapses, rendering the stolen model useless.
Conclusion
This research presents a robust solution for protecting the IP of self-supervised graph encoders. By focusing on the embedding space and utilizing structural triggers, the framework achieves high transferability across unknown downstream tasks. Future work will explore automated hyperparameter tuning and resilience against more sophisticated model extraction attacks.
Summary updated