Erase Then Rectify: A Training-Free Parameter Editing Approach for Cost-Effective Graph Unlearning

Zhe-Rui Yang, Jindong Han, Chang-Dong Wang, Hao Liu

Abstract

Machine unlearning for Graph Neural Networks (GNNs) is computationally intensive due to the recursive nature of message passing, where the influence of a single node propagates throughout its neighborhood. We present Erase Then Rectify (ETR), a training-free framework that achieves efficient unlearning through strategic parameter editing. ETR utilizes a neighborhood-aware erase stage to neutralize the influence of target data and a rectification stage to restore model utility via local gradient approximation. Experimental results demonstrate that ETR provides up to a 4583.9x speedup over retraining while maintaining high predictive accuracy and significantly reducing memory overhead, particularly on large-scale graphs where traditional methods often fail.

Introduction

In response to data privacy regulations like GDPR, the "right to be forgotten" has become a critical requirement for machine learning models. Machine unlearning aims to remove the influence of specific data points without full retraining. However, this is uniquely challenging for Graph Neural Networks (GNNs). Unlike independent data points, graph nodes are interconnected; message-passing mechanisms ensure that a node's information is aggregated into its neighbors' representations. Consequently, deleting a node requires scrubbing its residual influence from the entire affected subgraph. Existing solutions often rely on expensive retraining or fine-tuning, which are impractical for massive real-world networks.

Methodology

The Erase Then Rectify (ETR) framework addresses these challenges through a two-stage, training-free approach that treats unlearning as a parameter editing problem rather than an optimization problem.

Overview of the ETR framework, illustrating the two-stage process of neighborhood-aware parameter editing and model utility enhancement.

1. The Erase Stage (Neighborhood-Aware Editing)

ETR identifies model parameters responsible for "memorizing" the target nodes using the Fisher Information Matrix (FIM). To account for the propagation of influence, the method considers the $k$-hop neighbors of the unlearned nodes. Rather than zeroing out sensitive parameters, ETR "dampens" them to neutralize specific influences while preserving the model's general knowledge. Theoretical analysis supports that masking critical parameters effectively minimizes the distance between the edited model and a retrained-from-scratch baseline.

2. The Rectify Stage (Model Utility Enhancement)

Parameter editing can inadvertently degrade performance on the remaining data. ETR introduces a "one-step" rectification to restore utility. It approximates the model's gradient on the remaining dataset using only the local subgraphs of the deleted nodes. This allows the model to update its weights to fit the remaining graph structure without processing the entire dataset, maintaining both efficiency and data privacy.

Experimental Evaluation

ETR was evaluated across seven public datasets, ranging from small-to-medium citation graphs (PubMed, CiteSeer, Cora, CS, Physics) to large-scale benchmarks (ogbn-arxiv and ogbn-products). The study compared ETR against several baselines, including Retrain, GIF, MEGU, and GNNDelete, using GCN and GAT as backbone architectures.

Results and Discussion

ETR demonstrates superior performance across efficiency, memory usage, and utility metrics.

Performance comparison on large-scale datasets (ogbn-arxiv and ogbn-products), highlighting ETR's efficiency and robustness against Out-of-Memory (OM) errors.
  • Efficiency: ETR achieved an average speedup of 4583.9x compared to retraining. On the ogbn-arxiv dataset, ETR completed the unlearning task in approximately 0.1 seconds, whereas retraining required over 150 seconds.
  • Scalability and Memory: ETR utilized 4.2x less memory than retraining. Crucially, on the largest dataset (ogbn-products), most baseline methods failed due to "Out of Memory" (OM) errors, while ETR remained operational and efficient.
  • Utility (F1 Score): Despite being training-free, ETR consistently matched or exceeded the predictive accuracy of other unlearning methods. It also successfully removed the influence of malicious edges in adversarial tests, returning the model to a "clean" state.

Conclusion

Erase Then Rectify (ETR) represents a significant advancement in graph unlearning by shifting the paradigm from optimization-based fine-tuning to training-free parameter editing. Its ability to handle large-scale graphs with minimal computational overhead makes it a practical solution for privacy-compliant GNN deployment. Future research may extend this approach to more complex scenarios, such as partial attribute unlearning and multi-task graph learning environments.

Summary updated

BibTeX
@inproceedings{yang2025erase,
  author = {Zhe-Rui Yang and Jindong Han and Chang-Dong Wang and Hao Liu},
  title = {{Erase Then Rectify: A Training-Free Parameter Editing Approach for Cost-Effective Graph Unlearning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i12.33423},
}
Figure