TL;DR
This paper tackles the challenge of efficiently removing specific data's influence from large knowledge graph (KG) models, a crucial task for privacy compliance. They introduce a novel unlearning method that approximates influence functions using Fisher matrices and zeroth-order optimization, significantly reducing computational cost and memory usage compared to existing methods.
What Problem Does This Paper Address?
The "Right to be Forgotten," mandated by regulations like GDPR, requires the removal of personal data from machine learning models. For large-scale Knowledge Graphs (KGs), which store vast amounts of interconnected information, this unlearning process is computationally prohibitive. Traditional methods often involve retraining models from scratch or calculating complex influence functions that require constructing computational graphs, leading to high time and memory costs. This paper addresses the need for an efficient and scalable KG unlearning method that can remove the influence of specific data points (triplets, entities, or relations) without incurring these prohibitive costs.
Methods
The core of the proposed method lies in approximating the influence function, which quantifies how much a specific data point affects the model's parameters. The authors introduce a two-step approximation strategy:
- Fisher Matrices for Inverse Hessian Approximation: Instead of directly computing the inverse Hessian matrix (a computationally expensive step in traditional influence functions), they use the Fisher Information Matrix (FIM) to approximate it. This is based on the theoretical equivalence between FIM and Hessian under certain assumptions and leverages the Woodbury matrix identity for efficient computation.
- Zeroth-Order Information for Gradient Approximation: To further reduce computational overhead, they approximate the first-order gradients. Instead of relying on the loss function's derivatives (which require computational graphs), they use zeroth-order information (model outputs) and Taylor expansion to estimate gradients. This avoids the need to construct and traverse computational graphs, a major bottleneck in existing methods.
This combined approach allows for efficient calculation of the inverse Hessian-vector products (IHVPs) and gradients, leading to a scalable unlearning algorithm.
Datasets
The paper evaluates their method on three popular KG embedding models (RotatE, TransD, TransH) trained on two benchmark datasets:
- FB15K237
- YAGO3-10
Key Insights and Ideas
- KG Unlearning is Fundamentally Different: The interconnected nature of KGs makes unlearning more complex than for unstructured data. Removing one piece of information can have ripple effects across related entities and relations.
- Computational Bottleneck is Key: The primary challenge in KG unlearning is the computational cost associated with calculating influence functions, particularly the inverse Hessian-vector products (IHVPs).
- Approximation is Necessary and Effective: The paper demonstrates that well-chosen approximations (Fisher matrices and zeroth-order optimization) can significantly reduce computational burden without sacrificing unlearning quality.
- Zeroth-Order Optimization is a Game Changer: By avoiding the explicit computation of gradients through computational graphs, zeroth-order optimization offers a substantial speedup and memory reduction, making unlearning practical for large KGs.
- Model-Agnostic Approach: The proposed method is designed to be model-agnostic, meaning it can be applied to any KG embedding model that uses a smooth loss function.
Key Results
The proposed "ZeroFisher" method demonstrated significant improvements over existing baselines (GIF, WF-KGIF, GNNDelete, Certified Graph Unlearning) in terms of:
- Runtime: ZeroFisher achieved the fastest unlearning times, with one example showing a runtime of 0.48s compared to 9.3s for the best baseline (GIF) on RotatE.
- Memory Usage: The method used substantially less memory, with ZeroFisher consuming only about 25% of the memory used by GIF.
- Unlearning Quality: The performance of models unlearned with ZeroFisher was very close to that of models retrained from scratch, indicating effective removal of data influence. For instance, in Table 1, ZeroFisher's MRR and Hit@k scores were consistently competitive with retraining.
- Scalability: The method's efficiency makes it suitable for large-scale KGs, a significant advancement over previous approaches.
Limitations and Future Work
- Hyperparameter Sensitivity: The paper acknowledges that the method has several hyperparameters (iterations, damping term, scaling down term, noise term) that require careful tuning for optimal performance, as shown in Figure 3.
- Evaluation Metrics for "Forgetting": The authors note the lack of definitive metrics to quantitatively prove that a model has "completely forgotten" data. They rely on performance metrics and embedding distances as proxies.
- Future Work: The paper suggests exploring distribution alignment or optimal transport methods to gain broader insights into unlearning across different data modalities (KGs, CV, NLP). Further research into more robust evaluation metrics for unlearning is also implied.
Summary updated