TransFR: Transferable Federated Recommendation with Pre-trained Language Models

Honglei Zhang, He Liu, Haoxuan Li, Yidong Li · OpenReview

Abstract

Federated recommendations (FRs), facilitating multiple local clients to collectively learn a global model without disclosing user private data, have emerged as a prevalent architecture for privacy-preserving recommendations. In conventional FRs, a dominant paradigm is to utilize discrete identities to represent users/clients and items, which are subsequently mapped to domain-specific embeddings to participate in model training. Despite considerable performance, we reveal three inherent limitations that can not be ignored in federated settings, i.e., non-transferability across domains, unavailability in cold-start settings, and potential privacy violations during federated training. To this end, we propose a transferable federated recommendation model with universal textual representations, TransFR, which delicately incorporates the general capabilities empowered by pre-trained language models and the personalized abilities by fine-tuning local private data. Specifically, it first learns domain-agnostic representations of items by exploiting pre-trained models with public textual corpora. To tailor for federated recommendation, we further introduce an efficient federated fine-tuning and a local training mechanism. This facilitates personalized local heads for each client by utilizing their private behavior data. By incorporating pre-training and fine-tuning within FRs, it greatly improves the adaptation efficiency transferring to a new domain and the generalization capacity to address cold-start issues. Through extensive experiments on several datasets, we demonstrate that our TransFR model surpasses several state-of-the-art FRs in terms of accuracy, transferability, and privacy.

What Problem Does This Paper Address?

Standard Federated Recommendation (FR) systems typically represent users and items using discrete IDs. While effective for single-domain tasks, this approach hits a wall in three areas:

  1. Non-transferability: Item IDs are platform-specific. An ID for a book on one site means nothing to a movie recommendation engine on another.
  2. Cold-Start Issues: ID-based embeddings require many interactions to become "well-trained." New items with zero history (cold-start) cannot be effectively recommended.
  3. Privacy Risks: Training ID embeddings directly on local user data can inadvertently leak sensitive interaction patterns during the gradient aggregation process.

The authors argue that we need a domain-agnostic way to represent items that can travel across platforms and handle new items immediately.

Methods

The authors propose TransFR, which replaces ID lookup tables with a text-based encoder powered by Pre-trained Language Models (PLMs). The framework consists of three main stages:

  • Hierarchical Knowledge Distillation (HKD): To make large models like BERT run on resource-constrained mobile devices, the authors distill a 12-layer BERT teacher into a 4-layer DistBERT student. This reduces the model size and speeds up inference while retaining semantic knowledge.
  • Federated Adapter Tuning (FAT): Instead of fine-tuning the entire PLM, TransFR freezes the PLM parameters and inserts small, trainable "Adapters" (simple MLP layers). Only these small adapter gradients are shared with the central server, significantly reducing communication overhead and information leakage.
  • Post-Adaptation Personalization (PAP): To handle data heterogeneity, each client trains a local "prediction head" on their private data. This allows the model to be globally consistent in its understanding of items but locally tailored to the user.
Overview of the TransFR architecture, illustrating the three-stage process from server-side distillation to client-side personalization.

The paper also provides a theoretical framework using information theory to prove that the "bottleneck" structure of adapters naturally limits the amount of private information leaked compared to full-model updates.

Datasets

The model was evaluated using the Amazon dataset, specifically focusing on three distinct domains: Movies, Music, and Books. The authors filtered these datasets to ensure users had at least 20 interactions and items had at least 30, creating a robust benchmark for cross-domain transfer (e.g., training on Music and testing on Books).

Key Insights and Ideas

  • Text as the Universal ID: By using item descriptions (titles, categories) instead of arbitrary IDs, the model learns that a "Science Fiction" book and a "Science Fiction" movie share semantic space, enabling zero-shot transfer between domains.
  • The Efficiency-Privacy Tradeoff: Adapters act as a privacy filter. Because the adapter is a low-dimensional bottleneck, it is mathematically harder for an adversary to reconstruct the original raw user data from the adapter's gradients.
  • DistBERT vs. LLMs: Compared to Llama-2-7B, the distilled model was only slightly less accurate but was 400x faster and required 20,000% less memory, making it the only practical choice for on-device federated learning.

Key Results

TransFR achieved the lowest "transfer loss" ($\Delta$). In the Music $\to$ Books task, TransFR's performance drop was only 2.14%, compared to 8.27% for the best existing federated baseline (FedDCSR).

Ablation study results for TransFR across three cross-domain recommendation tasks, demonstrating the contribution of each module.

In scenarios where items were completely unseen during training (cold-start), TransFR significantly outperformed ID-based models because it could "read" the item's text to understand its context. Furthermore, experiments with Differential Privacy showed that TransFR maintains high accuracy even when noise is added to the gradients, proving it is robust for secure real-world deployment.

Limitations and Future Work

The primary limitation is the reliance on high-quality textual metadata. If an item has a poor or missing description, the model's performance may degrade. For future work, the authors suggest moving beyond text to multi-modal foundation models, incorporating item images or video snippets to create even richer representations.

Summary updated

BibTeX
@inproceedings{zhang2026transfr,
  author = {Honglei Zhang and He Liu and Haoxuan Li and Yidong Li},
  title = {{TransFR: Transferable Federated Recommendation with Pre-trained Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i33.40048},
}
Figure