Safeguarding Graph Neural Networks against Topology Inference Attacks

Jie Fu, Yuan Hong, Zhili Chen, Wendy Hui WangCCS 2025

TL;DR

Graph Neural Networks (GNNs) are powerful but vulnerable to topology inference attacks that can reveal sensitive graph structures. This paper introduces Private Graph Reconstruction (PGR), a novel defense mechanism that generates a synthetic graph to train GNNs, effectively safeguarding topology privacy while maintaining high model accuracy.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have become indispensable for analyzing graph-structured data, from social networks to biological systems. However, their widespread adoption raises significant privacy concerns. While much research has focused on protecting individual edge information (edge-level privacy), the confidentiality of the entire graph's structure (topology privacy) has been largely overlooked. This paper highlights that GNNs are susceptible to "topology inference attacks" (TIAs) that can reconstruct the training graph's structure even with black-box access to the GNN model. Existing edge-level privacy mechanisms, like differential privacy, are often insufficient to prevent these topology-level attacks, either failing to mitigate the risk or severely degrading model performance. The authors aim to bridge this gap by developing a defense that protects topology privacy without sacrificing GNN utility.

Methods

The paper proposes Private Graph Reconstruction (PGR), a novel defense framework designed to protect topology privacy. PGR operates by generating a synthetic training graph, denoted as $\hat{G}$, which is intentionally constructed to have no edges in common with the original private graph $G$. This is achieved through a bi-level optimization approach.

  1. Graph Generation: PGR iteratively constructs $\hat{G}$ by adding edges one by one. The selection of edges is guided by meta-gradients, which approximate the gradient of the graph generation loss with respect to the graph structure. This process aims to create a synthetic graph that, when used to train a GNN, results in performance comparable to a GNN trained on the original graph.
  2. Edge Disjointness: A core principle of PGR is ensuring that the generated graph $\hat{G}$ is edge-disjoint from the original graph $G$ ($\hat{E} \cap E = \emptyset$). This is crucial for minimizing topology leakage.
  3. DP-PGR: To further enhance privacy, the authors propose DP-PGR, an extension that integrates edge-level differential privacy (DP) guarantees into the PGR framework. This allows for protection at both the topology and edge levels.

The paper also introduces three Topology Inference Attacks (TIAs):

  • Metric-based TIA (M-TIA): Infers edges based on similarity scores between node posterior probability vectors.
  • Classifier-based TIA (C-TIA): Leverages existing link membership inference attacks (LMIAs) and their confidence scores.
  • Influence-based TIA (I-TIA): Adapts LMIA techniques to infer edges based on the influence of one node on another.

Datasets

The authors evaluated their methods on four real-world graph datasets:

  • Cora (Citation Network)
  • Citeseer (Citation Network)
  • LastFM (Social Network)
  • Emory (Social Network)

Key Insights and Ideas

  • Topology is a critical privacy vulnerability: Even simple adaptations of existing edge-level attacks can lead to significant topology leakage, revealing a previously underexplored privacy risk in GNNs.
  • Edge-DP is insufficient for topology privacy: Existing state-of-the-art edge-level differential privacy methods fail to adequately protect against topology inference attacks, either by offering weak protection or severely degrading model accuracy.
  • PGR offers a novel solution: PGR is the first defense mechanism specifically designed to mitigate topology privacy leakage while maintaining high model accuracy.
  • Meta-gradients are effective for graph generation: The use of meta-gradients allows for efficient optimization of the graph generation process, enabling the creation of privacy-preserving synthetic graphs.
  • Edge-disjointness is key: The core idea of generating a graph with no overlapping edges with the original graph is fundamental to PGR's success in protecting topology privacy.

Key Results

  • TIAs are effective: The proposed TIAs, particularly I-TIA, can achieve very high topology privacy leakage (up to 100% TPL) on unprotected GNN models.
  • Edge-DP methods fall short: Six state-of-the-art edge-DP methods were evaluated and found to be insufficient for topology privacy protection, either yielding high TPL or significantly reducing model accuracy. For instance, GAP reduced model utility from 83.38% to 59.43% on Cora.
  • PGR significantly reduces TPL: PGR effectively reduces topology privacy leakage across all TIAs, datasets, and models. For I-TIA, TPL was reduced from ~100% to below 5% on Cora and Citeseer.
  • PGR maintains high accuracy: PGR incurs minimal loss in model accuracy, with a maximum degradation of just 0.87% and even slight improvements in some cases.
  • DP-PGR enhances privacy: DP-PGR, by integrating edge-level DP, achieves even better topology privacy protection than PGR alone, while maintaining comparable model accuracy.
  • Robustness against advanced attacks: PGR demonstrated robustness against a grey-box adversary (PGR-TIA) with partial knowledge of the defense mechanism, showing only a marginal increase in TPL (up to 0.4%).
  • Scalability: Experiments on large graphs showed that both TIAs and PGR remain effective, with PGR reducing TPL significantly even at scale.

Limitations and Future Work

  • Scalability of TIA and PGR: While effective, TIAs and PGR can require substantial computational resources for extremely large graphs. The authors suggest partitioning graphs as a potential solution.
  • Relaxation of Non-overlapping Constraint: For very dense graphs, a strictly edge-disjoint synthetic graph might not be feasible. The paper explores relaxing this constraint by allowing a controlled level of overlap, but this introduces complexities for the adversary's attack.
  • Future Work: The authors plan to investigate privacy risks associated with other graph-level statistics (e.g., minimum/maximum node degrees) and explore new forms of adaptive attacks. They also aim to further evaluate PGR against more sophisticated threat models.

Summary updated

BibTeX
@inproceedings{fu2025safeguarding,
  author = {Jie Fu and Yuan Hong and Zhili Chen and Wendy Hui Wang},
  title = {{Safeguarding Graph Neural Networks against Topology Inference Attacks}},
  booktitle = {CCS},
  year = {2025},
  doi = {10.1145/3719027.3765173},
}
Figure