Preserving Node-level Privacy in Graph Neural Networks

Zihang Xiang, Tianhao Wang, Di Wang

TL;DR

This paper introduces HeterPoisson, a novel protocol for training Graph Neural Networks (GNNs) with formal node-level differential privacy. By using a specialized sampling strategy that offsets the out-sized impact of high-degree nodes, the authors achieve significantly better accuracy than previous methods in high-privacy regimes while proving that alternative "private embedding" approaches face an inherent mathematical "utility barrier."

What Problem Does This Paper Address?

Differential Privacy (DP) is the gold standard for protecting individual data in machine learning, but applying it to graphs is notoriously difficult. In standard tabular or image data, instances are independent. In a graph, nodes are interconnected via edges.

When you train a GNN, the "message-passing" mechanism causes nodes to aggregate information from their neighbors. This means a single sensitive node's information "leaks" into the representations of all its neighbors. Protecting node-level privacy (ensuring an observer can't tell if a specific node was part of the training set) is much harder than edge-level privacy because one node's presence can fundamentally change the "messages" sent throughout its local neighborhood. Existing solutions either add too much noise (destroying utility) or have fundamental flaws in their privacy math.

Methods

The authors propose a solution centered on a sampling routine called HeterPoisson. Its design is based on a key observation: a node's impact on a GNN model is roughly proportional to its out-degree (how many other nodes it points to).

  1. Heterogeneous Sampling: Instead of uniform sampling, HeterPoisson samples neighbors with a probability inversely proportional to their out-degree. This "muffles" the influence of high-impact nodes, naturally bounding the sensitivity of the model.
  2. Sub-graph Batching: The protocol generates batches of sub-graphs. Each sub-graph is treated as a "per-example" unit. The gradients for these sub-graphs are computed, clipped to a fixed $\ell_2$ norm (the "separate-then-bound" approach), and then aggregated with Gaussian noise.
  3. Privacy Accounting: The authors prove privacy guarantees by reducing the problem to a Mixture of Gaussians (MoG) mechanism and using Renyi Differential Privacy (RDP) to track the privacy budget over multiple training iterations.
  4. Transductive Inference Protection: To prevent privacy leaks during testing (where test nodes might aggregate from sensitive training nodes), the protocol restricts test-time aggregation to only include other non-training nodes.

Datasets

The authors evaluated their method on five real-world graph datasets commonly used in GNN research:

  • Social Networks: Facebook, Twitch, and Reddit.
  • Product/Citation Networks: Amazon and PubMed.

These datasets vary significantly in scale (from 9K to 232K nodes) and density, providing a robust test for the algorithm's scalability and generalizability.

Key Insights and Ideas

  • The "Out-Degree" Rule: The most intuitive "aha moment" is the empirical verification that a node's influence on the GNN gradient is tied to its out-degree. By treating edges as "channels" for impact, the authors justify their inverse-probability sampling strategy.
  • The Utility Barrier: A major contribution is a formal "Impossibility Result." The authors prove that any method attempting to protect privacy by first creating "private node embeddings" (like the GAP framework) faces a hard mathematical limit on precision. In high-privacy settings, these private embeddings become indistinguishable from random noise, making them fundamentally inferior to gradient-perturbation methods.
  • S1 vs. S2 Privacy Models: The paper clarifies the "node-level" definition. They focus on a "participation" model (S2): does a user choose to join the study? This is more practical than the "existence" model (S1), which assumes adding a node might force other users to follow/unfollow them.

Key Results

  • Superior Accuracy: In high-privacy regimes (e.g., $\epsilon = 2$), the proposed method outperforms existing baselines like GAP and NDP by a wide margin. For example, on the Facebook dataset, it achieved ~74% accuracy while baselines struggled to exceed 50%.
  • Robustness: The authors performed "privacy audits" and membership inference attacks. Their protocol successfully resisted these attacks, with attack accuracy remaining close to random guessing (50%) in private settings.
  • Scalability: The complexity analysis shows that HeterPoisson scales linearly with the number of nodes, making it practical for large-scale real-world graphs.

Limitations and Future Work

  • Static Graphs: The current work assumes the graph structure is static during training. Applying these techniques to dynamic graphs (where nodes and edges appear/disappear over time) remains an open challenge.
  • Heterogeneous Graphs: The method is designed for homogeneous graphs (one type of node/edge). Extending the "impact-based sampling" to graphs with multiple node types would require more complex sensitivity analysis.
  • The S2 Assumption: While the S2 privacy model is practical, it assumes that one user's participation doesn't change the data stored by other users. In some highly interdependent systems, this assumption might be too restrictive.

Summary updated

BibTeX
@inproceedings{xiang2024preserving,
  author = {Zihang Xiang and Tianhao Wang and Di Wang},
  title = {{Preserving Node-level Privacy in Graph Neural Networks}},
  booktitle = {SP},
  year = {2024},
  doi = {10.1109/sp54263.2024.00270},
}
Figure