Privacy-Preserving Multiview Matrix Factorization for Recommender Systems

Peihua Mai, Yan Pang · DOI

TL;DR

This paper tackles a critical privacy vulnerability in federated multi-view matrix factorization (MVMF) for recommender systems, demonstrating that even with federated learning, user data can be reconstructed from gradients. To address this, they propose PrivMVMF, a novel framework leveraging homomorphic encryption to protect user privacy while maintaining recommendation accuracy.

What Problem Does This Paper Address?

Recommender systems are ubiquitous, but they often rely on collecting sensitive user data. Federated learning (FL) offers a way to train models collaboratively without sharing raw data, seemingly preserving privacy. However, this paper reveals a significant privacy loophole in federated MVMF, a technique used to improve recommendations by incorporating side information (like user attributes or item content). Specifically, they show that a malicious server can reconstruct users' original ratings and attributes by analyzing the gradients uploaded by clients, even when these gradients are slightly perturbed with noise. This attack undermines the privacy promises of federated MVMF, necessitating a more robust privacy-preserving solution.

Methods

The paper's core contributions lie in both identifying and mitigating a privacy risk:

  • Privacy Attack Analysis: The authors provide a rigorous theoretical analysis and empirical validation of server reconstruction attacks on federated MVMF. They explore four scenarios based on different treatments of unobserved ratings and update methods (SemiALS and SGD). This analysis demonstrates the feasibility of reconstructing user information with high accuracy (>80%) even with minor noise.
  • PrivMVMF Framework: To counter these attacks, they propose PrivMVMF, a privacy-preserving federated MVMF framework. This framework utilizes homomorphic encryption (HE), specifically the Paillier cryptosystem, to encrypt client gradients before they are sent to the server. This ensures that the server only has access to encrypted gradients, rendering the reconstruction attacks infeasible.
  • Efficiency Enhancements: To balance the computational overhead of HE, PrivMVMF incorporates two key strategies:
  • Sampling of Unrated Items: Instead of always sending gradients for all unrated items (which can be computationally intensive and reveal more information), a portion of unrated items are randomly sampled. This strikes a balance between efficiency and privacy.
  • Decrypting Clients: To reduce the burden on the central server, some clients are designated as "decrypting clients." They receive aggregated encrypted gradients, decrypt them, and then transmit the plaintext aggregated gradients to the server for parameter updates.

Datasets

The experiments were conducted using the MovieLens-1M dataset. This dataset contains over 900,000 ratings from 6,000 users on 3,900 movies. User attributes considered include Age, Gender, Occupation, and Zipcode. For movie features, they used tag genome data, reducing dimensionality by taking the first 20 principal components.

Key Insights and Ideas

  • Federated Learning Isn't Always Private: The most striking insight is that standard federated learning, while a step towards privacy, doesn't inherently protect against sophisticated reconstruction attacks on gradient-based models like MVMF.
  • Gradients Leak Sensitive Information: The paper provides concrete evidence that gradients, even when slightly noisy, contain enough information to reconstruct users' private rating histories and attributes.
  • Homomorphic Encryption as a Solution: PrivMVMF demonstrates that HE can effectively shield user data from reconstruction attacks by keeping gradients encrypted throughout the aggregation process.
  • Balancing Privacy and Efficiency: The proposed sampling of unrated items and the use of decrypting clients highlight a practical approach to mitigating the computational overhead associated with HE in federated learning.

Key Results

  • High Reconstruction Accuracy: The server reconstruction attack achieved accuracies above 80% for both user ratings and attributes in various scenarios, even with small amounts of noise.
  • Robustness to Noise: The attack remained effective with noise scales up to 0.5, and even with larger noise scales, the accuracy remained significantly above random guessing.
  • PrivMVMF Effectiveness: The proposed PrivMVMF framework, using homomorphic encryption, effectively prevented server reconstruction attacks.
  • Recommendation Accuracy Maintained: Despite the added privacy layer, PrivMVMF achieved comparable recommendation accuracy (NDCG@10, Precision, Recall, F1) to the original federated MVMF across different scenarios (existing user/item, cold-start item, cold-start user). The differences were minimal, suggesting the privacy enhancement did not significantly degrade performance.
  • Efficiency Trade-offs: While PrivMVMF significantly increased computation time, particularly in aggregation and decryption phases, due to HE, the authors suggest that distributing decryption among multiple clients can improve efficiency.

Limitations and Future Work

  • Computational Overhead of HE: The paper acknowledges that HE introduces significant computational overhead, especially in the aggregation and decryption phases.
  • Communication Time: While efficiency improvements were made, the authors suggest further investigation into communication time within the PrivMVMF framework.
  • Improving HE Efficiency: More work is needed to reduce the complexity of operations performed on encrypted gradients.
  • Distributed Decryption: The paper notes that distributing the decryption workload among several clients, rather than relying on a single decrypter, could enhance efficiency.

Summary updated

BibTeX
@article{mai2024privacy,
  author = {Peihua Mai and Yan Pang},
  title = {{Privacy-Preserving Multiview Matrix Factorization for Recommender Systems}},
  journal = {IEEE Trans. Artif. Intell.},
  year = {2024},
  doi = {10.1109/tai.2023.3240700},
}
Figure