Abstract
Most social networks can be modeled as heterogeneous graphs, where advanced graph learning methods exploit rich node properties and topological relationships. However, this increased representational power often leads to greater privacy leakage. Existing privacy-preserving methods typically focus on protecting single types of node attributes or relationships, neglecting high-order semantic information. To address this, we propose HeteSDG, a novel Heterogeneous graph neural network with Semantic-aware Differential privacy Guarantees. HeteSDG provides a double privacy guarantee for both graph features and topology. We define a membership inference attack with semantic enhancement (MIS) and design a two-stage mechanism—feature attention personalized mechanism and topology gradient perturbation—to defend against it. A bi-level optimization pattern is utilized to balance noise perturbation and learning performance. Experiments on four public benchmarks demonstrate the privacy protection capability and generalization of HeteSDG.
Introduction
In our hyper-connected world, data is rarely a simple list; it is a complex web of relationships. Whether it is a citation network linking researchers to conferences or an e-commerce platform connecting users to products, these structures are best modeled as Heterogeneous Graphs—graphs containing multiple types of nodes and edges. While Heterogeneous Graph Neural Networks (HGNNs) are exceptionally powerful at mining these structures for downstream tasks like recommendation, they also present significant privacy risks. The rich semantic information embedded in these representations can be exploited by malicious actors to infer sensitive individual data.
The Vulnerability: Semantic-Aware Attacks
Traditional privacy-preserving methods for graphs are often designed for homogeneous structures where all nodes are of the same type. These methods fail to account for the high-order semantic relationships, or "meta-paths," inherent in heterogeneous data. For example, in a movie database, a "User" is linked to a "Movie," which is linked to a "Director."
The authors identify a specific vulnerability: Membership Inference Attacks with Semantic enhancement (MIS). In an MIS attack, an adversary uses meta-paths (e.g., User A → Item 1 → Store → Item 2 → User C) as side background knowledge to infer whether a specific individual's data was included in the model's training set.
The HeteSDG Framework
To counter these threats, the HeteSDG framework introduces a two-stage defense mechanism grounded in Differential Privacy (DP):
1. FeatADP: Feature Attention Personalized Mechanism
Rather than applying uniform noise to all node features—which can significantly degrade model utility—FeatADP calculates node "sensitivity" based on semantic neighbors. By utilizing a heterogeneous attention mechanism, the model identifies which neighbors contribute most to a node's representation and injects personalized Gaussian noise accordingly. This ensures that influential nodes receive stronger protection without drowning out the signal from the rest of the graph.
2. TopoGDP: Topology Gradient Perturbation Mechanism
To protect the graph's structure (the specific connections between nodes), HeteSDG employs a Heterogeneous Variational Graph Auto-Encoder (VGAE). During the training of the link predictor, the framework clips and perturbs gradients. This ensures that the final learned topology does not leak individual connection data, providing a robust defense against Topology MIS attacks.
3. Bi-level Optimization for Privacy-Utility Trade-off
Privacy is often a zero-sum game with performance. To find the optimal balance, HeteSDG uses a bi-level optimization strategy. This automatically allocates the global privacy budget (ε) between the feature module (ε_f) and the topology module (ε_s), ensuring that the noise added is precisely calibrated for the specific dataset and task.
Experimental Evaluation
The framework was evaluated on four public benchmarks: ACM and DBLP (citation networks), Amazon (e-commerce), and IMDB (movie data).
Key results include:
- Attack Resilience: HeteSDG reduced the accuracy of membership inference attacks by up to 40.7% compared to non-private baselines when tested against Naive Bayesian and KNN attackers.
- High Utility Maintenance: Despite strict privacy guarantees (ε=1), HeteSDG achieved an F1-score of 89.31% on the ACM dataset. Remarkably, it outperformed some non-private state-of-the-art models like HGT and RGCN, proving that privacy does not always necessitate a loss in accuracy.
- Optimization Success: The bi-level optimization consistently outperformed a standard 50/50 budget split, confirming that features and topology require different levels of protection depending on the graph's characteristics.
Conclusion
HeteSDG represents a significant step forward in securing heterogeneous graph data. By recognizing that semantics are a "double-edged sword"—providing both utility and a vector for attack—the framework uses those same semantics to calibrate privacy protections. While challenges remain in scaling to dynamic, industrial-sized graphs, HeteSDG provides a robust foundation for privacy-preserving graph learning in complex, real-world environments.
Summary updated