Private Graph Extraction via Feature Explanations

Iyiola E. Olatunji, Mandeep Rathee, Thorben Funke, Megha Khosla · DOI

TL;DR

Releasing feature explanations for Graph Neural Networks (GNNs) to improve model transparency can inadvertently leak the private graph structure used for training. This paper demonstrates that an adversary can reconstruct sensitive connections between nodes with high accuracy using only these explanations, but also proposes a randomized defense mechanism to mitigate this risk.

What Problem Does This Paper Address?

As Graph Neural Networks (GNNs) are increasingly deployed in sensitive areas like healthcare and finance, there is a growing demand for interpretability. Post-hoc explanation methods aim to build trust by identifying which input features were most important for a GNN's prediction.

However, GNNs are unique because they encode both node features and the graph's structural relationships. This paper investigates a critical privacy-interpretability trade-off: Does providing feature-based explanations help an attacker reconstruct the private graph structure? For example, if a company releases a GNN-based recommendation API along with explanations, could a competitor use those explanations to map out the company's private user social network?

Methods

The authors propose two main types of graph reconstruction attacks:

  1. ExplainSim (Unsupervised): A simple but effective attack based on the intuition that connected nodes likely receive similar explanations. The attacker computes the pairwise cosine similarity between node explanation vectors to infer edges. ExplainSim attack overview
Figure 2: ExplainSim attack. Each node is assigned a fea- ture explanation vector where blue (1) and red (0) indicate whether the feature is part of the explanation or not. The attacker then assigns an edge by computing the pairwise similarity represented as 𝑑(𝑛𝑜𝑑𝑒𝑖,𝑛𝑜𝑑𝑒𝑗) between nodes’ ex- planation vectors. We show the representation of Zorro’s explanation for easier visualization.
  1. GSEF (Graph Stealing with Explanations and Features): A more sophisticated framework based on graph structure learning. It uses a generator to learn an adjacency matrix that minimizes a multi-task loss: reconstructing the original features and explanations (via denoising autoencoders) and matching predicted node labels. GSEF framework architecture
Figure 3: Overview of GSEF. The generator takes node features and explanations as input and outputs an adjacency matrix which may be non-normalized by the adjacency normalizer. The normalized adjacency matrix is used in predicting both the class labels and reconstructing the node features (explanations) by the denoising autoencoders. The final reconstructed adjacency is the one that minimizes the reconstruction error on each of the node features and explanations and the loss of the class label prediction.

The study evaluates these attacks against six different explanation methods, categorized into gradient-based (e.g., Grad), perturbation-based (e.g., Zorro, GNNExp), and surrogate-based (e.g., GLime).

To counter these attacks, the authors introduce a defense based on a randomized response mechanism. By flipping bits in the explanation mask with a certain probability, they achieve $d\epsilon$-local differential privacy, significantly hampering reconstruction efforts.

Datasets

The researchers evaluated their attacks on six datasets with varying properties:

  • Main Benchmarks: Cora (citation network, sparse binary features), CoraML (citation network, dense features), and Bitcoin (trust network, very small feature dimension).
  • Additional Benchmarks: CiteSeer, PubMed, and Credit (a financial network).

Key Insights and Ideas

  • Explanations are Information-Rich: Even without access to the original node features, explanations alone can reveal significant structural information.
  • The Gradient-Based Paradox: Gradient-based explanations (like Grad and Grad-I) are the most vulnerable to privacy leakage, yet they often have the lowest "utility" (faithfulness to the model's actual decision process). This is a worst-case scenario: high privacy risk for little interpretability gain.
  • Utility-Privacy Trade-off: For perturbation-based methods like Zorro, there is a clear correlation: as the explanation becomes more useful (higher fidelity and sparsity), the privacy leakage increases.
  • Feature Dimension Matters: Datasets with very few features (like Bitcoin, with only 8) are significantly harder to attack than those with high-dimensional feature spaces (like CiteSeer).
  • Effective Defense: The proposed randomized response defense can reduce attack success to near-random levels (AUC ~0.55) while retaining about 75% of the original explanation's important features.

Key Results

  • Attack Success: On the Cora dataset, the ExplainSim attack achieved an AUC of over 0.98 for gradient-based explanations, vastly outperforming baseline attacks that didn't use explanations.
  • GSEF Dominance: The GSEF attack proved robust across different settings, often outperforming vanilla graph structure learning (SLAPS) by leveraging the extra information in explanations.
  • Baseline Comparison: In many cases, similarity-based attacks using explanations (ExplainSim) outperformed similarity-based attacks using the actual raw features (FeatureSim), proving that explanations distill structural dependencies. Performance comparison of ExplainSim across datasets
Performance comparison of ExplainSim across datasets

Limitations and Future Work

  • Partial Knowledge: While the paper explores attacks with explanations for only 30% of nodes, real-world scenarios might involve even sparser availability.
  • Explanation Types: The focus was strictly on feature-based explanations. The authors note that node or edge-level explanations would likely make reconstruction even more trivial, but these were not explicitly modeled in the GSEF framework.
  • Defense Refinement: While the randomized response defense is effective, it does reduce explanation utility. Future work could explore more sophisticated privacy-preserving explanation methods that optimize the utility-privacy frontier.
  • Sampling Bias: The authors acknowledge that their partial-node experiments used a single random sample, which might introduce sampling bias. Multi-sample evaluations would strengthen these specific findings.

Summary updated

BibTeX
@article{olatunji2023private,
  author = {Iyiola E. Olatunji and Mandeep Rathee and Thorben Funke and Megha Khosla},
  title = {{Private Graph Extraction via Feature Explanations}},
  journal = {Proc. Priv. Enhancing Technol.},
  year = {2023},
  doi = {10.56553/popets-2023-0041},
}
Figure