Graph Unlearning via Embedding Reconstruction - A Range-Null Space Decomposition Approach

Hang Yin, Zipeng Liu, Xiaoyong Peng, Liyao XiangarXiv 2025 · DOI

Introduction

In the era of "the right to be forgotten" and strict data privacy laws like GDPR, machine learning models face a difficult challenge: how to "unlearn" specific data points without discarding the entire model. While this is relatively straightforward for independent data points, it is significantly more complex for Graph Neural Networks (GNNs). In a graph, nodes are "entangled" through message passing; a single node’s features are aggregated into the representations (embeddings) of its neighbors and their subsequent neighborhoods. Consequently, simply removing a node from the graph does not erase its influence, which remains baked into the model's weights and the embeddings of surrounding nodes.

Existing solutions typically fall into two categories: full retraining, which is computationally prohibitive ($O(n^2)$ complexity), or influence functions, which often struggle with the structural disturbances caused by node and edge deletion. This paper proposes a middle ground: a method that matches the speed of influence-based approaches while maintaining the accuracy of retraining.

Methodology: Embedding Reconstruction

The core innovation of this approach is shifting the focus from updating model weights to embedding reconstruction. Instead of retraining the entire GNN, the authors propose a rectification module that modifies the embeddings produced by the original model to "deduct" the influence of deleted nodes.

1. Modeling Interaction

The framework uses Multi-Layer Perceptrons (MLPs) to model the interactions between nodes. If node A influenced node B during the initial training, the unlearning process identifies and subtracts that specific interaction from the final embedding.

2. Range-Null Space Decomposition (RND)

GNNs typically reduce data dimensionality across layers, making the reconstruction of high-dimensional inputs from low-dimensional outputs an "ill-posed" problem. To address this, the authors employ Range-Null Space Decomposition (RND). This technique projects embeddings into two distinct spaces:

  • Range Space: Captures the information the GNN actively utilizes.
  • Null Space: Captures the information discarded during dimensionality reduction.

By combining these spaces, the model can more accurately estimate the original influence of a deleted node on its neighbors.

Architecture of the proposed unlearning framework, highlighting the Range-Null Space Decomposition (RND) for rectifying node interactions.

3. Loss Functions

The rectification module is optimized using three primary loss functions:

  • Interaction Loss ($L_{Inter}$): Ensures reconstructed embeddings align with the previous layer's distribution.
  • Local Search Loss ($L_{Local}$): Prevents unnecessary changes to nodes distant from the unlearned data.
  • Gradient Ascent ($L^+$): Pushes the model away from the labels of the deleted nodes to ensure task-specific unlearning.

Experimental Results

The method was evaluated on standard benchmark datasets, including Cora, Citeseer, and the large-scale CS (Coauthor) graph, across four GNN backbones: GCN, GAT, SGC, and GIN.

Efficiency and Utility

The proposed method demonstrates massive speedups compared to retraining. On the CS dataset, retraining required over 100 seconds, whereas this method completed the task in approximately 1.23 seconds—an 88x improvement. Despite this speed, the model utility (measured by F1-score) remained nearly identical to a model retrained from scratch.

Performance comparison (F1 Score) across different GNN architectures on Cora and Citeseer datasets, demonstrating the effectiveness of RND compared to retraining.

Privacy and Robustness

Using Membership Inference Attacks (MIA), the authors confirmed that the unlearning process effectively erases the trace of deleted nodes. The attack success rate was reduced to near 0.5, indicating that an attacker cannot distinguish whether a node was part of the original training set.

Conclusion and Future Work

This embedding reconstruction approach provides a scalable and accurate solution for graph unlearning. While highly effective for minor proportions of node deletions, the authors note that extremely high unlearning ratios (above 30-50%) may require further structural adjustments. Future research will focus on extending this framework to heterogeneous and dynamic graph environments.

Summary updated

BibTeX
@misc{yin2025graph,
  author = {Hang Yin and Zipeng Liu and Xiaoyong Peng and Liyao Xiang},
  title = {{Graph Unlearning via Embedding Reconstruction - A Range-Null Space Decomposition Approach}},
  year = {2025},
  eprint = {2508.02044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02044},
}
Figure