Skip to main content
QUICK REVIEW

[Paper Review] Adapting Membership Inference Attacks to GNN for Graph Classification: Approaches and Implications

Bang Ye Wu, Xiangwen Yang|arXiv (Cornell University)|Oct 17, 2021
Advanced Graph Neural NetworksComputer Science6 citations
TL;DR

This paper presents the first membership inference attacks (MIAs) targeting graph-level classification in Graph Neural Networks (GNNs), introducing two attack types—training-based and threshold-based—using model confidence scores to determine if a whole graph was in the training set. The attacks achieve F1 scores above 0.7 across most real-world datasets, revealing that GNNs are more vulnerable to MIAs than non-graph models, especially when overfitting is high.

ABSTRACT

Graph Neural Networks (GNNs) are widely adopted to analyse non-Euclidean data, such as chemical networks, brain networks, and social networks, modelling complex relationships and interdependency between objects. Recently, Membership Inference Attack (MIA) against GNNs raises severe privacy concerns, where training data can be leaked from trained GNN models. However, prior studies focus on inferring the membership of only the components in a graph, e.g., an individual node or edge. How to infer the membership of an entire graph record is yet to be explored. In this paper, we take the first step in MIA against GNNs for graph-level classification. Our objective is to infer whether a graph sample has been used for training a GNN model. We present and implement two types of attacks, i.e., training-based attacks and threshold-based attacks from different adversarial capabilities. We perform comprehensive experiments to evaluate our attacks in seven real-world datasets using five representative GNN models. Both our attacks are shown effective and can achieve high performance, i.e., reaching over 0.7 attack F1 scores in most cases. Furthermore, we analyse the implications behind the MIA against GNNs. Our findings confirm that GNNs can be even more vulnerable to MIA than the models with non-graph structures. And unlike the node-level classifier, MIAs on graph-level classification tasks are more co-related with the overfitting level of GNNs rather than the statistic property of their training graphs.

Motivation & Objective

  • Address the gap in membership inference attacks (MIAs) for graph-level GNNs, where prior work only targeted nodes or edges.
  • Investigate whether entire graph records—entire graphs as training samples—can be inferred as members of the training set.
  • Evaluate the effectiveness and underlying factors influencing MIA performance on GNNs for graph classification tasks.
  • Examine transferability of MIAs across different GNN architectures and datasets.
  • Understand how model overfitting and graph-level properties affect MIA success.

Proposed method

  • Propose two attack variants: training-based attacks, which train a binary classifier on confidence scores from a shadow model, and threshold-based attacks, which use a fixed threshold on confidence scores.
  • Utilize confidence scores (posterior probabilities) from the target GNN model as input to the attack classifier or thresholding mechanism.
  • Train shadow models on synthetic datasets mimicking the target data distribution to generate attack training data.
  • Apply transfer learning and cross-model evaluation to test attack generalization across different GNN architectures and datasets.
  • Use Spearman’s rank correlation to analyze the relationship between dataset/graph properties and attack performance.
  • Evaluate attacks on seven real-world datasets using five representative GNN models (e.g., GCN, GIN, GraphSAGE).

Experimental results

Research questions

  • RQ1Can membership inference attacks be effectively adapted to graph-level GNN classification, where the goal is to determine if an entire graph was in the training set?
  • RQ2How do model overfitting and graph-level data properties (e.g., average degree, number of classes) influence the success of MIAs on GNNs?
  • RQ3To what extent do MIAs on GNNs transfer across different GNN architectures and datasets?
  • RQ4How do the performance characteristics of graph-level MIAs differ from those of node-level MIAs in terms of influencing factors?
  • RQ5What are the key vulnerabilities in GNNs that enable high-accuracy membership inference attacks?

Key findings

  • The proposed training-based and threshold-based MIAs achieve F1 scores exceeding 0.7 on most of the seven real-world datasets, demonstrating high attack effectiveness.
  • Overfitting level (measured by train-test accuracy gap) is the strongest predictor of MIA success in graph-level GNNs, with higher overfitting leading to significantly better attack performance.
  • GNNs trained on datasets with higher average node degrees are more vulnerable to MIAs, likely due to increased confidence in membership predictions.
  • Graph-level MIAs are more strongly correlated with model overfitting than with graph structure properties, contrasting with node-level MIAs that depend more on local graph topology.
  • The attacks remain effective even when the target GNN architecture is unknown, indicating strong transferability across different GNN types.
  • MIAs on graph-level GNNs are more effective than on non-graph DNNs, suggesting GNNs may be inherently more susceptible to membership leakage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.