How does Graph Structure Modulate Membership-Inference Risk for Graph Neural Networks?
Megha Khosla
TL;DR
This work addresses node-level membership inference in graph neural networks, showing that graph structure and inference-time edge access are primary drivers of MI risk beyond the conventional generalization gap. It formalizes node-level MI under subgraph sampling and attack models, and evaluates how training-graph construction (random vs snowball) and edge access regimes (Orig, AllEdges, NoGraph) affect membership advantage across Cora, Chameleon, and PubMed for GCN, GraphSage, and GAT. Key findings include that snowball sampling can increase the generalization gap and thus MI risk, inter-train-test edges at inference can reduce MI leakage but depend on model and dataset, and that the generalization gap is not a reliable proxy for MI risk in graph settings. The work further demonstrates that inductive train-test splits violate statistical exchangeability, limiting the applicability of standard DP membership bounds, and advocates graph-aware privacy auditing and tailored DP definitions for graph-structured data.
Abstract
Graph neural networks (GNNs) have become the standard tool for encoding data and their complex relationships into continuous representations, improving prediction accuracy in several machine learning tasks like node classification and link prediction. However, their use in sensitive applications has raised concerns about the potential leakage of training data. Research on privacy leakage in GNNs has largely been shaped by findings from non-graph domains, such as images and tabular data. We emphasize the need of graph specific analysis and investigate the impact of graph structure on node level membership inference. We formalize MI over node-neighbourhood tuples and investigate two important dimensions: (i) training graph construction and (ii) inference-time edge access. Empirically, snowball's coverage bias often harms generalisation relative to random sampling, while enabling inter-train-test edges at inference improves test accuracy, shrinks the train-test gap, and yields the lowest membership advantage across most of the models and datasets. We further show that the generalisation gap empirically measured as the performance difference between the train and test nodes is an incomplete proxy for MI risk: access to edges dominates-MI can rise or fall independent of gap changes. Finally, we examine the auditability of differentially private GNNs, adapting the definition of statistical exchangeability of train-test data points for graph based models. We show that for node level tasks the inductive splits (random or snowball sampled) break exchangeability, limiting the applicability of standard bounds for membership advantage of differential private models.
