Abstract
Membership Inference Attacks (MIAs) pose a significant threat to data privacy by determining whether a specific data point was used to train a machine learning model. While existing MIAs against Graph Neural Networks (GNNs) typically rely on access to model confidence scores or internal parameters, real-world scenarios often restrict access to the final predicted label only. This paper investigates a novel label-only MIA targeting node-level classification in GNNs. By exploiting the structural flexibility of GNNs and measuring prediction stability under perturbation, the proposed attack achieves approximately 60% accuracy across various architectures and datasets, demonstrating that even minimal output exposure can lead to significant privacy leakage.
Introduction
As Graph Neural Networks (GNNs) become increasingly prevalent in sensitive domains—such as healthcare, social network analysis, and financial fraud detection—the privacy of the underlying training data has become a paramount concern. Membership Inference Attacks (MIAs) are a primary method for auditing these privacy risks. If an adversary can successfully identify that a specific individual’s data was part of a training set, it can lead to severe privacy violations, such as revealing a patient's presence in a clinical trial database.
Most existing research into GNN privacy assumes a "grey-box" setting, where the attacker has access to the probability vectors (confidence scores) produced by the model. However, many production-grade APIs are restricted to "label-only" outputs to mitigate such risks. This study, conducted by researchers from the University of Padua, Delft University of Technology, and Radboud University, challenges the assumption that label-only outputs are secure, presenting a robust attack strategy tailored to the unique properties of graph-structured data.
The Label-Only Threat Model
In a label-only setting, the attacker provides a node and its neighborhood to a target GNN and receives only the predicted class label. Unlike standard image classifiers, GNNs are unique because their predictions for a single node are influenced by the features of its neighbors and the edges connecting them. This dependency creates a larger attack surface.
The researchers propose an attack model that leverages prediction stability. The fundamental hypothesis is that GNNs tend to be more "stable" or overfitted to their training data. Therefore, if the input is slightly perturbed, the predicted label for a training node is less likely to change compared to a non-training node.
Methodology
The attack involves training a binary classifier (the attack model) to distinguish between members and non-members. The authors extract three distinct categories of features to feed this classifier:
- Fixed Properties: These include basic metadata such as the node’s degree (number of neighbors) and the ground truth label provided by the dataset.
- 0-Hop Queries: The target model is queried using only the features of the target node, with no neighborhood information. During these queries, features are randomly masked to observe how the prediction shifts when the model is "starved" of structural context.
- 1-Hop Queries: The model is queried with the node and its immediate neighbors. In this phase, the attacker simultaneously drops edges and masks features.
By comparing the labels returned under these various perturbed states, the attacker captures a signature of the model's certainty. A node that consistently returns the same label despite missing edges or masked features is highly likely to be a member of the training set.
Experimental Evaluation
The attack was evaluated using four standard benchmark datasets: Cora_ML, CiteSeer, DBLP, and PubMed. These datasets represent a range of graph scales and densities, from small citation networks to large-scale co-authorship graphs. The researchers tested the attack against several popular GNN architectures, including Graph Convolutional Networks (GCN), Graph Attention Networks (GAT), GraphSAGE, and Graph Isomorphism Networks (GIN).
Key Findings
- Attack Potency: The label-only attack consistently achieved approximately 60% accuracy, precision, and AUC. While this may seem modest compared to white-box attacks, it is significantly better than a random guess (50%) and proves that labels alone carry substantial privacy-leaking signals.
- Competitive Performance: Surprisingly, in several test cases, this label-only approach performed as well as, or even better than, state-of-the-art attacks that required full access to probability vectors. This suggests that the structural perturbations used in this method are highly effective at extracting membership information.
- Architecture Transferability: The attack demonstrated remarkable transferability. An attack model trained on a "shadow model" (a model built by the attacker to mimic the target) often succeeded even if the shadow model used a different architecture or was trained on a different data distribution than the target. This indicates that membership leakage is a fundamental characteristic of GNN training rather than a specific architectural flaw.
- Resilience to Defenses: Standard defensive techniques, such as Dropout, Weight Decay (L2 regularization), and Batch Normalization, were tested. While these methods are intended to reduce overfitting, they failed to fully mitigate the attack, suggesting that current GNN defenses are insufficient against label-only MIAs.
Conclusion and Future Work
This research highlights a critical vulnerability in GNNs: the very structural aggregation that makes them powerful also makes them susceptible to membership inference, even when output is limited to labels. The stability of a GNN’s prediction under neighborhood and feature perturbation serves as a reliable proxy for membership.
Future research is needed to extend these findings beyond node-level classification to graph-level tasks and link prediction. Furthermore, the development of more robust privacy-preserving mechanisms—potentially involving Differential Privacy or more advanced graph-specific regularization—is essential to protect sensitive data in graph-based machine learning systems.
Summary updated