LLM-based Federated Recommendation

Jujia Zhao, Wenjie Wang, Chen Xu, Zhaochun Ren, See-Kiong Ng, Tat-Seng Chua · DOI

TL;DR

This paper introduces FELLRec, a federated learning framework for LLM-based recommendation systems. It tackles the challenges of client performance imbalance and high resource costs in federated LLM training by proposing dynamic parameter aggregation, adaptive learning speeds, and a flexible layer-offloading strategy to preserve privacy and improve efficiency.

What Problem Does This Paper Address?

Large Language Models (LLMs) are revolutionizing recommendation systems by leveraging their advanced understanding of user behavior and context. However, fine-tuning these models with user data for personalized recommendations raises significant privacy concerns. Traditional federated learning approaches (Fed4Rec) aim to address this by keeping user data on local devices. Yet, directly applying Fed4Rec to LLMs introduces two major hurdles:

  1. Client Performance Imbalance: LLMs, with their rapid adaptation capabilities, can lead to vastly different training convergence rates across clients. This imbalance can result in suboptimal recommendations for some users and degrade the overall system's effectiveness and user satisfaction.
  2. High Resource Costs: LLMs are computationally intensive and require substantial storage. Requiring clients (e.g., user devices) to locally train and infer these large models imposes a significant burden on their hardware capabilities.

FELLRec aims to bridge this gap by providing a privacy-preserving, efficient, and equitable federated recommendation system that leverages LLMs.

Methods

FELLRec introduces two core strategies to overcome the aforementioned challenges:

  1. Dynamic Balance Strategy: This strategy addresses client performance imbalance.
  2. Dynamic Parameter Aggregation: It employs an attention-based mechanism to customize how client model parameters are aggregated. This allows the system to prioritize learning from clients with similar data distributions, mitigating conflicts and improving overall performance.
  3. Dynamic Learning Speed: A "Curriculum Heating" learning method is used to adjust each client's learning pace. Clients with higher local losses (indicating greater learning difficulty) undergo a gradual pre-warming phase, while those with lower losses converge faster. This personalized learning speed helps clients adapt to their data distribution more effectively.
  4. Client Personalization: FELLRec maintains client-specific parameters, such as LoRA (Low-Rank Adaptation) adapters, while keeping the core LLM parameters fixed on the server.
  5. Flexible Storage Strategy: This strategy tackles the high resource costs.
  6. Layer Offloading: FELLRec selectively retains certain sensitive LLM layers (typically input and output layers) on the client side for privacy. The remaining, less sensitive layers are offloaded to the server. This significantly reduces the computational and storage demands on individual clients.

The framework integrates these strategies within a client-server federated learning architecture.

Datasets

The paper evaluates FELLRec on three popular benchmark datasets:

  • Games: From the Amazon review datasets, focusing on user interactions with video games, including textual features.
  • MicroLens: A newly released dataset for short video recommendations, containing rich modal information.
  • Book: Also from Amazon review datasets, covering user interactions with books across various genres.

These datasets were split into training, validation, and testing sets using an 8:1:1 ratio. The authors explored two fine-tuning approaches: few-shot (1024-shot) and full fine-tuning.

Key Insights and Ideas

  • LLMs amplify federated learning challenges: The inherent complexity and rapid learning of LLMs exacerbate the existing problems of client imbalance and resource demands in federated settings.
  • Dynamic adaptation is key: Simply applying standard federated averaging to LLMs is insufficient. FELLRec's success hinges on its ability to dynamically adapt parameter aggregation and learning speeds to individual client characteristics.
  • Privacy-Layered Approach: The flexible storage strategy offers a practical trade-off between privacy and resource efficiency, allowing sensitive layers to remain client-side while offloading less critical ones.
  • Heterogeneity is a double-edged sword: While client data heterogeneity can cause imbalance, FELLRec's dynamic balance strategy is shown to be robust and effective even under varying degrees of heterogeneity.

Key Results

  • Outperforms baselines: FELLRec consistently outperforms other privacy-preserving federated methods and achieves performance comparable to centralized LLM-based methods across all tested datasets.
  • Mitigates imbalance: The "Imbalance Degree" metric shows FELLRec significantly reduces client performance imbalance compared to FedAvg, particularly in diverse datasets like MicroLens. For instance, on the Games dataset, FELLRec achieved an imbalance degree of 0.55, while FedAvg reached 1.76.
  • Resource efficiency: The flexible storage strategy significantly reduces client resource costs (storage and inference) compared to FedAvg, as demonstrated by theoretical analysis and experimental results (Table 3).
  • Scalability: FELLRec demonstrates good scalability, maintaining its performance advantage over FedAvg as the number of clients increases (Figure 6).
  • Robustness to heterogeneity: FELLRec's performance remains strong across different levels of client data heterogeneity, outperforming FedAvg in all tested scenarios (Table 6).

Limitations and Future Work

  • Model Size: The largest LLM used was LLaMA-7B. Exploring even larger LLMs could offer further insights.
  • Attack Models: The study primarily used white-box attacks. Future work could investigate a broader range of attack methods and LLM architectures to assess resilience.
  • Aggregation Strategies: While effective, the dynamic balance strategy could be further refined with more fine-grained aggregation techniques, such as layer-based aggregation.
  • Server-side Attacks: The paper acknowledges the potential risk of server-side attacks on privacy when layers are offloaded. Further analysis of this trade-off is suggested.

Summary updated

BibTeX
@inproceedings{zhao2025llm,
  author = {Jujia Zhao and Wenjie Wang and Chen Xu and Zhaochun Ren and See-Kiong Ng and Tat-Seng Chua},
  title = {{LLM-based Federated Recommendation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.155},
}
Figure