TL;DR
Graph generative diffusion models (GGDMs) excel at synthesizing complex network data, but do they memorize their training sets? This paper presents the first systematic study of privacy leakage in GGDMs, introducing three highly effective black-box inference attacks that can reconstruct training graphs, steal global properties, or determine dataset membership. To counter these threats, the authors propose a novel saliency-based edge-flipping defense that protects privacy with minimal impact on generation quality.
What Problem Does This Paper Address?
Diffusion models have expanded far beyond image generation, recently becoming a dominant paradigm for generating complex graph structures (GGDMs). These models are incredibly useful for synthesizing data in fields like molecular discovery, social network analysis, and healthcare. However, training them requires massive datasets that often contain highly sensitive or proprietary information—such as private relationships, patient health records, or confidential biochemical structures.
While privacy risks in image-based diffusion models are well-documented, GGDMs have remained a blind spot. Existing privacy attacks designed for traditional graph neural networks (GNNs) rely on classification outputs (probability vectors) or node embeddings, neither of which are available in a black-box graph generation setting. Furthermore, GGDMs generate entirely new graphs from a learned distribution, meaning there is no one-to-one mapping between a training graph and a generated graph. This paper tackles the challenge of extracting sensitive training information using only the final, independently generated graphs.
Methods
The authors design three distinct black-box inference attacks, assuming the attacker can only query the target model to obtain generated graphs:
- Graph Reconstruction Attack (GRA): This attack exploits the tendency of generative models to over-produce samples they have memorized. The attacker generates a large pool of synthetic graphs, uses a representation-learning graph alignment technique (REGAL) to find the most structurally similar pairs, and performs an intersection operation on their edge sets to isolate and reconstruct the underlying training graph.
- Property Inference Attack (PIA): A straightforward but highly effective approach where the attacker directly calculates macro-level statistical properties (such as graph density, average node degree, triangle counts, and graph arboricity) from a batch of generated graphs to accurately estimate the properties of the hidden training set.
- Membership Inference Attack (MIA): To determine if a specific target graph was part of the training set, the authors employ shadow-model training. They convert generated graphs into Anonymous Walk Embeddings (AWEs)—which capture structural patterns without relying on node identities—and train a Multi-layer Perceptron (MLP) classifier to distinguish between member and non-member graph structures based on similarity features.
Saliency-Based Defenses
To mitigate these threats, the paper introduces two defense mechanisms (pre-processing on training data, or post-processing on generated data). Instead of adding destructive random noise, they use a Graph Convolutional Network (GCN) to compute gradient saliency maps of the graphs. By identifying and flipping only the least important edges and non-edges, the defense successfully disrupts the structural patterns exploited by the attacks while preserving the overall utility of the generative model.
Datasets
The attacks and defenses were rigorously evaluated against three state-of-the-art GGDMs (EDP-GNN, GDSS, and Digress) across six real-world benchmark datasets:
- MUTAG and QM9 (Molecular datasets)
- ENZYMES (Protein dataset)
- Ego-small (Citation network)
- IMDB-BINARY and IMDB-MULTI (Social networks)
Key Insights and Ideas
- Topological Memorization: Just as image diffusion models replicate specific pixel clusters, GGDMs replicate exact structural motifs. The overlapping edges between highly similar generated graphs are a dead giveaway for actual training instances.
- Macro-Properties Leak Effortlessly: You don't need complex machine learning to steal global dataset traits. Simply averaging properties across a batch of generated graphs provides a near-perfect reflection of the training set's macro-statistics.
- Structural Fingerprints Persist: Even when node identities are completely stripped or permuted, structural embedding techniques like AWEs can still capture enough unique topological "fingerprints" to reliably identify dataset members.
- Smart Perturbation Beats Random Noise: Traditional defenses like Differential Privacy (DP-SGD) or random edge-flipping severely degrade graph generation quality. Targeting the least significant edges via saliency maps provides a vastly superior defense-utility trade-off.
Key Results
- High-Fidelity Reconstruction: The Graph Reconstruction Attack achieved an F1 score of up to 0.99 on structural recovery. Remarkably, up to 36% of the original training graphs were exactly recovered from the generated outputs alone.
- Near-Perfect Property Estimation: For the Property Inference Attack, the difference between the actual and inferred average graph degrees was incredibly small—dropping to as low as 0.005 on the IMDB-MULTI dataset.
- Robust Membership Detection: The MIA achieved an Area Under the Curve (AUC) of up to 0.999 in non-transfer settings, and maintained an AUC of up to 0.96 even when the shadow model and target model were trained on entirely different datasets.
- Defense Success: The proposed saliency-based defenses successfully dropped the MIA AUC close to a random-guess level (~0.53) with a modest 10% perturbation ratio, maintaining significantly higher model utility than DP-SGD baselines.
Limitations and Future Work
While highly effective, the proposed reconstruction and property attacks require generating a relatively large number of synthetic graphs (e.g., 1,000) to perform stable alignment and property estimation. In practice, commercial MLaaS platforms might implement rate-limiting to mitigate this.
For future work, the authors plan to explore the vulnerability of GGDMs to other sophisticated attack vectors, such as model inversion and substructure inference attacks aimed at extracting specific subgraphs like strongly connected components or specialized motifs.
Summary updated