GraphGuard: Detecting and Counteracting Training Data Misuse in Graph Neural Networks

Bang Wu, He Zhang, Xiangwen Yang, Shuo Wang, Minhui Xue, Shirui Pan, Xingliang Yuan

Abstract

As Graph Neural Networks (GNNs) become central to sensitive fields like drug discovery and financial fraud detection, the data used to train them has become highly valuable intellectual property. However, the rise of Machine Learning as a Service (MLaaS) platforms has created a transparency gap, where original data owners cannot easily verify if their proprietary graphs were used without permission. We propose GraphGuard, the first integrated framework designed to detect and mitigate the unauthorized use of private graph data in MLaaS environments. GraphGuard employs "radioactive" data for proactive detection and synthetic graph generation for "training-graph-free" unlearning. Our evaluation across four benchmarks demonstrates near-perfect detection rates and effective removal of misused data's influence with minimal impact on model accuracy.

Introduction

The proliferation of MLaaS platforms allows model developers to train GNNs locally and deploy them to the cloud. This process often lacks transparency, leaving data owners vulnerable to intellectual property theft. Existing solutions typically address either detection or mitigation in isolation and often require access to original training data or specific model architectures—requirements that are impractical in privacy-sensitive, model-agnostic MLaaS settings.

Methodology

GraphGuard introduces a two-pronged pipeline that respects data privatization and remains model-agnostic.

Overview of the GraphGuard framework, illustrating the 8-step process from proactive graph construction to membership-aware fine-tuning.

Proactive Misuse Detection

Instead of relying on standard membership inference, GraphGuard utilizes radioactive graph construction. Data owners inject optimized, subtle perturbations into node attributes before potential theft. These perturbations act as a digital watermark. If a model is trained on this "radioactive" data, its output distribution changes in a detectable manner, even when queried via a public API without structural information.

Training-Graph-Free Unlearning

Upon detecting misuse, the MLaaS server must "unlearn" the unauthorized data. Since the server typically lacks the original training graph, GraphGuard solves this by synthesizing graphs. The server uses a membership inference model and the target GNN’s internal knowledge to generate synthetic versions of "to-be-forgotten" and "to-be-retained" data. It then fine-tunes the model on these synthetic graphs to neutralize the influence of misused data.

Detailed view of the two-stage unlearning process: (1) Unlearned Graph Generation and (2) Membership-aware Fine-tuning.

Evaluation and Key Results

GraphGuard was evaluated on four GNN benchmarks: Cora, Citeseer, Pubmed, and Flickr. These datasets represent various scales and domains, providing a robust testing ground for the framework's generalizability.

  • Near-Perfect Detection: Across all datasets and various GNN architectures (GCN, GraphSage, GAT, GIN), GraphGuard achieved a detection AUC of nearly 1.0.
  • Effective Unlearning: The framework reduced the Membership Inference Attack (MIA) success rate to approximately 0.5 (equivalent to a random guess), meaning the model effectively "forgot" the specific training members.
  • Minimal Utility Loss: The unlearning process resulted in a less than 5% drop in overall model accuracy, ensuring the GNN remains useful for legitimate tasks.
  • Efficiency: The unlearning method was up to 6.5x faster than retraining from scratch on smaller datasets.

Discussion and Limitations

GraphGuard moves beyond traditional overfitting-based detection by forcing models to learn specific radioactive patterns. Its structure-free querying protects privacy by avoiding "link-stealing" attacks. However, the current implementation focuses primarily on node classification. Future research will explore link prediction and graph classification tasks. Additionally, the framework assumes a trustworthy MLaaS provider; if the provider itself is malicious, unlearning requests might be ignored.

Conclusion

GraphGuard provides a robust, integrated solution for protecting proprietary graph data in the MLaaS ecosystem, balancing high detection accuracy with efficient, training-graph-free unlearning.

Summary updated

BibTeX
@inproceedings{wu2024graphguard,
  author = {Bang Wu and He Zhang and Xiangwen Yang and Shuo Wang and Minhui Xue and Shirui Pan and Xingliang Yuan},
  title = {{GraphGuard: Detecting and Counteracting Training Data Misuse in Graph Neural Networks}},
  booktitle = {NDSS},
  year = {2024},
}
Figure