Skip to main content
QUICK REVIEW

[Paper Review] Federated Learning from Pre-Trained Models: A Contrastive Learning Approach

Yue Tan, Guodong Long|arXiv (Cornell University)|Sep 21, 2022
Privacy-Preserving Technologies in DataComputer Science67 citations
TL;DR

The paper introduces FedPCL, a lightweight federated learning framework that fuses fixed pre-trained backbones via prototype-wise contrastive learning to achieve personalized, communication-efficient models.

ABSTRACT

Federated Learning (FL) is a machine learning paradigm that allows decentralized clients to learn collaboratively without sharing their private data. However, excessive computation and communication demands pose challenges to current FL frameworks, especially when training large-scale models. To prevent these issues from hindering the deployment of FL systems, we propose a lightweight framework where clients jointly learn to fuse the representations generated by multiple fixed pre-trained models rather than training a large-scale model from scratch. This leads us to a more practical FL problem by considering how to capture more client-specific and class-relevant information from the pre-trained models and jointly improve each client's ability to exploit those off-the-shelf models. In this work, we design a Federated Prototype-wise Contrastive Learning (FedPCL) approach which shares knowledge across clients through their class prototypes and builds client-specific representations in a prototype-wise contrastive manner. Sharing prototypes rather than learnable model parameters allows each client to fuse the representations in a personalized way while keeping the shared knowledge in a compact form for efficient communication. We perform a thorough evaluation of the proposed FedPCL in the lightweight framework, measuring and visualizing its ability to fuse various pre-trained models on popular FL datasets.

Motivation & Objective

  • Motivate reducing computation and communication in FL by leveraging off-the-shelf pre-trained models.
  • Enable personalized representation learning without training large global models from scratch.
  • Develop a lightweight framework that fuses multi-backbone representations through learnable projections.
  • Propose a prototype-based communication scheme to share class-relevant knowledge efficiently.

Proposed method

  • Use multiple fixed pre-trained backbones as encoders to produce concatenated representations.
  • Introduce a projection network per client to fuse backbone representations into a latent z(x).
  • Share class prototypes (global and local) between server and clients to enable contrastive learning.
  • Apply a prototype-wise supervised contrastive loss with two terms: global prototype loss and local prototype loss.
  • Aggregate local prototypes on the server to form global prototypes, with prototype padding to handle missing classes.

Experimental results

Research questions

  • RQ1Can fixed pre-trained backbones be effectively fused in FL to reduce computation and communication?
  • RQ2Does prototype-based communication support better personalization and knowledge sharing across clients?
  • RQ3How do global and local prototypes contribute to the contrastive learning objective and performance?
  • RQ4Is FedPCL robust to non-IID data and scalable to many clients/architectures?

Key findings

  • FedPCL achieves higher accuracy than several baselines across multiple non-IID settings and backbones.
  • Using multiple fixed backbones generally improves performance and reduces variability across runs.
  • Prototype-based communication significantly lowers per-round parameter transmission compared to model-param-based methods.
  • Global and local prototypes together provide better local training than using either alone.
  • Incorporating diverse architectures (e.g., ViT, CNNs) with fixed backbones can enhance performance in a lightweight FL setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.