TL;DR
This paper introduces ReFRS, a federated recommender system that addresses the limitations of existing approaches by efficiently handling dynamic user preferences and resource constraints on edge devices. It achieves this through a novel client-side embedding model and a server-side semantic clustering mechanism for adaptive model aggregation, leading to improved accuracy and scalability.
What Problem Does This Paper Address?
Recommender systems (RSs) are crucial for personalizing user experiences in online services. However, traditional centralized RSs face challenges with data privacy and scalability, as they require collecting vast amounts of sensitive user data. Federated Learning (FL) offers a privacy-preserving alternative by training models locally on user devices and aggregating only model parameters.
Despite FL's advantages, existing Federated Recommender Systems (FRSs) struggle with:
- Resource Constraints: Edge devices (smartphones, tablets) have limited computational power and memory, making it difficult to store and process large models and item embeddings.
- Data Sparsity and Non-IID Data: User interaction data is often sparse and highly heterogeneous (non-independent and identically distributed), meaning user preferences vary significantly and are not easily captured by a single global model.
- Dynamic User Preferences: User interests change over time, and FRSs often assume static preferences.
- Inefficient Aggregation: Simple averaging of all client models can lead to suboptimal performance when user data is non-IID.
Methods
ReFRS tackles these challenges with a two-pronged approach:
1. Client-Side: Lightweight Self-Supervised Embedding Model
- Sequential Interaction Sampling: User interactions are processed in small "sessions" to manage memory.
- Generative Embedding Model (VAE-based): A variational autoencoder (VAE) is used to learn compact, discrete vector representations (embeddings) of user interactions. This model incorporates temporal context and user behavior dynamics.
- Vector Quantization (VQ): This technique discretizes the latent space, making the embeddings more efficient and robust to sparse data.
- Multi-Head Attention: This mechanism helps capture complex relationships between interactions within a sequence.
- Resource Efficiency: The client model is designed to be lightweight, avoiding the need to store all item embeddings on the device. It shares only the encoder parameters with the server.
2. Server-Side: Semantic Sampler and Asynchronous Clustering
- Semantic Sampler: A VAE is used on the server to embed the shared client model parameters (encoder weights) into a low-dimensional space. This captures semantic similarity between client models.
- Dynamic Clustering: A k-Means clustering algorithm is employed to group semantically similar client models. This clustering is performed asynchronously and dynamically, adapting to new clients and evolving user behavior.
- Cluster-wise Aggregation: Instead of aggregating all models globally, ReFRS aggregates models within each identified cluster. This allows for more personalized and effective model updates, especially for non-IID data.
- Asynchronous Updates: The server's clustering and aggregation processes are asynchronous, ensuring that the system remains responsive and efficient even with a large number of clients.
Datasets
The paper evaluates ReFRS on two publicly available datasets:
- MovieLens 20M (ML 20M): Contains 20 million interaction records for 162,000 users, with a rating density of 0.52%, focusing on film.
- Last.fm 360K (FM 360K): Contains over 17.5 million interaction records for 359,347 users, with a track played density of 0.016%, focusing on music.
For experiments, smaller subsets of these datasets were used to simulate real-world scenarios and test scalability. Additionally, for comparison with centralized models, smaller datasets like MovieLens 100K and Last.fm 1K were utilized.
Key Insights and Ideas
- Semantic Similarity is Key for Aggregation: Simply averaging all client models is suboptimal for non-IID data. Grouping clients based on the semantic similarity of their model parameters (captured by the server's VAE) leads to better personalization.
- Dynamic Clustering Adapts to Evolving User Behavior: The asynchronous and dynamic nature of the server's clustering module allows ReFRS to adapt to changing user interests and the introduction of new users, making it scalable and robust.
- Lightweight Client Models are Crucial for Edge Devices: By learning compact, discrete embeddings on the client and sharing only essential parameters, ReFRS significantly reduces the memory and computational burden on edge devices.
- Privacy Mechanisms are Compatible: ReFRS demonstrates compatibility with privacy-enhancing techniques like Differential Privacy (DP) and Homomorphic Encryption (HE), though DP can impact performance.
Key Results
- Superior Recommendation Quality: ReFRS consistently outperforms FedAvg and FedFast baselines in terms of HR@10 and NDCG@10 across various dataset subsets, demonstrating its effectiveness in capturing user preferences.
- Scalability: The system shows good scalability as the number of clients increases, with the dynamic clustering adapting effectively.
- Efficiency: ReFRS achieves comparable or better efficiency than simpler federated approaches (FRS-1, FRS-2) in terms of global epoch execution time.
- Resource Efficiency: ReFRS significantly reduces memory consumption on client devices compared to GMF-based federated models, storing only 100 embedded vectors and requiring minimal memory for its model.
- Competitive with Centralized Models: ReFRS's client model performs comparably to state-of-the-art centralized sequential recommender systems on smaller datasets, highlighting the effectiveness of its personalized approach.
Limitations and Future Work
- Privacy Overhead: While compatible with DP and HE, these mechanisms can introduce performance degradation (DP) or computational overhead (HE). The paper suggests HE for semantic sampling.
- Security Considerations: The paper notes that client model parameters can still reveal some grouping information, posing a potential security risk.
- Future Work: The authors propose exploring more Web 3.0-friendly, server-less architectures for recommender systems, leveraging blockchain and decentralized networks to eliminate reliance on a central server for grouping and aggregation. They also aim to further investigate strategies for linking decentralized approaches to server-less architectures.
Summary updated