Abstract
As privacy regulations like the General Data Protection Regulation (GDPR) establish the "Right to be Forgotten," machine learning models must develop efficient ways to remove specific user data—a process known as machine unlearning. Recommender systems (RS) present a unique challenge due to the highly interconnected and collaborative nature of their data. This paper introduces the Selective and Collaborative Influence Function (SCIF), a framework designed to achieve near-instant unlearning. By selectively updating only the most relevant model parameters and preserving the collaborative relationships within the data, SCIF maintains high recommendation accuracy while providing a 28.5x speedup over traditional retraining methods.
Introduction
Machine learning models possess an inherent "memory" of their training data. When a user requests data deletion, simply removing their record from a database does not purge their influence from the model's weights. In the context of Recommender Systems, this influence is deeply embedded in the collaborative patterns the model has learned.
Existing unlearning strategies generally fall into two categories, both of which struggle with large-scale RS:
- Exact Unlearning (EU): These methods often use "divide-and-aggregate" strategies (sharding). However, retraining even a single shard is time-consuming, and splitting data can break the collaborative links between users and items, degrading recommendation quality.
- Approximate Unlearning (AU): These methods use Influence Functions (IF) to estimate weight changes without full retraining. While faster than EU, they remain computationally expensive for models with millions of parameters and often ignore the collaborative structure of RS data.
The SCIF Framework
SCIF addresses these limitations by optimizing the mathematical concept of Influence Functions through two primary mechanisms: Selective Update and Collaborative Preservation.
Selective Parameter Update
Through empirical analysis using Relative Centered Kernel Alignment (CKA), the authors discovered that unlearning a specific user primarily affects that user's individual embedding, while approximately 90% of the remaining model parameters remain stable. SCIF leverages this insight by calculating updates only for these high-impact parameters, drastically reducing the computational burden compared to updating the entire model.
Collaborative Preservation
Standard unlearning methods treat data points in isolation, which can create "holes" in the collaborative web of a recommender system. SCIF recognizes that every rating is part of a larger structure. Instead of merely deleting a user's interactions, SCIF replaces them with a "collaborative component" (such as the user's average rating). This placeholder maintains the internal stability of the model and prevents performance collapse during the unlearning process.
Membership Inference Oracle (MIO)
To provide a rigorous audit of the unlearning process, the authors developed the Membership Inference Oracle (MIO). This specialized neural network acts as an "attacker" that attempts to guess if specific data was used during training. If the MIO cannot distinguish between "unlearned" data and data the model has never seen, the unlearning is considered successful and verifiable.
Experimental Results
The researchers evaluated SCIF on two benchmark datasets: MovieLens 1M (ML1M) and Amazon Digital Music (ADM), using models like LightGCN and Neural Matrix Factorization (NMF).
- Efficiency: SCIF achieved a 28.5x speedup compared to retraining the model from scratch. This significantly outperforms previous state-of-the-art methods like RecEraser, which typically offer only a 5x speedup.
- Accuracy: On the ML1M dataset, SCIF maintained a Hit Ratio (HR@20) of 0.5928. This is remarkably close to the "gold standard" of full retraining (0.6758) and far superior to RecEraser (0.4293), which suffered from the loss of collaborative data during sharding.
- Forgetting Verification: In MIO completeness tests, SCIF’s scores were nearly identical to those of a model that had been completely retrained without the target data, proving that the user's influence was effectively removed.
Conclusion and Future Work
SCIF provides a scalable and effective solution for recommendation unlearning, balancing the need for privacy with the demand for high-quality recommendations. While highly effective for current collaborative filtering models, future work will focus on extending SCIF to handle more complex architectures, such as Transformer-based recommenders, and multi-modal data including user biographies and item descriptions.
Summary updated