An Out-Of-Distribution Membership Inference Attack Approach for Cross-Domain Graph Attacks

Jinyan Wang, Liu Yang, Yuecen Wei, Jiaxuan Si, Chenhao Guo, Qingyun Sun, Xianxian Li, Xingcheng Fu · DOI

Abstract

Membership Inference Attacks (MIA) pose a significant threat to data privacy by identifying whether specific data points were used in training a machine learning model. While traditional MIAs assume independent and identically distributed (i.i.d.) data between the attacker's shadow dataset and the target's training set, real-world scenarios often involve distribution shifts. This paper introduces GOOD-MIA, a novel framework designed for cross-domain graph attacks. By integrating Invariant Risk Minimization (IRM), Graph Information Bottleneck (GIB), and Risk Extrapolation (REx), GOOD-MIA identifies invariant features that persist across domains, enabling effective attacks even when shadow data differs significantly from target data.

Introduction

Membership Inference Attacks (MIA) are a critical privacy concern in machine learning. In the context of Graph Neural Networks (GNNs), these attacks aim to determine if a specific node or subgraph was part of the training set. If successful, these attacks can leak sensitive information, such as an individual's presence in a medical registry or a private social group.

Most existing research assumes the attacker possesses a "shadow dataset" that mirrors the target's distribution. However, in practice, data distributions often shift across time, geography, or platforms. This paper addresses the Out-Of-Distribution (OOD) challenge, demonstrating that GNN privacy is vulnerable even when the attacker’s local data is significantly different from the target model's training data. The authors propose that an attacker does not need a perfect replica of the target data; they simply need to identify the right "invariant" features.

Methodology

The authors introduce GOOD-MIA, the first framework for membership inference attacks on graphs that works across different data distributions. The framework employs a three-pronged strategy to bridge the domain gap:

  1. Shadow Model Training with Invariance: To mimic the target model, the attacker trains a "shadow" GNN. They utilize Invariant Risk Minimization (IRM) to find features that remain consistent across different "environments." These environments are created via graph-specific augmentations, such as node feature masking and DropEdge.
  2. Information Filtering: The framework applies the Graph Information Bottleneck (GIB) principle. This ensures the shadow model focuses exclusively on task-relevant information while ignoring domain-specific "noise" that would fail to generalize to the target domain.
  3. Attack Model Training with Risk Extrapolation: The final attack model, a binary classifier, is trained using Risk Extrapolation (REx). Rather than simply minimizing average error, REx minimizes the variance of risks across different environments. This makes the attack robust to the distribution shifts encountered when moving from the shadow domain to the target domain.

Experimental Setup

The researchers evaluated GOOD-MIA using five major node-property prediction datasets to simulate various OOD conditions:

  • Citation Networks (Cora, Citeseer, and Pubmed): To simulate OOD conditions, the authors synthetically added "spurious" features to create distribution shifts.
  • Social Networks (Twitch): The authors used subgraphs from different geographical regions (e.g., Germany, UK, France). One region served as the "shadow" domain while others served as the "target."
  • Social Networks (Facebook-100): This dataset utilized data from different universities (e.g., Johns Hopkins, Amherst, Cornell), treating each institution as a distinct domain.

Key Results and Analysis

GOOD-MIA significantly outperformed the state-of-the-art (TSTS) in cross-domain scenarios, proving that privacy is not inherently protected by domain shifts.

  • Synthetic Shifts: On the Cora dataset, GOOD-MIA achieved an attack accuracy of approximately 74%, compared to roughly 67% for traditional methods.
  • Real-World Social Networks: On the Twitch dataset, GOOD-MIA consistently outperformed the baseline across almost all region pairs. For instance, when attacking the Russian (RU) region using shadow data from a different region, GOOD-MIA maintained superior accuracy and AUC.
  • Ablation Studies: The authors conducted ablation tests confirming that removing any single component—IRM, GIB, or REx—caused a performance drop. This confirms that the synergy of these three components is essential for successful OOD attacks.

Discussion and Future Work

The core insight of this research is that membership information is encoded in structural and feature-based invariants that persist across domains. However, the effectiveness of the attack depends on the "strength of invariance" in the data; in social networks where structural patterns are weak or highly localized, the attack is slightly less potent. Additionally, the trade-off between invariant learning and the information bottleneck requires careful hyperparameter tuning depending on the GNN architecture.

Future research directions include exploring more sophisticated methods for generating synthetic environments and investigating whether these OOD techniques can be adapted to develop more robust defenses against membership inference attacks.

Summary updated

BibTeX
@inproceedings{wang2025out,
  author = {Jinyan Wang and Liu Yang and Yuecen Wei and Jiaxuan Si and Chenhao Guo and Qingyun Sun and Xianxian Li and Xingcheng Fu},
  title = {{An Out-Of-Distribution Membership Inference Attack Approach for Cross-Domain Graph Attacks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/375},
}
Figure