In the era of the "Right to be Forgotten," machine learning models face a significant regulatory and ethical challenge: how to efficiently delete specific data points from their parameters without retraining the entire system from scratch. While this process is relatively straightforward for independent data points like images or text documents, it is notoriously difficult for Graph Neural Networks (GNNs).
Research presented at AISTATS 2023 by scholars from Penn State introduces PROJECTOR, a novel framework that utilizes geometric projection to scrub specific node information from GNNs efficiently. By bypassing the complex dependencies inherent in graph structures, PROJECTOR provides a mathematical guarantee of data removal while remaining orders of magnitude faster than traditional retraining.
The Challenge: The Ripple Effect of Node Dependency
Most machine learning models assume that data points are independent and identically distributed (i.i.d.). In such cases, deleting a single training point has a localized impact. Graphs, however, are defined by their connectivity. In a GNN, a node’s representation is computed by aggregating information from its neighbors over multiple "hops."
This creates a problem known as node dependency. If a request is made to "forget" Node A, the model must account for the fact that Node A’s features have influenced the representations of its neighbors, their neighbors' neighbors, and so on. To truly unlearn Node A, a model typically has to account for this recursive ripple effect. Existing solutions generally fall into two categories, both of which are flawed:
- Retraining from scratch: Guaranteed to be clean, but prohibitively slow for large-scale graphs.
- Approximate unlearning: Faster, but often leaves "ghost" traces of the deleted data or requires injecting performance-degrading noise to mask the remaining information.
The PROJECTOR Framework
PROJECTOR addresses these issues by shifting the problem from the graph structure to the weight space. The core logic of the framework follows a geometric intuition: if the model's weights are projected onto a subspace that is orthogonal to the features of the nodes to be forgotten, those nodes can no longer influence the model's output.
Core Methodology
- Linear Subspace Projection: In linear GNNs, model weight parameters ($w$) naturally exist within the linear span of the node features. PROJECTOR identifies the subspace defined by the remaining nodes and projects the pre-trained weights onto this "safe" subspace.
- Bypassing Dependency: Because the projection is applied directly to the input feature space, the method avoids the recursive "ripple effect" of neighbor dependencies. The geometric construction ensures that the unlearned weights contain zero information from the deleted node features.
- Computational Efficiency: To handle massive graphs, the authors utilize the Woodbury matrix identity. This allows the projection to be computed using only the features of the deleted nodes, rather than requiring a full scan of the entire graph, making the process extremely lightweight.
- Non-linear Extension: While the mathematical guarantee of perfect removal is rooted in linear GNNs, the authors extend the method to non-linear structures. They utilize a pre-trained Multi-Layer Perceptron (MLP) as a feature extractor combined with an "adaptive diffusion" layer to maintain high performance while keeping the unlearning process mathematically tractable.
Experimental Verification
The researchers evaluated PROJECTOR on several standard large-scale benchmarks, including academic networks (Cora, Pubmed, OGB-Arxiv) and social/product networks (OGB-Products, Reddit, Flickr).
To verify the effectiveness of the unlearning, the authors introduced a Feature Injection Test. They injected a "secret" binary feature into the nodes designated for deletion. After the unlearning process, they measured whether the weight assigned to that secret channel dropped to exactly zero. PROJECTOR passed this test, whereas other popular approximate methods, such as Influence-based or Fisher unlearning, failed to completely eliminate the signal.
Key Results
- Speed: PROJECTOR demonstrates massive efficiency gains. On the OGB-Arxiv dataset, PROJECTOR completed the unlearning process in 0.07 seconds. For comparison, retraining the model from scratch took nearly 2,000 seconds, and the "GraphEraser" baseline took over 1,800 seconds.
- Accuracy: The method maintains high utility. PROJECTOR's F1-scores remained within 0.1% to 0.2% of a model retrained from scratch. Interestingly, in some instances, it slightly outperformed retraining, likely because the projection acts as a form of importance sampling on the remaining data.
- Robustness: The model remained stable even when unlearning up to 20% of the nodes in the graph, a threshold where standard GNNs typically see significant performance fluctuations.
Limitations and Future Directions
While PROJECTOR represents a significant leap forward, it has specific constraints. The "perfect removal" guarantee is mathematically rigorous for linear GNNs; for fully non-linear, deep GNNs, unlearning remains a more complex challenge. Additionally, PROJECTOR focuses on removing the influence of node features. While this addresses many privacy concerns, unlearning the existence of an edge (the relationship between two nodes) is a distinct problem that requires further exploration.
Finally, the authors noted that the projection logic used here is not limited to graphs; it could potentially be adapted for other models like Support Vector Machines (SVMs), suggesting a broader application for geometric unlearning in machine learning.
Reference: Cong, W., & Mahdavi, M. (2023). Efficiently Forgetting What You Have Learned in Graph Representation Learning via Projection. Proceedings of the 26th International Conference on Artificial Intelligence and Statistics (AISTATS).
Summary updated