Abstract
As privacy regulations like GDPR mandate "the right to be forgotten," Graph Neural Networks (GNNs) require efficient mechanisms to remove specific training data. Traditional graph unlearning often relies on partitioning graphs into independent shards, which compromises structural integrity and necessitates expensive retraining. We propose the Community-centric Graph Eraser (CGE), a framework that leverages Graph Structure Mapping Unlearning (GSMU). By condensing communities into a simplified mapped graph, CGE preserves global structural information while enabling rapid, node-level updates for unlearning requests. Our evaluation across four real-world datasets shows that CGE achieves superior model utility and reduces unlearning time by orders of magnitude compared to state-of-the-art baselines.
Introduction
With the rise of strict privacy laws, AI models must be capable of removing the influence of specific training data upon request. In the context of Graph Neural Networks (GNNs), this task is particularly challenging because nodes are interconnected; removing a single node can significantly alter the local neighborhood and the overall graph topology.
The current state-of-the-art follows the BP-SM-TA (Balance Partition-Submodel-Training and Aggregation) paradigm. This involves "shredding" the graph into independent shards, training separate submodels, and aggregating their outputs. However, this approach suffers from two major flaws: low structural utilization due to lost inter-shard connections and high computational complexity when multiple submodels require retraining.
Methodology: Community-centric Graph Eraser (CGE)
CGE shifts the focus from arbitrary partitioning to Graph Structure Mapping Unlearning (GSMU). Instead of breaking the graph apart, CGE simplifies it into a representative "mapped graph" that retains the essential structural skeleton.
The CGE process consists of three primary phases:
- Community Detection: Hierarchical algorithms (Louvain and OSLOM) identify natural, highly interconnected clusters of nodes.
- Graph Mapping: Each community is compressed into a single "mapped node." Features are extracted via Principal Component Analysis (PCA), labels are assigned through majority voting, and edges between mapped nodes are established based on robustness scores to preserve the global graph structure.
- Node-Level Unlearning: Because the GNN is trained on the simplified mapped graph, an unlearning request for a specific original node only requires updating its corresponding mapped node. This transforms a global retraining problem into a localized update.
Experimental Results
We evaluated CGE on four real-world datasets (Cora, Citeseer, CS, and Reddit) using GCN, GAT, and GraphSAGE backbones.
Model Utility and Noise Reduction
CGE consistently outperformed previous methods like GUIDE and GraphEraser. On the Reddit dataset, CGE achieved an average increase in Macro F1 score of 11.56% over GUIDE. Interestingly, CGE occasionally outperformed training from scratch on the full graph, suggesting that the community mapping process effectively filters out local noise and outliers.
Computational Efficiency
CGE provides exponential speedups in unlearning time. By reducing the number of training nodes (e.g., from 18,000 to 1,756 on the CS dataset), the computational overhead for both training and unlearning is drastically lowered.
As shown in the performance plots, while baselines like GraphEraser and GUIDE see time consumption scale significantly with the unlearning ratio, CGE remains highly efficient. On the Reddit dataset, unlearning took only 49.52 seconds with CGE, compared to over 3,100 seconds for GraphEraser.
Conclusion
Community-centric Graph Eraser (CGE) represents a significant advancement in graph unlearning. By prioritizing structural preservation through community mapping, it achieves a superior balance of model utility, privacy (verified via Membership Inference Attacks), and computational efficiency. Future work will explore deep learning-based community detection to further scale the framework for billion-node graphs.
Summary updated