Manuscript Offprint

arXiv:2609.04772

A Robust Watermark-based Fingerprint Framework for GNNs Ownership Verification

Han Zhang, Yan Wang, Guanfeng Liu, Pengfei Ding, Huaxiong Wang, Kwok-Yan Lam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Han Zhang*, Yan Wang*, Guanfeng Liu*, Pengfei Ding*, Huaxiong Wang† and Kwok-Yan Lam†

*Macquarie University, Sydney, Australia

†Nanyang Technological University, Singapore

Abstract—The high training cost of Graph Neural Networks (GNNs) has raised growing concerns regarding model ownership infringement, such as model stealing and unauthorized misuse. To verify model ownership and prevent significant economic losses, two groups of GNN Ownership Verification (OV) methods have been proposed: watermark-based methods and fingerprint-based methods. However, these methods typically face three limitations: (1) the performance degradation of protected models caused by out-of-distribution (OOD) watermark graphs with respect to the training set; (2) the unrealistic assumption that surrogate models have been trained on a watermark-containing training set; and (3) over-reliance on specific output levels for fingerprint extraction. In this paper, we propose a Robust watErMark-based fingeRprint framework for GNNs, named REMARK. REMARK first generates carefully crafted in-distribution watermark graphs that maximize output differences between GNN models, thus mitigating OOD-induced performance degradation. REMARK then extracts robust fingerprints from these output differences to verify GNN ownership, thereby removing the assumptions that surrogate models must be trained on a watermark-containing dataset or expose specific output levels. Extensive experiments across widely used real-world datasets and GNN architectures demonstrate that REMARK achieves state-of-the-art OV accuracy and robustness while preserving the utility of protected models.

1. Introduction

In recent years, Graph Neural Networks (GNNs) have been widely adopted in critical domains such as finance [1], social networks [2], [3], and drug discovery [4]. While GNN models can significantly improve application quality and utility, they are costly to train [5] and vulnerable to malicious attacks when deployed in Web environments. Attackers may conduct model extraction attacks [6] to obtain surrogate models that mimic the behavior of valuable GNN models, enabling unauthorized Web applications and causing economic losses to the owners of valuable models. To protect the Intellectual Property (IP) of valuable GNN models deployed on the Web, various GNN Ownership Verification (OV) methods have been proposed [7], [8], [9], [10], [11]. These methods provide verifiable evidence of model ownership and can generally be classified into two groups: (1) Watermark-based methods (see Fig. 1(a)),

Figure

Figure 1. The general procedures of existing OV methods.

which inject watermark graphs with predefined labels into a training set, enabling protected and surrogate models to learn watermark-triggered behavior and produce the predefined labels on these graphs. In contrast, independent models are unrelated to the protected model and typically output incorrect labels on these graphs, thereby providing evidence of GNN ownership; and (2) Fingerprint-based methods (see Fig. 1(b)), which are based on the observation that different GNN models produce distinct output distributions. These methods extract fingerprints from such output distributions and verify ownership by measuring fingerprint discrepancies.

However, existing OV methods face three critical limitations that restrict their applicability in real-world scenarios. Limitation 1: Watermark-based methods often degrade the performance of protected models on the original downstream tasks. As illustrated in Fig. 1(a), existing watermark-based methods typically generate watermark graphs that substantially differ from the original training graphs in terms of structural, feature, or label distributions. Such out-of-distribution (OOD) watermark graphs hinder protected models from effectively learning both the watermark graph distribution and the original training graph distribution, leading to performance degradation on the original task [12], [13], [14]. Limitation 2: Watermark-based methods require surrogate models to be trained on a watermark-containing training set, which is an assumption that rarely holds in practice. This is because watermark graphs are typically not publicly released, and watermark-triggered behavior is independent of the model's predictions on the original task. For example, if the surrogate model in Fig. 1(a) does not learn watermark-triggered behavior, its outputs on watermark graphs may resemble those of an independent model, leading to an incorrect OV result. Limitation 3: Existing fingerprint-based methods are highly dependent on a single output level, either the node embedding level or the logit distribution level. This limitation arises because the separability of GNN output distributions varies significantly across different output levels, as shown in Fig. 1(b). Therefore, fingerprints that are discriminative at one level may become less distinguishable at another level due to overlapping distributions. To ensure fingerprint effectiveness, these methods typically assume that surrogate models provide the required output level. However, the verifier has limited control over the output level exposed by unauthorized GNN applications, making this assumption difficult to satisfy and limiting the reliability, robustness, and generalizability of existing methods.

To overcome the aforementioned three limitations, we propose REMARK, a novel Robust watErMARK-based fingeRprint framework for GNN OV. The core idea of REMARK is to generate in-distribution watermark graphs that are optimized to approximately maximize GNN-specific decision logic differences across different output levels. These watermarks enable REMARK to preserve the utility of protected models, remove assumptions about the training set, and improve the robustness of fingerprints across output levels. Specifically, to address Limitation 1, we propose an innovative in-distribution watermark generator (IDWG) that generates crafted watermark graphs based on the decision logic of the protected model and the original training set distribution, thereby mitigating OOD-induced GNN performance degradation. IDWG further integrates a GNN explainer (XGNN) to identify optimal locations in original training graphs for watermark injection, thereby generating watermarked graphs while minimizing the impact of watermark injection on the original task. To address Limitations 2 and 3, REMARK extracts fingerprints from the output differences of GNN models when processing watermarked and original graphs. These fingerprints capture GNN decision logic differences when processing the same watermarks, enabling reliable differentiation between protected/surrogate models and independent models. Therefore, REMARK can verify model ownership without requiring that protected/surrogate models have learned watermark-triggered behavior, thereby addressing Limitation 2. Moreover, IDWG-generated watermarks leverage differences in GNN decision logic to adjust distribution overlap and further amplify output discrepancies between protected/surrogate models and independent models. This improves fingerprint distinguishability and significantly enhances the robustness of REMARK, thereby addressing Limitation 3.

We summarize our main contributions as follows: (1) Performance preservation: We propose IDWG, which utilizes in-distribution watermark graphs to verify GNN ownership, thereby mitigating OOD issues and preserving the utility of protected models; (2) Removal of restrictive verification assumptions: We propose REMARK, the first OV framework that integrates conventional watermarking and fingerprinting techniques to generate robust fingerprints while eliminating the need for watermark-containing training sets and fixed output-level assumptions; (3) Superior and robust OV performance: Extensive experiments on six widely

used real-world datasets across four GNN architectures demonstrate that REMARK achieves state-of-the-art (SOTA) OV performance in terms of accuracy, robustness, and generalizability. The Appendices can be downloaded at https://anonymous.4open.science/r/REMARK_APPENDIX-F1A0/.

References (28)

  • A systematic review on graph neural network-based methods for stock market forecasting
  • A survey of graph neural network based recommendation in social networks
  • Adaptive hypergraph network for trust prediction
  • Graph neural networks in modern ai-aided drug discovery
  • Distributed graph neural network training: A survey
  • Model extraction attacks on graph neural networks: Taxonomy and realisation
  • Watermarking graph neural networks by random graphs
  • Watermarking graph neural networks via explanations for ownership protection (opens arXiv in a new tab)
  • Grove: Ownership verification of graph neural networks using embeddings
  • Gnffingers: A fingerprinting framework for verifying ownerships of graph neural networks
  • Sigfinger: A subtle and interactive gnn fingerprinting scheme via spatial structure inference perturbation
  • Discovering invariant rationales for graph neural networks
  • Learning causally invariant representations for out-of-distribution generalization on graphs
  • Few-shot causal representation learning for out-of-distribution generalization on heterogeneous graphs
  • On random graphs i
  • Watermarking graph neural networks based on backdoor attacks
  • Wgle: Backdoor-free and multi-bit black-box watermarking for graph neural networks (opens arXiv in a new tab)
  • Black-box verification for gnn ownership via decision boundary fingerprints
  • Semi-supervised classification with graph convolutional networks
  • Graph attention networks
  • Inductive representation learning on large graphs
  • How powerful are graph neural networks?
  • Gnn-explainer: Generating explanations for graph neural networks
  • Hierarchical grouping to optimize an objective function
  • Attention is all you need
  • Fast graph representation learning with PyTorch Geometric
  • Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Evaluating the robustness of trigger set-based watermarks embedded in deep neural networks