Abstract
Membership Inference Attacks (MIA) pose a significant privacy risk by determining if specific data points were used to train a model. Traditional MIAs rely on shadow datasets from the same distribution as the target, an assumption often violated in real-world scenarios. This paper introduces GOOD-MIA (Graph Out-Of-Distribution Membership Inference Attack), a framework designed for cross-domain settings. By integrating Invariant Risk Minimization (IRM), Graph Information Bottleneck (GIB), and Risk Extrapolation (REx), GOOD-MIA captures domain-invariant membership signatures. Evaluations on citation and social networks demonstrate that GOOD-MIA consistently outperforms existing baselines in OOD scenarios, highlighting a robust privacy vulnerability in Graph Neural Networks (GNNs).
Introduction
Membership Inference Attacks allow adversaries to ask: "Was this specific individual's data used to train this AI model?" In graph data, this can reveal sensitive participation in social circles or medical registries. While traditional MIAs assume the attacker has access to "in-distribution" shadow data, real-world data is frequently siloed across different domains (e.g., different hospitals or geographic regions). Existing attacks often fail in these Out-Of-Distribution (OOD) scenarios due to overfitting. GOOD-MIA addresses this by identifying universal patterns in how GNNs treat training data versus unseen data.
Methodology
The GOOD-MIA framework consists of two primary phases designed to extract and generalize membership signals across domains.
1. Shadow Model Training
The attacker trains a shadow GNN on their own data using Invariant Risk Minimization (IRM). By creating multiple data-augmented "environments," IRM forces the model to learn features that are consistent across all environments, capturing the "essence" of the graph rather than domain-specific noise. Additionally, a Graph Information Bottleneck (GIB) is employed to strip away redundant environmental information, clarifying the membership signal.
2. Attack Model Training
The attack model—a binary classifier—is trained on the posteriors of the shadow GNN. To ensure generalizability to unseen target domains, the framework utilizes Risk Extrapolation (REx). REx optimizes the model to perform equally well across different training environments, significantly improving its ability to handle distribution shifts.
Experimental Results
The researchers evaluated GOOD-MIA on citation networks (Cora, Citeseer, Pubmed) and social networks (Twitch, Facebook-100).
Performance in OOD Scenarios
GOOD-MIA consistently outperformed the state-of-the-art baseline, TSTS, across all tests. On the Cora dataset with synthetic shifts, GOOD-MIA achieved an attack accuracy of 74.15%, compared to the baseline's 67.31%.
In real-world cross-domain experiments using the Twitch dataset (shown above), GOOD-MIA achieved superior Accuracy (ACC) and Area Under the Curve (AUC) across all regional subgraphs and GNN architectures (GCN, GAT, SGC). For instance, on the PTBR region using SGC, GOOD-MIA reached 64.80% accuracy. Similar gains were observed in Facebook-100 experiments, where training on "Penn" to attack "Johns Hopkins" yielded 57.20% accuracy, significantly higher than the baseline's 53.39%.
Discussion and Conclusion
The findings suggest that privacy leaks in GNNs are "invariant"—the signature of being in a training set persists across different data distributions. By focusing on these invariant features, GOOD-MIA demonstrates that GNN privacy is more fragile than previously assumed in cross-domain settings. Future research is needed to develop defensive strategies, such as GNN architectures inherently resistant to invariant-based inference, to protect sensitive graph data.
Reference: Wang, J., et al. (2025). An Out-Of-Distribution Membership Inference Attack Approach for Cross-Domain Graph Attacks. Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence (IJCAI-25).
Summary updated