Model Inversion Attacks on Homogeneous and Heterogeneous Graph Neural Networks

Renyang Liu, Wei Zhou, Jinhong Zhang, Xiaoyuan Liu, Peiyuan Si, Haoran Li · DOI

Graph Neural Networks (GNNs) have emerged as a powerful paradigm for analyzing networked data, finding applications in everything from financial fraud detection to social media recommendation engines. However, as these models are deployed on increasingly sensitive data, the question of privacy becomes paramount. This research, presented at SecureComm 2023, investigates the susceptibility of GNNs to model inversion attacks, demonstrating that the very structures these models learn can be exploited to leak private training data.

The Challenge of Graph Model Inversion

Model inversion attacks (MIAs) aim to reconstruct the private training data used to develop a machine learning model by querying the model and analyzing its outputs. In the context of graphs, the goal is to reconstruct the adjacency matrix—the map of who is connected to whom—given access to node features and the trained model's predictions.

While previous research has explored MIAs on Homogeneous GNNs (where all nodes and edges are of a single type), real-world data is often far more complex. Heterogeneous GNNs (HeteGNNs) are designed to handle multiple types of nodes and relationships (e.g., a medical network containing "Patient," "Doctor," and "Disease" nodes). Until this work, HeteGNNs were largely considered more resilient to inversion due to their structural complexity. This paper introduces HomoGMI and HeteGMI, two novel attack frameworks that prove even complex heterogeneous structures are vulnerable.

Methodology: Bridging the Gap with Proximity

The researchers frame graph reconstruction as a "gray-box" optimization problem. In this scenario, the attacker does not know the internal weights of the model but can observe the output "logits" (prediction scores) for specific inputs. To reconstruct the graph, the authors propose a multi-part objective function used during gradient descent:

  1. Target Loss ($L_{tar}$): This component optimizes the reconstructed graph so that the target GNN classifies nodes with high accuracy. The intuition is that if the model "recognizes" the reconstructed graph and produces high-confidence predictions similar to its training state, the reconstruction is likely accurate.
  2. Graph Proximities ($L_{pro}$): This is the critical innovation of the paper. Real-world graphs are not random; they follow specific topological patterns. The authors incorporate 1st-order proximity (nodes that are connected should have similar features) and 2nd-order proximity (nodes that share many neighbors should be similar). This acts as a prior, ensuring the reconstructed graph adheres to realistic structural properties.
  3. Meta-path Integration (HeteGMI): To tackle heterogeneous graphs, the authors utilize meta-paths—predefined sequences of node types (e.g., Author-Paper-Author). By decomposing the complex graph into these paths, they can apply proximity constraints across different relationship types, effectively "unweaving" the heterogeneous structure.

The "Space III" Hypothesis

A central conceptual contribution of the paper is the Space III Hypothesis. The authors visualize the data in three distinct domains:

  • Space I (Real World): The set of all graphs that satisfy real-world topological properties.
  • Space II (Model Covered): The set of all graphs that the trained GNN model would classify correctly.
  • Space III (The Intersection): The overlap where a graph satisfies both the model's internal logic and real-world structural priors.

The authors argue that successful model inversion must target Space III. By combining $L_{tar}$ and $L_{pro}$, their attacks are specifically designed to land in this intersection, leading to much higher reconstruction accuracy than methods that rely on the model alone.

Experimental Evaluation

The attacks were evaluated across six benchmark datasets, including citation networks (Cora, Citeseer) and heterogeneous databases (ACM, DBLP, IMDB). They tested against a variety of popular GNN architectures, such as GCN, GraphSAGE, HAN, and RGCN.

Key Findings:

  • Superior Accuracy: HomoGMI consistently outperformed existing baselines like GraphMI. For instance, on the Citeseer dataset using a GCN model, HomoGMI achieved an AUC of 90.26% for edge reconstruction.
  • Breaking Heterogeneity: HeteGMI proved that the complexity of heterogeneous graphs is not a defense. On the DBLP dataset targeting an RGCN model, the attack reached an AUC of 86.78%.
  • Ineffectiveness of Simple Defenses: The researchers tested the resilience of their attacks against common defenses, such as adding Gaussian noise to the model's outputs. While noise reduced the utility of the model for legitimate users, the attacks remained remarkably effective, suggesting that more sophisticated privacy-preserving techniques (like Differential Privacy) are required.

Conclusion and Future Directions

This research highlights a significant privacy gap in the deployment of GNNs. By leveraging graph proximities as a prior, HomoGMI and HeteGMI can accurately reconstruct private relationships even in complex, multi-typed networks.

While the current iteration of HeteGMI requires the manual definition of meta-paths, future work could involve automating this process to make the attack even more versatile. More importantly, this work serves as a call to action for the development of robust, proximity-aware defenses to protect sensitive relational data in the age of graph-based machine learning.

Summary updated

BibTeX
@inproceedings{liu2023model,
  author = {Renyang Liu and Wei Zhou and Jinhong Zhang and Xiaoyuan Liu and Peiyuan Si and Haoran Li},
  title = {{Model Inversion Attacks on Homogeneous and Heterogeneous Graph Neural Networks}},
  booktitle = {Securecomm},
  year = {2023},
  doi = {10.1007/978-3-031-64948-6\_7},
}
Figure