[Paper Review] CryptoRec: Privacy-preserving Recommendation as a Service
CryptoRec proposes a privacy-preserving recommendation system using homomorphic encryption, enabling secure Recommendation as a Service (RaaS) where clients submit encrypted ratings and servers return predictions without learning client data. The model uses only addition and multiplication operations, making it natively compatible with homomorphic encryption, and achieves sub-second prediction times on a single PC while maintaining state-of-the-art accuracy on real-world datasets.
Recommender systems rely on large datasets of historical data and entail serious privacy risks. A server offering Recommendation as a Service to a client might leak more information than necessary regarding its recommendation model and dataset. At the same time, the disclosure of the client's preferences to the server is also a matter of concern. Devising privacy-preserving protocols using general cryptographic primitives (e.g., secure multi-party computation or homomorphic encryption), is a typical approach to overcome privacy concerns, but in conjunction with state-of-the-art recommender systems often yields far-from-practical solutions. In this paper, we tackle this problem from the direction of constructing crypto-friendly machine learning algorithms. In particular, we propose CryptoRec, a secure two-party computation protocol for Recommendation as a Service, which encompasses a novel recommender system. This model possesses two interesting properties: (1) It models user-item interactions in an item-only latent feature space in which personalized user representations are automatically captured by an aggregation of pre-learned item features. This means that a server with a pre-trained model can provide recommendations for a client whose data is not in its training set. Nevertheless, re-training the model with the client's data still improves accuracy. (2) It only uses addition and multiplication operations, making the model straightforwardly compatible with homomorphic encryption schemes. We demonstrate the efficiency and accuracy of CryptoRec on three real-world datasets. CryptoRec allows a server with thousands of items to privately answer a prediction query within a few seconds on a single PC, while its prediction accuracy is still competitive with state-of-the-art recommender systems computing over clear data.
Motivation & Objective
- Address privacy risks in Recommendation as a Service (RaaS) where both client preferences and server models are sensitive.
- Overcome the inefficiency of general-purpose cryptographic solutions (e.g., secure multi-party computation, homomorphic encryption) when applied to modern recommender systems.
- Design a machine learning model that is inherently compatible with homomorphic encryption to enable efficient, non-interactive secure computation.
- Enable the server to provide accurate recommendations using a pre-trained model even when the client’s data is not part of the training set.
- Ensure that retraining the model with client data improves accuracy, preserving utility while maintaining privacy.
Proposed method
- Propose a recommender system that models user-item interactions in an item-only latent feature space, capturing personalized user representations via aggregation of pre-learned item features.
- Restrict the model to use only addition and multiplication operations, ensuring compatibility with homomorphic encryption (HE) schemes.
- Use homomorphic encryption to allow the client to encrypt her ratings and send them to the server without revealing the plaintext.
- Enable the server to perform prediction computations entirely on encrypted data using HE, returning only the encrypted prediction.
- Decouple the prediction phase from the training phase, allowing the server to serve recommendations without requiring the client to be online during computation.
- Leverage pre-trained item embeddings to enable fast inference even when client data is not in the training set.
Experimental results
Research questions
- RQ1Can a recommender system be designed to be natively compatible with homomorphic encryption while preserving high prediction accuracy?
- RQ2How can privacy be preserved for both the client’s input data and the server’s model and training data in a Recommendation as a Service setting?
- RQ3Can secure recommendations be computed efficiently without requiring continuous interaction between the client and server?
- RQ4To what extent can a pre-trained model provide accurate recommendations for new clients without retraining?
- RQ5What is the performance overhead of using homomorphic encryption in a real-world recommendation pipeline?
Key findings
- CryptoRec enables secure, non-interactive recommendations using homomorphic encryption, with prediction latency under a few seconds on a single PC even for thousands of items.
- The model achieves competitive prediction accuracy compared to state-of-the-art recommender systems operating on clear data.
- The system supports recommendations using a pre-trained model even when the client’s data is not part of the server’s training set, with accuracy improving upon retraining with client data.
- The use of only addition and multiplication operations allows seamless integration with homomorphic encryption, avoiding complex multi-round protocols.
- The framework demonstrates practical efficiency, completing secure predictions in a few seconds despite the computational cost of homomorphic encryption.
- The approach enables a secure two-party computation protocol where the client learns only the recommendation result and the server learns nothing about the client’s input.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.