Abstract
A graph neural network (GNN) is a type of neural network that is specifically designed to process graph-structured data. Typically, GNNs can be implemented in two settings, including the transductive setting and the inductive setting. In the transductive setting, the trained model can only predict the labels of nodes that were observed at the training time. In the inductive setting, the trained model can be generalized to new nodes/graphs. Due to its flexibility, the inductive setting is the most popular GNN setting at the moment. Previous work has shown that transductive GNNs are vulnerable to a series of privacy attacks. However, a comprehensive privacy analysis of inductive GNN models is still missing. This paper fills the gap by conducting a systematic privacy analysis of inductive GNNs through the lens of link stealing attacks, one of the most popular attacks that are specifically designed for GNNs. We propose two types of link stealing attacks, i.e., posterior-only attacks and combined attacks. We define threat models of the posterior-only attacks with respect to node topology and the combined attacks by considering combinations of posteriors, node attributes, and graph features. Extensive evaluation on six real-world datasets demonstrates that inductive GNNs leak rich information that enables link stealing attacks with advantageous properties. Even attacks with no knowledge about graph structures can be effective. We also show that our attacks are robust to different node similarities and different graph features. As a counterpart, we investigate two possible defenses and discover they are ineffective against our attacks, which calls for more effective defenses.
Introduction: The Privacy Gap in Inductive GNNs
Graph Neural Networks (GNNs) have become essential for tasks like recommendation systems and social network analysis. While early research focused on the transductive setting—where the model is trained and tested on a static graph—modern applications favor the inductive setting. In an inductive environment, the graph is dynamic, and the model must generalize to entirely new nodes or subgraphs it has never encountered during training.
While transductive GNNs were known to leak private information, the inductive setting was previously considered more secure because attackers lack access to the full training graph structure. This research challenges that assumption, investigating whether an adversary can "steal" links—inferring the existence of an edge between two nodes—by exploiting the flexibility of inductive models.
Methodology: Designing Link Stealing Attacks
The researchers propose a suite of Link Stealing Attacks categorized by the adversary's level of knowledge. These attacks primarily leverage the "posteriors" (class label probability distributions) returned by the target GNN.
- Posterior-only Attacks: These vary by structural knowledge:
- 0-hop: The attacker has zero structural information and queries the model using only the target nodes (with self-loops).
- 1-hop/2-hop: The attacker has partial knowledge of local neighborhoods but does not know if the specific target link exists.
- Combined Attacks: These integrate GNN posteriors with traditional link prediction features, including node attributes and graph metrics like the Jaccard coefficient or common neighbors.
The attack pipeline utilizes a shadow model approach. An attacker trains a shadow GNN on a similar dataset to mimic the target's behavior, then trains a binary classifier (the attack model) to recognize output patterns that signal a connection. This trained model is then applied to the victim's target GNN.
Experimental Evaluation
The attacks were tested across six diverse datasets, including citation networks (Cora, Pubmed, DBLP), co-purchase graphs (Amazon Photo, CS), and social networks (LastFM Asia). These datasets provided a robust testing ground due to their varying densities and feature types.
Key Insights
- The "0-hop" Surprise: Remarkably, the 0-hop attack—requiring no structural information—is highly effective. On the DBLP dataset, it outperformed traditional baselines by 14.2% in AUC, proving that GNN posteriors leak structural secrets even without neighborhood context.
- Memorizing "Surprising" Links: GNNs often learn to identify connections between dissimilar nodes. The proposed attacks were actually better at detecting these non-obvious links than traditional methods, likely because the GNN's aggregation function "memorizes" these unique structural patterns.
- Robustness: The attacks remain effective even under distribution shifts (where the shadow dataset differs from the target data), making the threat highly practical for real-world adversaries.
Results and Defense Analysis
Across all datasets, the proposed attacks consistently outperformed baselines. Combined attacks achieved an average improvement of 6.5% AUC, peaking at 12.5% on DBLP.
Crucially, existing defenses proved ineffective. Returning only labels (rather than probabilities) only slightly hindered accuracy. More advanced methods like DP-GCN (Differential Privacy) required adding so much noise to stop the attack that the GNN's primary utility was destroyed.
Conclusion
This study demonstrates that current privacy-preserving methods for GNNs are largely impotent against inductive link stealing attacks. The findings serve as a call to action for the research community to develop more sophisticated defenses, such as adversarial training or refined output perturbation, that can protect structural privacy without sacrificing the model's ability to generalize to new data.
Summary updated