Personalized Federated Learning through Local Memorization

Othmane Marfoq, Giovanni Neglia, Laetitia Kameni, Richard Vidal
11/17/2021
136 citations
cs.LGstat.ML
federated

Official code: omarfoq/knn-per (44 stars, Python, Apache-2.0, PyTorch, last commit 2023-06-12).

Abstract

Federated learning allows clients to collaboratively learn statistical models while keeping their data local. Federated learning was originally used to train a unique global model to be served to all clients, but this approach might be sub-optimal when clients' local data distributions are heterogeneous.

Show full abstract

In order to tackle this limitation, recent personalized federated learning methods train a separate model for each client while still leveraging the knowledge available at other clients. In this work, we exploit the ability of deep neural networks to extract high quality vectorial representations (embeddings) from non-tabular data, e.g., images and text, to propose a personalization mechanism based on local memorization. Personalization is obtained by interpolating a collectively trained global model with a local $k$-nearest neighbors (kNN) model based on the shared representation provided by the global model. We provide generalization bounds for the proposed approach in the case of binary classification, and we show on a suite of federated datasets that this approach achieves significantly higher accuracy and fairness than state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

omarfoq/knn-perOfficial100%
PyTorchApache-2.0

Official code for "Personalized Federated Learning through Local Memorization" (ICML'22)

4416Python, ShellJun 1, 20223 years agoApache-2.0
deep-learningfederated-learningmachine-learningpersonalized-federated-learningpytorch

Similar Papers

Cite this paper

@article{marfoq2021personalized,
  title  = {Personalized Federated Learning through Local Memorization},
  author = {Othmane Marfoq and Giovanni Neglia and Laetitia Kameni and Richard Vidal},
  year   = {2021},
  eprint = {2111.09360},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.09360}
}

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/2111.09360.svg)](https://codeofpaper.com/paper/2111.09360)

Discussion