Introduction
Federated Collaborative Filtering (FedCF) has emerged as a vital framework for building recommendation systems that respect user privacy, aligning with regulations like GDPR. By keeping user interaction data on-device, FedCF avoids the risks associated with centralizing sensitive information. However, traditional FedCF methods, often based on Matrix Factorization (MF), face two significant challenges: the inability to capture complex non-linear user-item relationships and the difficulty in balancing global trends with fine-grained individual personalization.
Methodology: The FedDAE Framework
To address these limitations, we introduce FedDAE (Federated Dual-encoder AutoEncoder). This approach reformulates the recommendation task as a Variational AutoEncoder (VAE) problem, utilizing a dual-encoder architecture to decouple shared global knowledge from unique local preferences.
The architecture consists of three primary components:
- Dual-Encoder Structure: A Global Encoder ($q_\phi$) is shared across the federation to learn universal item features, while a Local Encoder ($q_{\phi_u}$) remains on the user's device to capture private, personalized nuances.
- Personalized Gating Network: A local gating mechanism ($h_{\psi_u}$) dynamically weights the outputs of the two encoders based on the user's specific interaction history. This allows the model to adaptively prioritize global trends or local habits for each user.
- Global Decoder: A shared decoder ($p_\theta$) reconstructs the user's interaction vector from the combined latent representation, facilitating the prediction of future interests.
Training employs an alternating update strategy where only the global encoder and decoder gradients are aggregated by the server, ensuring that the local encoder and gating network parameters never leave the client device.
Experimental Evaluation
FedDAE was evaluated against state-of-the-art federated baselines (including FedVAE, PFedRec, and FedRAP) using four benchmark datasets: MovieLens-100K, MovieLens-1M, Amazon-Instant-Video, and QB-article. These datasets represent a wide range of scales and high sparsity levels (93.7% to 99.8%).
Performance and Convergence
FedDAE consistently outperformed existing methods. On the MovieLens-100K dataset, it achieved a Hit Rate (HR@20) of 0.1232 and an NDCG@20 of 0.0503. While the model converges rapidly on moderately sparse datasets like MovieLens, extremely sparse datasets like QB-article require more iterations to reach peak performance.
Analysis of Personalization
A key insight of FedDAE is its ability to separate latent representations effectively. Qualitative analysis using t-SNE visualizations demonstrates the impact of this separation.
As shown in the visualization, while the global encoder provides a broad view of item distributions, the local encoder successfully clusters items into distinct groups based on a specific user's interactions. The weighted combination produced by the gating network further refines these clusters, proving that the model successfully captures deep personalization that global-only models often overlook.
Conclusion
FedDAE provides a robust solution for personalized federated recommendations by combining the expressive power of VAEs with a flexible dual-encoder gating mechanism. While data sparsity remains a challenge for convergence speed, the model's ability to balance global and local knowledge marks a significant step forward. Future work will explore integrating Differential Privacy to further enhance security against sophisticated data reconstruction attacks.
Summary updated