Heterogeneous Randomized Response for Differential Privacy in Graph Neural Networks

Khang Tran, Phung Lai, NhatHai Phan, Issa Khalil, Yao Ma, Abdallah Khreishah, My T. Thai, Xintao Wu

Introduction

Graph Neural Networks (GNNs) have emerged as a powerful paradigm for learning from structured data, leveraging both individual node attributes and the complex web of relationships (edges) between them. However, this dual dependency creates significant privacy vulnerabilities. Adversaries can exploit GNN outputs to perform Privacy Inference Attacks (PIAs), successfully reconstructing sensitive node features or de-anonymizing private connections.

While Differential Privacy (DP) offers a rigorous mathematical framework to mitigate these risks, its application to graph data is fraught with challenges. Traditional DP mechanisms typically apply "homogeneous" noise, treating all features and edges with uniform suspicion. In the sparse and interconnected environment of a graph, such uniform noise often propagates across neighbors, destroying the structural integrity and feature signals necessary for model accuracy. This paper introduces HETERORR, a novel framework that addresses the privacy-utility trade-off by intelligently distributing noise based on the specific importance and sensitivity of data components.

Methodology: The HETERORR Framework

HETERORR is a pre-processing mechanism that generates a "permanently private" synthetic graph. By applying Local Differential Privacy (LDP) at the data source, the framework ensures that any model subsequently trained on the synthetic graph inherits DP protections due to the "post-processing" property of differential privacy. The framework consists of two specialized components: FEATURERR and EDGERR.

FEATURERR: Feature-aware Randomized Response

To protect node attributes without sacrificing utility, FEATURERR avoids the pitfalls of uniform noise. It calculates a "unifying score" for each feature using two metrics:

  1. Feature Importance: Utilizing SHAP (SHapley Additive exPlanations), the model determines which features contribute most significantly to the GNN's predictive performance.
  2. Feature Sensitivity: A masking technique identifies which features are most susceptible to privacy leaks.

By allocating the privacy budget ($ \epsilon $) heterogeneously, FEATURERR applies less noise to high-importance, low-sensitivity features and heavier randomization to sensitive, low-utility features. To handle continuous embedding features (such as those from image or text encoders), the mechanism discretizes the feature space into bins, concentrating probability mass to maintain strong DP guarantees without degrading the data into white noise.

EDGERR: Edge-aware Randomized Response

Protecting the graph structure requires preserving the underlying topology while obscuring specific private links. EDGERR utilizes a Private Hierarchical Random Graph (PHRG) model. The approach distinguishes between "public" edges (non-sensitive structural anchors) and "private" edges. Using a Markov Chain Monte Carlo (MCMC) sampling process, EDGERR constructs a dendrogram—a hierarchical tree representation—that maintains the "skeleton" of the graph. This allows the mechanism to inject DP-compliant noise into private connections while preserving essential properties like community structure and sparsity.

Experimental Evaluation

The researchers evaluated HETERORR against several state-of-the-art baselines, including LPGNN, Duchi, and LapGraph, across two distinct domains:

  • FLICKR-MIR: A social computing dataset where nodes represent images (processed via ResNet-50) and edges represent social connections.
  • PPI (Protein-Protein Interaction): A biological dataset used for classifying protein functions across various human tissues.

Key Results

  • Utility Gains: FEATURERR demonstrated a significant performance boost, achieving a 7.6% improvement over the best baseline (LPGNN) on the FLICKR-MIR dataset and a 2.6% improvement on the PPI dataset.
  • Structural Preservation: EDGERR improved edge-level utility by 6.3% compared to LapGraph, proving that hierarchical modeling better preserves graph topology than flat noise injection.
  • Defense Against Inference: Against the LinkTeller attack—a sophisticated method for recovering private edges—HETERORR reduced the attacker's success rate (ROC-AUC) from 0.91 to approximately 0.52–0.54, effectively reducing the attack to the level of a random guess.
  • Visual Privacy: Qualitative analysis showed that even if an attacker attempted to reconstruct raw images from the node embeddings, the LDP-processed data rendered the resulting reconstructions unrecognizable.

Discussion and Future Work

HETERORR demonstrates that heterogeneity is essential for practical DP in GNNs. By identifying and protecting "utility-heavy" features and using public edges as structural anchors, the framework maintains high performance while providing robust defense.

However, certain limitations remain. The calculation of SHAP scores currently relies on pre-trained models from public datasets; if no relevant public data is available, bootstrapping the importance scores without leaking privacy remains a challenge. Additionally, the MCMC sampling required for EDGERR may face scalability issues on massive, billion-node graphs. Future research will focus on optimizing the computational overhead of hierarchical modeling and exploring adaptive importance scoring in fully private settings.

Summary updated

Abstract

Graph neural networks (GNNs) are susceptible to privacy inference attacks (PIAS) given their ability to learn joint representation from features and edges among nodes in graph data. To prevent privacy leakages in GNNs, we propose a novel heterogeneous randomized response (HeteroRR) mechanism to protect nodes’ features and edges against PIAS under differential privacy (DP) guarantees, without an undue cost of data and model utility in training GNNs. Our idea is to balance the importance and sensitivity of nodes’ features and edges in redistributing the privacy budgets since some features and edges are more sensitive or important to the model utility than others. As a result, we derive significantly better randomization probabilities and tighter error bounds at both levels of nodes’ features and edges departing from existing approaches, thus enabling us to maintain high data utility for training GNNs. An extensive theoretical and empirical analysis using benchmark datasets shows that HeteroRR significantly outperforms various baselines in terms of model utility under rigorous privacy protection for both nodes’ features and edges. That enables us to defend PIAs in DP-preserving GNNs effectively.
BibTeX
@inproceedings{tran2022heterogeneous,
  author = {Khang Tran and Phung Lai and NhatHai Phan and Issa Khalil and Yao Ma and Abdallah Khreishah and My T. Thai and Xintao Wu},
  title = {{Heterogeneous Randomized Response for Differential Privacy in Graph Neural Networks}},
  booktitle = {Big Data},
  year = {2022},
  url = {https://openreview.net/forum?id=u3M99cvLWth},
}
Figure