Fast-adapting and privacy-preserving federated recommender system

Qinyong Wang, Hongzhi Yin, Tong Chen, Junliang Yu, Alexander Zhou, Xiangliang Zhang

TL;DR

This paper introduces PrivRec, a federated recommendation system that balances high-performance personalization with rigorous privacy. By combining first-order meta-learning (REPTILE) for fast on-device adaptation and user-level Differential Privacy (DP), the authors create a system that works for both active and "cold-start" users while remaining resilient against sophisticated membership inference attacks.

What Problem Does This Paper Address?

Modern recommender systems are data-hungry, typically requiring user behavior to be uploaded to a central cloud for training. This creates a massive privacy risk. While Federated Learning (FL) allows models to be trained on-device without sharing raw data, it faces two major hurdles:

  1. Data Heterogeneity: Users vary wildly in their activity levels. A "one-size-fits-all" global model in FL often performs poorly for inactive users (the "long tail") because it optimizes for the average.
  2. Security Vulnerabilities: Even without raw data, malicious participants can sometimes perform "membership inference attacks"—analyzing model updates to determine if a specific person’s data was used in training.

Methods

The authors propose a two-pronged approach:

  • Fast Personalization via Meta-Learning: Instead of standard Federated Averaging, they use a first-order meta-learning algorithm called REPTILE. Unlike the popular MAML algorithm, which requires expensive second-order gradients (Hessian-vector products) that would crush a smartphone's processor, REPTILE uses simple gradient differences. This allows the global model to act as a "quick-start" template that can be personalized on-device with just a few local data points.
  • DP-PrivRec (User-level Differential Privacy): To stop attackers from identifying users, they implement a Gaussian mechanism to perturb gradients before they are sent to the server.
  • Two-Stage Training: Adding noise (DP) usually kills model accuracy. To fix this, the authors introduce a two-stage process. In Stage 1, they use Self-Supervised Learning (SSL) to learn item representations from anonymous sequences (no user IDs involved, so no DP noise is needed). In Stage 2, they fine-tune the model using the private user-item interactions protected by DP.

Datasets

The models were evaluated on two large-scale datasets in a simulated FL environment:

  • Frappe: A context-aware mobile app discovery dataset containing 957 users and over 288,000 interactions.
  • Movielens-1M: A classic movie rating dataset with 6,040 users and 1 million interactions.

The authors specifically highlighted the "long-tail" nature of these datasets, where most users have very few interactions, making them perfect for testing meta-learning adaptation.

Key Insights and Ideas

  • Meta-Learning is the "Great Equalizer": The "aha moment" here is that meta-learning isn't just for few-shot image classification; it’s a natural fit for FL. It allows the system to treat each user as a unique "task," significantly boosting performance for inactive users who usually get ignored by global models.
  • First-Order is Enough: The researchers proved that you don't need the heavy mathematical machinery of second-order gradients to get good results. REPTILE provided a 20%–40% performance boost over standard SGD for inactive users while remaining computationally feasible for edge devices.
  • SSL as a Buffer for DP: By learning the "structure" of items through self-supervision first (without noise), the model becomes much more robust. When the noisy DP stage begins, the model already has a strong foundation, keeping the performance drop within a tolerable 10% margin.

Key Results

  • Superiority over Baselines: PrivRec consistently outperformed other federated baselines like FedGNN and FCF.
  • Accuracy vs. Privacy: DP-PrivRec successfully defended against membership inference attacks (reducing attack accuracy to near-random levels) while maintaining recommendation accuracy (Hits@20) that was within 10% of the non-private version.
  • Efficiency: The first-order meta-learning approach was significantly faster and less memory-intensive than second-order methods, making it practical for real-world mobile deployment.

Limitations and Future Work

  • Simulation vs. Reality: The study was conducted in a simulated FL environment. Real-world factors like unstable network connections, varying device hardware, and "straggler" devices (slow nodes) were not the primary focus.
  • SSL Task Complexity: While the current SSL uses item masking (similar to BERT), the authors suggest that more complex pretext tasks could further improve the initial item embeddings.
  • Communication Overhead: While computationally efficient, the frequency of model updates in meta-learning can still be high. Future work could explore ways to compress these updates to save user bandwidth.

Summary updated

BibTeX
@inproceedings{wang2022fast,
  author = {Qinyong Wang and Hongzhi Yin and Tong Chen and Junliang Yu and Alexander Zhou and Xiangliang Zhang},
  title = {{Fast-adapting and privacy-preserving federated recommender system}},
  booktitle = {VLDB J},
  year = {2022},
  url = {https://openreview.net/forum?id=HmkROz961F-},
}
Figure