Abstract
Federated Matrix Factorization (MF) is essential for building privacy-preserving recommendation systems. However, existing solutions often suffer from high computational overhead due to heavy cryptographic primitives or lack mechanisms to verify the integrity of the central server's computations. This paper introduces VPFedMF, a protocol that utilizes lightweight masking and homomorphic hashing to achieve both privacy and verifiability. VPFedMF demonstrates a 20x speedup over current state-of-the-art methods like FedMF while maintaining identical model accuracy.
Introduction
Matrix Factorization (MF) powers modern recommendation engines by predicting user preferences based on historical interactions. Traditionally, this requires centralizing sensitive data, posing significant privacy risks. While Federated Learning (FL) mitigates this by keeping data local, shared gradients can still leak information. Previous attempts to secure these gradients using Additive Homomorphic Encryption (AHE) are computationally prohibitive. Furthermore, most systems assume an "honest-but-curious" server, leaving them vulnerable to a malicious server that might manipulate aggregation results to bias recommendations.
The VPFedMF Protocol
VPFedMF addresses these challenges through a four-phase protocol designed for efficiency and security.
The protocol's efficiency stems from two primary innovations:
- Lightweight Masking-Based Secure Aggregation: Instead of public-key encryption, VPFedMF uses a masking technique where users generate random masks that cancel out during server-side aggregation. This relies on fast pseudo-random number generators (PRNGs), shifting the heavy computational load to a one-time offline initialization phase.
- Cryptographic Verifiability: To ensure the server does not tamper with results, VPFedMF employs Homomorphic Hash Functions and Commitment Schemes. Users commit to a hash of their gradients; because the hash is homomorphic ($Hash(A + B) = Hash(A) \times Hash(B)$), the aggregate result can be verified against the product of individual hashes without compromising privacy.
Experimental Evaluation
The protocol was evaluated using the MovieLens dataset (610 users, 9,712 movies). The researchers tested two scenarios: PartText (uploading gradients only for rated items) and FullText (uploading full vectors).
Key Results
The primary breakthrough of VPFedMF is its performance. By moving away from AHE, the protocol achieves a massive reduction in training time.
As shown in Figure 2, VPFedMF is approximately 20x faster than the baseline FedMF. For a configuration with 2,560 items, VPFedMF requires only ~17.7 seconds per iteration, compared to ~334.8 seconds for FedMF. Crucially, this speedup comes with zero accuracy loss; the Root Mean Squared Error (RMSE) remains identical to non-secure federated and centralized MF implementations. Additionally, the system exhibits linear scalability relative to the latent dimensions of the model.
Conclusion and Future Work
VPFedMF proves that cryptographic verifiability and high performance are not mutually exclusive in federated learning. However, the current protocol assumes full user participation in every iteration. Future research should address robustness against user dropouts, which currently disrupt the masking cancellation logic. Additionally, reducing the communication overhead associated with broadcasting commitments remains an area for optimization.
Summary updated