Introduction
Large Language Models (LLMs) have significantly advanced recommendation systems by enabling "generative recommendations" that better capture user context and intent. However, fine-tuning these models requires access to sensitive user behavior data, posing substantial privacy risks. While Federated Learning (FL) offers a potential solution by keeping data on-device, applying it to LLMs introduces unique challenges related to performance fairness and hardware constraints.
The Challenges of Federated LLM Recommendations
Standard Federated Learning for Recommendation (Fed4Rec) faces two primary hurdles when integrated with LLMs:
- Exacerbated Performance Imbalance: LLMs adapt rapidly to data. In federated settings, the global model tends to favor the majority "average" user, often at the expense of users with niche preferences. Research indicates that LLMs suffer from this performance gap significantly more than traditional recommendation models.
- Substantial Client Resource Costs: Deploying large-scale models like LLaMA-7B on consumer devices (e.g., smartphones) is often infeasible due to high memory and computational requirements.
As shown in Figure 1, LLM-based recommendation models exhibit a higher degree of imbalance and converge much earlier than traditional models, which can lead to instability and unfairness in a federated environment.
The FELLRec Framework
To address these issues, the researchers introduced FELLRec, a framework designed for fair and resource-efficient federated LLM recommendations. FELLRec employs two core strategies:
1. Flexible Storage Strategy
To mitigate hardware limitations, FELLRec utilizes a split-learning approach. Sensitive "input" and "output" layers remain on the client device to protect raw user data and final predictions. Meanwhile, the computationally intensive "middle" transformer layers are offloaded to a central server. This "split-storage" significantly reduces local RAM and storage requirements.
2. Dynamic Balance Strategy
To improve fairness, FELLRec replaces simple parameter averaging with more sophisticated mechanisms:
- Attention-based Aggregation: This method calculates similarity between local models, allowing clients to learn more effectively from peers with similar behavior patterns.
- Curriculum Heating: A dynamic learning mechanism that allows clients with high local loss to stabilize on their own data through a "gradual warming" phase before integrating global updates.
Experimental Evaluation
FELLRec was evaluated on three major benchmarks: Amazon Games, Amazon Books, and MicroLens (short-video recommendations). The framework was tested in both few-shot (1024-shot) and full fine-tuning scenarios using Low-Rank Adaptation (LoRA) to minimize communication overhead.
Key Results
- Performance: FELLRec consistently outperformed standard federated methods like FedAvg and FedProx, often matching the accuracy of centralized training.
- Fairness: In the Games dataset, FELLRec reduced the imbalance degree from 1.76 to 0.55 compared to FedAvg.
- Efficiency: The storage strategy successfully enabled LLM training on consumer-grade hardware by optimizing local memory usage.
Conclusion
FELLRec demonstrates that it is possible to achieve high-performance, privacy-preserving LLM recommendations. By addressing the "rich-get-richer" effect in federated learning and optimizing resource usage through split storage, the framework paves the way for deploying advanced generative models on personal devices. Future work will explore scaling these strategies to even larger models and further hardening the system against sophisticated adversarial attacks.
Summary updated