Federated Adaptation for Foundation Model-based Recommendations

Chunxu Zhang, Guodong Long, Hongkuan Guo, Xiao Fang, Yang Song, Zhaojie Liu, Guorui Zhou, Zijian Zhang, Yang Liu, Bo Yang

Abstract

With the recent success of large language models, particularly foundation models (FMs) with generalization abilities, applying FMs for recommendations has become a new paradigm to improve existing recommendation systems. However, enabling FMs to capture user preference changes in a timely manner with reasonable communication and computation costs while preserving privacy remains an open challenge. This paper proposes FedPA (Federated Adaptation for Foundation Model-based Recommendations), a novel federated adaptation mechanism to enhance FM-based recommendation systems. Specifically, each client learns a lightweight personalized adapter using private data. This adapter collaborates with pre-trained FMs to provide efficient, fine-grained recommendation services. Importantly, users' private behavioral data remains secure as it is not shared with the server, embodying data localization-based privacy preservation. Experimental results on four benchmark datasets demonstrate FedPA's superior performance.

Introduction

Foundation Models have revolutionized AI by capturing "common knowledge" from massive datasets. In recommendation systems (RecSys), FMs can model complex user-item relationships better than traditional methods. However, two major hurdles remain: the privacy-efficiency trade-off and the need for dynamic personalization. Fine-tuning giant FMs usually requires centralizing sensitive user data, and communicating full model updates in a federated setting is prohibitively expensive. Furthermore, user preferences change rapidly, requiring a mechanism that can adapt without frequent, costly updates to the entire model.

FedPA addresses these challenges by asking: How can we efficiently adapt a pre-trained foundation model to individual users in a federated setting without leaking private data?

The FedPA Framework

FedPA integrates large-scale foundation models into federated recommendation systems using lightweight, low-rank adapters. The framework consists of several novel components designed for efficiency and personalization.

The FedPA architecture illustrates the interaction between the server and client, highlighting the adaptive gate learning mechanism and personalized adapters.

Key Components:

  • Low-Rank Personalized Adapters: Inspired by parameter-efficient fine-tuning (PEFT) techniques like LoRA, FedPA adds small, low-rank matrices ($W_a, W_b$) to the layers of the recommendation model. Only these tiny adapters are trained, significantly reducing the parameter count for updates.
  • Two-Level Personalization:
    • User-level: A private adapter unique to each device that is never shared with the server.
  • User-group-level: Adapters shared among users with similar attributes (e.g., age or interest groups), which are aggregated by the server to capture shared patterns.
  • Adaptive Gate Learning Mechanism: A neural gating network dynamically learns how to weight the "common knowledge" from the foundation model against the "personalized knowledge" from the adapters for every prediction.
  • Knowledge Distillation (KD): To ensure FMs fit on mobile devices, KD is used to compress the foundation model into a smaller "student" model before deployment.
  • Privacy Enhancement: The framework integrates Local Differential Privacy (LDP) by adding Laplacian noise to shared parameters, ensuring individual user traits cannot be reverse-engineered from model updates.

Experimental Evaluation

The model was evaluated on four industrial-scale datasets from the Kuaishou short-video platform: KuaiRand-Pure, KuaiRand-small, KuaiSAR-S, and KuaiSAR-R. These datasets include rich user/item attributes and interaction timestamps, allowing for a realistic simulation of federated environments.

Performance comparison of FedPA against state-of-the-art baselines across four benchmark datasets.

Key Results:

  • Superior Performance: FedPA consistently outperformed advanced baselines like FedNCF and PFedRec. For example, on the KuaiSAR-S dataset, FedPA achieved an AUC of 61.99 compared to the best baseline's 59.95.
  • The Power of "Warm-Starting": Starting the federated system from a pre-trained FM (warm-starting) provides a massive performance boost compared to training from scratch, as the FM acts as a high-quality "prior" for user behavior.
  • Robustness to Compression: Even when the foundation model was distilled to a much smaller size, performance remained stable, proving the framework is viable for real-world edge devices.
  • Privacy Trade-off: While adding LDP noise (intensity 0.2) slightly decreased AUC (from 70.28 to 69.93 on KuaiRand), the model remained highly effective, offering a tunable balance between privacy and utility.

Discussion and Insights

The success of low-rank adapters in FedPA confirms that user personalization resides in a much lower-dimensional space than the full model parameters. Furthermore, the authors found that freezing the item embeddings and the core prediction function while only updating user-specific adapters and embeddings reduces communication overhead by roughly 40% without sacrificing accuracy.

While the current study focuses on a two-tower MLP architecture, the principles of FedPA are extensible. Future work may explore Transformer-based architectures (like BERT4Rec) and "latent grouping" where the model discovers user clusters automatically without needing explicit metadata.

Conclusion

FedPA provides a scalable and privacy-preserving way to leverage foundation models for personalized recommendations. By combining lightweight adapters with a two-level personalization strategy and adaptive gating, it achieves state-of-the-art results while maintaining the efficiency required for federated deployment. The code for FedPA is available for further research.

Summary updated

BibTeX
@inproceedings{zhang2024federated,
  author = {Chunxu Zhang and Guodong Long and Hongkuan Guo and Xiao Fang and Yang Song and Zhaojie Liu and Guorui Zhou and Zijian Zhang and Yang Liu and Bo Yang},
  title = {{Federated Adaptation for Foundation Model-based Recommendations}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=RNhPkNIlBl},
}
Figure