pfl-research: simulation framework for accelerating research in Private Federated Learning

Filip Granqvist, Congzheng Song, Áine Cahill, Rogier van Dalen, Martin Pelikan +5 more
4/9/2024
cs.LGcs.AIcs.CR

Official code: apple/pfl-research (357 stars, Apache-2.0, last commit 2026-04-05).

Abstract

Federated learning (FL) is an emerging machine learning (ML) training paradigm where clients own their data and collaborate to train a global model, without revealing any data to the server and other participants. Researchers commonly perform experiments in a simulation environment to quickly iterate on ideas. However, existing open-source tools do not offer the efficiency required to simulate FL on larger and more realistic FL datasets. We introduce pfl-research, a fast, modular, and easy-to-use Python framework for simulating FL. It supports TensorFlow, PyTorch, and non-neural network models, and is tightly integrated with state-of-the-art privacy algorithms. We study the speed of open-source FL frameworks and show that pfl-research is 7-72$\times$ faster than alternative open-source frameworks on common cross-device setups. Such speedup will significantly boost the productivity of the FL research community and enable testing hypotheses on realistic FL datasets that were previously too resource intensive. We release a suite of benchmarks that evaluates an algorithm's overall performance on a diverse set of realistic scenarios. The code is available on GitHub at https://github.com/apple/pfl-research.

View on arXivView PDF

Code Implementations(1)

apple/pfl-researchOfficial100%
Apache-2.0

Simulation framework for accelerating research in Private Federated Learning

35743Shell, PythonDec 15, 20236 months agoApache-2.0
differential-privacyfederated-learningfederated-learning-frameworkmachine-learningprivacy

Similar Papers

Cite this paper

@article{granqvist2024pflresearch,
  title  = {pfl-research: simulation framework for accelerating research in Private Federated Learning},
  author = {Filip Granqvist and Congzheng Song and Áine Cahill and Rogier van Dalen and Martin Pelikan and Yi Sheng Chan and Xiaojun Feng and Natarajan Krishnaswami and Vojta Jina and Mona Chitnis},
  year   = {2024},
  eprint = {2404.06430},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2404.06430},
  url    = {http://arxiv.org/abs/2404.06430v2},
  journal = {NEURIPS 2024 2024}
}

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

Discussion