RRL: Recommendation Reverse Learning

Xiaoyu You, Jianwei Xu, Mi Zhang, Zechen Gao, Min Yang

Abstract

The "right to be forgotten" mandated by privacy regulations like GDPR necessitates the removal of specific user data from trained machine learning models. In recommender systems (RS), this "unlearning" process is challenging due to the high cost of retraining and the collaborative nature of the data. We propose Recommendation Reverse Learning (RRL), an efficient framework that treats unlearning as a targeted optimization task. RRL utilizes a Reversed Personalized Ranking objective to "forget" specific interactions and a Collaborative Similarity regularizer, guided by the Fisher Information Matrix, to preserve the model's overall recommendation performance. Empirical results on real-world datasets demonstrate that RRL achieves near-perfect unlearning with orders-of-magnitude speedups compared to retraining, while maintaining high accuracy.

Introduction

Privacy laws such as GDPR and CCPA grant users the right to have their data deleted from service providers' systems, including trained models. For Recommender Systems, which are often massive and updated frequently, retraining from scratch is computationally infeasible. Existing approximate unlearning methods, such as SISA (Sharded, Isolated, Sliced, and Aggregated), partition data into independent shards. However, because RS rely on collaborative filtering—where global patterns across the entire dataset are crucial—sharding often results in a 10%–30% drop in recommendation quality due to the loss of global connectivity.

Methodology

RRL shifts the paradigm from data deletion to inverse optimization. It consists of two core mechanisms:

  1. Reversed Personalized Ranking (RPR): Unlike standard Bayesian Personalized Ranking (BPR) which maximizes the margin between observed and unobserved interactions, RPR forces the model to treat "to-be-forgotten" interactions as unobserved, effectively lowering their predicted scores until they are indistinguishable from random items.
  2. Collaborative Similarity (CS) Regularizer: To prevent "catastrophic forgetting" of the collaborative relationships that drive recommendation accuracy for other users, RRL employs the Fisher Information Matrix (FIM). The FIM identifies parameters critical to the remaining data, allowing the model to update only those weights necessary for unlearning while anchoring the rest of the collaborative structure.
Comparison of traditional retrain-based sharding approaches versus the proposed RRL framework.

Experimental Evaluation

The framework was evaluated using Matrix Factorization (MF-BPR) and LightGCN models on three benchmarks: Gowalla, Yelp2018, and MovieLens-1M. These datasets represent varying levels of sparsity and scale, providing a robust testbed for unlearning efficiency and effectiveness.

Results and Discussion

RRL demonstrates exceptional efficiency. For instance, on the Gowalla dataset, unlearning a user takes approximately 3.5 seconds with RRL, compared to over 12,000 seconds for a full retrain—a speedup of over 3,400x. Crucially, RRL maintains recommendation metrics (Recall, NDCG) nearly identical to the gold-standard retrained model, avoiding the "sharding tax" seen in previous methods.

Beyond efficiency, RRL is highly effective at neutralizing adversarial "shilling attacks," where malicious users attempt to promote specific items. As shown in the experimental results, RRL can reduce the recommendation frequency of attacked items back to baseline levels while preserving the overall utility and ranking quality of the system.

Impact of RRL on neutralizing popularity and bilevel attacks across different datasets and models.

Conclusion

RRL provides a scalable and effective solution for machine unlearning in recommender systems. By leveraging reverse optimization and Fisher Information, it satisfies privacy requirements without the prohibitive costs of retraining or the performance degradation of data sharding. Future work includes extending RRL to more complex architectures like Transformers and exploring the long-term effects of sequential unlearning steps.

Summary updated

BibTeX
@inproceedings{you2024rrl,
  author = {Xiaoyu You and Jianwei Xu and Mi Zhang and Zechen Gao and Min Yang},
  title = {{RRL: Recommendation Reverse Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28782},
}
Figure