Does Black-box Attribute Inference Attacks on Graph Neural Networks Constitute Privacy Risk?

Iyiola E. Olatunji, Anmar Hizber, Oliver Sihlovec, Megha KhoslaarXiv 2023 · DOI

Introduction

Graph Neural Networks (GNNs) have become a cornerstone of modern machine learning on relational data, leveraging both node features and graph topology. However, the recursive aggregation of neighborhood information raises significant privacy concerns. Specifically, can an adversary infer sensitive user attributes (e.g., income, political affiliation) simply by querying a trained GNN?

While previous research has largely focused on white-box settings or membership inference, this study investigates the more practical black-box Attribute Inference Attack (AIA). In this scenario, the attacker only has API access to the model. The central question is whether the GNN model itself introduces new privacy risks or if the inherent correlations within the graph data are the primary source of leakage.

Methodology

The researchers systematically evaluated several attack strategies to isolate the source of information leakage. These range from simple graph-based baselines to iterative model-dependent attacks.

Attack Strategies

  1. Feature Propagation (FP): A model-agnostic baseline that uses graph smoothing to estimate missing attributes based on known neighbor values. This serves as a benchmark for how much information is leaked by the graph structure alone.
  2. FP-MA (Feature Propagation with Model Access): An iterative strategy that combines graph-based imputation with model feedback. The attacker uses FP to estimate attributes, queries the target GNN, and uses the model's confidence scores to iteratively "fix" the most certain predictions.
  3. RI-MA (Random Initialization with Model Access): Similar to FP-MA, but starts with random attribute guesses instead of graph-based propagation to test the model's contribution in isolation.
  4. Shadow-based Attack (SA): A complex approach where the attacker trains a "shadow" model on a surrogate dataset to learn the mapping between GNN outputs and sensitive attributes.
Workflow of the FP-MA (Feature Propagation with Model Access) attack strategy.

To quantify model certainty in the black-box setting, the authors introduced a Confidence Score "Tax", calculated as the difference between the highest class probability and the average of the remaining probabilities. This metric allows the attacker to rank the reliability of the model's predictions for different nodes.

Experimental Setup

The study utilized a diverse set of datasets to test the attacks across different domains:

  • Credit Defaulter Graph: Predicting defaults with age as a sensitive attribute.
  • Facebook & LastFM: Social networks where gender or location are considered sensitive.
  • Cora & PubMed: Standard citation networks.
  • Texas: Used to evaluate performance under distribution shifts between training and attack data.

Two attack scenarios were considered: Setting-1, where the attacker knows only non-sensitive attributes, and Setting-2, where the attacker additionally knows 50% of the sensitive attributes of other nodes in the graph.

Key Insights and Results

The experimental results reveal a nuanced picture of GNN privacy:

  • The Graph as the Primary Leak: For binary attributes like gender, the simple model-agnostic FP baseline often performed as well as or better than the FP-MA attack. This suggests that the privacy risk is frequently rooted in the natural correlations within the graph structure rather than the GNN model's specific outputs.
  • Vulnerability of Continuous Attributes: Continuous values (e.g., age, income) are highly vulnerable to graph-based inference. Incorporating graph structure reduced error rates by up to 99% compared to non-graph methods. In these cases, the FP-MA attack consistently outperformed other methods on datasets like PubMed, showing that model confidence can indeed refine graph-based estimates for continuous data.
  • The Impact of Partial Knowledge: In Setting-2, where some sensitive values are known, attack performance improved by up to 21%, highlighting that neighborhood knowledge is a potent tool for attackers.
  • Resilience of Black-Box APIs: Interestingly, shadow-model attacks—often effective in white-box scenarios—performed poorly in the black-box setting, often no better than random guessing. This indicates that black-box GNN APIs may be more resilient than previously assumed.
  • Generalization and Privacy: Models trained on larger datasets tended to be less "leaky." As models generalize better, their confidence scores become less indicative of specific node attributes.

Conclusion

This research demonstrates that while GNNs do leak information, the "culprit" is often the graph data itself rather than the model. For binary attributes, black-box access to a GNN may not significantly increase privacy risks beyond what is already inherent in the graph. However, for continuous attributes, the model's confidence scores can be exploited to enhance inference accuracy. These findings suggest that privacy-preserving measures should focus as much on the underlying graph data as on the model architectures themselves.

Summary updated

BibTeX
@misc{olatunji2023does,
  author = {Iyiola E. Olatunji and Anmar Hizber and Oliver Sihlovec and Megha Khosla},
  title = {{Does Black-box Attribute Inference Attacks on Graph Neural Networks Constitute Privacy Risk?}},
  year = {2023},
  eprint = {2306.00578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.00578},
}
Figure