NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph Unlearning

Min Chen, Zhikun Zhang, Tianhao Wang, Michael Backes, Mathias Humbert, Yang Zhang

Abstract

As privacy regulations like the General Data Protection Regulation (GDPR) grant users the "right to be forgotten," machine learning models must find efficient ways to "unlearn" specific data points. Retraining from scratch is computationally expensive, especially for complex structures. This paper introduces GraphEraser, the first framework specifically designed for Graph Neural Networks (GNNs). By utilizing balanced graph partitioning and a novel learning-based aggregation method, GraphEraser enables data removal up to 36x faster than retraining while maintaining high model accuracy.

The Challenge of Graph Unlearning

Machine unlearning is the process of removing the influence of specific training samples from a model. While retraining from scratch is the most exact method, it is often unfeasible for large-scale datasets. Existing approximate unlearning methods, such as the SISA (Sharded, Isolated, Sliced, and Aggregated) framework, work well for independent data like images or text by randomly splitting data into shards.

However, GNNs rely heavily on the structural connections between nodes. Randomly partitioning a graph severs the edges necessary for GNNs to learn, leading to significant utility loss. Furthermore, unbalanced partitions—where one shard is disproportionately larger than others—bottleneck the unlearning process, as retraining the largest shard remains time-consuming.

The GraphEraser Framework

GraphEraser introduces three main innovations to address these challenges:

1. Balanced Graph Partitioning

To ensure efficiency, every shard should be roughly the same size. The authors developed two strategies to preserve local neighborhoods while enforcing size constraints:

  • Balanced Label Propagation Algorithm (BLPA): A structural approach using community detection to keep tightly connected nodes together while capping shard size.
  • Balanced Embedding k-means (BEKM): A hybrid approach that converts nodes into low-dimensional embeddings capturing both features and structure, then clusters them into equal-sized shards.
The GraphEraser framework overview, illustrating the pipeline from partitioning to learning-based aggregation.

2. Shard Model Training

Each shard is used to train a constituent GNN model in isolation. This isolation ensures that when a node is deleted, only the specific shard containing that node needs to be retrained, drastically reducing computation time.

3. Learning-based Aggregation (LBAggr)

Standard frameworks often use simple majority voting to combine shard predictions. GraphEraser instead employs a Learning-based Aggregation (LBAggr) method. It learns an importance score for each shard by training a small attention-like mechanism on a subset of data. This allows the system to identify which shards are most reliable for specific predictions, significantly boosting final accuracy.

Experimental Evaluation

The framework was evaluated on five widely-used GNN benchmarks, including citation networks (Cora, Citeseer, Pubmed) and coauthor networks (CS, Physics).

Distribution of nodes across shards, highlighting the importance of balanced partitioning for unlearning efficiency.

Key Results

  • Speedup: GraphEraser achieved unlearning time improvements ranging from 2.06x on small datasets to 35.94x on the largest dataset compared to retraining from scratch.
  • Utility: Compared to random partitioning (the SISA baseline), GraphEraser improved the Micro F1 score by up to 62.5%.
  • Aggregation Power: The LBAggr method outperformed standard majority voting by up to 112% in terms of F1 score, proving that intelligent aggregation is vital for sharded GNNs.

Key Insights and Conclusion

The success of GraphEraser highlights that for graph data, how you split the data is more critical than the unlearning algorithm itself. Preserving local neighborhoods within balanced shards allows GNNs to maintain predictive power while ensuring rapid updates.

While GraphEraser is a significant step forward, future work remains in providing theoretical guarantees for "exact" unlearning in non-convex GNNs and handling dynamic graphs where nodes are constantly added and removed. Nonetheless, GraphEraser provides a robust, privacy-preserving solution that satisfies the "right to be forgotten" without sacrificing model performance.

Summary updated

BibTeX
@inproceedings{chen2021graph,
  author = {Min Chen and Zhikun Zhang and Tianhao Wang and Michael Backes and Mathias Humbert and Yang Zhang},
  title = {{Graph Unlearning}},
  booktitle = {CCS},
  year = {2021},
  doi = {10.1145/3548606.3559352},
}
Figure