Abstract
Graph Neural Networks (GNNs) have achieved remarkable success in various real-world applications. However, GNNs may be trained on undesirable graph data, which can degrade their performance and reliability. To enable trained GNNs to efficiently unlearn unwanted data, a desirable solution is retraining-based graph unlearning, which partitions the training graph into subgraphs and trains sub-models on them, allowing fast unlearning through partial retraining. However, the graph partition process causes information loss in the training graph, resulting in the low model utility of sub-GNN models. In this paper, we propose GraphRevoker, a novel graph unlearning framework that better maintains the model utility of unlearnable GNNs. Specifically, we preserve the graph property with graph property-aware sharding and effectively aggregate the sub-GNN models for prediction with graph contrastive sub-model aggregation. We conduct extensive experiments to demonstrate the superiority of our proposed approach.
Introduction
As Graph Neural Networks (GNNs) become ubiquitous in social networks and recommendation systems, the need for "machine unlearning" has grown. Whether it's a user exercising their "right to be forgotten," removing malicious data, or purging low-quality noise, we need a way to make a trained model "forget" specific data points.
The gold standard for unlearning is retraining from scratch without the unwanted data, but this is computationally prohibitive for large graphs. Current alternatives fall into two camps: approximate unlearning, which is fast but often leaves "residual traces" of deleted data, and retraining-based (SISA) unlearning. In SISA, the graph is partitioned into independent "shards," and sub-models are trained on each. To unlearn, only the affected sub-model is retrained. While exact, this usually destroys the graph's global structure and semantic balance, leading to a significant drop in predictive performance (model utility).
The GraphRevoker Framework
GraphRevoker addresses the utility-efficiency trade-off through two main innovations: property-aware sharding and contrastive sub-model aggregation.
Graph Property-Aware Sharding
Instead of randomly splitting the graph, GraphRevoker uses a differentiable partition network to optimize for three objectives simultaneously:
- Unlearning Time: It balances the shards so that the expected time to retrain any single sub-model is minimized.
- Structural Preservation: It minimizes "edge-cuts" (the number of connections broken between shards) to keep local communities intact.
- Semantic Preservation: It uses an entropy-based loss to ensure each shard maintains a diverse distribution of node labels, preventing sub-models from becoming biased.
Graph Contrastive Sub-model Aggregation
Once sub-models are trained on their respective shards, their predictions must be combined. Standard methods like simple averaging ignore the global graph structure. GraphRevoker introduces a lightweight aggregator that uses:
- Attentive Fusion: Learns which sub-models are most relevant for a specific node's prediction.
- Local-Global Contrastive Learning: It treats the aggregated embedding as a "global view" and individual sub-model outputs as "local views," using a contrastive loss (InfoNCE) to ensure they remain consistent.
- Local-Local Reconstruction: It specifically tries to "recover" the information lost from the edges that were cut during the sharding process.
Experimental Evaluation
The authors evaluated GraphRevoker on four standard graph benchmarks: Cora, Citeseer, LastFM-Asia, and Flickr.
Key Results
- Superior Utility: Across all datasets and GNN architectures (GCN, GAT, SAGE, etc.), GraphRevoker consistently outperformed existing unlearning frameworks like SISA and GraphEraser in F1-score. For example, on the Cora dataset using GCN, GraphRevoker achieved a 78.75% F1-score, compared to SISA's 55.02%.
- Faster Unlearning: Despite being more accurate, it is also faster. On the Flickr dataset, GraphRevoker's unlearning process took roughly 57 seconds, while SISA took 139 seconds and retraining from scratch took 177 seconds.
- Robustness to Poisoning: GraphRevoker can effectively "heal" a model poisoned by malicious label attacks, regaining most of the original model's performance after unlearning the bad nodes.
Conclusion
GraphRevoker demonstrates that balancing structural integrity with label diversity is crucial for effective graph unlearning. By using contrastive learning to "stitch" isolated sub-models back together, the framework allows the ensemble to act more like a single global model. While a performance gap remains compared to full retraining, GraphRevoker offers a significant improvement in the utility-efficiency trade-off for privacy-preserving and robust graph learning.
Summary updated