Guiding The Last Layer in Federated Learning with Pre-Trained Models

Gwen Legate, Nicolas Bernier, Lucas Caccia, Edouard Oyallon, Eugene Belilovsky
6/6/2023
cs.LGcs.AI

No official code found. Best implementation: GwenLegate/GuidingLastLayerFLPretrain (9 stars, MIT, last commit 2024-02-25).

Abstract

Federated Learning (FL) is an emerging paradigm that allows a model to be trained across a number of participants without sharing data. Recent works have begun to consider the effects of using pre-trained models as an initialization point for existing FL algorithms; however, these approaches ignore the vast body of efficient transfer learning literature from the centralized learning setting. Here we revisit the problem of FL from a pre-trained model considered in prior work and expand it to a set of computer vision transfer learning problems. We first observe that simply fitting a linear classification head can be efficient and effective in many cases. We then show that in the FL setting, fitting a classifier using the Nearest Class Means (NCM) can be done exactly and orders of magnitude more efficiently than existing proposals, while obtaining strong performance. Finally, we demonstrate that using a two-phase approach of obtaining the classifier and then fine-tuning the model can yield rapid convergence and improved generalization in the federated setting. We demonstrate the potential our method has to reduce communication and compute costs while achieving better model performance.

View on arXivView PDF

Code Implementations(1)

MIT

Code for our paper "Guiding The Last Layer in Federated Learning with Pre-Trained Models"

91PythonJun 6, 20232 years agoMIT

Similar Papers

Cite this paper

@article{legate2023guiding,
  title  = {Guiding The Last Layer in Federated Learning with Pre-Trained Models},
  author = {Gwen Legate and Nicolas Bernier and Lucas Caccia and Edouard Oyallon and Eugene Belilovsky},
  year   = {2023},
  eprint = {2306.03937},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.03937v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.03937.svg)](https://codeofpaper.com/paper/2306.03937)

Discussion